diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0cbfa54771..588f7759b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,8 @@
-# CHANGE LOG (1.4.15-beta.3) - 1.9.5
+# CHANGE LOG (1.4.15-beta.4) - 1.9.4
## Application Client
+- [Breaking] [Removed] Finance class from application client
### Cart
@@ -14,6 +15,11 @@
- [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
#### addItems
@@ -21,6 +27,11 @@
- [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
#### updateCart
@@ -28,6 +39,26 @@
- [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property freeGiftItems
of schema UpdateCartCreation
in request body
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### updateCartBreakup
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCartBreakup
+
+
+
+#### getCoupons
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property availableCouponList[].startDate
of schema Coupon
in response with status code 200
+ - [Deleted] Value format from date-time
from property availableCouponList[].endDate
of schema Coupon
in response with status code 200
+
#### applyCoupon
@@ -35,6 +66,11 @@
- [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
- [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 201
+
#### removeCoupon
@@ -42,6 +78,17 @@
- [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getBulkDiscountOffers
+
+- ##### What's New
+ - [Added] Response with status 500
+
#### applyRewardPoints
@@ -49,6 +96,23 @@
- [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getAddresses
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property validationConfig
of schema GetAddressesResult
in response with status code 200
+
+
+#### addAddress
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 422
+
#### selectAddress
@@ -56,239 +120,11077 @@
- [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
- [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 201
+
#### selectPaymentMode
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### validateCouponForPayment
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property couponValidity.errorEn
of schema CouponValidity
in response with status code 200
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property shipments[].items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property shipments[].items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore
from property shipments[].orderType
of schema ShipmentResult
in response with status code 200
+
+
+#### checkoutCart
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method checkoutCart
+
+
+
+#### getCartSharedItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 404
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 404
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 404
+
+
+#### updateCartWithSharedItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getPromotionOffers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property availablePromotions[].promotionType
of schema PromotionOffer
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].size
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].articlePrice
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].availableSizes
of schema FreeGiftItems
in response with status code 200
+
+
+#### getLadderOffers
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property availableOffers[].freeGiftItems[].size
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availableOffers[].freeGiftItems[].articlePrice
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availableOffers[].freeGiftItems[].availableSizes
of schema FreeGiftItems
in response with status code 200
+
+
+#### getPromotionPaymentOffers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property promotions[].promotionType
of schema PromotionPaymentOffer
in response with status code 200
+
+
+#### checkoutCartV2
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property customerDetails
of schema CartCheckoutDetailV2Request
in request body
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customMeta[]
of schema CartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] properties customerDetails.email
, customerDetails.mobile
, customerDetails.name
in request body
+ - [Deleted] Possible values from HomeDelivery,PickAtStore
from property orderType
of schema CartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property successCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property failureCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property customMeta
of schema CartCheckoutDetailV2Creation
in request body
+ - [Changed] customerDetails.mobile
made optional in request body
+
+
+### Catalog
+
+
+
+#### getProductDetailBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property itemType
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property promoMeta
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property noOfBoxes
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property countryOfOrigin
of schema ProductDetail
in response with status code 200
+
+
+#### getProductSizesBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property moq
of schema ProductSizes
in response with status code 200
+ - [Breaking] [Deleted] property tags
of schema ProductSizes
in response with status code 200
+ - [Breaking] [Deleted] property customOrder
of schema ProductSizes
in response with status code 200
+ - [Breaking] [Deleted] property noOfBoxes
of schema ProductSizes
in response with status code 200
+ - [Breaking] [Deleted] property teaserTag
of schema ProductSizes
in response with status code 200
+
+
+#### getProductComparisonBySlugs
+
+- ##### What's New
+ - [Added] property items[].color
of schema ProductDetail
in response with status code 200
+ - [Added] property items[].categoryMap
of schema ProductDetail
in response with status code 200
+ - [Added] property items[].productOnlineDate
of schema ProductDetail
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].sellable
of schema ProductCompareDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].templateTag
of schema ProductCompareDetail
in response with status code 200
+ - [Deleted] Possible values from standard,composite,set,digital
from property items[].itemType
of schema ProductCompareDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductCompareDetail
in response with status code 200
+
+
+#### getSimilarComparisonProductBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].promoMeta
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].noOfBoxes
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductDetail
in response with status code 200
+
+
+#### getComparedFrequentlyProductBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property similars.items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property similars.items[].itemType
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].promoMeta
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].noOfBoxes
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property similars.items[].countryOfOrigin
of schema ProductDetail
in response with status code 200
+
+
+#### getProductStockByIds
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].identifier.ean
, items[].identifier.alu
, items[].identifier.upc
, items[].identifier.skuCode
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].currency
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].sellerIdentifier
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].brandId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].priceMarked
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].priceEffective
of schema ProductStockStatusItem
in response with status code 200
+
+
+#### getProductStockForTimeByIds
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].identifier.ean
, items[].identifier.alu
, items[].identifier.upc
, items[].identifier.skuCode
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].currency
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].sellerIdentifier
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].brandId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeId
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].priceMarked
of schema ProductStockStatusItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].priceEffective
of schema ProductStockStatusItem
in response with status code 200
+
+
+#### getProducts
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].channel
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].isTryout
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property filters[].values[].logo
of schema ProductFiltersValue
in response with status code 200
+
+
+#### getBrandDetailBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property slug
of schema BrandDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property app
of schema BrandDetailResponseSchema
in response with status code 200
+
+
+#### getCategories
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data[].items[].childs[].childs[].childs[].priority
of schema ThirdLevelChild
in response with status code 200
+ - [Breaking] [Deleted] property data[].items[].childs[].childs[].priority
of schema SecondLevelChild
in response with status code 200
+ - [Breaking] [Deleted] property data[].items[].childs[].priority
of schema Child
in response with status code 200
+ - [Breaking] [Deleted] property data[].items[].priority
of schema CategoryItems
in response with status code 200
+ - [Breaking] [Deleted] property data[].items[].customJson
of schema CategoryItems
in response with status code 200
+
+
+#### getCategoryDetailBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property app
of schema CategoryMetaResponseSchema
in response with status code 200
+
+
+#### getHomeProducts
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].channel
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].isTryout
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property sortOn
of schema HomeListingResponseSchema
in response with status code 200
+
+
+#### getCollections
+
+- ##### What's Deprecated
+ - [Deleted] Type from string
from property items[].query[].value[]
of schema CollectionQuery
in response with status code 200
+ - [Breaking] [Deleted] property items[].published
of schema GetCollectionDetailNest
in response with status code 200
+ - [Breaking] [Deleted] property items[].seo
of schema GetCollectionDetailNest
in response with status code 200
+ - [Breaking] [Deleted] properties items[].schedule.cron
, items[].schedule.duration
, items[].schedule.start
, items[].schedule.end
, items[].schedule.metadata
, items[].schedule.nextSchedule
in response with status code 200
+ - [Breaking] [Deleted] property items[].id
of schema GetCollectionDetailNest
in response with status code 200
+ - [Breaking] [Deleted] property items[].localeLanguage
of schema GetCollectionDetailNest
in response with status code 200
+ - [Breaking] [Deleted] property items[].isVisible
of schema GetCollectionDetailNest
in response with status code 200
+
+
+#### getCollectionItemsBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].channel
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].isTryout
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property filters[].values[].logo
of schema ProductFiltersValue
in response with status code 200
+
+
+#### getCollectionDetailBySlug
+
+- ##### What's Deprecated
+ - [Deleted] Type from string
from property query[].value[]
of schema CollectionQuery
in response with status code 200
+ - [Breaking] [Deleted] property uid
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property published
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property tags
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property action
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property seo
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property id
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property localeLanguage
of schema CollectionDetailResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property isVisible
of schema CollectionDetailResponseSchema
in response with status code 200
+
+
+#### getFollowedListing
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].categories[].customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].channel
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l1.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l2.customJson
of schema ProductBrand
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryMap.l3.customJson
of schema ProductBrand
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ProductListingDetail
in response with status code 200
+ - [Breaking] [Deleted] property items[].isTryout
of schema ProductListingDetail
in response with status code 200
+
+
+#### getStores
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].contacts
of schema Store
in response with status code 200
+ - [Breaking] [Deleted] property items[].managerContact
of schema Store
in response with status code 200
+
+
+#### getInStockLocations
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties filters[].slug
, filters[].uid
, filters[].name
, filters[].logo
, filters[].isActive
, filters[].priorityOrder
, filters[].modifiedBy
, filters[].modifiedOn
in response with status code 200
+ - [Breaking] [Deleted] properties items[].departments[].logo.url
, items[].departments[].logo.type
, items[].departments[].logo.meta
, items[].departments[].logo.alt
in response with status code 200
+ - [Breaking] [Deleted] property items[].departments[].isActive
of schema AppStoreDepartment
in response with status code 200
+ - [Breaking] [Deleted] property items[].address.latLong
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].address.countryCode
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].address.addressMeta
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].stage
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].customJson
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].additionalContacts
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyId
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].displayName
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeType
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].autoInvoice
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].creditNote
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].gstCredentials
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].productReturnConfig
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].avgOrderProcessingTime
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].bulkShipment
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].defaultOrderAcceptanceTiming
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].orderAcceptanceTiming
of schema AppStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].autoAssignCourierPartner
of schema AppStore
in response with status code 200
+
+
+#### getLocationDetailsById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property address.latLong
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property address.countryCode
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property address.addressMeta
of schema StoreAddressSchema
in response with status code 200
+ - [Breaking] [Deleted] property stage
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property additionalContacts
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property companyId
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property displayName
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property storeType
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property autoInvoice
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property creditNote
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property gstCredentials
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property productReturnConfig
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property avgOrderProcessingTime
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property bulkShipment
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property defaultOrderAcceptanceTiming
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property orderAcceptanceTiming
of schema StoreDetails
in response with status code 200
+ - [Breaking] [Deleted] property autoAssignCourierPartner
of schema StoreDetails
in response with status code 200
+
+
+#### getProductPriceBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property trader
of schema ProductSizePriceResponseV3
in response with status code 200
+ - [Breaking] [Deleted] property tags
of schema ProductSizePriceResponseV3
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property itemType
of schema ProductSizePriceResponseV3
in response with status code 200
+ - [Breaking] [Deleted] property customJson
of schema ProductSizePriceResponseV3
in response with status code 200
+ - [Breaking] [Deleted] property inventoryUpdatedOn
of schema ProductSizePriceResponseV3
in response with status code 200
+ - [Breaking] [Deleted] property isServiceable
of schema ProductSizePriceResponseV3
in response with status code 200
+
+
+#### getProductSellersBySlug
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from standard,set,composite,digital
from property items[].itemType
of schema ProductSellersPriceResponseV3
in response with status code 200
+
+
+### Common
+
+
+
+#### searchApplication
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from website-and-mobile-apps,store
from property application.channelType
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property application.createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property application.updatedAt
of schema Application
in response with status code 200
+
+
+### Communication
+
+
+
+#### upsertAppPushtoken
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema PushtokenRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema PushtokenRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property expiredAt
of schema PushtokenRes
in response with status code 200
+
+
+### Configuration
+
+
+
+#### getApplication
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property tokens[].createdAt
of schema TokenSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema Application
in response with status code 200
+
+
+#### getOwnerInfo
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property applicationInfo.tokens[].createdAt
of schema TokenSchema
in response with status code 200
+ - [Deleted] Possible values from home,registered,office
from property applicationInfo.companyInfo.addresses[].addressType
of schema CompanyAboutAddress
in response with status code 200
+ - [Deleted] Value format from date-time
from property applicationInfo.companyInfo.createdOn
of schema CompanyInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property applicationInfo.createdAt
of schema ApplicationInfo
in response with status code 200
+
+
+#### getIntegrationTokens
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppTokenResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppTokenResponseSchema
in response with status code 200
+
+
+#### getFeatures
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property feature.createdAt
of schema AppFeature
in response with status code 200
+ - [Deleted] Value format from date-time
from property feature.modifiedAt
of schema AppFeature
in response with status code 200
+
+
+#### getContactInfo
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInformation
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInformation
in response with status code 200
+
+
+#### getCurrencies
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema Currency
in response with status code 200
+
+
+#### getCurrencyById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema Currency
in response with status code 200
+
+
+#### getAppCurrencies
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property supportedCurrency[].createdAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property supportedCurrency[].modifiedAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppCurrencyResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppCurrencyResponseSchema
in response with status code 200
+
+
+#### getAppStaffList
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getAppStaffs
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+### Content
+
+
+
+#### getAnnouncements
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getBlog
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter preview
(type: boolean
)
+
+ - [Deleted] Value format from date-time
from property publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getBlogs
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/application/content/v1.0/blogs
To /service/application/content/v1.0/blogs/
+
+
+#### getDataLoaders
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqs
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqCategories
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqBySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqCategoryBySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqsByCategorySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getLandingPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getLegalInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getNavigations
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/application/content/v1.0/navigations
To /service/application/content/v1.0/navigations/
+
+
+#### getSEOConfiguration
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property seo.createdAt
of schema SeoSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property seo.updatedAt
of schema SeoSchema
in response with status code 200
+
+
+#### getSEOMarkupSchemas
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property items[].pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### getSupportInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Support
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Support
in response with status code 200
+
+
+#### getTags
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getPages
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/application/content/v2.0/pages
To /service/application/content/v2.0/pages/
+
+
+#### getCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomObjectBySlug
+
+
+
+#### getCustomFieldsByResourceId
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomFieldsByResourceId
+
+
+
+#### getSlideshows
+
+- ##### What's New
+ - [Added] method getSlideshows
+
+
+
+#### getSlideshow
+
+- ##### What's New
+ - [Added] method getSlideshow
+
+
+
+#### getCustomObject
+
+- ##### What's New
+ - [Added] method getCustomObject
+
+
+
+#### getCustomFields
+
+- ##### What's New
+ - [Added] method getCustomFields
+
+
+
+### FileStorage
+
+
+
+#### startUpload
+
+- ##### What's New
+ - [Added] cdn
made required in response with status code 200
+ - [Added] property cdn
of schema StartResponse
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/application/assets/v2.0/namespaces/{namespace}/upload/start
To /service/application/assets/v1.0/namespaces/{namespace}/upload/start
+
+
+#### completeUpload
+
+- ##### What's New
+ - [Added] cdn
made required in request body
+ - [Added] property cdn
of schema StartResponse
in request body
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileUploadComplete
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileUploadComplete
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/application/assets/v2.0/namespaces/{namespace}/upload/complete
To /service/application/assets/v1.0/namespaces/{namespace}/upload/complete
+
+
+### Logistic
+
+
+
+#### getPincodeCity
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data[].meta.deliverables
of schema PincodeMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.iso2
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.iso3
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.currency
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.zone
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.deliverables
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.hierarchy
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.latitude
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.longitude
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.phoneCode
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property data[].metaCode.parentId
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property requestUuid
of schema PincodeDetails
in response with status code 200
+ - [Breaking] [Deleted] property stormbreakerUuid
of schema PincodeDetails
in response with status code 200
+
+
+#### getAllCountries
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property results[].meta.iso2
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.iso3
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.currency
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.zone
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.deliverables
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.hierarchy
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.latitude
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.longitude
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.phoneCode
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].meta.parentId
of schema CountryMetaResult
in response with status code 200
+ - [Breaking] [Deleted] properties results[].logistics.dp.operations
, results[].logistics.dp.fmPriority
, results[].logistics.dp.lmPriority
, results[].logistics.dp.rvpPriority
, results[].logistics.dp.paymentMode
, results[].logistics.dp.areaCode
, results[].logistics.dp.assignDpFromSb
, results[].logistics.dp.internalAccountId
, results[].logistics.dp.externalAccountId
, results[].logistics.dp.transportMode
in response with status code 200
+ - [Breaking] [Deleted] property results[].serviceability
of schema CountryEntityResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].onboardingAllowed
of schema CountryEntityResult
in response with status code 200
+ - [Breaking] [Deleted] property results[].latLong
of schema CountryEntityResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] results[].logistics.dp.fm_priority
, results[].logistics.dp.lm_priority
, results[].logistics.dp.operations
, results[].logistics.dp.payment_mode
, results[].logistics.dp.rvp_priority
made optional in response with status code 200
+ - [Breaking] [Changed] Type from array
to string
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+
+
+#### getCourierPartners
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCourierPartners
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] property items[].hierarchy[].name
of schema CountryHierarchy
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter hierarchy
(type: string
)
+
+ - [Breaking] [Deleted] property items[].hierarchy[].displayName
of schema CountryHierarchy
in response with status code 200
+
+
+#### getCountry
+
+- ##### What's New
+ - [Added] property hierarchy[].name
of schema CountryHierarchy
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property hierarchy[].displayName
of schema CountryHierarchy
in response with status code 200
+
+
+#### getDeliveryPromise
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getDeliveryPromise
+
+
+
+#### getLocalities
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter sector
(type: string
)
+
+ - [Breaking] [Deleted] property items[].meta
of schema Localities
in response with status code 200
+ - [Breaking] [Deleted] property items[].serviceability
of schema Localities
in response with status code 200
+ - [Breaking] [Deleted] property items[].localities[].meta
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property items[].localities[].serviceability
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property items[].localities[].code
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property items[].localities[].parentUid
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property items[].localities[].customMeta
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property items[].latLong
of schema Localities
in response with status code 200
+ - [Breaking] [Deleted] property items[].parentUid
of schema Localities
in response with status code 200
+ - [Breaking] [Deleted] property items[].customMeta
of schema Localities
in response with status code 200
+
+
+#### getLocality
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property meta
of schema GetLocality
in response with status code 200
+ - [Breaking] [Deleted] property serviceability
of schema GetLocality
in response with status code 200
+ - [Breaking] [Deleted] property code
of schema GetLocality
in response with status code 200
+ - [Breaking] [Deleted] property localities[].meta
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property localities[].serviceability
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property localities[].code
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property localities[].parentUid
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property localities[].customMeta
of schema LocalityParent
in response with status code 200
+ - [Breaking] [Deleted] property parentUid
of schema GetLocality
in response with status code 200
+ - [Breaking] [Deleted] property customMeta
of schema GetLocality
in response with status code 200
+
+
+### Order
+
+
+
+#### getOrders
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].shipments[].invoice.updatedDate
of schema Invoice
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].charges
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].deliveryDate
of schema Bags
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property items[].shipments[].bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].returnableDate
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].currentStatus.updatedAt
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].shipments[].bags[].currentStatus.journeyType
of schema CurrentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].charges
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property items[].shipments[].orderType
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].returnableDate
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].shipmentCreatedAt
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property items[].shipments[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].shipments[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property items[].shipments[].billingAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].billingAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].shipments[].billingAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].billingAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].deliveryDate
of schema Shipments
in response with status code 200
+ - [Breaking] [Deleted] property items[].charges
of schema OrderSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].currency
of schema OrderSchema
in response with status code 200
+
+
+#### getOrderById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property order.shipments[].invoice.updatedDate
of schema Invoice
in response with status code 200
+ - [Breaking] [Deleted] property order.shipments[].bags[].charges
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].bags[].deliveryDate
of schema Bags
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property order.shipments[].bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].bags[].returnableDate
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].bags[].currentStatus.updatedAt
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property order.shipments[].bags[].currentStatus.journeyType
of schema CurrentStatus
in response with status code 200
+ - [Breaking] [Deleted] property order.shipments[].charges
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property order.shipments[].orderType
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].returnableDate
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].shipmentCreatedAt
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property order.shipments[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property order.shipments[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property order.shipments[].billingAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].billingAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property order.shipments[].billingAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].billingAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.shipments[].deliveryDate
of schema Shipments
in response with status code 200
+ - [Breaking] [Deleted] property order.charges
of schema OrderSchema
in response with status code 200
+ - [Breaking] [Deleted] property order.currency
of schema OrderSchema
in response with status code 200
+
+
+#### getPosOrderById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getPosOrderById
+
+
+
+#### getShipmentById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property shipment.invoice.updatedDate
of schema Invoice
in response with status code 200
+ - [Breaking] [Deleted] property shipment.bags[].charges
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.bags[].deliveryDate
of schema Bags
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property shipment.bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.bags[].returnableDate
of schema Bags
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.bags[].currentStatus.updatedAt
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipment.bags[].currentStatus.journeyType
of schema CurrentStatus
in response with status code 200
+ - [Breaking] [Deleted] property shipment.charges
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property shipment.orderType
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.returnableDate
of schema Shipments
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.shipmentCreatedAt
of schema Shipments
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property shipment.deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipment.deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,store
from property shipment.billingAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.billingAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipment.billingAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.billingAddress.updatedAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipment.deliveryDate
of schema Shipments
in response with status code 200
+
+
+#### getInvoiceByShipmentId
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from GET,PUT
from property presignedType
of schema ResponseGetInvoiceShipment
in response with status code 200
+
+
+#### trackShipment
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property results[].meta
of schema Track
in response with status code 200
+ - [Deleted] Possible values from forward,reverse,rto
from property results[].shipmentType
of schema Track
in response with status code 200
+ - [Deleted] Value format from date-time
from property results[].updatedAt
of schema Track
in response with status code 200
+
+
+#### verifyOtpShipmentCustomer
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property message
of schema VerifyOtpResponseSchema
in response with status code 200
+
+
+#### getShipmentBagReasons
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from property reasons
of schema ShipmentBagReasons
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from property success
of schema ShipmentBagReasons
in response with status code 200
+ - [Breaking] [Deleted] property ruleId
of schema ShipmentBagReasons
in response with status code 200
+
+
+#### getShipmentReasons
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from bag,order
from property reasons[].feedbackType
of schema ShipmentReason
in response with status code 200
+
+
+#### updateShipmentStatus
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property statuses[].shipments[].dataUpdates.products[].filters[].quantity
of schema ProductsDataUpdatesFilters
in request body
+ - [Deleted] Value format from int32
from property statuses[].shipments[].dataUpdates.products[].filters[].lineNumber
of schema ProductsDataUpdatesFilters
in request body
+
+
+### Payment
+
+
+
+#### getAggregatorsConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from self,fynd
from property razorpay.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property juspay.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property simpl.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property payumoney.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property rupifi.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property mswipe.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property stripe.configType
of schema AggregatorConfigDetail
in response with status code 200
+ - [Deleted] Possible values from self,fynd
from property ccavenue.configType
of schema AggregatorConfigDetail
in response with status code 200
+
+
+#### attachCardToCustomer
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property cardId
of schema AttachCardRequest
in request body
+ - [Added] Response with status 500
+
+
+#### getActiveCardAggregator
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getActiveUserCards
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### deleteUserCard
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property cardId
of schema DeletehCardRequest
in request body
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Required status to Request body content
+
+
+#### verifyCustomerForPayment
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### verifyAndChargePayment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property amount
of schema ChargeCustomerRequest
in request body
+ - [Added] Response with status 500
+
+
+#### initialisePayment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property amount
of schema PaymentInitializationRequest
in request body
+ - [Breaking] [Added] method
made required in request body
+ - [Breaking] [Added] order_id
made required in request body
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property statusCode
of schema PaymentInitializationDetails
in response with status code 200
+
+
+#### checkAndUpdatePaymentStatus
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property razorpayPaymentId
of schema PaymentStatusUpdate
in request body
+ - [Breaking] [Deleted] property merchantUrl
of schema PaymentStatusUpdate
in request body
+
+- ##### What's Changed
+ - [Changed] order_id
made optional in request body
+ - [Changed] status
made optional in request body
+
+
+#### getPaymentModeRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Breaking] [Deleted] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Required status of query parameter cartId
+
+
+#### getPosPaymentModeRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Required status from query parameter refresh
+ - [Deleted] Required status from query parameter cardReference
+ - [Deleted] Required status from query parameter userDetails
+ - [Breaking] [Deleted] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Breaking] [Deleted] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Required status of query parameter cartId
+
+
+#### getRupifiBannerDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getEpaylaterBannerDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### resendOrCancelPayment
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from resend,cancel
from property requestType
of schema ResendOrCancelPayment
in request body
+
+
+#### renderHTML
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### validateVPA
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### cardDetails
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property data.bankCode
of schema CardDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property data.cardSubType
of schema CardDetails
in response with status code 200
+ - [Added] Response with status 500
+
+
+#### getActiveRefundTransferModes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Changed
+ - [Breaking] [Changed] data[].items
made optional in response with status code 200
+
+
+#### enableOrDisableRefundTransferMode
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getUserBeneficiariesDetail
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property beneficiaries[].modifiedOn
of schema OrderBeneficiaryDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property beneficiaries[].createdOn
of schema OrderBeneficiaryDetails
in response with status code 200
+
+
+#### verifyIfscCode
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getOrderBeneficiariesDetail
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property beneficiaries[].modifiedOn
of schema OrderBeneficiaryDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property beneficiaries[].createdOn
of schema OrderBeneficiaryDetails
in response with status code 200
+
+
+#### verifyOtpAndAddBeneficiaryForBank
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### addBeneficiaryDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### addRefundBankAccountUsingOTP
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### verifyOtpAndAddBeneficiaryForWallet
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### updateDefaultBeneficiary
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property shipmentId
of schema SetDefaultBeneficiary
in request body
+
+
+#### getPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property successRedirectionUrl
of schema CreatePaymentLink
in request body
+ - [Breaking] [Deleted] property failureRedirectionUrl
of schema CreatePaymentLink
in request body
+
+
+#### resendPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### cancelPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentModeRoutesPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Breaking] [Deleted] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### pollingPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createOrderHandlerPaymentLink
+
+- ##### What's New
+ - [Added] property failureCallbackUrl
of schema CreateOrderUserRequest
in request body
+ - [Added] property successCallbackUrl
of schema CreateOrderUserRequest
in request body
+ - [Breaking] [Added] payment_methods
made required in request body
+ - [Breaking] [Added] success_callback_url
made required in request body
+ - [Added] success
made required in response with status code 200
+ - [Added] Response with status 500
+
+
+#### initialisePaymentPaymentLink
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property amount
of schema PaymentInitializationRequest
in request body
+ - [Breaking] [Added] method
made required in request body
+ - [Breaking] [Added] order_id
made required in request body
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property statusCode
of schema PaymentInitializationDetails
in response with status code 200
+
+
+#### checkAndUpdatePaymentStatusPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property razorpayPaymentId
of schema PaymentStatusUpdate
in request body
+ - [Breaking] [Deleted] property merchantUrl
of schema PaymentStatusUpdate
in request body
+
+- ##### What's Changed
+ - [Changed] order_id
made optional in request body
+ - [Changed] status
made optional in request body
+
+
+#### customerCreditSummary
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data.dueDate
of schema CreditSummary
in response with status code 200
+
+
+#### redirectToAggregator
+
+- ##### What's New
+ - [Added] property data.signupUrl
of schema RedirectURL
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Required status from query parameter aggregator
+ - [Breaking] [Deleted] property data.extra
of schema RedirectURL
in response with status code 200
+ - [Breaking] [Deleted] property data.redirectUrl
of schema RedirectURL
in response with status code 200
+
+
+#### checkCredit
+
+- ##### What's New
+ - [Added] data.status
made required in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data.availableCredit
of schema CreditDetail
in response with status code 200
+
+
+#### customerOnboard
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property personalInfo.dob
of schema UserPersonalInfoInDetails
in request body
+ - [Added] Response with status 500
+
+
+#### outstandingOrderDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### paidOrderDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createPaymentOrder
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### validateCustomerAndCreditSummary
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method validateCustomerAndCreditSummary
+
+
+
+### Rewards
+
+
+
+#### getOfferByName
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Offer
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Offer
in response with status code 200
+
+
+#### catalogueOrder
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getUserPointsHistory
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema PointsHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema PointsHistory
in response with status code 200
+
+
+#### getUserPoints
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getUserReferralDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property referral.createdAt
of schema Offer
in response with status code 200
+ - [Deleted] Value format from date-time
from property referral.updatedAt
of schema Offer
in response with status code 200
+
+
+#### getOrderDiscount
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### redeemReferralCode
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+### Share
+
+
+
+#### createShortLink
+
+- ##### What's New
+ - [Breaking] [Added] url
made required in request body
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in request body
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkReq
in request body
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+#### getShortLinkByHash
+
+- ##### What's New
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+#### getOriginalShortLinkByHash
+
+- ##### What's New
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+### Theme
+
+
+
+#### getAllPages
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property pages[].sections[].assets
of schema AvailablePageSchemaSections
in response with status code 200
+ - [Breaking] [Deleted] properties pages[].sections[].source.id
, pages[].sections[].source.type
, pages[].sections[].source.bundleName
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property pages[].sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### getPage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property sections[].assets
of schema AvailablePageSchemaSections
in response with status code 200
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### getAppliedTheme
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter filters
(type: boolean
)
+
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### getThemeForPreview
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter filters
(type: boolean
)
+
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+### User
+
+
+
+#### loginWithFacebook
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithGoogle
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithGoogleAndroid
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithGoogleIOS
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithAppleIOS
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithOTP
+
+- ##### What's Deprecated
+ - [Deleted] Value format from ind64
from property resendTimer
of schema SendOtp
in response with status code 200
+
+
+#### loginWithEmailAndPassword
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### forgotPassword
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### loginWithToken
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### registerWithForm
+
+- ##### What's Deprecated
+ - [Deleted] Value format from int64
from property resendTimer
of schema RegisterFormSuccess
in response with status code 200
+
+
+#### sendOTPOnMobile
+
+- ##### What's Deprecated
+ - [Deleted] Value format from int64
from property resendTimer
of schema SendOtpSuccess
in response with status code 200
+
+
+#### sendForgotOTPOnMobile
+
+- ##### What's Deprecated
+ - [Deleted] Value format from int64
from property resendTimer
of schema SendOtpSuccess
in response with status code 200
+
+
+#### verifyMobileOTP
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### verifyEmailOTP
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### getLoggedInUser
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### getPlatformConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property updatedAt
of schema PlatformSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema PlatformSchema
in response with status code 200
+
+
+#### updateProfile
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from int64
from property resendTimer
of schema ProfileEditSuccess
in response with status code 200
+
+
+#### addMobileNumber
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### deleteMobileNumber
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### setMobileNumberAsPrimary
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### addEmail
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### deleteEmail
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### setEmailAsPrimary
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+### Webhook
+
+
+
+#### saveClickEvent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property sentAt
of schema ClickEventPayload
in request body
+
+
+## Platform Client
+
+- [Added] Finance class in platform client
+
+
+### Analytics
+
+
+
+#### executeJobForProvidedParametersV2
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties rows
, page
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### startDownloadForQueryV2
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+#### checkJobStatusByNameV2
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties status
, message
, startDate
, endDate
, fileMetadata
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+### AuditTrail
+
+
+
+#### createAuditLog
+
+- ##### What's New
+ - [Added] Response with status 400
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property logMeta.sessions
of schema LogMetaObj
in request body
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/webhook/v1.0/company/{company_id}/audit/logs/create
To /service/platform/audit-trail/v1.0/company/{company_id}/logs
+
+
+#### getAuditLogs
+
+- ##### What's New
+ - [Added] method getAuditLogs
+
+
+
+#### getAuditLog
+
+- ##### What's New
+ - [Added] method getAuditLog
+
+
+
+#### getEntityTypes
+
+- ##### What's New
+ - [Added] method getEntityTypes
+
+
+
+### Billing
+
+
+
+#### getChargeDetails
+
+- ##### What's New
+ - [Added] Possible values day
to property recurring.interval
of schema ChargeRecurring
in response with status code 200
+ - [Added] Possible values week
to property recurring.interval
of schema ChargeRecurring
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from integer
from property code
of schema ResourceNotFound
in response with status code 404
+ - [Deleted] Type from boolean
from property success
of schema ResourceNotFound
in response with status code 404
+ - [Breaking] [Deleted] Security in Request
+
+
+#### getSubscriptionCharge
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed
from property status
of schema SubscriptionChargeRes
in response with status code 200
+ - [Deleted] Possible values from extension,theme,subscription
from property entityType
of schema SubscriptionChargeRes
in response with status code 200
+ - [Deleted] Type from integer
from property code
of schema ResourceNotFound
in response with status code 404
+ - [Deleted] Type from boolean
from property success
of schema ResourceNotFound
in response with status code 404
+ - [Breaking] [Deleted] Security in Request
+
+
+#### cancelSubscriptionCharge
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed
from property status
of schema SubscriptionChargeRes
in response with status code 200
+ - [Deleted] Possible values from extension,theme,subscription
from property entityType
of schema SubscriptionChargeRes
in response with status code 200
+ - [Deleted] Type from integer
from property code
of schema ResourceNotFound
in response with status code 404
+ - [Deleted] Type from boolean
from property success
of schema ResourceNotFound
in response with status code 404
+ - [Breaking] [Deleted] Security in Request
+
+
+#### createOneTimeCharge
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed
from property charge.finalCharge.status
of schema OneTimeChargeEntity
in response with status code 200
+ - [Deleted] Possible values from subscription,extension,standalone
from property charge.finalCharge.chargeType
of schema OneTimeChargeEntity
in response with status code 200
+ - [Deleted] Possible values from extension,theme
from property charge.finalCharge.entityType
of schema OneTimeChargeEntity
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### createSubscriptionCharge
+
+- ##### What's New
+ - [Breaking] [Added] Value format int32
to property trialDays
of schema CreateSubscriptionCharge
in request body
+ - [Breaking] [Added] Value format int32
to property lineItems[].trialDays
of schema ChargeLineItem
in request body
+ - [Added] Possible values day
to property subscription.lineItems[].recurring.interval
of schema ChargeRecurring
in response with status code 200
+ - [Added] Possible values week
to property subscription.lineItems[].recurring.interval
of schema ChargeRecurring
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from pending,expired,declined,active,frozen,cancelled,no_renew,success,failed
from property subscription.status
of schema EntitySubscription
in response with status code 200
+ - [Deleted] Possible values from extension,theme
from property subscription.entityType
of schema EntitySubscription
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to integer
of property trialDays
of schema CreateSubscriptionCharge
in request body
+ - [Breaking] [Changed] Type from number
to integer
of property lineItems[].trialDays
of schema ChargeLineItem
in request body
+
+
+### Cart
+
+
+
+#### getCoupons
+
+- ##### What's New
+ - [Added] items[].ownership.payable_category
made required in response with status code 200
+ - [Added] items[].ruleDefinition.applicable_on
, items[].ruleDefinition.calculate_on
, items[].ruleDefinition.type
, items[].ruleDefinition.value_type
made required in response with status code 200
+ - [Added] items[].identifiers
made required in response with status code 200
+ - [Added] items[].ownership
made required in response with status code 200
+ - [Added] items[].rule
made required in response with status code 200
+ - [Added] items[].rule_definition
made required in response with status code 200
+ - [Added] items[].type_slug
made required in response with status code 200
+ - [Added] items[].validity
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter createdBy
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewedBy
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter approvedStartTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter approvedEndTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewStartTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewEndTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter status
(type: string
)
+
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].ownership.payableBy
of schema Ownership
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.approvedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.rejectedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.reviewedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] properties items[].restrictions.payments.codes
, items[].restrictions.payments.iins
, items[].restrictions.payments.types
, items[].restrictions.payments.networks
, items[].restrictions.payments.uses
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.approvedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.rejectedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.reviewedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].couponType
of schema CouponAdd
in response with status code 200
+ - [Breaking] [Deleted] property items[].couponPrefix
of schema CouponAdd
in response with status code 200
+ - [Breaking] [Deleted] property items[].couponCounts
of schema CouponAdd
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].schedule.start
of schema CouponSchedule
in response with status code 200
+ - [Breaking] [Deleted] property items[].schedule.status
of schema CouponSchedule
in response with status code 200
+
+
+#### createCoupon
+
+- ##### What's New
+ - [Added] ownership.payable_category
made required in request body
+ - [Added] ruleDefinition.applicable_on
, ruleDefinition.calculate_on
, ruleDefinition.type
, ruleDefinition.value_type
made required in request body
+ - [Added] identifiers
made required in request body
+ - [Added] ownership
made required in request body
+ - [Added] rule
made required in request body
+ - [Added] rule_definition
made required in request body
+ - [Added] type_slug
made required in request body
+ - [Added] validity
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property ownership.payableBy
of schema Ownership
in request body
+ - [Breaking] [Deleted] property author.approvedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] property author.rejectedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] property author.reviewedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in request body
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] property couponType
of schema CouponAdd
in request body
+ - [Breaking] [Deleted] property couponPrefix
of schema CouponAdd
in request body
+ - [Breaking] [Deleted] property couponCounts
of schema CouponAdd
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema CouponSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema CouponSchedule
in request body
+ - [Breaking] [Deleted] property id
of schema CouponCreateResult
in response with status code 201
+
+
+#### getCouponById
+
+- ##### What's New
+ - [Added] ownership.payable_category
made required in response with status code 200
+ - [Added] ruleDefinition.applicable_on
, ruleDefinition.calculate_on
, ruleDefinition.type
, ruleDefinition.value_type
made required in response with status code 200
+ - [Added] identifiers
made required in response with status code 200
+ - [Added] ownership
made required in response with status code 200
+ - [Added] rule
made required in response with status code 200
+ - [Added] rule_definition
made required in response with status code 200
+ - [Added] type_slug
made required in response with status code 200
+ - [Added] validity
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property ownership.payableBy
of schema Ownership
in response with status code 200
+ - [Breaking] [Deleted] property author.approvedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.rejectedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.reviewedBy
of schema CouponAuthor
in response with status code 200
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in response with status code 200
+ - [Breaking] [Deleted] property reason
of schema CouponUpdate
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema CouponDateMeta
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema CouponSchedule
in response with status code 200
+ - [Breaking] [Deleted] property schedule.status
of schema CouponSchedule
in response with status code 200
+ - [Breaking] [Deleted] property couponType
of schema CouponUpdate
in response with status code 200
+ - [Breaking] [Deleted] property couponPrefix
of schema CouponUpdate
in response with status code 200
+ - [Breaking] [Deleted] property couponCounts
of schema CouponUpdate
in response with status code 200
+
+
+#### updateCoupon
+
+- ##### What's New
+ - [Added] ownership.payable_category
made required in request body
+ - [Added] ruleDefinition.applicable_on
, ruleDefinition.calculate_on
, ruleDefinition.type
, ruleDefinition.value_type
made required in request body
+ - [Added] identifiers
made required in request body
+ - [Added] ownership
made required in request body
+ - [Added] rule
made required in request body
+ - [Added] rule_definition
made required in request body
+ - [Added] type_slug
made required in request body
+ - [Added] validity
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property ownership.payableBy
of schema Ownership
in request body
+ - [Breaking] [Deleted] property author.approvedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] property author.rejectedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] property author.reviewedBy
of schema CouponAuthor
in request body
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in request body
+ - [Breaking] [Deleted] property reason
of schema CouponUpdate
in request body
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema CouponDateMeta
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema CouponSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema CouponSchedule
in request body
+ - [Breaking] [Deleted] property couponType
of schema CouponUpdate
in request body
+ - [Breaking] [Deleted] property couponPrefix
of schema CouponUpdate
in request body
+ - [Breaking] [Deleted] property couponCounts
of schema CouponUpdate
in request body
+ - [Breaking] [Deleted] property id
of schema CouponCreateResult
in response with status code 200
+
+
+#### updateCouponPartially
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema CouponSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema CouponSchedule
in request body
+
+
+#### deleteCoupon
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteCoupon
+
+
+
+#### getPromotions
+
+- ##### What's New
+ - [Added] items[].ownership.payable_by
, items[].ownership.payable_category
made required in response with status code 200
+ - [Added] items[].restrictions.uses
made required in response with status code 200
+ - [Added] items[].visiblility.coupon_list
, items[].visiblility.pdp
made required in response with status code 200
+ - [Added] items[].schedule.end
, items[].schedule.published
, items[].schedule.start
made required in response with status code 200
+ - [Added] items[].postOrderAction.action_date
, items[].postOrderAction.action_type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter createdBy
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewedBy
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter approvedStartTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter approvedEndTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewStartTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter reviewEndTime
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter status
(type: string
)
+
+ - [Breaking] [Deleted] properties items[].restrictions.payments.codes
, items[].restrictions.payments.iins
, items[].restrictions.payments.types
, items[].restrictions.payments.networks
, items[].restrictions.payments.uses
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.approvedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.rejectedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property items[].author.reviewedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].displayMeta.description
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].displayMeta.name
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].displayMeta.offerText
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] property items[].discountRules[].meta
of schema DiscountRule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] property items[].isProcessed
of schema PromotionListItem
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].schedule.end
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].schedule.start
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] property items[].schedule.status
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] properties items[].buyRules.cartQuantity
, items[].buyRules.availableZones
, items[].buyRules.itemExcludeCompany
, items[].buyRules.itemId
, items[].buyRules.itemL1Category
, items[].buyRules.cartTotal
, items[].buyRules.cartUniqueItemQuantity
, items[].buyRules.cartUniqueItemAmount
, items[].buyRules.itemExcludeId
, items[].buyRules.allItems
, items[].buyRules.itemExcludeL1Category
, items[].buyRules.itemSize
, items[].buyRules.itemStore
, items[].buyRules.itemExcludeSku
, items[].buyRules.itemDepartment
, items[].buyRules.itemExcludeStore
, items[].buyRules.itemBrand
, items[].buyRules.itemExcludeDepartment
, items[].buyRules.itemExcludeCategory
, items[].buyRules.itemCategory
, items[].buyRules.buyRules
, items[].buyRules.itemExcludeBrand
, items[].buyRules.itemL2Category
, items[].buyRules.itemCompany
, items[].buyRules.itemTags
, items[].buyRules.itemExcludeL2Category
, items[].buyRules.itemSku
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.approvedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.rejectedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].dateMeta.reviewedOn
of schema PromotionDateMeta
in response with status code 200
+
+
+#### createPromotion
+
+- ##### What's New
+ - [Added] ownership.payable_by
, ownership.payable_category
made required in request body
+ - [Added] restrictions.uses
made required in request body
+ - [Added] visiblility.coupon_list
, visiblility.pdp
made required in request body
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in request body
+ - [Added] postOrderAction.action_date
, postOrderAction.action_type
made required in request body
+ - [Breaking] [Added] mode
made required in request body
+ - [Breaking] [Added] ownership
made required in request body
+ - [Breaking] [Added] promo_group
made required in request body
+ - [Breaking] [Added] promotion_type
made required in request body
+ - [Added] ownership.payable_by
, ownership.payable_category
made required in response with status code 201
+ - [Added] restrictions.uses
made required in response with status code 201
+ - [Added] visiblility.coupon_list
, visiblility.pdp
made required in response with status code 201
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in response with status code 201
+ - [Added] postOrderAction.action_date
, postOrderAction.action_type
made required in response with status code 201
+ - [Added] mode
made required in response with status code 201
+ - [Added] ownership
made required in response with status code 201
+ - [Added] promo_group
made required in response with status code 201
+ - [Added] promotion_type
made required in response with status code 201
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in request body
+ - [Breaking] [Deleted] property author.approvedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] property author.rejectedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] property author.reviewedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.description
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.name
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.offerText
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] property discountRules[].meta
of schema DiscountRule
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] properties buyRules.cartQuantity
, buyRules.availableZones
, buyRules.itemExcludeCompany
, buyRules.itemId
, buyRules.itemL1Category
, buyRules.cartTotal
, buyRules.cartUniqueItemQuantity
, buyRules.cartUniqueItemAmount
, buyRules.itemExcludeId
, buyRules.allItems
, buyRules.itemExcludeL1Category
, buyRules.itemSize
, buyRules.itemStore
, buyRules.itemExcludeSku
, buyRules.itemDepartment
, buyRules.itemExcludeStore
, buyRules.itemBrand
, buyRules.itemExcludeDepartment
, buyRules.itemExcludeCategory
, buyRules.itemCategory
, buyRules.buyRules
, buyRules.itemExcludeBrand
, buyRules.itemL2Category
, buyRules.itemCompany
, buyRules.itemTags
, buyRules.itemExcludeL2Category
, buyRules.itemSku
in request body
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in response with status code 201
+ - [Breaking] [Deleted] property author.approvedBy
of schema PromotionAuthor
in response with status code 201
+ - [Breaking] [Deleted] property author.rejectedBy
of schema PromotionAuthor
in response with status code 201
+ - [Breaking] [Deleted] property author.reviewedBy
of schema PromotionAuthor
in response with status code 201
+ - [Breaking] [Deleted] property isProcessed
of schema PromotionAddResult
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.description
of schema DisplayMeta1
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.name
of schema DisplayMeta1
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.offerText
of schema DisplayMeta1
in response with status code 201
+ - [Breaking] [Deleted] property discountRules[].meta
of schema DiscountRule
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in response with status code 201
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in response with status code 201
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in response with status code 201
+ - [Breaking] [Deleted] properties buyRules.cartQuantity
, buyRules.availableZones
, buyRules.itemExcludeCompany
, buyRules.itemId
, buyRules.itemL1Category
, buyRules.cartTotal
, buyRules.cartUniqueItemQuantity
, buyRules.cartUniqueItemAmount
, buyRules.itemExcludeId
, buyRules.allItems
, buyRules.itemExcludeL1Category
, buyRules.itemSize
, buyRules.itemStore
, buyRules.itemExcludeSku
, buyRules.itemDepartment
, buyRules.itemExcludeStore
, buyRules.itemBrand
, buyRules.itemExcludeDepartment
, buyRules.itemExcludeCategory
, buyRules.itemCategory
, buyRules.buyRules
, buyRules.itemExcludeBrand
, buyRules.itemL2Category
, buyRules.itemCompany
, buyRules.itemTags
, buyRules.itemExcludeL2Category
, buyRules.itemSku
in response with status code 201
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema PromotionDateMeta
in response with status code 201
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema PromotionDateMeta
in response with status code 201
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema PromotionDateMeta
in response with status code 201
+
+
+#### getPromotionById
+
+- ##### What's New
+ - [Added] ownership.payable_by
, ownership.payable_category
made required in response with status code 200
+ - [Added] restrictions.uses
made required in response with status code 200
+ - [Added] visiblility.coupon_list
, visiblility.pdp
made required in response with status code 200
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in response with status code 200
+ - [Added] postOrderAction.action_date
, postOrderAction.action_type
made required in response with status code 200
+ - [Added] mode
made required in response with status code 200
+ - [Added] ownership
made required in response with status code 200
+ - [Added] promo_group
made required in response with status code 200
+ - [Added] promotion_type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property reason
of schema PromotionUpdateResult
in response with status code 200
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in response with status code 200
+ - [Breaking] [Deleted] property author.approvedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.rejectedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.reviewedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property isProcessed
of schema PromotionUpdateResult
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.description
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.name
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.offerText
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] property discountRules[].meta
of schema DiscountRule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] properties buyRules.cartQuantity
, buyRules.availableZones
, buyRules.itemExcludeCompany
, buyRules.itemId
, buyRules.itemL1Category
, buyRules.cartTotal
, buyRules.cartUniqueItemQuantity
, buyRules.cartUniqueItemAmount
, buyRules.itemExcludeId
, buyRules.allItems
, buyRules.itemExcludeL1Category
, buyRules.itemSize
, buyRules.itemStore
, buyRules.itemExcludeSku
, buyRules.itemDepartment
, buyRules.itemExcludeStore
, buyRules.itemBrand
, buyRules.itemExcludeDepartment
, buyRules.itemExcludeCategory
, buyRules.itemCategory
, buyRules.buyRules
, buyRules.itemExcludeBrand
, buyRules.itemL2Category
, buyRules.itemCompany
, buyRules.itemTags
, buyRules.itemExcludeL2Category
, buyRules.itemSku
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema PromotionDateMeta
in response with status code 200
+
+
+#### updatePromotion
+
+- ##### What's New
+ - [Added] ownership.payable_by
, ownership.payable_category
made required in request body
+ - [Added] restrictions.uses
made required in request body
+ - [Added] visiblility.coupon_list
, visiblility.pdp
made required in request body
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in request body
+ - [Added] postOrderAction.action_date
, postOrderAction.action_type
made required in request body
+ - [Breaking] [Added] mode
made required in request body
+ - [Breaking] [Added] ownership
made required in request body
+ - [Breaking] [Added] promo_group
made required in request body
+ - [Breaking] [Added] promotion_type
made required in request body
+ - [Added] ownership.payable_by
, ownership.payable_category
made required in response with status code 200
+ - [Added] restrictions.uses
made required in response with status code 200
+ - [Added] visiblility.coupon_list
, visiblility.pdp
made required in response with status code 200
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in response with status code 200
+ - [Added] postOrderAction.action_date
, postOrderAction.action_type
made required in response with status code 200
+ - [Added] mode
made required in response with status code 200
+ - [Added] ownership
made required in response with status code 200
+ - [Added] promo_group
made required in response with status code 200
+ - [Added] promotion_type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property reason
of schema PromotionUpdate
in request body
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in request body
+ - [Breaking] [Deleted] property author.approvedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] property author.rejectedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] property author.reviewedBy
of schema PromotionAuthor
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.description
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.name
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.offerText
of schema DisplayMeta1
in request body
+ - [Breaking] [Deleted] property discountRules[].meta
of schema DiscountRule
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] properties buyRules.cartQuantity
, buyRules.availableZones
, buyRules.itemExcludeCompany
, buyRules.itemId
, buyRules.itemL1Category
, buyRules.cartTotal
, buyRules.cartUniqueItemQuantity
, buyRules.cartUniqueItemAmount
, buyRules.itemExcludeId
, buyRules.allItems
, buyRules.itemExcludeL1Category
, buyRules.itemSize
, buyRules.itemStore
, buyRules.itemExcludeSku
, buyRules.itemDepartment
, buyRules.itemExcludeStore
, buyRules.itemBrand
, buyRules.itemExcludeDepartment
, buyRules.itemExcludeCategory
, buyRules.itemCategory
, buyRules.buyRules
, buyRules.itemExcludeBrand
, buyRules.itemL2Category
, buyRules.itemCompany
, buyRules.itemTags
, buyRules.itemExcludeL2Category
, buyRules.itemSku
in request body
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema PromotionDateMeta
in request body
+ - [Breaking] [Deleted] property reason
of schema PromotionUpdateResult
in response with status code 200
+ - [Breaking] [Deleted] properties restrictions.payments.codes
, restrictions.payments.iins
, restrictions.payments.types
, restrictions.payments.networks
, restrictions.payments.uses
in response with status code 200
+ - [Breaking] [Deleted] property author.approvedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.rejectedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property author.reviewedBy
of schema PromotionAuthor
in response with status code 200
+ - [Breaking] [Deleted] property isProcessed
of schema PromotionUpdateResult
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.description
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.name
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property displayMeta.offerText
of schema DisplayMeta1
in response with status code 200
+ - [Breaking] [Deleted] property discountRules[].meta
of schema DiscountRule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].offer.maxUsagePerTransaction
of schema DiscountOffer
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartTotal.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemQuantity.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.equals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.lessThan
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property discountRules[].itemCriteria.cartUniqueItemAmount.greaterThanEquals
of schema CompareObject
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in response with status code 200
+ - [Breaking] [Deleted] properties buyRules.cartQuantity
, buyRules.availableZones
, buyRules.itemExcludeCompany
, buyRules.itemId
, buyRules.itemL1Category
, buyRules.cartTotal
, buyRules.cartUniqueItemQuantity
, buyRules.cartUniqueItemAmount
, buyRules.itemExcludeId
, buyRules.allItems
, buyRules.itemExcludeL1Category
, buyRules.itemSize
, buyRules.itemStore
, buyRules.itemExcludeSku
, buyRules.itemDepartment
, buyRules.itemExcludeStore
, buyRules.itemBrand
, buyRules.itemExcludeDepartment
, buyRules.itemExcludeCategory
, buyRules.itemCategory
, buyRules.buyRules
, buyRules.itemExcludeBrand
, buyRules.itemL2Category
, buyRules.itemCompany
, buyRules.itemTags
, buyRules.itemExcludeL2Category
, buyRules.itemSku
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.approvedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.rejectedOn
of schema PromotionDateMeta
in response with status code 200
+ - [Breaking] [Deleted] property dateMeta.reviewedOn
of schema PromotionDateMeta
in response with status code 200
+
+
+#### updatePromotionPartially
+
+- ##### What's New
+ - [Added] schedule.end
, schedule.published
, schedule.start
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.end
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] Possible nullable value from true
from property schedule.start
of schema PromotionSchedule
in request body
+ - [Breaking] [Deleted] property schedule.status
of schema PromotionSchedule
in request body
+
+
+#### deletePromotion
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deletePromotion
+
+
+
+#### getPromosCouponConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema ActivePromosResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema ActivePromosResult
in response with status code 200
+
+
+#### getPromotionOffers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property availablePromotions[].promotionType
of schema PromotionOffer
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].size
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].articlePrice
of schema FreeGiftItems
in response with status code 200
+ - [Breaking] [Deleted] property availablePromotions[].freeGiftItems[].availableSizes
of schema FreeGiftItems
in response with status code 200
+
+
+#### getPromotionPaymentOffers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property promotions[].promotionType
of schema PromotionPaymentOffer
in response with status code 200
+
+
+#### updatePriceAdjustment
+
+- ##### What's New
+ - [Added] properties data.value
, data.message
, data.restrictions
, data.id
, data.collection
, data.type
, data.meta
, data.applyExpiry
, data.articleLevelDistribution
, data.allowedRefund
, data.isAuthenticated
, data.articleIds
, data.autoRemove
, data.cartId
in response with status code 200
+ - [Added] data.article_ids
, data.article_level_distribution
, data.cart_id
, data.collection
, data.is_authenticated
, data.message
, data.type
, data.value
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property distributionLogic
of schema PriceAdjustmentUpdate
in request body
+ - [Breaking] [Deleted] property data[]
of schema GetPriceAdjustmentResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property data
of schema GetPriceAdjustmentResult
in response with status code 200
+
+
+#### addPriceAdjustment
+
+- ##### What's New
+ - [Added] properties data.value
, data.message
, data.restrictions
, data.id
, data.collection
, data.type
, data.meta
, data.applyExpiry
, data.articleLevelDistribution
, data.allowedRefund
, data.isAuthenticated
, data.articleIds
, data.autoRemove
, data.cartId
in response with status code 201
+ - [Added] data.article_ids
, data.article_level_distribution
, data.cart_id
, data.collection
, data.is_authenticated
, data.message
, data.type
, data.value
made required in response with status code 201
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property distributionLogic
of schema PriceAdjustmentAdd
in request body
+ - [Breaking] [Deleted] property data[]
of schema GetPriceAdjustmentResult
in response with status code 201
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property data
of schema GetPriceAdjustmentResult
in response with status code 201
+
+
+#### getPriceAdjustments
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data[].distributionLogic
of schema PriceAdjustment
in response with status code 200
+
+
+#### fetchAndvalidateCartItems
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### checkCartServiceability
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getAbandonedCartDetails
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### addItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### updateCart
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property freeGiftItems
of schema UpdateCartCreation
in request body
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### overrideCart
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property paymentIdentifier
of schema OverrideCheckoutReq
in request body
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property orderType
of schema OverrideCheckoutReq
in request body
+
+
+#### getCartSharedItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 404
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 404
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 404
+
+
+#### updateCartWithSharedItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getCartList
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data[].createdOn
of schema CartList
in response with status code 200
+
+
+#### updateCartUser
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property user.modifiedOn
of schema UserInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.lastName
of schema UserInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getCart
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### platformAddItems
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### platformUpdateCart
+
+- ##### What's New
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property freeGiftItems
of schema PlatformUpdateCartDetails
in request body
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getAppCoupons
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property availableCouponList[].startDate
of schema Coupon
in response with status code 200
+ - [Deleted] Value format from date-time
from property availableCouponList[].endDate
of schema Coupon
in response with status code 200
+
+
+#### applyCoupon
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 201
+
+
+#### removeCoupon
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### getAddresses
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property validationConfig
of schema PlatformGetAddressesDetails
in response with status code 200
+
+
+#### addAddress
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 422
+
+
+#### selectAddress
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 201
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 201
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property shipments[].items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property shipments[].orderType
of schema PlatformShipmentDetails
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### updateShipments
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property shipments[].items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property shipments[].orderType
of schema PlatformShipmentDetails
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### platformCheckoutCart
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method platformCheckoutCart
+
+
+
+#### selectPaymentMode
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+#### validateCouponForPayment
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property couponValidity.errorEn
of schema CouponValidity
in response with status code 200
+
+
+#### platformCheckoutCartV2
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property customerDetails
of schema PlatformCartCheckoutDetailV2Request
in request body
+ - [Added] Possible nullable value true
to property userId
of schema PlatformCartCheckoutDetailV2Request
in request body
+ - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customMeta[]
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] properties customerDetails.name
, customerDetails.email
, customerDetails.mobile
in request body
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property orderType
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property successCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property failureCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Breaking] [Deleted] property cart.items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property cart.items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property customMeta
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Changed] customerDetails.mobile
made optional in request body
+
+
+#### selectPaymentModeV2
+
+- ##### What's New
+ - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].product.action.page
of schema ProductAction
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property items[].promotionsApplied[].promotionType
of schema AppliedPromotion
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items,external_price_adjustment_discount
from property appliedPromoDetails[].promotionType
of schema AppliedPromotion
in response with status code 200
+
+
+### Catalog
+
+
+
+#### getCatalogInsights
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationBrandListing
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property
of schema ApplicationBrandListingSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] page
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppBrand
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationBrands
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCategories
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationCategoryListing
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property items[].createdBy
of schema CreatedBy
in response with status code 200
+ - [Deleted] Type from object
from property items[].modifiedBy
of schema CreatedBy
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppCategory
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAllCollections
+
+- ##### What's New
+ - [Added] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].cron
of schema GetCollectionDetailNest
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property items[].logo.type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].logo.alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].logo.thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoAction
in response with status code 200
+ - [Breaking] [Changed] items[].seo.breadcrumbs[].action.type
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createCollection
+
+- ##### What's New
+ - [Added] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Added] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter q
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter scheduleStatus
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter type
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter tags
(type: array
)
+
+ - [Breaking] [Deleted] query
parameter isActive
(type: boolean
)
+
+ - [Breaking] [Deleted] query
parameter pageNo
(type: integer
)
+
+ - [Breaking] [Deleted] query
parameter pageSize
(type: integer
)
+
+ - [Breaking] [Deleted] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in request body
+ - [Breaking] [Deleted] property cron
of schema CollectionCreateResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoAction
in request body
+ - [Breaking] [Changed] seo.breadcrumbs[].action.type
made optional in request body
+ - [Breaking] [Changed] Type from object
to array
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoAction
in response with status code 200
+ - [Breaking] [Changed] seo.breadcrumbs[].action.type
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationFilterValues
+
+- ##### What's New
+ - [Added] property values[].max
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].min
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].currencyCode
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].currencySymbol
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].displayFormat
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].queryFormat
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].selectedMax
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property values[].selectedMin
of schema ProductFiltersValue
in response with status code 200
+ - [Added] values[].display
, values[].is_selected
, values[].value
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from string
from property values[].value
of schema ProductQueryFiltersValue
in response with status code 200
+ - [Breaking] [Deleted] property values[].logo
of schema ProductQueryFiltersValue
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationFilterKeys
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getQueryFilters
+
+- ##### What's New
+ - [Added] property filters[].values[].max
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].min
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].currencyCode
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].currencySymbol
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].displayFormat
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].queryFormat
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].selectedMax
of schema ProductFiltersValue
in response with status code 200
+ - [Added] property filters[].values[].selectedMin
of schema ProductFiltersValue
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from string
from property filters[].values[].value
of schema CollectionProductFiltersValue
in response with status code 200
+ - [Breaking] [Deleted] property filters[].values[].logo
of schema CollectionProductFiltersValue
in response with status code 200
+ - [Breaking] [Deleted] property sortOn[].logo
of schema CollectionProductSortOn
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteCollection
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateCollection
+
+- ##### What's New
+ - [Added] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Added] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties seo.sitemap.priority
, seo.sitemap.frequency
in request body
+ - [Breaking] [Deleted] properties seo.breadcrumbs[].action.type
, seo.breadcrumbs[].action.page
in request body
+ - [Breaking] [Deleted] properties seo.sitemap.priority
, seo.sitemap.frequency
in response with status code 200
+ - [Breaking] [Deleted] properties seo.breadcrumbs[].action.type
, seo.breadcrumbs[].action.page
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property seo.breadcrumbs[].action
of schema ApplicationCollectionItemSeoAction
in request body
+ - [Breaking] [Changed] Type from object
to array
of property seo.breadcrumbs[].action
of schema ApplicationCollectionItemSeoAction
in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCollectionItems
+
+- ##### What's New
+ - [Breaking] [Added] Type object
to property items[].price
of schema ProductListingPrice
in response with status code 200
+ - [Added] property items[].groupedAttributes
of schema ProductListingDetail
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter pageNo
(type: integer
)
+
+ - [Deleted] Type from object
from property filters[].values[].value
of schema ProductFiltersValue
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property items[].brand.logo.type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.logo.alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.logo.thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property items[].medias[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].medias[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].medias[].thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from INR,USD,EUR
from property items[].price.effective.currencyCode
of schema CurrencyCodeEnum
in response with status code 200
+ - [Deleted] Possible values from INR,USD,EUR
from property items[].price.marked.currencyCode
of schema CurrencyCodeEnum
in response with status code 200
+ - [Breaking] [Deleted] property items[].price.selling
of schema ProductListingPrice
in response with status code 200
+ - [Breaking] [Deleted] property items[].popularity
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].departments
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].tags
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].sizes
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].moq
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].seo
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variants
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].identifiers
of schema ApplicationProductsSchema
in response with status code 200
+ - [Deleted] Possible values from default,standard
from property items[].imageNature
of schema ApplicationProductsSchema
in response with status code 200
+ - [Deleted] Possible values from composite,digital,packaging,set,standard
from property items[].itemType
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].brandUid
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryUid
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].verificationStatus
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].channelIdentifier
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].categorySlug
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].sizeGuide
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].l3Categories
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeIds
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyIds
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].l3CategoryNames
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].productGroupTag
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].multiSize
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isGift
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isCod
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isDependent
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isAvailable
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variantMedia
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variantGroup
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].multiCategories
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].templateTag
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].netQuantity
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customOrder
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customJson
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].itemId
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customMeta
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].discountPercentage
of schema ApplicationProductsSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] items[].name
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_dependent
made optional in response with status code 200
+ - [Breaking] [Changed] items[].uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].category_uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].item_code
made optional in response with status code 200
+ - [Breaking] [Changed] items[].multi_size
made optional in response with status code 200
+ - [Breaking] [Changed] items[].brand_uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].country_of_origin
made optional in response with status code 200
+ - [Breaking] [Changed] items[].item_type
made optional in response with status code 200
+ - [Breaking] [Changed] items[].departments
made optional in response with status code 200
+ - [Breaking] [Changed] items[].image_nature
made optional in response with status code 200
+ - [Breaking] [Changed] items[].moq
made optional in response with status code 200
+ - [Breaking] [Changed] items[].seo
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_cod
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_gift
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_available
made optional in response with status code 200
+ - [Breaking] [Changed] items[].l3_categories
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### addCollectionItems
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCollectionDetail
+
+- ##### What's New
+ - [Added] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property logo.type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property logo.alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property logo.thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Breaking] [Deleted] property id
of schema GetCollectionDetailResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoAction
in response with status code 200
+ - [Breaking] [Changed] seo.breadcrumbs[].action.type
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationDepartmentListing
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppDepartment
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getDepartments
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppInventory
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppLocations
+
+- ##### What's New
+ - [Added] property items[].code
of schema GetLocationSerializer
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property items[].company.companyType
of schema GetCompanySchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].company.createdOn
of schema GetCompanySchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].company.modifiedOn
of schema GetCompanySchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].company.verifiedOn
of schema GetCompanySchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeCode
of schema GetLocationSchema
in response with status code 200
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].storeType
of schema GetLocationSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyId
of schema GetLocationSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getConfigurations
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createConfigurationProductListing
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCatalogConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getConfigurationByType
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createConfigurationByType
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppProduct
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppProduct
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getApplicationProducts
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property filters[].values[].value
of schema ProductFiltersValue
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property items[].brand.logo.type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.logo.alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].brand.logo.thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property items[].medias[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].medias[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].medias[].thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from INR,USD,EUR
from property items[].price.effective.currencyCode
of schema CurrencyCodeEnum
in response with status code 200
+ - [Deleted] Possible values from INR,USD,EUR
from property items[].price.marked.currencyCode
of schema CurrencyCodeEnum
in response with status code 200
+ - [Breaking] [Deleted] property items[].price.selling
of schema ProductListingPrice
in response with status code 200
+ - [Breaking] [Deleted] property items[].popularity
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].departments
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].tags
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].sizes
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].moq
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].seo
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variants
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].identifiers
of schema ApplicationProductsSchema
in response with status code 200
+ - [Deleted] Possible values from default,standard
from property items[].imageNature
of schema ApplicationProductsSchema
in response with status code 200
+ - [Deleted] Possible values from composite,digital,packaging,set,standard
from property items[].itemType
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].brandUid
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].categoryUid
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].verificationStatus
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].channelIdentifier
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].categorySlug
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].sizeGuide
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].l3Categories
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].storeIds
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].companyIds
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].l3CategoryNames
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].productGroupTag
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].multiSize
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isGift
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isCod
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isDependent
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].isAvailable
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variantMedia
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].variantGroup
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].multiCategories
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].templateTag
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].netQuantity
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customOrder
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].countryOfOrigin
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customJson
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].itemId
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].customMeta
of schema ApplicationProductsSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].discountPercentage
of schema ApplicationProductsSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] operationId from getApplicationProducts
to getAppicationProducts
+ - [Breaking] [Changed] items[].name
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_dependent
made optional in response with status code 200
+ - [Breaking] [Changed] items[].uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].category_uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].item_code
made optional in response with status code 200
+ - [Breaking] [Changed] items[].multi_size
made optional in response with status code 200
+ - [Breaking] [Changed] items[].brand_uid
made optional in response with status code 200
+ - [Breaking] [Changed] items[].country_of_origin
made optional in response with status code 200
+ - [Breaking] [Changed] items[].item_type
made optional in response with status code 200
+ - [Breaking] [Changed] items[].departments
made optional in response with status code 200
+ - [Breaking] [Changed] items[].image_nature
made optional in response with status code 200
+ - [Breaking] [Changed] items[].moq
made optional in response with status code 200
+ - [Breaking] [Changed] items[].seo
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_cod
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_gift
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_available
made optional in response with status code 200
+ - [Breaking] [Changed] items[].l3_categories
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getDiscountedInventoryBySizeIdentifier
+
+- ##### What's New
+ - [Added] query
parameter q
(type: string
)
+
+ - [Added] items[].trader[].name
made required in response with status code 200
+ - [Added] items[].trader[].type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] maxLength validator for items[].trader[].name in response with status code 200
+ - [Deleted] minLength validator for items[].trader[].name in response with status code 200
+ - [Breaking] [Deleted] properties items[].returnConfig.returnable
, items[].returnConfig.time
, items[].returnConfig.unit
in response with status code 200
+ - [Deleted] Type from object
from property items[].returnConfig
of schema InventoryReturnConfig
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductDetailBySlug
+
+- ##### What's New
+ - [Added] property color
of schema ProductDetail
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property brand.logo.type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property brand.logo.alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property brand.logo.thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from image,video,3d_model
from property medias[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property medias[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property medias[].thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property categories
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property tags
of schema ProductDetail
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property itemType
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property countryOfOrigin
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property noOfBoxes
of schema ProductDetail
in response with status code 200
+ - [Breaking] [Deleted] property customOrder
of schema ProductDetail
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppProducts
+
+- ##### What's New
+ - [Added] property items[].color
of schema RawProduct
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property items[].media[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].action
of schema RawProduct
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema RawProduct
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].verifiedOn
of schema RawProduct
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppReturnConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createAppReturnConfiguration
+
+- ##### What's New
+ - [Added] property appId
of schema CreateUpdateAppReturnConfig
in request body
+ - [Added] property companyId
of schema CreateUpdateAppReturnConfig
in request body
+ - [Breaking] [Added] company_id
made required in request body
+ - [Breaking] [Added] return_config_level
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppReturnConfiguration
+
+- ##### What's New
+ - [Added] property appId
of schema CreateUpdateAppReturnConfig
in request body
+ - [Added] property companyId
of schema CreateUpdateAppReturnConfig
in request body
+ - [Breaking] [Added] company_id
made required in request body
+ - [Breaking] [Added] return_config_level
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteAppCategoryReturnConfiguration
+
+- ##### What's New
+ - [Added] property appId
of schema DeleteAppCategoryReturnConfig
in request body
+ - [Added] property companyId
of schema DeleteAppCategoryReturnConfig
in request body
+ - [Breaking] [Added] category_ids
made required in request body
+ - [Breaking] [Added] company_id
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAppCategoryReturnConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from integer
to string
of property page.current
of schema PageResponseSchema
in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createAppCategoryReturnConfiguration
+
+- ##### What's New
+ - [Added] property appId
of schema BaseAppCategoryReturnConfig
in request body
+ - [Added] property companyId
of schema BaseAppCategoryReturnConfig
in request body
+ - [Breaking] [Added] company_id
made required in request body
+ - [Breaking] [Added] data
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppCategoryReturnConfiguration
+
+- ##### What's New
+ - [Added] property appId
of schema BaseAppCategoryReturnConfig
in request body
+ - [Added] property companyId
of schema BaseAppCategoryReturnConfig
in request body
+ - [Breaking] [Added] company_id
made required in request body
+ - [Breaking] [Added] data
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAutocompleteConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createCustomAutocompleteRule
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteAutocompleteKeyword
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAutocompleteKeywordDetail
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAutocompleteKeyword
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteSearchConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSearchConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createSearchConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateSearchConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAllSearchKeyword
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createCustomKeyword
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteSearchKeywords
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSearchKeywords
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateSearchKeywords
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateAppLocation
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### listCategories
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCategoryData
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSellerInsights
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### listDepartmentsData
+
+- ##### What's New
+ - [Added] property items[].search
of schema GetDepartment
in response with status code 200
+ - [Added] property items[].pageNo
of schema GetDepartment
in response with status code 200
+ - [Added] property items[].pageSize
of schema GetDepartment
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].id
of schema GetDepartment
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema GetDepartment
in response with status code 200
+
+
+#### getDepartmentData
+
+- ##### What's New
+ - [Added] property items[].search
of schema GetDepartment
in response with status code 200
+ - [Added] property items[].pageNo
of schema GetDepartment
in response with status code 200
+ - [Added] property items[].pageSize
of schema GetDepartment
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].id
of schema GetDepartment
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema GetDepartment
in response with status code 200
+
+
+#### bulkHsnCode
+
+- ##### What's New
+ - [Breaking] [Added] data[].threshold1
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getHsnCode
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateHsnCode
+
+- ##### What's New
+ - [Breaking] [Added] threshold1
made required in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getInventories
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].identifier.primary
, items[].identifier.gtinValue
, items[].identifier.gtinType
in response with status code 200
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].store.storeType
of schema ArticleStoreResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getInventoryBulkUploadHistory
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema BulkInventoryGetItems
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema BulkInventoryGetItems
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createBulkInventoryJob
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteBulkInventoryJob
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createBulkInventory
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getInventoryExport
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createInventoryExportJob
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties filters.brands
, filters.quantity
, filters.stores
, filters.fromDate
, filters.toDate
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### exportInventoryConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getOptimalLocations
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getMarketplaceOptinDetail
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema CompanyOptIn
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema CompanyOptIn
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCompanyBrandDetail
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCompanyDetail
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property companyType
of schema OptinCompanyDetail
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getCompanyMetrics
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getStoreDetail
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].storeType
of schema StoreDetail
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductAttributes
+
+- ##### What's Changed
+ - [Breaking] [Changed] items[].name
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAttribute
+
+- ##### What's New
+ - [Added] property departments
of schema AttributeDetail
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property id[]
of schema AttributeDetail
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property id
of schema AttributeDetail
in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductBundle
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter pageNo
(type: integer
)
+
+ - [Breaking] [Deleted] query
parameter pageSize
(type: integer
)
+
+ - [Breaking] [Deleted] properties items[].createdBy.username
, items[].createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties items[].modifiedBy.username
, items[].modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createProductBundle
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties createdBy.username
, createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties modifiedBy.username
, modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductBundleDetail
+
+- ##### What's New
+ - [Added] property products[].productDetails.name
of schema LimitedProductData
in response with status code 200
+ - [Added] property products[].productDetails.shortDescription
of schema LimitedProductData
in response with status code 200
+ - [Added] property products[].price
of schema GetProducts
in response with status code 200
+ - [Added] property products[].sizes
of schema GetProducts
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties products[].productDetails.price.currency
, products[].productDetails.price.maxEffective
, products[].productDetails.price.maxMarked
, products[].productDetails.price.minEffective
, products[].productDetails.price.minMarked
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateProductBundle
+
+- ##### What's New
+ - [Added] property modifiedBy
of schema ProductBundleUpdateRequest
in request body
+ - [Added] property modifiedOn
of schema ProductBundleUpdateRequest
in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties createdBy.username
, createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties modifiedBy.username
, modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductAssetsInBulk
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema Items
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema Items
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createProductAssetsInBulk
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductBulkUploadHistory
+
+- ##### What's New
+ - [Added] Default value
to property items[].template.attributes
of schema ProductTemplate
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].template.attributes
of schema ProductTemplate
in response with status code 200
+ - [Added] Default value
to property items[].template.categories
of schema ProductTemplate
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].template.categories
of schema ProductTemplate
in response with status code 200
+ - [Added] Default value
to property items[].template.departments
of schema ProductTemplate
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].template.departments
of schema ProductTemplate
in response with status code 200
+ - [Breaking] [Added] Type array
to property items
of schema ProductBulkRequestList
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].template.createdBy.username
, items[].template.createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties items[].template.modifiedBy.username
, items[].template.modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createBulkProductUploadJob
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteProductBulkJob
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createProductsInBulk
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### listProductTemplateExportDetails
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].createdBy.email
, items[].createdBy.uid
, items[].createdBy.username
, items[].createdBy.userId
in response with status code 200
+ - [Deleted] Type from object
from property items[].createdBy
of schema UserInfo
in response with status code 200
+
+
+#### getProductTags
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### listProductTemplate
+
+- ##### What's New
+ - [Added] properties items.attributes
, items.categories
, items.departments
, items.description
, items.logo
, items.name
, items.slug
, items.tag
, items.createdBy
, items.createdOn
, items.isActive
, items.isArchived
, items.isExpirable
, items.isPhysical
, items.modifiedBy
, items.modifiedOn
in response with status code 200
+ - [Added] items.is_expirable
, items.is_physical
, items.slug
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[]
of schema TemplatesResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items
of schema TemplatesResponseSchema
in response with status code 200
+
+
+#### validateProductGlobalTemplate
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method validateProductGlobalTemplate
+
+
+
+#### getProductValidation
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getInventoryBySizeIdentifier
+
+- ##### What's New
+ - [Added] items[].trader[].name
made required in response with status code 200
+ - [Added] items[].trader[].type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] maxLength validator for items[].trader[].name in response with status code 200
+ - [Deleted] minLength validator for items[].trader[].name in response with status code 200
+ - [Breaking] [Deleted] properties items[].returnConfig.returnable
, items[].returnConfig.time
, items[].returnConfig.unit
in response with status code 200
+ - [Deleted] Type from object
from property items[].returnConfig
of schema InventoryReturnConfig
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductSize
+
+- ##### What's New
+ - [Added] property items[].multiSize
of schema Product
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property items[].media[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].thumbnail
of schema Media
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema Product
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].verifiedOn
of schema Product
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteSize
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getInventoryBySize
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].tags
of schema InventoryResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].inventoryUpdatedOn
of schema InventoryResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].createdBy
of schema InventoryResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].modifiedBy
of schema InventoryResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].expirationDate
of schema InventoryResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### addInventory
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getVariantsOfProducts
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property variants[].media[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property variants[].media[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property variants[].media[].thumbnail
of schema Media
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSizeGuides
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].active
, items[].guide
, items[].id
, items[].name
, items[].subtitle
, items[].tag
, items[].title
, items[].description
, items[].image
, items[].brandId
, items[].companyId
, items[].createdBy
, items[].createdOn
, items[].modifiedBy
, items[].modifiedOn
in response with status code 200
+ - [Breaking] [Deleted] properties page.current
, page.size
, page.hasNext
, page.hasPrevious
, page.itemTotal
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createSizeGuide
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to integer
of property companyId
of schema ValidateSizeGuide
in request body
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSizeGuide
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property image
of schema SizeGuideResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] properties createdBy.username
, createdBy.userId
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SizeGuideResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] properties modifiedBy.username
, modifiedBy.userId
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema SizeGuideResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] createdBy.user_id
, createdBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] modifiedBy.user_id
, modifiedBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateSizeGuide
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to integer
of property companyId
of schema ValidateSizeGuide
in request body
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getListingConfigurations
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties data[].attributes
, data[].id
, data[].name
, data[].priority
, data[].slug
, data[].appId
, data[].isActive
, data[].isDefault
, data[].templateSlugs
in response with status code 200
+
+
+#### createListingConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getGroupConfigurations
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties data[].attributes
, data[].id
, data[].name
, data[].priority
, data[].slug
, data[].appId
, data[].isActive
, data[].isDefault
, data[].templateSlugs
in response with status code 200
+
+
+#### updateListingConfiguration
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getConfigurationMetadata
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getAllProductHsnCodes
+
+- ##### What's New
+ - [Breaking] [Added] Type string
to property items[].reportingHsn
of schema HSNDataInsertV2
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].id
of schema HSNDataInsertV2
in response with status code 200
+ - [Breaking] [Deleted] properties items[].createdBy.username
, items[].createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties items[].modifiedBy.username
, items[].modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] items[].createdBy.user_id
, items[].createdBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] items[].modifiedBy.user_id
, items[].modifiedBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] Type from integer
to string
of property page.current
of schema PageResponseSchema
in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getSingleProductHSNCode
+
+- ##### What's New
+ - [Breaking] [Added] Type string
to property reportingHsn
of schema HSNDataInsertV2
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property id
of schema HSNDataInsertV2
in response with status code 200
+ - [Breaking] [Deleted] properties createdBy.username
, createdBy.userId
in response with status code 200
+ - [Breaking] [Deleted] properties modifiedBy.username
, modifiedBy.userId
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] createdBy.user_id
, createdBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] modifiedBy.user_id
, modifiedBy.username
made optional in response with status code 200
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateInventories
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 400
+
+
+#### listInventoryExport
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createInventoryExport
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties filters.brands
, filters.quantity
, filters.stores
, filters.fromDate
, filters.toDate
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProducts
+
+- ##### What's New
+ - [Added] property items[].createdOn
of schema ProductSchemaV2
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property items[].media[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property items[].media[].thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] properties items[].sizes[].size
, items[].sizes[].sellable
, items[].sizes[].identifiers
, items[].sizes[].price
, items[].sizes[].storeCount
, items[].sizes[].sellableQuantity
, items[].sizes[].sizePriority
, items[].sizes[].sellerIdentifier
, items[].sizes[].priceTransfer
, items[].sizes[].trackInventory
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property items[].itemType
of schema ProductSchemaV2
in response with status code 200
+ - [Breaking] [Deleted] properties items[].taxIdentifier.hsnCode
, items[].taxIdentifier.hsnCodeId
, items[].taxIdentifier.reportingHsn
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].verifiedOn
of schema ProductSchemaV2
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createProduct
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property highlights[]
of schema ProductCreateUpdateSchemaV2
in request body
+ - [Breaking] [Added] Possible values days,hours
to property customOrder.manufacturingTimeUnit
of schema CustomOrder
in request body
+ - [Added] Default value to property customOrder.isCustomOrder
of schema CustomOrder
in request body
+ - [Added] Default value to property customOrder.manufacturingTime
of schema CustomOrder
in request body
+ - [Breaking] [Added] minimum validator for customOrder.manufacturingTime in request body
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property media[].type
of schema Media
in request body
+ - [Breaking] [Deleted] property media[].alt
of schema Media
in request body
+ - [Breaking] [Deleted] property media[].thumbnail
of schema Media
in request body
+
+- ##### What's Changed
+ - [Changed] customOrder.is_custom_order
made optional in request body
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### uploadBulkProducts
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from set,standard,composite,digital
from property productType
of schema BulkProductJob
in request body
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to integer
of property companyId
of schema BulkProductJob
in request body
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### getProductExportJobs
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].createdBy.email
, items[].createdBy.uid
, items[].createdBy.username
, items[].createdBy.userId
in response with status code 200
+ - [Deleted] Type from object
from property items[].createdBy
of schema UserInfo
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createProductExportJob
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].createdBy.email
, items[].createdBy.uid
, items[].createdBy.username
, items[].createdBy.userId
in response with status code 200
+ - [Deleted] Type from object
from property items[].createdBy
of schema UserInfo
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteProduct
+
+- ##### What's New
+ - [Added] Response with status 4XX
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Body content in Request
+ - [Breaking] [Deleted] Response with status 404
+
+
+#### getProduct
+
+- ##### What's New
+ - [Added] property data.createdOn
of schema ProductSchemaV2
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property data.media[].type
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property data.media[].alt
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] property data.media[].thumbnail
of schema Media
in response with status code 200
+ - [Breaking] [Deleted] properties data.sizes[].size
, data.sizes[].sellable
, data.sizes[].identifiers
, data.sizes[].price
, data.sizes[].storeCount
, data.sizes[].sellableQuantity
, data.sizes[].sizePriority
, data.sizes[].sellerIdentifier
, data.sizes[].priceTransfer
, data.sizes[].trackInventory
in response with status code 200
+ - [Deleted] Possible values from set,standard,composite,digital
from property data.itemType
of schema ProductSchemaV2
in response with status code 200
+ - [Breaking] [Deleted] properties data.taxIdentifier.hsnCode
, data.taxIdentifier.hsnCodeId
, data.taxIdentifier.reportingHsn
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.verifiedOn
of schema ProductSchemaV2
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### editProduct
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property highlights[]
of schema ProductCreateUpdateSchemaV2
in request body
+ - [Breaking] [Added] Possible values days,hours
to property customOrder.manufacturingTimeUnit
of schema CustomOrder
in request body
+ - [Added] Default value to property customOrder.isCustomOrder
of schema CustomOrder
in request body
+ - [Added] Default value to property customOrder.manufacturingTime
of schema CustomOrder
in request body
+ - [Breaking] [Added] minimum validator for customOrder.manufacturingTime in request body
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from image,video,3d_model
from property media[].type
of schema Media
in request body
+ - [Breaking] [Deleted] property media[].alt
of schema Media
in request body
+ - [Breaking] [Deleted] property media[].thumbnail
of schema Media
in request body
+
+- ##### What's Changed
+ - [Changed] customOrder.is_custom_order
made optional in request body
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### allSizes
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### deleteRealtimeInventory
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 400
+
+
+#### updateRealtimeInventory
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property success
of schema InventoryUpdateResponseSchema
in response with status code 400
+
+
+#### updateLocationPrice
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateLocationPrice
+
+
+
+#### updateLocationQuantity
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateLocationQuantity
+
+
+
+#### getMarketplaces
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### updateMarketplaceOptin
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+#### createMarketplaceOptin
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property createdBy
of schema CreatedBy
in response with status code 201
+ - [Deleted] Type from object
from property modifiedBy
of schema CreatedBy
in response with status code 201
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from number
to string
of property code
of schema ErrorResponseSchema
in response with status code 4XX
+
+
+### Common
+
+
+
+#### searchApplication
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from store,website-and-mobile-apps
from property application.channelType
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property application.createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property application.updatedAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ApplicationResponseSchema
in response with status code 200
+
+
+### Communication
+
+
+
+#### getAppProviders
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AppProvider
in response with status code 200
+
+
+#### updateAppProviders
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AppProvider
in response with status code 200
+
+
+#### getEmailProviders
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema EmailProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema EmailProvider
in response with status code 200
+
+
+#### createEmailProvider
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailProvider
in response with status code 200
+
+
+#### getEmailProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailProvider
in response with status code 200
+
+
+#### updateEmailProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailProvider
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailProvider
in response with status code 200
+
+
+#### deleteEmailProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSmsProviders
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createSmsProvider
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property tenantName1
of schema SmsProviderReq
in request body
+ - [Breaking] [Deleted] property tenantName2
of schema SmsProviderReq
in request body
+
+
+#### getDefaultSmsProviders
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSmsProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### updateSmsProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property tenantName1
of schema SmsProviderReq
in request body
+ - [Breaking] [Deleted] property tenantName2
of schema SmsProviderReq
in request body
+
+
+#### deleteSmsProviderById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getCampaigns
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Campaign
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema Campaign
in response with status code 200
+
+
+#### createCampaign
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Campaign
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Campaign
in response with status code 200
+
+
+#### getCampaignById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Campaign
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Campaign
in response with status code 200
+
+
+#### updateCampaignById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Campaign
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Campaign
in response with status code 200
+
+
+#### getAudiences
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Audience
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema Audience
in response with status code 200
+
+
+#### createAudience
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Audience
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Audience
in response with status code 200
+
+
+#### getAudienceById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Audience
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Audience
in response with status code 200
+
+
+#### updateAudienceById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Audience
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Audience
in response with status code 200
+
+
+#### deleteAudienceById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Audience
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Audience
in response with status code 200
+
+
+#### getDummyDatasources
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getDummyDatasourcesMeta
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getNSampleRecordsFromCsvByGet
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getNSampleRecordsFromCsv
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getEmailTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema EmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema EmailTemplate
in response with status code 200
+
+
+#### createEmailTemplate
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailTemplate
in response with status code 200
+
+
+#### getSystemEmailTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema SystemEmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema SystemEmailTemplate
in response with status code 200
+
+
+#### getEmailTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailTemplate
in response with status code 200
+
+
+#### updateEmailTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EmailTemplate
in response with status code 200
+
+
+#### deleteEmailTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSubscribedEmailTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema EmailTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema EmailTemplate
in response with status code 200
+
+
+#### getSmsTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property items[].message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema SmsTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema SmsTemplate
in response with status code 200
+
+
+#### createSmsTemplate
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property message.templateType
of schema SmsTemplateMessage
in request body
+ - [Deleted] Possible values from static,nunjucks,lodash
from property message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema SmsTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema SmsTemplate
in response with status code 200
+
+
+#### getSystemSmsTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property [].message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].createdAt
of schema SystemSmsTemplates
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].updatedAt
of schema SystemSmsTemplates
in response with status code 200
+
+
+#### getSmsTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema SmsTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema SmsTemplate
in response with status code 200
+
+
+#### updateSmsTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property message.templateType
of schema SmsTemplateMessage
in request body
+ - [Deleted] Possible values from static,nunjucks,lodash
from property message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema SmsTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema SmsTemplate
in response with status code 200
+
+
+#### deleteSmsTemplateById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSubscribedSmsTemplates
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from static,nunjucks,lodash
from property items[].message.templateType
of schema SmsTemplateMessage
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema SmsTemplate
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema SmsTemplate
in response with status code 200
+
+
+#### getEventSubscriptions
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema EventSubscription
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema EventSubscription
in response with status code 200
+
+
+#### createEventSubscriptions
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+
+
+#### getEventSubscriptionsById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EventSubscription
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EventSubscription
in response with status code 200
+
+
+#### editEventSubscriptions
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+
+
+#### deleteEventSubscriptionsById
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createEventSubscriptionsByBulk
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property [].createdAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].updatedAt
of schema EventSubscriptionsBulkUpdateResult
in response with status code 200
+
+
+#### getGlobalVariables
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### postGlobalVariables
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema CreateGlobalVariablesResult
in response with status code 200
+
+
+#### getJobs
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Job
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema Job
in response with status code 200
+
+
+#### createJobs
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema CreateJobsRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema CreateJobsRes
in response with status code 200
+
+
+#### getJobLogs
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema JobLog
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema JobLog
in response with status code 200
+
+
+#### getCommunicationLogs
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].expireAt
of schema Log
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Log
in response with status code 200
+
+
+#### getSystemNotifications
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema SystemNotification
in response with status code 200
+
+
+### CompanyProfile
+
+
+
+#### cbsOnboardGet
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from home,registered,office
from property addresses[].addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property companyType
of schema GetCompanyProfileSerializerResponseSchema
in response with status code 200
+
+
+#### updateCompany
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property companyType
of schema UpdateCompany
in request body
+
+
+#### getBrands
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from home,registered,office
from property items[].company.addresses[].addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property items[].company.companyType
of schema CompanySchema
in response with status code 200
+
+
+#### getLocations
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from home,registered,office
from property items[].company.addresses[].addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property items[].company.companyType
of schema GetCompanySchema
in response with status code 200
+ - [Deleted] Possible values from home,registered,office
from property items[].address.addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].storeType
of schema GetLocationSchema
in response with status code 200
+
+
+#### createLocation
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from high_street,warehouse,mall
from property storeType
of schema LocationSchema
in request body
+
+
+#### getLocationDetail
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from home,registered,office
from property company.addresses[].addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from distributor,franchise,mbo,manufacturer-owner
from property company.companyType
of schema GetCompanySchema
in response with status code 200
+ - [Deleted] Possible values from home,registered,office
from property address.addressType
of schema GetAddressSchema
in response with status code 200
+ - [Deleted] Possible values from high_street,warehouse,mall
from property storeType
of schema GetLocationSchema
in response with status code 200
+
+
+#### updateLocation
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from high_street,warehouse,mall
from property storeType
of schema LocationSchema
in request body
+
+
+#### createLocationBulk
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from high_street,warehouse,mall
from property data[].storeType
of schema LocationSchema
in request body
+
+
+### Configuration
+
+
+
+#### getBuildConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema MobileAppConfiguration
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema MobileAppConfiguration
in response with status code 200
+
+
+#### updateBuildConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema MobileAppConfiguration
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema MobileAppConfiguration
in response with status code 200
+
+
+#### getPreviousVersions
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property versions[].createdAt
of schema BuildVersion
in response with status code 200
+ - [Deleted] Value format from date-time
from property versions[].modifiedAt
of schema BuildVersion
in response with status code 200
+
+
+#### getAppFeatures
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property feature.createdAt
of schema AppFeature
in response with status code 200
+ - [Deleted] Value format from date-time
from property feature.modifiedAt
of schema AppFeature
in response with status code 200
+
+
+#### updateAppFeatures
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property feature.createdAt
of schema AppFeature
in request body
+ - [Deleted] Value format from date-time
from property feature.modifiedAt
of schema AppFeature
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppFeature
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppFeature
in response with status code 200
+
+
+#### modifyAppFeatures
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property feature.createdAt
of schema AppFeature
in request body
+ - [Deleted] Value format from date-time
from property feature.modifiedAt
of schema AppFeature
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppFeature
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppFeature
in response with status code 200
+
+
+#### getAppContactInfo
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInformation
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInformation
in response with status code 200
+
+
+#### updateAppContactInfo
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInformation
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInformation
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInformation
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInformation
in response with status code 200
+
+
+#### getAppApiTokens
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema TokenResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema TokenResponseSchema
in response with status code 200
+
+
+#### updateAppApiTokens
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema TokenResponseSchema
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema TokenResponseSchema
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema TokenResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema TokenResponseSchema
in response with status code 200
+
+
+#### getAppStores
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema AppInventoryStores
in response with status code 200
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].storeType
of schema AppInventoryStores
in response with status code 200
+
+
+#### getInventoryConfig
+
+- ##### What's New
+ - [Added] property inventory.enableZoneOverlapping
of schema AppInventoryConfig
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property search
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Type from object
from property inventory.excludeCategory[]
of schema AppInventoryConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInventory
in response with status code 200
+
+
+#### updateInventoryConfig
+
+- ##### What's New
+ - [Added] property inventory.enableZoneOverlapping
of schema AppInventoryConfig
in request body
+ - [Added] property inventory.enableZoneOverlapping
of schema AppInventoryConfig
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property search
of schema ApplicationInventory
in request body
+ - [Deleted] Type from object
from property inventory.excludeCategory[]
of schema AppInventoryConfig
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInventory
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInventory
in request body
+ - [Breaking] [Deleted] property search
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Type from object
from property inventory.excludeCategory[]
of schema AppInventoryConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInventory
in response with status code 200
+
+
+#### partiallyUpdateInventoryConfig
+
+- ##### What's New
+ - [Added] property inventory.enableZoneOverlapping
of schema AppInventoryConfig
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property search
of schema AppInventoryPartialUpdate
in request body
+ - [Breaking] [Deleted] property search
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Type from object
from property inventory.excludeCategory[]
of schema AppInventoryConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationInventory
in response with status code 200
+
+
+#### getAppCurrencyConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppSupportedCurrency
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppSupportedCurrency
in response with status code 200
+
+
+#### updateAppCurrencyConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppSupportedCurrency
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppSupportedCurrency
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppSupportedCurrency
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppSupportedCurrency
in response with status code 200
+
+
+#### getAppSupportedCurrency
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property supportedCurrency[].createdAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property supportedCurrency[].modifiedAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AppCurrencyResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AppCurrencyResponseSchema
in response with status code 200
+
+
+#### createApplication
+
+- ##### What's New
+ - [Added] property configuration.inventory.enableZoneOverlapping
of schema AppInventoryConfig
in request body
+ - [Added] property configuration.inventory.enableZoneOverlapping
of schema AppInventoryConfig
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property configuration.search
of schema ApplicationInventory
in request body
+ - [Deleted] Type from object
from property configuration.inventory.excludeCategory[]
of schema AppInventoryConfig
in request body
+ - [Deleted] Value format from date-time
from property configuration.createdAt
of schema ApplicationInventory
in request body
+ - [Deleted] Value format from date-time
from property configuration.modifiedAt
of schema ApplicationInventory
in request body
+ - [Deleted] Value format from date-time
from property app.tokens[].createdAt
of schema TokenSchema
in response with status code 200
+ - [Deleted] Possible values from website-and-mobile-apps,store
from property app.channelType
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property app.createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property app.modifiedAt
of schema Application
in response with status code 200
+ - [Breaking] [Deleted] property configuration.search
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Type from object
from property configuration.inventory.excludeCategory[]
of schema AppInventoryConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property configuration.createdAt
of schema ApplicationInventory
in response with status code 200
+ - [Deleted] Value format from date-time
from property configuration.modifiedAt
of schema ApplicationInventory
in response with status code 200
+
+
+#### getApplications
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].tokens[].createdAt
of schema TokenSchema
in response with status code 200
+ - [Deleted] Possible values from website-and-mobile-apps,store
from property items[].channelType
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema Application
in response with status code 200
+
+
+#### getApplicationById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property tokens[].createdAt
of schema TokenSchemaID
in response with status code 200
+ - [Deleted] Possible values from website-and-mobile-apps,store
from property channelType
of schema ApplicationById
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ApplicationById
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ApplicationById
in response with status code 200
+
+
+#### getCurrencies
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Currency
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema Currency
in response with status code 200
+
+
+#### getDomainAvailibility
+
+- ##### What's New
+ - [Added] property custom
of schema DomainSuggestionsRequest
in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customDomain
of schema DomainSuggestionsRequestSchema
in request body
+
+
+#### getStoreByBrands
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from high_street,warehouse,mall
from property items[].storeType
of schema BrandStoreInfo
in response with status code 200
+
+
+#### getCurrencyExchangeRates
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCurrencyExchangeRates
+
+
+
+### Content
+
+
+
+#### getAnnouncementsList
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### createAnnouncement
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AdminAnnouncementSchema
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AdminAnnouncementSchema
in request body
+ - [Deleted] Value format from date-time
from property data.createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### getAnnouncementById
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### updateAnnouncement
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema AdminAnnouncementSchema
in request body
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema AdminAnnouncementSchema
in request body
+ - [Deleted] Value format from date-time
from property data.createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### updateAnnouncementSchedule
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data.createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### deleteAnnouncement
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data.createdAt
of schema AdminAnnouncementSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.modifiedAt
of schema AdminAnnouncementSchema
in response with status code 200
+
+
+#### createBlog
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getBlogs
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### updateBlog
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### deleteBlog
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### addDataLoader
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getDataLoaders
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### deleteDataLoader
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### editDataLoader
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getDataLoadersByService
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### selectDataLoader
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### resetDataLoader
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqCategories
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqCategoryBySlugOrId
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### createFaqCategory
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### updateFaqCategory
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### deleteFaqCategory
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqsByCategoryIdOrSlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### addFaq
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### updateFaq
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### deleteFaq
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getFaqByIdOrSlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### generateSEOTitle
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getLandingPages
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### createLandingPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### updateLandingPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### deleteLandingPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getLegalInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### updateLegalInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getNavigations
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### createNavigation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getDefaultNavigations
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getNavigationBySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Required status of query parameter devicePlatform
+
+
+#### updateNavigation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### deleteNavigation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getPageMeta
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property systemPages[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property systemPages[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property customPages[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property customPages[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getPageSpec
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### createPagePreview
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### updatePagePreview
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### deletePage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### addPathRedirectionRules
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getPathRedirectionRules
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getPathRedirectionRule
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### updatePathRedirectionRules
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### deletePathRedirectionRules
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getSEOConfiguration
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property seo.createdAt
of schema SeoSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property seo.updatedAt
of schema SeoSchema
in response with status code 200
+
+
+#### updateSEOConfiguration
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property seo.createdAt
of schema SeoSchema
in request body
+ - [Deleted] Value format from date-time
from property seo.updatedAt
of schema SeoSchema
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema SeoSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema SeoSchema
in response with status code 200
+
+
+#### getDefaultSEOMarkupSchema
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property items[].pageType
of schema DefaultSEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### getSEOMarkupSchemas
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property items[].pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### createSEOMarkupSchema
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplateRequestBody
in request body
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### getSEOMarkupSchema
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### editSEOMarkupSchema
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplateRequestBody
in request body
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### deleteSEOMarkupSchema
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from about-us,addresses,blog,brands,cards,cart,categories,brand,category,collection,collections,contact-us,external,faq,freshchat,home,notification-settings,orders,page,policy,product,product-request,products,profile,profile-order-shipment,profile-basic,profile-company,profile-emails,profile-phones,rate-us,refer-earn,settings,shared-cart,tnc,track-order,wishlist,sections,form,cart-delivery,cart-payment,cart-review,login,register,shipping-policy,return-policy,order-status
from property pageType
of schema SEOSchemaMarkupTemplate
in response with status code 200
+
+
+#### getSupportInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Support
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Support
in response with status code 200
+
+
+#### updateSupportInformation
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Support
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Support
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema Support
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Support
in response with status code 200
+
+
+#### updateInjectableTag
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getInjectableTags
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### addInjectableTag
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### removeInjectableTag
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### editInjectableTag
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from inline,external
from property tag.subType
of schema HandpickedTagSchema
in request body
+
+
+#### getBlogBySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property publishDate
of schema BlogSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### createPage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getPages
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### updatePage
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in request body
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getPageBySlug
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property dateMeta.createdOn
of schema DateMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property dateMeta.modifiedOn
of schema DateMeta
in response with status code 200
+
+
+#### getCustomFieldTypes
+
+- ##### What's New
+ - [Added] property status
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property definition
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property references
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property fields
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property id
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property displayName
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property metafieldTypes
of schema MetafieldTypesSchema
in response with status code 200
+
+
+#### getResources
+
+- ##### What's New
+ - [Added] Response with status 5XX
+
+
+#### getCustomFieldDefinitions
+
+- ##### What's New
+ - [Added] property items[].creator
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].key
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].createdBy
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].updatedBy
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].createdAt
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].updatedAt
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].slug
of schema FieldDefinitionSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customfields/definition
To /service/platform/content/v1.0/company/{company_id}/metafields/definitions
+
+
+#### getCustomFieldDefinitionByResource
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomFieldDefinitionByResource
+
+
+
+#### createCustomFieldDefinition
+
+- ##### What's New
+ - [Added] property resource
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Added] property key
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Added] property creator
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property key
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property createdBy
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property updatedBy
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property slug
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Breaking] [Deleted] property slug
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customfields/resource/{resource}/definition
To /service/platform/content/v1.0/company/{company_id}/metafields/definitions
+
+
+#### getCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomFieldDefinitionBySlug
+
+
+
+#### updateCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCustomFieldDefinitionBySlug
+
+
+
+#### deleteCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteCustomFieldDefinitionBySlug
+
+
+
+#### getCustomFieldsByResourceSlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomFieldsByResourceSlug
+
+
+
+#### updateCustomFieldByResourceSlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCustomFieldByResourceSlug
+
+
+
+#### deleteCustomFieldsByResourceSlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteCustomFieldsByResourceSlug
+
+
+
+#### createCustomObjectDefinition
+
+- ##### What's New
+ - [Added] property fieldDefinitions[].key
of schema CustomObjectCustomFieldDefinitions
in request body
+ - [Breaking] [Added] Type object
to property fieldDefinitions[].validations[]
of schema FieldValidations
in response with status code 200
+ - [Added] properties fieldDefinitions[].validations[].name
, fieldDefinitions[].validations[].type
, fieldDefinitions[].validations[].value
in response with status code 200
+ - [Added] property fieldDefinitions[].creator
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].key
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].createdBy
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].metaobjectDefinitionId
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property creator
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] property createdBy
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] property updatedBy
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property definitionSlug
of schema CustomObjectDefinitionRequestSchema
in request body
+ - [Breaking] [Deleted] property fieldDefinitions[].slug
of schema CustomObjectCustomFieldDefinitions
in request body
+ - [Breaking] [Deleted] property definitionSlug
of schema CustomObjectDefinitionSlugSchema
in response with status code 200
+ - [Breaking] [Deleted] property fieldDefinitions[].slug
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Deleted] Value format from integer
from property fieldDefinitions[].companyId
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Breaking] [Deleted] property fieldDefinitions[].applicationId
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customobjects/definition
To /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
+
+
+#### getCustomObjectDefinitions
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/customobjects/definition
To /service/platform/content/v1.0/company/{company_id}/metaobjects/definitions
+
+
+#### getCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomObjectDefinitionBySlug
+
+
+
+#### updateCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCustomObjectDefinitionBySlug
+
+
+
+#### deleteCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteCustomObjectDefinitionBySlug
+
+
+
+#### getCustomObjectsBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomObjectsBySlug
+
+
+
+#### createCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createCustomObjectBySlug
+
+
+
+#### getCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomObjectBySlug
+
+
+
+#### deleteCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteCustomObjectBySlug
+
+
+
+#### updateCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCustomObjectBySlug
+
+
+
+#### getJobs
+
+- ##### What's New
+ - [Added] property items[].creator
of schema CustomObjectJobSchema
in response with status code 200
+ - [Added] property items[].url
of schema CustomObjectJobSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from download,upload
from property items[].actionType
of schema JobSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema JobSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema JobSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].applicationId
of schema JobSchema
in response with status code 200
+
+
+#### importCustomObjectEntriesBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method importCustomObjectEntriesBySlug
+
+
+
+#### exportCustomObjectEntriesBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method exportCustomObjectEntriesBySlug
+
+
+
+#### sampleCustomObjectBulkEntryBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method sampleCustomObjectBulkEntryBySlug
+
+
+
+#### getAppCustomFieldTypes
+
+- ##### What's New
+ - [Added] property status
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property definition
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property references
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property fields
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property id
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] property displayName
of schema CustomObjectByIdSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property metafieldTypes
of schema MetafieldTypesSchema
in response with status code 200
+
+
+#### getAppResources
+
+- ##### What's New
+ - [Added] Response with status 4XX
+ - [Added] Response with status 5XX
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 400
+
+
+#### getAppCustomFieldDefinitions
+
+- ##### What's New
+ - [Added] property items[].creator
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].key
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].createdBy
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].updatedBy
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].createdAt
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] property items[].updatedAt
of schema FieldDefinitionSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].slug
of schema FieldDefinitionSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/definition
To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions
+
+
+#### getAppCustomFieldDefinitionByResource
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomFieldDefinitionByResource
+
+
+
+#### createAppCustomFieldDefinition
+
+- ##### What's New
+ - [Added] property resource
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Added] property key
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Added] property creator
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property key
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property createdBy
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] property updatedBy
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property slug
of schema CustomFieldDefinitionRequestSchema
in request body
+ - [Breaking] [Deleted] property slug
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customfields/resource/{resource}/definition
To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metafields/definitions
+
+
+#### getAppCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomFieldDefinitionBySlug
+
+
+
+#### updateAppCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateAppCustomFieldDefinitionBySlug
+
+
+
+#### deleteAppCustomFieldDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteAppCustomFieldDefinitionBySlug
+
+
+
+#### getAppCustomFieldsByResourceSlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomFieldsByResourceSlug
+
+
+
+#### updateAppCustomFieldByResourceSlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateAppCustomFieldByResourceSlug
+
+
+
+#### createAppCustomObjectDefinition
+
+- ##### What's New
+ - [Added] property fieldDefinitions[].key
of schema CustomObjectCustomFieldDefinitions
in request body
+ - [Breaking] [Added] Type object
to property fieldDefinitions[].validations[]
of schema FieldValidations
in response with status code 200
+ - [Added] properties fieldDefinitions[].validations[].name
, fieldDefinitions[].validations[].type
, fieldDefinitions[].validations[].value
in response with status code 200
+ - [Added] property fieldDefinitions[].creator
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].key
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].createdBy
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property fieldDefinitions[].metaobjectDefinitionId
of schema CustomObjectCustomFieldDefinitionResSchema
in response with status code 200
+ - [Added] property creator
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] property createdBy
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] property updatedBy
of schema CustomObjectDefinitionSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property definitionSlug
of schema CustomObjectDefinitionRequestSchema
in request body
+ - [Breaking] [Deleted] property fieldDefinitions[].slug
of schema CustomObjectCustomFieldDefinitions
in request body
+ - [Breaking] [Deleted] property definitionSlug
of schema CustomObjectDefinitionSlugSchema
in response with status code 200
+ - [Breaking] [Deleted] property fieldDefinitions[].slug
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Deleted] Value format from integer
from property fieldDefinitions[].companyId
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+ - [Breaking] [Deleted] property fieldDefinitions[].applicationId
of schema CustomFieldDefinitionDetailResSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition
To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions
+
+
+#### getAppCustomObjectDefinitions
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/content/v2.0/company/{company_id}/application/{application_id}/customobjects/definition
To /service/platform/content/v1.0/company/{company_id}/application/{application_id}/metaobjects/definitions
+
+
+#### getAppCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomObjectDefinitionBySlug
+
+
+
+#### updateAppCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateAppCustomObjectDefinitionBySlug
+
+
+
+#### deleteAppCustomObjectDefinitionBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteAppCustomObjectDefinitionBySlug
+
+
+
+#### getAppCustomObjectsBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomObjectsBySlug
+
+
+
+#### createAppCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createAppCustomObjectBySlug
+
+
+
+#### getAppCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAppCustomObjectBySlug
+
+
+
+#### deleteAppCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteAppCustomObjectBySlug
+
+
+
+#### updateAppCustomObjectBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateAppCustomObjectBySlug
+
+
+
+#### getAppJobs
+
+- ##### What's New
+ - [Added] property items[].creator
of schema CustomObjectJobSchema
in response with status code 200
+ - [Added] property items[].url
of schema CustomObjectJobSchema
in response with status code 200
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from download,upload
from property items[].actionType
of schema JobSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema JobSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema JobSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].applicationId
of schema JobSchema
in response with status code 200
+
+
+#### importAppCustomObjectEntriesBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method importAppCustomObjectEntriesBySlug
+
+
+
+#### exportAppCustomObjectEntriesBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method exportAppCustomObjectEntriesBySlug
+
+
+
+#### sampleAppCustomObjectBulkEntryBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method sampleAppCustomObjectBulkEntryBySlug
+
+
+
+#### getSlideshows
+
+- ##### What's New
+ - [Added] method getSlideshows
+
+
+
+#### createSlideshow
+
+- ##### What's New
+ - [Added] method createSlideshow
+
+
+
+#### getSlideshowBySlug
+
+- ##### What's New
+ - [Added] method getSlideshowBySlug
+
+
+
+#### updateSlideshow
+
+- ##### What's New
+ - [Added] method updateSlideshow
+
+
+
+#### deleteSlideshow
+
+- ##### What's New
+ - [Added] method deleteSlideshow
+
+
+
+#### getCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method getCustomFieldDefinition
+
+
+
+#### updateCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method updateCustomFieldDefinition
+
+
+
+#### deleteCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method deleteCustomFieldDefinition
+
+
+
+#### getCustomFields
+
+- ##### What's New
+ - [Added] method getCustomFields
+
+
+
+#### getCustomFieldsByResourceId
+
+- ##### What's New
+ - [Added] method getCustomFieldsByResourceId
+
+
+
+#### createCustomFieldByResourceId
+
+- ##### What's New
+ - [Added] method createCustomFieldByResourceId
+
+
+
+#### getCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method getCustomObjectDefinition
+
+
+
+#### updateCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method updateCustomObjectDefinition
+
+
+
+#### deleteCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method deleteCustomObjectDefinition
+
+
+
+#### getCustomObjects
+
+- ##### What's New
+ - [Added] method getCustomObjects
+
+
+
+#### createCustomObject
+
+- ##### What's New
+ - [Added] method createCustomObject
+
+
+
+#### getCustomObject
+
+- ##### What's New
+ - [Added] method getCustomObject
+
+
+
+#### deleteCustomObject
+
+- ##### What's New
+ - [Added] method deleteCustomObject
+
+
+
+#### updateCustomObject
+
+- ##### What's New
+ - [Added] method updateCustomObject
+
+
+
+#### importCustomObjectEntries
+
+- ##### What's New
+ - [Added] method importCustomObjectEntries
+
+
+
+#### exportCustomObjectEntries
+
+- ##### What's New
+ - [Added] method exportCustomObjectEntries
+
+
+
+#### sampleCustomObjectBulkEntry
+
+- ##### What's New
+ - [Added] method sampleCustomObjectBulkEntry
+
+
+
+#### getAppCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method getAppCustomFieldDefinition
+
+
+
+#### updateAppCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method updateAppCustomFieldDefinition
+
+
+
+#### deleteAppCustomFieldDefinition
+
+- ##### What's New
+ - [Added] method deleteAppCustomFieldDefinition
+
+
+
+#### getAppCustomFields
+
+- ##### What's New
+ - [Added] method getAppCustomFields
+
+
+
+#### getAppCustomFieldsByResourceId
+
+- ##### What's New
+ - [Added] method getAppCustomFieldsByResourceId
+
+
+
+#### createAppCustomFieldByResourceId
+
+- ##### What's New
+ - [Added] method createAppCustomFieldByResourceId
+
+
+
+#### getAppCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method getAppCustomObjectDefinition
+
+
+
+#### updateAppCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method updateAppCustomObjectDefinition
+
+
+
+#### deleteAppCustomObjectDefinition
+
+- ##### What's New
+ - [Added] method deleteAppCustomObjectDefinition
+
+
+
+#### getAppCustomObjects
+
+- ##### What's New
+ - [Added] method getAppCustomObjects
+
+
+
+#### createAppCustomObject
+
+- ##### What's New
+ - [Added] method createAppCustomObject
+
+
+
+#### getAppCustomObject
+
+- ##### What's New
+ - [Added] method getAppCustomObject
+
+
+
+#### deleteAppCustomObject
+
+- ##### What's New
+ - [Added] method deleteAppCustomObject
+
+
+
+#### updateAppCustomObject
+
+- ##### What's New
+ - [Added] method updateAppCustomObject
+
+
+
+#### importAppCustomObjectEntries
+
+- ##### What's New
+ - [Added] method importAppCustomObjectEntries
+
+
+
+#### exportAppCustomObjectEntries
+
+- ##### What's New
+ - [Added] method exportAppCustomObjectEntries
+
+
+
+#### sampleAppCustomObjectBulkEntry
+
+- ##### What's New
+ - [Added] method sampleAppCustomObjectBulkEntry
+
+
+
+### Discount
+
+
+
+#### getDiscounts
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property items[].jobType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property items[].discountType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema DiscountJob
in response with status code 200
+
+
+#### createDiscount
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property jobType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property discountType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema DiscountJob
in response with status code 200
+
+
+#### getDiscount
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property jobType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property discountType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema DiscountJob
in response with status code 200
+
+
+#### updateDiscount
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property jobType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property discountType
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema DiscountJob
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema DiscountJob
in response with status code 200
+
+
+#### validateDiscountFile
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property jobType
of schema FileJobRequestSchema
in request body
+ - [Deleted] Possible values from flat,percentage
from property discountType
of schema FileJobRequestSchema
in request body
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property body.jobType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property body.discountType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.createdOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.modifiedOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileJobResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileJobResponseSchema
in response with status code 200
+
+
+#### downloadDiscountFile
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property body.jobType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property body.discountType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.createdOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.modifiedOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileJobResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileJobResponseSchema
in response with status code 200
+
+
+#### getValidationJob
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property body.jobType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property body.discountType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.createdOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.modifiedOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileJobResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileJobResponseSchema
in response with status code 200
+
+
+#### getDownloadJob
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from app,app|brand,app|store,app|brand|store,app|brand|product,app|brand|store|product,app|brand|inventory,app|brand|store|inventory
from property body.jobType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Possible values from flat,percentage
from property body.discountType
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.createdOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property body.modifiedOn
of schema FileJobBody
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileJobResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileJobResponseSchema
in response with status code 200
+
+
+### FileStorage
+
+
+
+#### startUpload
+
+- ##### What's New
+ - [Added] cdn
made required in response with status code 200
+ - [Added] property cdn
of schema StartResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/start
To /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/start
+
+
+#### completeUpload
+
+- ##### What's New
+ - [Added] cdn
made required in request body
+ - [Added] property cdn
of schema StartResponse
in request body
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileUploadComplete
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileUploadComplete
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/namespaces/{namespace}/upload/complete
To /service/platform/assets/v1.0/company/{company_id}/namespaces/{namespace}/upload/complete
+
+
+#### appStartUpload
+
+- ##### What's New
+ - [Added] cdn
made required in response with status code 200
+ - [Added] property cdn
of schema StartResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start
To /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/start
+
+
+#### appCompleteUpload
+
+- ##### What's New
+ - [Added] cdn
made required in request body
+ - [Added] property cdn
of schema StartResponse
in request body
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdOn
of schema FileUploadComplete
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema FileUploadComplete
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Changed] Path From /service/platform/assets/v2.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete
To /service/platform/assets/v1.0/company/{company_id}/application/{application_id}/namespaces/{namespace}/upload/complete
+
+
+#### getSignUrls
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+#### copyFiles
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+#### appCopyFiles
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+#### browse
+
+- ##### What's New
+ - [Added] property items[].createdAt
of schema
in response with status code 200
+ - [Added] property items[].updatedAt
of schema
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].created_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] property items[].updated_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### appbrowse
+
+- ##### What's New
+ - [Added] property items[].createdAt
of schema
in response with status code 200
+ - [Added] property items[].updatedAt
of schema
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].created_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] property items[].updated_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### browsefiles
+
+- ##### What's New
+ - [Added] property items[].createdAt
of schema
in response with status code 200
+ - [Added] property items[].updatedAt
of schema
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].created_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] property items[].updated_at
of schema
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### getPdfTypes
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data[].storeOs
of schema InvoiceTypesData
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Breaking] [Changed] data[].store_os
made optional in response with status code 200
+
+
+#### fetchPdfTypeById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method fetchPdfTypeById
+
+
+
+#### getDefaultPdfData
+
+- ##### What's New
+ - [Added] property data[].payload.shipmentMeta
of schema DummyTemplateDataPayload
in response with status code 200
+ - [Added] property data[].payload.orderMeta
of schema DummyTemplateDataPayload
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data[].payload.currentDate
of schema PdfPayloadDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data[].payload.invoiceDetail.invoiceDate
of schema InvoiceDetail
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### getPdfPayloadById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getPdfPayloadById
+
+
+
+#### getConfigHtmlTemplateById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getConfigHtmlTemplateById
+
+
+
+#### updateHtmlTemplate
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property countryCode
of schema PdfConfig
in request body
+ - [Breaking] [Deleted] property defaultTemplate
of schema PdfConfig
in request body
+ - [Breaking] [Deleted] Security in Request
+
+
+#### deletePdfGeneratorConfig
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deletePdfGeneratorConfig
+
+
+
+#### getHtmlTemplateConfig
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+- ##### What's Changed
+ - [Breaking] [Changed] operationId from getHtmlTemplateConfig
to getDefaultHtmlTemplate
+
+
+#### saveHtmlTemplate
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property countryCode
of schema PdfConfig
in request body
+ - [Breaking] [Deleted] property defaultTemplate
of schema PdfConfig
in request body
+ - [Breaking] [Deleted] Security in Request
+
+
+#### getDefaultPdfTemplate
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+#### generatePaymentReceipt
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property payload.payments[].txnDate
of schema PaymentReceiptPayments
in request body
+ - [Breaking] [Deleted] Security in Request
+
+
+#### fetchPdfDefaultTemplateById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method fetchPdfDefaultTemplateById
+
+
+
+#### proxy
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Security in Request
+
+
+### Serviceability
+
+
+
+#### createZone
+
+- ##### What's New
+ - [Breaking] [Added] store_ids
made required in request body
+ - [Added] zone_id
made required in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Possible values from non-pincode
to country-state
of property regionType
of schema CreateZoneData
in request body
+
+
+#### updateZoneById
+
+- ##### What's Changed
+ - [Breaking] [Changed] Possible values from non-pincode
to country-state
of property regionType
of schema UpdateZoneData
in request body
+
+
+#### getZoneById
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property storesCount
of schema GetZoneByIdSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Possible values from non-pincode
to country-state
of property regionType
of schema GetZoneByIdSchema
in response with status code 200
+
+
+#### getAllStores
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema ItemResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].verifiedOn
of schema ItemResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema ItemResult
in response with status code 200
+
+
+#### updatePincodeMopView
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from activate,deactivate
from property action
of schema PincodeMopData
in request body
+ - [Deleted] Possible values from activate,deactivate
from property action
of schema PincodeMOPResult
in response with status code 200
+
+
+#### updatePincodeCoDListing
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter pageNumber
(type: integer
)
+
+ - [Breaking] [Deleted] query
parameter pageSize
(type: integer
)
+
+
+
+#### updatePincodeAuditHistory
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter pageNumber
(type: integer
)
+
+ - [Breaking] [Deleted] query
parameter pageSize
(type: integer
)
+
+ - [Deleted] Value format from date-time
from property data[].updatedAt
of schema PincodeMopUpdateAuditHistoryResult
in response with status code 200
+
+
+#### createCourierPartnerAccount
+
+- ##### What's New
+ - [Breaking] [Added] is_own_account
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property companyId
of schema CourierAccount
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules
of schema CourierAccount
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] scheme_rules
made optional in response with status code 200
+
+
+#### getCourierPartnerAccounts
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].companyId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property items[].extensionId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property items[].schemeRules.name
of schema CourierPartnerSchemeModel
in response with status code 200
+ - [Breaking] [Deleted] property items[].schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property items[].schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property items[].schemeRules.volumetricWeight
of schema CourierPartnerSchemeModel
in response with status code 200
+
+
+#### updateCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property accountId
of schema CourierAccount
in request body
+ - [Breaking] [Added] stage
made required in request body
+ - [Breaking] [Added] is_own_account
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property companyId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property extensionId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.name
of schema CourierPartnerSchemeModel
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.volumetricWeight
of schema CourierPartnerSchemeModel
in response with status code 200
+
+
+#### getCourierPartnerAccount
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property companyId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property extensionId
of schema CourierAccountResult
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.name
of schema CourierPartnerSchemeModel
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Breaking] [Deleted] property schemeRules.volumetricWeight
of schema CourierPartnerSchemeModel
in response with status code 200
+
+
+#### updateCourierRule
+
+- ##### What's New
+ - [Breaking] [Added] type
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property type
of schema CourierPartnerRule
in request body
+ - [Breaking] [Deleted] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] Default value from true
from property isActive
of schema CourierPartnerRuleResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema CourierPartnerRuleResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from array
to string
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] cpList[].account_id
, cpList[].extension_id
, cpList[].is_self_ship
made optional in response with status code 200
+ - [Breaking] [Changed] is_active
, sort
, company_id
, application_id
, type
, conditions
, id
, name
made optional in response with status code 200
+
+
+#### getCourierPartnerRule
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] Default value from true
from property isActive
of schema CourierPartnerRuleResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema CourierPartnerRuleResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from array
to string
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] cpList[].account_id
, cpList[].extension_id
, cpList[].is_self_ship
made optional in response with status code 200
+ - [Breaking] [Changed] is_active
, sort
, company_id
, application_id
, type
, conditions
, id
, name
made optional in response with status code 200
+
+
+#### createCourierPartnerRule
+
+- ##### What's New
+ - [Breaking] [Added] type
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property type
of schema CourierPartnerRule
in request body
+ - [Breaking] [Deleted] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] Default value from true
from property isActive
of schema CourierPartnerRuleResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedOn
of schema CourierPartnerRuleResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from array
to string
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] cpList[].account_id
, cpList[].extension_id
, cpList[].is_self_ship
made optional in response with status code 200
+ - [Breaking] [Changed] is_active
, sort
, company_id
, application_id
, type
, conditions
, id
, name
made optional in response with status code 200
+
+
+#### getCourierPartnerRules
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] property items[].conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Deleted] Default value from true
from property items[].isActive
of schema CourierPartnerRuleResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedOn
of schema CourierPartnerRuleResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property items[].conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from array
to string
of property items[].conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] items[].cpList[].account_id
, items[].cpList[].extension_id
, items[].cpList[].is_self_ship
made optional in response with status code 200
+ - [Breaking] [Changed] items[].is_active
, items[].sort
, items[].company_id
, items[].application_id
, items[].type
, items[].conditions
, items[].id
, items[].name
made optional in response with status code 200
+
+
+#### getCourierPartners
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCourierPartners
+
+
+
+#### updateCompanyConfiguration
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from self-ship,seller-controlled,admin-controlled
from property logisticsAsActual
of schema CompanyConfig
in request body
+ - [Breaking] [Deleted] property companyId
of schema CompanyConfig
in request body
+ - [Breaking] [Deleted] property applicationId
of schema CompanyConfig
in request body
+ - [Deleted] Possible values from self-ship,seller-controlled,admin-controlled
from property logisticsAsActual
of schema CompanyConfig
in response with status code 200
+ - [Breaking] [Deleted] property companyId
of schema CompanyConfig
in response with status code 200
+ - [Breaking] [Deleted] property applicationId
of schema CompanyConfig
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to boolean
of property logisticsAsActual
of schema CompanyConfig
in request body
+ - [Changed] company_id
made optional in request body
+ - [Breaking] [Changed] Type from string
to boolean
of property logisticsAsActual
of schema CompanyConfig
in response with status code 200
+ - [Changed] company_id
made optional in response with status code 200
+
+
+#### getCompanyConfiguration
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from self-ship,seller-controlled,admin-controlled
from property logisticsAsActual
of schema CompanyConfig
in response with status code 200
+ - [Breaking] [Deleted] property companyId
of schema CompanyConfig
in response with status code 200
+ - [Breaking] [Deleted] property applicationId
of schema CompanyConfig
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to boolean
of property logisticsAsActual
of schema CompanyConfig
in response with status code 200
+ - [Changed] company_id
made optional in response with status code 200
+
+
+#### updateApplicationConfiguration
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property zones.activeCount
of schema ZoneConfig
in request body
+ - [Breaking] [Deleted] property zones.totalCount
of schema ZoneConfig
in request body
+ - [Breaking] [Deleted] property zones.activeCount
of schema ZoneConfig
in response with status code 200
+ - [Breaking] [Deleted] property zones.totalCount
of schema ZoneConfig
in response with status code 200
+
+
+#### getApplicationConfiguration
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property zones.activeCount
of schema ZoneConfig
in response with status code 200
+ - [Breaking] [Deleted] property zones.totalCount
of schema ZoneConfig
in response with status code 200
+
+
+#### bulkTat
+
+- ##### What's New
+ - [Added] status
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property filePath
of schema BulkRegionJobDetails
in request body
+ - [Deleted] Possible values from import,export
from property action
of schema BulkRegionResultItemData
in response with status code 200
+
+
+#### getBulkTat
+
+- ##### What's New
+ - [Added] items[].status
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from import,export
from property items[].action
of schema BulkRegionResultItemData
in response with status code 200
+
+
+#### patchApplicationServiceabilitySelfShipment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property data.selfShip
of schema ApplicationSelfShipConfig
in response with status code 200
+ - [Added] Possible nullable value true
to property data.selfShip
of schema ApplicationSelfShipConfig
in response with status code 400
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties data.selfShip.tat
, data.selfShip.isActive
in response with status code 200
+ - [Breaking] [Deleted] properties data.selfShip.tat
, data.selfShip.isActive
in response with status code 400
+
+- ##### What's Changed
+ - [Breaking] [Changed] data.selfShip.is_active
, data.selfShip.tat
made optional in response with status code 200
+ - [Breaking] [Changed] data.selfShip.is_active
, data.selfShip.tat
made optional in response with status code 400
+
+
+#### getApplicationServiceabilitySelfShipment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property data.selfShip
of schema ApplicationSelfShipConfig
in response with status code 200
+ - [Added] Possible nullable value true
to property data.selfShip
of schema ApplicationSelfShipConfig
in response with status code 400
+
+- ##### What's Deprecated
+ - [Deleted] Deprecated status from true
+ - [Breaking] [Deleted] properties data.selfShip.tat
, data.selfShip.isActive
in response with status code 200
+ - [Breaking] [Deleted] properties data.selfShip.tat
, data.selfShip.isActive
in response with status code 400
+
+- ##### What's Changed
+ - [Breaking] [Changed] data.selfShip.is_active
, data.selfShip.tat
made optional in response with status code 200
+ - [Breaking] [Changed] data.selfShip.is_active
, data.selfShip.tat
made optional in response with status code 400
+
+
+#### getApplicationConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### insertApplicationConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in request body
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### updateStoreRulesConfig
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in request body
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### getStoreRules
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property items[].conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from integer
to string
of property items[].storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### createStoreRules
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### getStoreRule
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### updateStoreRules
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Breaking] [Deleted] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to string
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in request body
+ - [Breaking] [Changed] Type from array
to string
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from integer
to string
of property storePriority[].id
of schema StorePrioritySchema
in response with status code 200
+
+
+#### bulkServiceability
+
+- ##### What's New
+ - [Added] status
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property filePath
of schema BulkRegionJobDetails
in request body
+ - [Deleted] Possible values from import,export
from property action
of schema BulkRegionResultItemData
in response with status code 200
+
+
+#### getBulkServiceability
+
+- ##### What's New
+ - [Added] items[].status
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from import,export
from property items[].action
of schema BulkRegionResultItemData
in response with status code 200
+
+
+#### getServiceability
+
+- ##### What's New
+ - [Added] pickup_cutoff
made required in response with status code 200
+ - [Added] route_code
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Deprecated status from true
+ - [Breaking] [Deleted] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### updateServiceability
+
+- ##### What's New
+ - [Added] pickup_cutoff
made required in request body
+ - [Added] route_code
made required in request body
+ - [Added] pickup_cutoff
made required in response with status code 200
+ - [Added] route_code
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Deprecated status from true
+ - [Breaking] [Deleted] property isReversePickup
of schema ServiceabilityModel
in request body
+ - [Breaking] [Deleted] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### createPackageMaterial
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from small,medium,large
from property size
of schema PackageMaterial
in request body
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property packageType
of schema PackageMaterial
in request body
+ - [Deleted] Possible values from small,medium,large
from property size
of schema PackageMaterialResult
in response with status code 201
+ - [Breaking] [Deleted] property companyId
of schema PackageMaterialResult
in response with status code 201
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property packageType
of schema PackageMaterialResult
in response with status code 201
+
+
+#### getPackageMaterialList
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from small,medium,large
from property items.size
of schema PackageMaterialResult
in response with status code 200
+ - [Breaking] [Deleted] property items.companyId
of schema PackageMaterialResult
in response with status code 200
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property items.packageType
of schema PackageMaterialResult
in response with status code 200
+
+
+#### updatePackageMaterials
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from small,medium,large
from property size
of schema PackageMaterial
in request body
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property packageType
of schema PackageMaterial
in request body
+ - [Deleted] Possible values from small,medium,large
from property size
of schema PackageMaterialResult
in response with status code 200
+ - [Breaking] [Deleted] property companyId
of schema PackageMaterialResult
in response with status code 200
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property packageType
of schema PackageMaterialResult
in response with status code 200
+
+
+#### getPackageMaterials
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from small,medium,large
from property size
of schema PackageMaterialResult
in response with status code 200
+ - [Breaking] [Deleted] property companyId
of schema PackageMaterialResult
in response with status code 200
+ - [Deleted] Possible values from box,paper bag,corrugated box,wooden box
from property packageType
of schema PackageMaterialResult
in response with status code 200
+
+
+#### getOptimalLocations
+
+- ##### What's New
+ - [Added] property article
of schema OptimlLocationsRequestSchema
in request body
+ - [Breaking] [Added] articles
made required in request body
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property articles
of schema OptimlLocationsDetailsSchema
in request body
+
+
+#### createCourierPartnerScheme
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createCourierPartnerScheme
+
+
+
+#### getCourierPartnerSchemes
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCourierPartnerSchemes
+
+
+
+#### updateCourierPartnerScheme
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateCourierPartnerScheme
+
+
+
+#### getCourierPartnerScheme
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCourierPartnerScheme
+
+
+
+#### sampleFileServiceability
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method sampleFileServiceability
+
+
+
+#### getSampleFileServiceabilityStatus
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSampleFileServiceabilityStatus
+
+
+
+#### getCountries
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCountries
+
+
+
+### Order
+
+
+
+#### getAnnouncements
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property announcements[].createdAt
of schema AnnouncementResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property message
of schema AnnouncementsResponseSchema
in response with status code 200
+
+
+#### updateAddress
+
+- ##### What's New
+ - [Added] query
parameter name
(type: string
)
+
+ - [Added] query
parameter address
(type: string
)
+
+ - [Added] query
parameter addressType
(type: string
)
+
+ - [Added] query
parameter pincode
(type: string
)
+
+ - [Added] query
parameter phone
(type: string
)
+
+ - [Added] query
parameter email
(type: string
)
+
+ - [Added] query
parameter landmark
(type: string
)
+
+ - [Breaking] [Added] Required query
parameter addressCategory
(type: string
)
+
+ - [Added] query
parameter city
(type: string
)
+
+ - [Added] query
parameter state
(type: string
)
+
+ - [Added] query
parameter country
(type: string
)
+
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Body content in Request
+
+- ##### What's Changed
+ - [Breaking] [Changed] location from path to query of parameter shipmentId
+ - [Changed] Security in Request
+ - [Breaking] [Changed] Security in Request
+ - [Breaking] [Changed] Security in Request
+ - [Changed] Path From /service/platform/order-manage/v1.0/company/{company_id}/shipment/{shipment_id}/address
To /service/platform/order-manage/v1.0/company/{company_id}/delight/update-address
+ - [Changed] http method type from put
To post
+
+
+#### updateShipmentStatus
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property statuses[].shipments[].dataUpdates.products[].filters[].quantity
of schema ProductsDataUpdatesFilters
in request body
+ - [Breaking] [Deleted] property statuses[].shipments[].dataUpdates.order
of schema DataUpdates
in request body
+
+
+#### getShipmentHistory
+
+- ##### What's New
+ - [Added] property activityHistory[].type
of schema HistoryDict
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property activityHistory[].meta
of schema HistoryMeta
in response with status code 200
+ - [Breaking] [Deleted] properties activityHistory[].meta.status
, activityHistory[].meta.status1
, activityHistory[].meta.starttime
, activityHistory[].meta.reason
, activityHistory[].meta.endtime
, activityHistory[].meta.caller
, activityHistory[].meta.billsec
, activityHistory[].meta.recordpath
, activityHistory[].meta.status2
, activityHistory[].meta.callerid
, activityHistory[].meta.duration
, activityHistory[].meta.receiver
, activityHistory[].meta.recipient
, activityHistory[].meta.slug
, activityHistory[].meta.message
, activityHistory[].meta.storeId
, activityHistory[].meta.callId
, activityHistory[].meta.shortLink
, activityHistory[].meta.storeName
, activityHistory[].meta.storeCode
, activityHistory[].meta.channelType
, activityHistory[].meta.activityComment
, activityHistory[].meta.activityType
, activityHistory[].meta.prevStoreName
, activityHistory[].meta.prevStoreCode
, activityHistory[].meta.prevStoreId
, activityHistory[].meta.refundTo
, activityHistory[].meta.refundInformation
in response with status code 200
+ - [Breaking] [Deleted] property activityHistory[].activityType
of schema HistoryDict
in response with status code 200
+
+
+#### postShipmentHistory
+
+- ##### What's New
+ - [Added] property activityHistory[].type
of schema HistoryDict
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property activityHistory[].meta
of schema HistoryMeta
in response with status code 200
+ - [Breaking] [Deleted] properties activityHistory[].meta.status
, activityHistory[].meta.status1
, activityHistory[].meta.starttime
, activityHistory[].meta.reason
, activityHistory[].meta.endtime
, activityHistory[].meta.caller
, activityHistory[].meta.billsec
, activityHistory[].meta.recordpath
, activityHistory[].meta.status2
, activityHistory[].meta.callerid
, activityHistory[].meta.duration
, activityHistory[].meta.receiver
, activityHistory[].meta.recipient
, activityHistory[].meta.slug
, activityHistory[].meta.message
, activityHistory[].meta.storeId
, activityHistory[].meta.callId
, activityHistory[].meta.shortLink
, activityHistory[].meta.storeName
, activityHistory[].meta.storeCode
, activityHistory[].meta.channelType
, activityHistory[].meta.activityComment
, activityHistory[].meta.activityType
, activityHistory[].meta.prevStoreName
, activityHistory[].meta.prevStoreCode
, activityHistory[].meta.prevStoreId
, activityHistory[].meta.refundTo
, activityHistory[].meta.refundInformation
in response with status code 200
+ - [Breaking] [Deleted] property activityHistory[].activityType
of schema HistoryDict
in response with status code 200
+
+
+#### createOrder
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties shipments[].tags[].slug
, shipments[].tags[].displayText
in request body
+ - [Deleted] Value format from date-time
from property shipments[].status.createdAt
of schema ShipmentStatusData
in request body
+ - [Deleted] Value format from date-time
from property shipments[].status.statusCreatedAt
of schema ShipmentStatusData
in request body
+ - [Deleted] Value format from date-time
from property shipments[].processingDates.packByDate
of schema ProcessingDates
in request body
+ - [Breaking] [Deleted] Possible values from Digital
from property shipments[].orderType
of schema Shipment
in request body
+ - [Breaking] [Deleted] property shipments[].systemMessages
of schema Shipment
in request body
+ - [Breaking] [Deleted] property shipments[].processAfterConfig
of schema Shipment
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.address
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.name
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.sector
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.uid
of schema Address
in request body
+ - [Deleted] Possible values from home,office,other
from property shipments[].billingAddressJson.addressType
of schema Address
in request body
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].billingAddressJson.addressCategory
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].billingAddressJson.createdAt
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].billingAddressJson.updatedAt
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.areaCodeSlug
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.countryCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.countryIsoCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.countryPhoneCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.deliveryAddressId
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.geoLocation
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.stateCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].billingAddressJson.userId
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.address
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.name
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.sector
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.uid
of schema Address
in request body
+ - [Deleted] Possible values from home,office,other
from property shipments[].deliveryAddressJson.addressType
of schema Address
in request body
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].deliveryAddressJson.addressCategory
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].deliveryAddressJson.createdAt
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].deliveryAddressJson.updatedAt
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.areaCodeSlug
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.countryCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.countryIsoCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.countryPhoneCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.deliveryAddressId
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.geoLocation
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.stateCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].deliveryAddressJson.userId
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].createdAt
of schema Shipment
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.address
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.name
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.sector
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.uid
of schema Address
in request body
+ - [Deleted] Possible values from home,office,other
from property shipments[].handOverContactJson.addressType
of schema Address
in request body
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].handOverContactJson.addressCategory
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].handOverContactJson.createdAt
of schema Address
in request body
+ - [Deleted] Value format from date-time
from property shipments[].handOverContactJson.updatedAt
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.areaCodeSlug
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.countryCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.countryIsoCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.countryPhoneCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.deliveryAddressId
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.geoLocation
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.stateCode
of schema Address
in request body
+ - [Breaking] [Deleted] property shipments[].handOverContactJson.userId
of schema Address
in request body
+ - [Breaking] [Deleted] property config.lockStateMessages
of schema CreateOrderConfig
in request body
+ - [Breaking] [Deleted] property status
of schema CreateOrderAPI
in request body
+ - [Deleted] Value format from date-time
from property externalCreationDate
of schema CreateOrderAPI
in request body
+ - [Breaking] [Deleted] property systemMessages
of schema CreateOrderAPI
in request body
+
+
+#### getChannelConfig
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getChannelConfig
+
+
+
+#### createChannelConfig
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createChannelConfig
+
+
+
+#### checkOrderStatus
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property mobile
of schema OrderStatus
in request body
+ - [Breaking] [Deleted] property startDate
of schema OrderStatus
in request body
+ - [Breaking] [Deleted] property endDate
of schema OrderStatus
in request body
+ - [Breaking] [Deleted] property result[].orderDetails.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property result[].orderDetails.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property result[].orderDetails.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+
+- ##### What's Changed
+ - [Changed] end_date
, mobile
, start_date
made optional in request body
+
+
+#### downloadLanesReport
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property filters
of schema BulkReportsDownloadRequestSchema
in request body
+
+
+#### bulkListing
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from a4,a6,pos
from property data[].lastSelectedInvoiceLabelType
of schema BulkActionListingData
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to boolean
of property data[].status
of schema BulkActionListingData
in response with status code 200
+
+
+#### generateProcessManifest
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 4XX
+ - [Breaking] [Deleted] Response with status 5XX
+ - [Breaking] [Deleted] Security in Request
+
+
+#### eInvoiceRetry
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from invoice,credit_note
from property shipmentsData[].einvoiceType
of schema EInvoiceRetryShipmentData
in request body
+ - [Deleted] Possible values from invoice,credit_note
from property responseData[].einvoiceType
of schema EInvoiceResponseData
in response with status code 200
+ - [Deleted] Possible values from invoice,credit_note
from property responseData[].einvoiceType
of schema EInvoiceErrorResponseData
in response with status code 400
+
+
+#### trackShipment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property page.itemTotal
of schema PageDetails
in response with status code 200
+
+
+#### failedOrderLogs
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property items.meta
of schema FailedOrdersItem
in response with status code 200
+ - [Added] Possible nullable value true
to property items.errorMessage
of schema FailedOrdersItem
in response with status code 200
+ - [Added] Possible nullable value true
to property items.displayMessage
of schema FailedOrdersItem
in response with status code 200
+ - [Added] Possible nullable value true
to property page.itemTotal
of schema PageDetails
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items.createdAt
of schema FailedOrdersItem
in response with status code 200
+
+
+#### failedOrderLogDetails
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property exception
of schema FailedOrderLogDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property errorTrace
of schema FailedOrderLogDetails
in response with status code 200
+
+
+#### getRules
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getRules
+
+
+
+#### updatePaymentInfo
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updatePaymentInfo
+
+
+
+#### getShipmentBagReasons
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from property reasons
of schema ShipmentBagReasons
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from property success
of schema ShipmentBagReasons
in response with status code 200
+ - [Breaking] [Deleted] property ruleId
of schema ShipmentBagReasons
in response with status code 200
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] property items[].user.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].user.avisUserId
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].bags[].article.aSet
of schema Article
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].shipmentStatus.status
of schema ShipmentStatus
in response with status code 200
+ - [Added] property items[].shipmentStatus.shipmentStatusId
of schema ShipmentStatus
in response with status code 200
+ - [Added] property items[].shipmentStatus.statusCreatedTs
of schema ShipmentStatus
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].totalBags
of schema ShipmentItem
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter groupEntity
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter fulfillmentType
(type: string
)
+
+ - [Breaking] [Deleted] property items[].user.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].bags[].article.set
of schema Article
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].brand.createdOn
of schema ShipmentListingBrand
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].item.lastUpdatedAt
of schema PlatformItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].dates.deliveryDate
of schema Dates
in response with status code 200
+ - [Deleted] Possible values from forward_standard
from property items[].bags[].bagType
of schema BagUnit
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagExpiryDate
of schema BagUnit
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentOperationalStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentOperationalStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentOperationalStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].currentOperationalStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].bags[].orderingCurrencyPrices
of schema BagUnit
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from bag
from property items[].bags[].entityType
of schema BagUnit
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].orderDate
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.id
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.displayName
of schema ShipmentStatus
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentStatus.createdAt
of schema ShipmentStatus
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentStatus.statusCreatedAt
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.updatedTs
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property items[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].billingAddress
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].affiliateDetails
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].isActive
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].forwardEndShipmentId
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].statusCreatedAt
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property items[].fulfillingStore.locationType
of schema ShipmentItemFulFillingStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].orderingCurrencyPrices
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentCreatedAt
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].logisticsMeta
of schema ShipmentItem
in response with status code 200
+
+
+#### getShipmentById
+
+- ##### What's New
+ - [Added] property shipments[].user.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property shipments[].user.avisUserId
of schema UserDataInfo
in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] properties shipments[].deliveryDetails.phone
, shipments[].deliveryDetails.pincode
, shipments[].deliveryDetails.address
, shipments[].deliveryDetails.area
, shipments[].deliveryDetails.country
, shipments[].deliveryDetails.email
, shipments[].deliveryDetails.address1
, shipments[].deliveryDetails.landmark
, shipments[].deliveryDetails.state
, shipments[].deliveryDetails.name
, shipments[].deliveryDetails.city
, shipments[].deliveryDetails.addressType
, shipments[].deliveryDetails.stateCode
, shipments[].deliveryDetails.countryIsoCode
, shipments[].deliveryDetails.countryPhoneCode
, shipments[].deliveryDetails.displayAddress
in response with status code 200
+ - [Added] shipments[].deliveryDetails.address
, shipments[].deliveryDetails.city
, shipments[].deliveryDetails.country
, shipments[].deliveryDetails.name
, shipments[].deliveryDetails.phone
, shipments[].deliveryDetails.pincode
, shipments[].deliveryDetails.state
made required in response with status code 200
+ - [Added] properties shipments[].billingDetails.phone
, shipments[].billingDetails.pincode
, shipments[].billingDetails.address
, shipments[].billingDetails.area
, shipments[].billingDetails.country
, shipments[].billingDetails.email
, shipments[].billingDetails.address1
, shipments[].billingDetails.landmark
, shipments[].billingDetails.state
, shipments[].billingDetails.name
, shipments[].billingDetails.city
, shipments[].billingDetails.addressType
, shipments[].billingDetails.stateCode
, shipments[].billingDetails.countryIsoCode
, shipments[].billingDetails.countryPhoneCode
, shipments[].billingDetails.displayAddress
in response with status code 200
+ - [Added] shipments[].billingDetails.address
, shipments[].billingDetails.city
, shipments[].billingDetails.country
, shipments[].billingDetails.name
, shipments[].billingDetails.phone
, shipments[].billingDetails.pincode
, shipments[].billingDetails.state
made required in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].affiliateDetails.shipmentMeta.b2BBuyerDetails.address
of schema BuyerDetails
in response with status code 200
+ - [Added] property shipments[].affiliateDetails.adId
of schema AffiliateDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property shipments[].invoice.updatedDate
of schema InvoiceInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].order.orderDate
of schema OrderDetailsData
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].brand.createdOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].brand.modifiedOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].item.lastUpdatedAt
of schema PlatformItem
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].charges
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bags[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property shipments[].bags[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].bags[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property shipments[].bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].appliedPromos[].appliedFreeArticles
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].orderingCurrencyPrices
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].currentStatus.stateType
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bags[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property shipments[].bags[].entityType
of schema OrderBags
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].charges
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].status.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].status.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].pickedDate
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].orderStatus.orderDetails.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].orderStatus.orderDetails.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].orderStatus.orderDetails.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.config.app
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.config.inventory
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.id
of schema AffiliateDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.estimatedDeliveryDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.dueDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.storeInvoiceUpdatedDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property shipments[].affiliateDetails.shipmentMeta.shipmentTags[].entityType
of schema ShipmentTags
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property shipments[].affiliateDetails.shipmentMeta.orderType
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from fynd,external
from property shipments[].affiliateDetails.pdfLinks.invoiceType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from fynd,external,parent_child
from property shipments[].affiliateDetails.pdfLinks.labelType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bagStatusHistory[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bagStatusHistory[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bagStatusHistory[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bagStatusHistory[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].journeyType
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].orderingCurrencyPrices
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].shipmentCreatedAt
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property shipments[].rtoAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].rtoAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].rtoAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].rtoAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].forwardEndShipmentId
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].logisticsMeta
of schema PlatformShipment
in response with status code 200
+
+
+#### getOrderById
+
+- ##### What's New
+ - [Added] property shipments[].user.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property shipments[].user.avisUserId
of schema UserDataInfo
in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] properties shipments[].deliveryDetails.phone
, shipments[].deliveryDetails.pincode
, shipments[].deliveryDetails.address
, shipments[].deliveryDetails.area
, shipments[].deliveryDetails.country
, shipments[].deliveryDetails.email
, shipments[].deliveryDetails.address1
, shipments[].deliveryDetails.landmark
, shipments[].deliveryDetails.state
, shipments[].deliveryDetails.name
, shipments[].deliveryDetails.city
, shipments[].deliveryDetails.addressType
, shipments[].deliveryDetails.stateCode
, shipments[].deliveryDetails.countryIsoCode
, shipments[].deliveryDetails.countryPhoneCode
, shipments[].deliveryDetails.displayAddress
in response with status code 200
+ - [Added] shipments[].deliveryDetails.address
, shipments[].deliveryDetails.city
, shipments[].deliveryDetails.country
, shipments[].deliveryDetails.name
, shipments[].deliveryDetails.phone
, shipments[].deliveryDetails.pincode
, shipments[].deliveryDetails.state
made required in response with status code 200
+ - [Added] properties shipments[].billingDetails.phone
, shipments[].billingDetails.pincode
, shipments[].billingDetails.address
, shipments[].billingDetails.area
, shipments[].billingDetails.country
, shipments[].billingDetails.email
, shipments[].billingDetails.address1
, shipments[].billingDetails.landmark
, shipments[].billingDetails.state
, shipments[].billingDetails.name
, shipments[].billingDetails.city
, shipments[].billingDetails.addressType
, shipments[].billingDetails.stateCode
, shipments[].billingDetails.countryIsoCode
, shipments[].billingDetails.countryPhoneCode
, shipments[].billingDetails.displayAddress
in response with status code 200
+ - [Added] shipments[].billingDetails.address
, shipments[].billingDetails.city
, shipments[].billingDetails.country
, shipments[].billingDetails.name
, shipments[].billingDetails.phone
, shipments[].billingDetails.pincode
, shipments[].billingDetails.state
made required in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].affiliateDetails.shipmentMeta.b2BBuyerDetails.address
of schema BuyerDetails
in response with status code 200
+ - [Added] property shipments[].affiliateDetails.adId
of schema AffiliateDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property order.charges
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.source
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.currency
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.orderingChannel
of schema OrderData
in response with status code 200
+ - [Deleted] Value format from date-time
from property order.orderDate
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.orderingCurrencyPrices
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.affiliateOrderId
of schema OrderData
in response with status code 200
+ - [Breaking] [Deleted] property order.affiliateId
of schema OrderData
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].invoice.updatedDate
of schema InvoiceInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].order.orderDate
of schema OrderDetailsData
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].user.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].brand.createdOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].brand.modifiedOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].item.lastUpdatedAt
of schema PlatformItem
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].charges
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bags[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property shipments[].bags[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].bags[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bags[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property shipments[].bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].appliedPromos[].appliedFreeArticles
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].bags[].orderingCurrencyPrices
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].currentStatus.stateType
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bags[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bags[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property shipments[].bags[].entityType
of schema OrderBags
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].charges
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].status.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].status.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].pickedDate
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].orderStatus.orderDetails.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].orderStatus.orderDetails.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].orderStatus.orderDetails.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.config.app
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.config.inventory
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].affiliateDetails.id
of schema AffiliateDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.estimatedDeliveryDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.dueDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.shipmentMeta.storeInvoiceUpdatedDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property shipments[].affiliateDetails.shipmentMeta.shipmentTags[].entityType
of schema ShipmentTags
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property shipments[].affiliateDetails.shipmentMeta.orderType
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].affiliateDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from fynd,external
from property shipments[].affiliateDetails.pdfLinks.invoiceType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from fynd,external,parent_child
from property shipments[].affiliateDetails.pdfLinks.labelType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bagStatusHistory[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].bagStatusHistory[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property shipments[].bagStatusHistory[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].bagStatusHistory[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property shipments[].journeyType
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].orderingCurrencyPrices
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].shipmentCreatedAt
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property shipments[].rtoAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property shipments[].rtoAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].rtoAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property shipments[].rtoAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].rtoAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].forwardEndShipmentId
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property shipments[].logisticsMeta
of schema PlatformShipment
in response with status code 200
+
+
+#### getOrders
+
+- ##### What's New
+ - [Added] property items[].shipments[].user.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].shipments[].user.avisUserId
of schema UserDataInfo
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] properties items[].shipments[].deliveryDetails.phone
, items[].shipments[].deliveryDetails.pincode
, items[].shipments[].deliveryDetails.address
, items[].shipments[].deliveryDetails.area
, items[].shipments[].deliveryDetails.country
, items[].shipments[].deliveryDetails.email
, items[].shipments[].deliveryDetails.address1
, items[].shipments[].deliveryDetails.landmark
, items[].shipments[].deliveryDetails.state
, items[].shipments[].deliveryDetails.name
, items[].shipments[].deliveryDetails.city
, items[].shipments[].deliveryDetails.addressType
, items[].shipments[].deliveryDetails.stateCode
, items[].shipments[].deliveryDetails.countryIsoCode
, items[].shipments[].deliveryDetails.countryPhoneCode
, items[].shipments[].deliveryDetails.displayAddress
in response with status code 200
+ - [Added] items[].shipments[].deliveryDetails.address
, items[].shipments[].deliveryDetails.city
, items[].shipments[].deliveryDetails.country
, items[].shipments[].deliveryDetails.name
, items[].shipments[].deliveryDetails.phone
, items[].shipments[].deliveryDetails.pincode
, items[].shipments[].deliveryDetails.state
made required in response with status code 200
+ - [Added] properties items[].shipments[].billingDetails.phone
, items[].shipments[].billingDetails.pincode
, items[].shipments[].billingDetails.address
, items[].shipments[].billingDetails.area
, items[].shipments[].billingDetails.country
, items[].shipments[].billingDetails.email
, items[].shipments[].billingDetails.address1
, items[].shipments[].billingDetails.landmark
, items[].shipments[].billingDetails.state
, items[].shipments[].billingDetails.name
, items[].shipments[].billingDetails.city
, items[].shipments[].billingDetails.addressType
, items[].shipments[].billingDetails.stateCode
, items[].shipments[].billingDetails.countryIsoCode
, items[].shipments[].billingDetails.countryPhoneCode
, items[].shipments[].billingDetails.displayAddress
in response with status code 200
+ - [Added] items[].shipments[].billingDetails.address
, items[].shipments[].billingDetails.city
, items[].shipments[].billingDetails.country
, items[].shipments[].billingDetails.name
, items[].shipments[].billingDetails.phone
, items[].shipments[].billingDetails.pincode
, items[].shipments[].billingDetails.state
made required in response with status code 200
+ - [Added] Possible nullable value true
to property items[].shipments[].affiliateDetails.shipmentMeta.b2BBuyerDetails.address
of schema BuyerDetails
in response with status code 200
+ - [Added] property items[].shipments[].affiliateDetails.adId
of schema AffiliateDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] property items[].userInfo.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].userInfo.avisUserId
of schema UserDataInfo
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] query
parameter groupEntity
(type: string
)
+
+ - [Breaking] [Deleted] query
parameter fulfillmentType
(type: string
)
+
+ - [Deleted] Value format from date-time
from property items[].shipments[].invoice.updatedDate
of schema InvoiceInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].order.orderDate
of schema OrderDetailsData
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].user.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].user.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].user.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].user.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].brand.createdOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].brand.modifiedOn
of schema OrderBrandName
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].item.lastUpdatedAt
of schema PlatformItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].charges
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bags[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].shipments[].bags[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property items[].shipments[].bags[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].shipments[].bags[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bags[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from percentage,amount,fixed_price,bogo,contract_price,shipping_price,ladder_price,bundle_price_percentage,bundle_price_amount,bundle_amount_percentage,custom,free_gift_items,free_non_sellable_items
from property items[].shipments[].bags[].appliedPromos[].promotionType
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].appliedPromos[].appliedFreeArticles
of schema AppliedPromos
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].bags[].orderingCurrencyPrices
of schema OrderBags
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bags[].currentStatus.stateType
of schema CurrentStatus
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bags[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].shipments[].bags[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property items[].shipments[].bags[].entityType
of schema OrderBags
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].charges
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].status.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].status.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].pickedDate
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].orderStatus.orderDetails.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].orderStatus.orderDetails.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].orderStatus.orderDetails.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].affiliateDetails.config.app
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].affiliateDetails.config.inventory
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].affiliateDetails.id
of schema AffiliateDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].affiliateDetails.shipmentMeta.estimatedDeliveryDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].affiliateDetails.shipmentMeta.dueDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].affiliateDetails.shipmentMeta.storeInvoiceUpdatedDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property items[].shipments[].affiliateDetails.shipmentMeta.shipmentTags[].entityType
of schema ShipmentTags
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property items[].shipments[].affiliateDetails.shipmentMeta.orderType
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].affiliateDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from fynd,external
from property items[].shipments[].affiliateDetails.pdfLinks.invoiceType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from fynd,external,parent_child
from property items[].shipments[].affiliateDetails.pdfLinks.labelType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bagStatusHistory[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].bagStatusHistory[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].shipments[].bagStatusHistory[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].shipments[].bagStatusHistory[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].shipments[].journeyType
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].orderingCurrencyPrices
of schema PlatformShipment
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].shipmentCreatedAt
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property items[].shipments[].rtoAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].shipments[].rtoAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].rtoAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipments[].rtoAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].rtoAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].forwardEndShipmentId
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipments[].logisticsMeta
of schema PlatformShipment
in response with status code 200
+ - [Breaking] [Deleted] property items[].prices
of schema PlatformOrderItems
in response with status code 200
+ - [Breaking] [Deleted] property items[].userInfo.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].userInfo.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].userInfo.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].userInfo.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].orderingCurrencyPrices
of schema PlatformOrderItems
in response with status code 200
+
+
+#### getApplicationShipments
+
+- ##### What's New
+ - [Added] property items[].user.uid
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].user.avisUserId
of schema UserDataInfo
in response with status code 200
+ - [Added] property items[].bags[].article.aSet
of schema Article
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].bags[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].shipmentStatus.status
of schema ShipmentStatus
in response with status code 200
+ - [Added] property items[].shipmentStatus.shipmentStatusId
of schema ShipmentStatus
in response with status code 200
+ - [Added] property items[].shipmentStatus.statusCreatedTs
of schema ShipmentStatus
in response with status code 200
+ - [Added] Possible nullable value true
to property items[].totalBags
of schema ShipmentItem
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].user.id
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.meta
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.mongoUserId
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].user.countryPhoneCode
of schema UserDataInfo
in response with status code 200
+ - [Breaking] [Deleted] property items[].bags[].article.set
of schema Article
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].brand.createdOn
of schema ShipmentListingBrand
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].item.lastUpdatedAt
of schema PlatformItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].dates.deliveryDate
of schema Dates
in response with status code 200
+ - [Deleted] Possible values from forward_standard
from property items[].bags[].bagType
of schema BagUnit
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagExpiryDate
of schema BagUnit
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentOperationalStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentOperationalStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentOperationalStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].currentOperationalStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].bags[].orderingCurrencyPrices
of schema BagUnit
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].bags[].currentStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property items[].bags[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property items[].bags[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from bag
from property items[].bags[].entityType
of schema BagUnit
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].orderDate
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.id
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.displayName
of schema ShipmentStatus
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentStatus.createdAt
of schema ShipmentStatus
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentStatus.statusCreatedAt
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].shipmentStatus.updatedTs
of schema ShipmentStatus
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property items[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property items[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property items[].billingAddress
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].affiliateDetails
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].isActive
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].forwardEndShipmentId
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].statusCreatedAt
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property items[].fulfillingStore.locationType
of schema ShipmentItemFulFillingStore
in response with status code 200
+ - [Breaking] [Deleted] property items[].orderingCurrencyPrices
of schema ShipmentItem
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].shipmentCreatedAt
of schema ShipmentItem
in response with status code 200
+ - [Breaking] [Deleted] property items[].logisticsMeta
of schema ShipmentItem
in response with status code 200
+
+
+#### trackShipmentPlatform
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Possible nullable value from true
from property results[].reason
of schema PlatformTrack
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property results[].lastLocationRecievedAt
of schema PlatformTrack
in response with status code 200
+ - [Deleted] Value format from date-time
from property results[].updatedAt
of schema PlatformTrack
in response with status code 200
+ - [Deleted] Value format from date-time
from property results[].updatedTime
of schema PlatformTrack
in response with status code 200
+ - [Deleted] Possible values from forward,return
from property results[].shipmentType
of schema PlatformTrack
in response with status code 200
+
+
+#### getfilters
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property advance
of schema FiltersResponseSchema
in response with status code 200
+ - [Breaking] [Deleted] property global1
of schema FiltersResponseSchema
in response with status code 200
+
+
+#### getShipmentReasons
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property reasons[].reasons
of schema Reason
in response with status code 200
+ - [Breaking] [Deleted] property reasons[].meta
of schema Reason
in response with status code 200
+ - [Deleted] Possible values from doorstep_qc,pre_qc
from property reasons[].qcType[]
of schema Reason
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from property reasons[].questionSet[].displayName
of schema QuestionSet
in response with status code 200
+ - [Breaking] [Deleted] property reasons[].isActive
of schema Reason
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] reasons[].display_name
, reasons[].qc_type
, reasons[].question_set
, reasons[].meta
, reasons[].is_active
made optional in response with status code 200
+
+
+#### getBagById
+
+- ##### What's New
+ - [Added] property data.article.aSet
of schema Article
in response with status code 200
+ - [Added] Possible nullable value true
to property data.affiliateDetails.shipmentMeta.b2BBuyerDetails.address
of schema BuyerDetails
in response with status code 200
+ - [Added] property data.affiliateDetails.adId
of schema AffiliateDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property data.bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.fulfillingStore.address1
of schema Store
in response with status code 200
+ - [Added] property data.fulfillingStore.meta.documents.gst.dsType
of schema Document
in response with status code 200
+ - [Added] Possible nullable value true
to property data.fulfillingStore.storeAddressJson.phone
of schema StoreAddress
in response with status code 200
+ - [Added] Possible nullable value true
to property data.orderingStore.address1
of schema Store
in response with status code 200
+ - [Added] property data.orderingStore.meta.documents.gst.dsType
of schema Document
in response with status code 200
+ - [Added] Possible nullable value true
to property data.orderingStore.storeAddressJson.phone
of schema StoreAddress
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data.article.set
of schema Article
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.brand.startDate
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.brand.createdOn
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.brand.modifiedOn
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.company.createdOn
of schema Company
in response with status code 200
+ - [Deleted] Possible values from mbo,distributor,manufacturer-owner,franchise
from property data.company.companyType
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.company.modifiedOn
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.company.agreementStartDate
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.dates.deliveryDate
of schema Dates
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.invoice.updatedDate
of schema InvoiceDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.order.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.order.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.order.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.charges
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] properties data.shipment.tags[].slug
, data.shipment.tags[].displayText
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.status.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.status.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.processingDates.packByDate
of schema ProcessingDates
in response with status code 200
+ - [Breaking] [Deleted] Possible values from Digital
from property data.shipment.orderType
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.systemMessages
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.processAfterConfig
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.shipment.billingAddressJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.shipment.billingAddressJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.billingAddressJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.billingAddressJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.billingAddressJson.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.shipment.deliveryAddressJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.shipment.deliveryAddressJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.deliveryAddressJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.deliveryAddressJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.deliveryAddressJson.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.createdAt
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.shipment.handOverContactJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.shipment.handOverContactJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.handOverContactJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipment.handOverContactJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipment.handOverContactJson.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Breaking] [Deleted] property data.affiliateDetails.config.app
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property data.affiliateDetails.config.inventory
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property data.affiliateDetails.id
of schema AffiliateDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.affiliateDetails.shipmentMeta.estimatedDeliveryDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.affiliateDetails.shipmentMeta.dueDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.affiliateDetails.shipmentMeta.storeInvoiceUpdatedDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property data.affiliateDetails.shipmentMeta.shipmentTags[].entityType
of schema ShipmentTags
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property data.affiliateDetails.shipmentMeta.orderType
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.affiliateDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from fynd,external
from property data.affiliateDetails.pdfLinks.invoiceType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from fynd,external,parent_child
from property data.affiliateDetails.pdfLinks.labelType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.bagStatusHistory[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.bagStatusHistory[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.bagStatusHistory[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.bagStatusHistory[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.currentOperationalStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.currentOperationalStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.currentOperationalStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.currentOperationalStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.currentStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.currentStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Deleted] Possible values from bag
from property data.entityType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.fulfillingStore.meta.documents.gst.type
of schema Document
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.fulfillingStore.createdAt
of schema Store
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property data.fulfillingStore.locationType
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.fulfillingStore.updatedAt
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.fulfillingStore.storeAddressJson.createdAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.fulfillingStore.storeAddressJson.addressCategory
of schema StoreAddress
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.fulfillingStore.storeAddressJson.updatedAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.journeyType
of schema BagDetails
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property data.orderType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.orderingStore.meta.documents.gst.type
of schema Document
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.orderingStore.createdAt
of schema Store
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property data.orderingStore.locationType
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.orderingStore.updatedAt
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.orderingStore.storeAddressJson.createdAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.orderingStore.storeAddressJson.addressCategory
of schema StoreAddress
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.orderingStore.storeAddressJson.updatedAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from partner,self,fynd
from property data.paymentType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.rtoAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.rtoAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.rtoAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.rtoAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.rtoAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.shipments
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.articles
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.meta
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.boxType
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.fulfillmentId
of schema ShipmentDetails
in response with status code 200
+ - [Deleted] Value format from int32
from property data.shipmentDetails.dpId
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.shipmentDetails.affiliateShipmentId
of schema ShipmentDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipmentStatus.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipmentStatus.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipmentStatusHistory[].createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.shipmentStatusHistory[].statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Possible values from shipment
from property data.transactionType
of schema BagDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.updatedAt
of schema BagDetails
in response with status code 200
+ - [Deleted] Possible values from 200,400,500
from property statusCode
of schema BagDetailsPlatformResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] data.shipmentDetails.affiliate_shipment_id
, data.shipmentDetails.articles
, data.shipmentDetails.fulfillment_id
, data.shipmentDetails.shipments
made optional in response with status code 200
+
+
+#### getBags
+
+- ##### What's New
+ - [Added] property data.items[].article.aSet
of schema Article
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].affiliateDetails.shipmentMeta.b2BBuyerDetails.address
of schema BuyerDetails
in response with status code 200
+ - [Added] property data.items[].affiliateDetails.adId
of schema AffiliateDetails
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].fulfillingStore.address1
of schema Store
in response with status code 200
+ - [Added] property data.items[].fulfillingStore.meta.documents.gst.dsType
of schema Document
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].fulfillingStore.storeAddressJson.phone
of schema StoreAddress
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].orderingStore.address1
of schema Store
in response with status code 200
+ - [Added] property data.items[].orderingStore.meta.documents.gst.dsType
of schema Document
in response with status code 200
+ - [Added] Possible nullable value true
to property data.items[].orderingStore.storeAddressJson.phone
of schema StoreAddress
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property data.items[].article.set
of schema Article
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].brand.startDate
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].brand.createdOn
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].brand.modifiedOn
of schema Brand
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].company.createdOn
of schema Company
in response with status code 200
+ - [Deleted] Possible values from mbo,distributor,manufacturer-owner,franchise
from property data.items[].company.companyType
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].company.modifiedOn
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].company.agreementStartDate
of schema Company
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].dates.deliveryDate
of schema Dates
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].invoice.updatedDate
of schema InvoiceDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].order.charges
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].order.createdAt
of schema OrderDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].order.affiliateOrderDate
of schema OrderDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].charges
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] properties data.items[].shipment.tags[].slug
, data.items[].shipment.tags[].displayText
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.status.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.status.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.processingDates.packByDate
of schema ProcessingDates
in response with status code 200
+ - [Breaking] [Deleted] Possible values from Digital
from property data.items[].shipment.orderType
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.systemMessages
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.processAfterConfig
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.items[].shipment.billingAddressJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].shipment.billingAddressJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.billingAddressJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.billingAddressJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.billingAddressJson.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.items[].shipment.deliveryAddressJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].shipment.deliveryAddressJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.deliveryAddressJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.deliveryAddressJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.deliveryAddressJson.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.createdAt
of schema Shipment
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.items[].shipment.handOverContactJson.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].shipment.handOverContactJson.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.handOverContactJson.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipment.handOverContactJson.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipment.handOverContactJson.userId
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].affiliateBagDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].affiliateDetails.config.app
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].affiliateDetails.config.inventory
of schema AffiliateConfig
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].affiliateDetails.id
of schema AffiliateDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].affiliateDetails.shipmentMeta.estimatedDeliveryDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].affiliateDetails.shipmentMeta.dueDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].affiliateDetails.shipmentMeta.storeInvoiceUpdatedDate
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Possible values from bag,shipments
from property data.items[].affiliateDetails.shipmentMeta.shipmentTags[].entityType
of schema ShipmentTags
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property data.items[].affiliateDetails.shipmentMeta.orderType
of schema ShipmentMeta
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].affiliateDetails.affiliateMeta.dueDate
of schema AffiliateMeta
in response with status code 200
+ - [Deleted] Possible values from fynd,external
from property data.items[].affiliateDetails.pdfLinks.invoiceType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from fynd,external,parent_child
from property data.items[].affiliateDetails.pdfLinks.labelType
of schema PDFLinks
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].bagStatus[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].bagStatus[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].bagStatus[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].bagStatus[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.items[].bagStatus[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].bagStatusHistory[].stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].bagStatusHistory[].createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].bagStatusHistory[].updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].bagStatusHistory[].bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.items[].bagStatusHistory[].bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].currentOperationalStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].currentOperationalStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].currentOperationalStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].currentOperationalStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.items[].currentOperationalStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].currentStatus.stateType
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].currentStatus.createdAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].currentStatus.updatedAt
of schema BagStatusHistory
in response with status code 200
+ - [Deleted] Possible values from operational,financial,logistics
from property data.items[].currentStatus.bagStateMapper.stateType
of schema BagStateMapper
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.items[].currentStatus.bagStateMapper.journeyType
of schema BagStateMapper
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.items[].deliveryAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].deliveryAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].deliveryAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].deliveryAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].deliveryAddress.userId
of schema Address
in response with status code 200
+ - [Deleted] Possible values from bag
from property data.items[].entityType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].fulfillingStore.meta.documents.gst.type
of schema Document
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].fulfillingStore.createdAt
of schema Store
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property data.items[].fulfillingStore.locationType
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].fulfillingStore.updatedAt
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].fulfillingStore.storeAddressJson.createdAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].fulfillingStore.storeAddressJson.addressCategory
of schema StoreAddress
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].fulfillingStore.storeAddressJson.updatedAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from return,forward
from property data.items[].journeyType
of schema BagDetails
in response with status code 200
+ - [Deleted] Possible values from HomeDelivery,PickAtStore,Digital
from property data.items[].orderType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].orderingStore.meta.documents.gst.type
of schema Document
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].orderingStore.createdAt
of schema Store
in response with status code 200
+ - [Deleted] Possible values from high_street,mall,store,warehouse
from property data.items[].orderingStore.locationType
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].orderingStore.updatedAt
of schema Store
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].orderingStore.storeAddressJson.createdAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].orderingStore.storeAddressJson.addressCategory
of schema StoreAddress
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].orderingStore.storeAddressJson.updatedAt
of schema StoreAddress
in response with status code 200
+ - [Deleted] Possible values from partner,self,fynd
from property data.items[].paymentType
of schema BagDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.address
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.name
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.sector
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.uid
of schema Address
in response with status code 200
+ - [Deleted] Possible values from home,office,other
from property data.items[].rtoAddress.addressType
of schema Address
in response with status code 200
+ - [Deleted] Possible values from store,delivery,billing
from property data.items[].rtoAddress.addressCategory
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].rtoAddress.createdAt
of schema Address
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].rtoAddress.updatedAt
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.areaCodeSlug
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.countryCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.countryIsoCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.countryPhoneCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.deliveryAddressId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.geoLocation
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.stateCode
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].rtoAddress.userId
of schema Address
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.shipments
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.articles
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.meta
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.boxType
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.fulfillmentId
of schema ShipmentDetails
in response with status code 200
+ - [Deleted] Value format from int32
from property data.items[].shipmentDetails.dpId
of schema ShipmentDetails
in response with status code 200
+ - [Breaking] [Deleted] property data.items[].shipmentDetails.affiliateShipmentId
of schema ShipmentDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipmentStatus.createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipmentStatus.statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipmentStatusHistory[].createdAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].shipmentStatusHistory[].statusCreatedAt
of schema ShipmentStatusData
in response with status code 200
+ - [Deleted] Possible values from shipment
from property data.items[].transactionType
of schema BagDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property data.items[].updatedAt
of schema BagDetails
in response with status code 200
+ - [Deleted] Possible values from 200,400,500
from property statusCode
of schema GetBagsPlatformResponseSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] data.items[].shipmentDetails.affiliate_shipment_id
, data.items[].shipmentDetails.articles
, data.items[].shipmentDetails.fulfillment_id
, data.items[].shipmentDetails.shipments
made optional in response with status code 200
+
+
+### Partner
+
+
+
+#### addProxyPath
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ExtensionProxyPathCreation
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ExtensionProxyPathCreation
in response with status code 200
+
+
+### Payment
+
+
+
+#### getBrandPaymentGatewayConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### saveBrandPaymentGatewayConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentModeRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getAllPayouts
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### savePayout
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### updatePayout
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### activateAndDectivatePayout
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### deletePayout
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSubscriptionPaymentMethod
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### deleteSubscriptionPaymentMethod
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getSubscriptionConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### saveSubscriptionSetupIntent
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getBankAccountDetailsOpenAPI
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### addRefundBankAccountUsingOTP
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### verifyIfscCode
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getUserOrderBeneficiaries
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property beneficiaries[].createdOn
of schema OrderBeneficiaryDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property beneficiaries[].modifiedOn
of schema OrderBeneficiaryDetails
in response with status code 200
+
+
+#### getUserBeneficiaries
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property beneficiaries[].createdOn
of schema OrderBeneficiaryDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property beneficiaries[].modifiedOn
of schema OrderBeneficiaryDetails
in response with status code 200
+
+
+#### confirmPayment
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getUserCODlimitRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### setUserCODlimitRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### edcAggregatorsAndModelList
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### edcDeviceStats
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### updateEdcDevice
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getEdcDevice
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### addEdcDevice
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### edcDeviceList
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPosPaymentModeRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### initialisePayment
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property amount
of schema PaymentInitializationRequest
in request body
+ - [Added] Response with status 500
+
+
+#### checkAndUpdatePaymentStatus
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property amount
of schema PaymentStatusUpdateRequest
in request body
+ - [Added] Response with status 500
+
+
+#### resendOrCancelPayment
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### paymentStatusBulk
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property data[].paymentObjectList[].modifiedOn
of schema PaymentObjectList
in response with status code 200
+ - [Deleted] Value format from date-time
from property data[].paymentObjectList[].createdOn
of schema PaymentObjectList
in response with status code 200
+
+
+#### oauthGetUrl
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### revokeOauthToken
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### repaymentDetails
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property extensionOrderId
of schema RepaymentDetailsSerialiserPayAll
in request body
+ - [Added] Response with status 500
+
+
+#### merchantOnBoarding
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### verifyCustomerForPayment
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property successRedirectionUrl
of schema CreatePaymentLinkCreation
in request body
+ - [Breaking] [Deleted] property failureRedirectionUrl
of schema CreatePaymentLinkCreation
in request body
+
+
+#### pollingPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### resendPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### cancelPaymentLink
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentModeControlRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### setMerchantModeControlRoutes
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentModeCustomConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### setPaymentModeCustomConfig
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentCodeOption
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPaymentSession
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property gid
of schema PaymentSessionSerializer
in response with status code 200
+ - [Added] Response with status 500
+
+
+#### updatePaymentSession
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property paymentDetails[].reason
of schema PaymentSessionDetail
in request body
+
+
+#### updateRefundSession
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getMerchantPaymentOption
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### patchMerchantPaymentOption
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getMerchantAggregatorPaymentModeDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### patchMerchantAggregatorPaymentModeDetails
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getPGConfigAggregators
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getMerchantRefundPriority
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createMerchantRefundPriority
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### updateMerchantRefundPriority
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### createPaymentOrder
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### getMerchantAggregatorAppVersion
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+#### patchMerchantPaymentOptionVersion
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+### Rewards
+
+
+
+#### showGiveaways
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema Giveaway
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema Giveaway
in response with status code 200
+
+
+#### saveGiveAway
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Giveaway
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Giveaway
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema Giveaway
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Giveaway
in response with status code 200
+
+
+#### getGiveawayById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Giveaway
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Giveaway
in response with status code 200
+
+
+#### updateGiveAway
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Giveaway
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Giveaway
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema Giveaway
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Giveaway
in response with status code 200
+
+
+#### showOffers
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property [].createdAt
of schema Offer
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].updatedAt
of schema Offer
in response with status code 200
+
+
+#### getOfferByName
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Offer
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Offer
in response with status code 200
+
+
+#### updateOfferByName
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema Offer
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Offer
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema Offer
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema Offer
in response with status code 200
+
+
+#### updateUserStatus
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AppUser
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AppUser
in response with status code 200
+
+
+#### getUserDetails
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema RewardUser
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema RewardUser
in response with status code 200
+
+
+#### getUserPointsHistory
+
+- ##### What's New
+ - [Added] Response with status 500
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema PointsHistory
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema PointsHistory
in response with status code 200
+
+
+#### getRewardsConfiguration
+
+- ##### What's New
+ - [Added] Response with status 500
+
+
+### Share
+
+
+
+#### createShortLink
+
+- ##### What's New
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in request body
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property meta
of schema ShortLinkReq
in request body
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkReq
in request body
+ - [Breaking] [Deleted] property url.alias
of schema UrlInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+#### getShortLinks
+
+- ##### What's New
+ - [Breaking] [Added] items[].redirects.expiry
, items[].redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].url.alias
of schema UrlInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+#### getShortLinkByHash
+
+- ##### What's New
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property url.alias
of schema UrlInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+#### updateShortLinkById
+
+- ##### What's New
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in request body
+ - [Breaking] [Added] redirects.expiry
, redirects.url
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property meta
of schema ShortLinkReq
in request body
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkReq
in request body
+ - [Breaking] [Deleted] property url.alias
of schema UrlInfo
in response with status code 200
+ - [Deleted] Value format from date-time
from property expireAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ShortLinkRes
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ShortLinkRes
in response with status code 200
+
+
+### Theme
+
+
+
+#### getAllPages
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties pages[].sections[].source.id
, pages[].sections[].source.type
, pages[].sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property pages[].createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property pages[].updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property pages[].sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### createPage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in request body
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in request body
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### updateMultiplePages
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties pages[].sections[].source.id
, pages[].sections[].source.type
, pages[].sections[].source.bundleName
in request body
+ - [Deleted] Value format from date-time
from property pages[].createdAt
of schema AvailablePageSchema
in request body
+ - [Deleted] Value format from date-time
from property pages[].updatedAt
of schema AvailablePageSchema
in request body
+ - [Breaking] [Deleted] properties pages[].sections[].source.id
, pages[].sections[].source.type
, pages[].sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property pages[].createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property pages[].updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property pages[].sections[].source
of schema SectionSource
in request body
+ - [Breaking] [Changed] Type from object
to string
of property pages[].sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### getPage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### deletePage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in response with status code 200
+
+
+#### updatePage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Required path
parameter socketId
(type: string
)
+
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in request body
+ - [Breaking] [Deleted] properties sections[].source.id
, sections[].source.type
, sections[].source.bundleName
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema AvailablePageSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema AvailablePageSchema
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in request body
+ - [Breaking] [Changed] Type from object
to string
of property sections[].source
of schema SectionSource
in response with status code 200
+ - [Changed] Path From /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value}/{socket_id}
To /service/platform/theme/v1.0/company/{company_id}/application/{application_id}/{theme_id}/{page_value}
+
+
+#### getCompanyLevelThemes
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property [].marketplaceThemeId.createdAt
of schema MarketplaceThemeId
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].marketplaceThemeId.updatedAt
of schema MarketplaceThemeId
in response with status code 200
+
+
+#### getCompanyLevelPrivateThemes
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from vue2,react
from property [].themeType
of schema CompanyPrivateTheme
in response with status code 200
+
+
+#### addMarketplaceThemeToCompany
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property marketplaceThemeId.createdAt
of schema MarketplaceThemeId
in response with status code 200
+ - [Deleted] Value format from date-time
from property marketplaceThemeId.updatedAt
of schema MarketplaceThemeId
in response with status code 200
+
+
+#### deleteCompanyTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property marketplaceThemeId.createdAt
of schema MarketplaceThemeId
in response with status code 200
+ - [Deleted] Value format from date-time
from property marketplaceThemeId.updatedAt
of schema MarketplaceThemeId
in response with status code 200
+
+
+#### getApplicationThemes
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property [].createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property [].updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### getThemeById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### updateTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### deleteTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### addThemeToApplication
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### updateThemeName
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### applyTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### duplicateTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### getAppliedTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### getThemeForPreview
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+#### upgradeTheme
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema ThemesSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedAt
of schema ThemesSchema
in response with status code 200
+
+
+### User
+
+
+
+#### getCustomers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property items[].accountType
of schema UserSearchSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema UserSearchSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedAt
of schema UserSearchSchema
in response with status code 200
+
+
+#### searchUsers
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property users[].accountType
of schema UserSearchSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property users[].createdAt
of schema UserSearchSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property users[].updatedAt
of schema UserSearchSchema
in response with status code 200
+
+
+#### createUser
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### updateUser
+
+- ##### What's Deprecated
+ - [Deleted] Possible values from user,programmatic
from property user.accountType
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.createdAt
of schema UserSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property user.updatedAt
of schema UserSchema
in response with status code 200
+
+
+#### getPlatformConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property updatedAt
of schema PlatformSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema PlatformSchema
in response with status code 200
+
+
+#### updatePlatformConfig
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property updatedAt
of schema PlatformSchema
in request body
+ - [Deleted] Value format from date-time
from property createdAt
of schema PlatformSchema
in request body
+ - [Deleted] Value format from date-time
from property updatedAt
of schema PlatformSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema PlatformSchema
in response with status code 200
+
+
+#### createUserGroup
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserGroupResponseSchema
in response with status code 201
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserGroupResponseSchema
in response with status code 201
+
+
+#### getUserGroups
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema UserGroupResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema UserGroupResponseSchema
in response with status code 200
+
+
+#### updateUserGroup
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserGroupResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserGroupResponseSchema
in response with status code 200
+
+
+#### getUserGroupById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserGroupResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserGroupResponseSchema
in response with status code 200
+
+
+#### updateUserGroupPartially
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserGroupResponseSchema
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserGroupResponseSchema
in response with status code 200
+
+
+#### getUserAttributeDefinitions
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property items[].createdAt
of schema UserAttributeDefinition
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].modifiedAt
of schema UserAttributeDefinition
in response with status code 200
+
+
+#### updateUserAttributeDefinition
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserAttributeDefinition
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserAttributeDefinition
in response with status code 200
+
+
+#### getUserAttributeDefinitionById
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property createdAt
of schema UserAttributeDefinition
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema UserAttributeDefinition
in response with status code 200
+
+
+#### updateUserAttribute
+
+- ##### What's New
+ - [Added] property customerOverriden
of schema CreateUserAttributeRequest
in request body
+ - [Added] property customerOverriden
of schema UserAttributeResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customerOverridden
of schema CreateUserAttribute
in request body
+ - [Breaking] [Deleted] property customerOverridden
of schema UserAttribute
in response with status code 200
+
+
+#### getUserAttribute
+
+- ##### What's New
+ - [Added] property customerOverriden
of schema UserAttributeResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customerOverridden
of schema UserAttribute
in response with status code 200
+
+
+#### getUserAttributesForUser
+
+- ##### What's New
+ - [Added] property items[].customerOverriden
of schema UserAttributeResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].customerOverridden
of schema UserAttribute
in response with status code 200
+
+
+#### getUserAttributeById
+
+- ##### What's New
+ - [Added] property customerOverriden
of schema UserAttributeResponse
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property customerOverridden
of schema UserAttribute
in response with status code 200
+
+
+### Webhook
+
+
+
+#### fetchAllEventConfigurations
+
+- ##### What's New
+ - [Added] property eventConfigs[].subscriberEventMapping.topic
of schema SubscriberEventMapping
in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property eventConfigs[].type
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property eventConfigs[].modifiedBy
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property eventConfigs[].subscriberEventMapping.broadcasterConfig
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].subscriberEventMapping.createdOn
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### registerSubscriberToEventV2
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property type
of schema SubscriberConfigPostRequestV2
in request body
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigPostRequestV2
in request body
+ - [Deleted] Type from object
from property association
of schema Association
in request body
+ - [Breaking] [Deleted] property events[].queue
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].eventBridgeName
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].workflowName
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].detailType
of schema Events
in request body
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in request body
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in request body
+ - [Deleted] Type from object
from property
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property association
of schema AssociationResp
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### updateSubscriberV2
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property type
of schema SubscriberConfigUpdateRequestV2
in request body
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigUpdateRequestV2
in request body
+ - [Deleted] Type from object
from property association
of schema Association
in request body
+ - [Breaking] [Deleted] property events[].queue
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].eventBridgeName
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].workflowName
of schema Events
in request body
+ - [Breaking] [Deleted] property events[].detailType
of schema Events
in request body
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in request body
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in request body
+ - [Deleted] Type from object
from property
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property association
of schema AssociationResp
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in response with status code 200
+
+
+#### registerSubscriberToEvent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property type
of schema SubscriberConfigPost
in request body
+ - [Deleted] Type from object
from property association
of schema Association
in request body
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in request body
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in request body
+ - [Deleted] Type from object
from property
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property association
of schema AssociationResp
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in response with status code 200
+
+
+#### getSubscribersByCompany
+
+- ##### What's New
+ - [Added] property items[].eventConfigs[].subscriberEventMapping.topic
of schema SubscriberEventMapping
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property
of schema SubscriberConfigList
in response with status code 200
+ - [Deleted] Type from object
from property items[]
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property items[].provider
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property items[].association
of schema AssociationResp
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].customHeaders
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property items[].authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property items[].authMeta.type
of schema AuthMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].type
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].modifiedBy
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].subscriberEventMapping.broadcasterConfig
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].subscriberEventMapping.createdOn
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### updateSubscriberConfig
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property type
of schema SubscriberConfigUpdate
in request body
+ - [Deleted] Type from object
from property association
of schema Association
in request body
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in request body
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in request body
+ - [Deleted] Type from object
from property
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property association
of schema AssociationResp
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SubscriberConfigResult
in response with status code 200
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in response with status code 200
+
+
+#### upsertSubscriberEvent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method upsertSubscriberEvent
+
+
+
+#### getSubscriberById
+
+- ##### What's New
+ - [Added] property eventConfigs[].subscriberEventMapping.topic
of schema SubscriberEventMapping
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property provider
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property association
of schema AssociationResp
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property customHeaders
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property updatedOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property authMeta.type
of schema AuthMeta
in response with status code 200
+ - [Breaking] [Deleted] property eventConfigs[].type
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property eventConfigs[].modifiedBy
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property eventConfigs[].subscriberEventMapping.broadcasterConfig
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].subscriberEventMapping.createdOn
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### getSubscribersByExtensionId
+
+- ##### What's New
+ - [Added] property items[].eventConfigs[].subscriberEventMapping.topic
of schema SubscriberEventMapping
in response with status code 200
+
+- ##### What's Deprecated
+ - [Deleted] Type from object
from property
of schema SubscriberConfigList
in response with status code 200
+ - [Deleted] Type from object
from property items[]
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Possible values from kafka,sqs,rest,event_bridge,pub_sub,temporal
from property items[].provider
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property items[].association
of schema AssociationResp
in response with status code 200
+ - [Breaking] [Deleted] Possible nullable value from true
from property items[].customHeaders
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].updatedOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].createdOn
of schema SubscriberDetails
in response with status code 200
+ - [Deleted] Type from object
from property items[].authMeta
of schema AuthMeta
in response with status code 200
+ - [Deleted] Possible values from hmac
from property items[].authMeta.type
of schema AuthMeta
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].type
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].modifiedBy
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] property items[].eventConfigs[].subscriberEventMapping.broadcasterConfig
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].subscriberEventMapping.createdOn
of schema SubscriberEventMapping
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property items[].eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+ - [Breaking] [Deleted] Security in Request
+
+
+#### downloadDeliveryReport
+
+- ##### What's New
+ - [Added] method downloadDeliveryReport
+
+
+
+#### pingWebhook
+
+- ##### What's New
+ - [Added] method pingWebhook
+
+
+
+#### getReportFilters
+
+- ##### What's New
+ - [Added] method getReportFilters
+
+
+
+#### getHistoricalReports
+
+- ##### What's New
+ - [Added] method getHistoricalReports
+
+
+
+#### cancelJobByName
+
+- ##### What's New
+ - [Added] method cancelJobByName
+
+
+
+#### getDeliveryReports
+
+- ##### What's New
+ - [Added] method getDeliveryReports
+
+
+
+## Public Client
+
+- [Breaking] [Removed] Catalog class from public client
+
+
+### Configuration
+
+
+
+#### searchApplication
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property application.createdAt
of schema Application
in response with status code 200
+ - [Deleted] Value format from date-time
from property application.updatedAt
of schema Application
in response with status code 200
+
+
+### Content
+
+
+
+#### getBasicDetails
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getBasicDetails
+
+
+
+#### getMenuContent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getMenuContent
+
+
+
+#### getMenuContentByType
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getMenuContentByType
+
+
+
+#### getAnalyticsTags
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAnalyticsTags
+
+
+
+#### getCustomPage
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getCustomPage
+
+
+
+#### getFooterContent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getFooterContent
+
+
+
+#### getHomePageContent
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getHomePageContent
+
+
+
+#### getNavbar
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getNavbar
+
+
+
+#### getPricingBanner
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getPricingBanner
+
+
+
+#### getAllTags
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getAllTags
+
+
+
+#### getCredentialsByEntity
+
+- ##### What's New
+ - [Added] Response with status 4XX
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] properties items[].configuration.token
, items[].configuration.host
in response with status code 200
+ - [Breaking] [Deleted] property items[].id
of schema CredentialSchema
in response with status code 200
+ - [Deleted] Possible values from partner,platform
from property items[].entityType
of schema CredentialSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].updatedAt
of schema CredentialSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].createdAt
of schema CredentialSchema
in response with status code 200
+ - [Breaking] [Deleted] property items[].v
of schema CredentialSchema
in response with status code 200
+
+
+### Partner
+
+
+
+#### getPanelExtensionDetails
+
+- ##### What's Deprecated
+ - [Deleted] Value format from int64
from property plans[].recurring.recurringTime
of schema Recurring
in response with status code 200
+ - [Deleted] Value format from date-time
from property createdAt
of schema ExtensionUsingSlug
in response with status code 200
+ - [Deleted] Value format from date-time
from property modifiedAt
of schema ExtensionUsingSlug
in response with status code 200
+ - [Deleted] Possible values from free,one_time,recurring
from property planType
of schema ExtensionUsingSlug
in response with status code 200
+
+
+### Webhook
+
+
+
+#### fetchAllWebhookEvents
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+
+
+#### queryWebhookEventDetails
+
+- ##### What's Deprecated
+ - [Deleted] Value format from date-time
from property eventConfigs[].createdOn
of schema EventConfig
in response with status code 200
+ - [Deleted] Value format from date-time
from property eventConfigs[].updatedOn
of schema EventConfig
in response with status code 200
+
+
+# CHANGE LOG (1.5.2) - 2.0.0
+
+## Application Client
+
+
+
+### Cart
+
+
+
+#### checkoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+
+
+#### checkoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+
+
+#### updateCartBreakup
+
+- ##### What's New
+ - [Added] method updateCartBreakup
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### getSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshow
+
+
+
+### Logistic
+
+
+
+#### getAllCountries
+
+- ##### What's New
+ - [Added] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+
+
+#### getLocalities
+
+- ##### What's New
+ - [Added] query
parameter sector
(type: string
)
+
+
+
+### Payment
+
+
+
+#### getPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPosPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPaymentModeRoutesPaymentLink
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### validateCustomerAndCreditSummary
+
+- ##### What's New
+ - [Added] method validateCustomerAndCreditSummary
+
+
+
+### Share
+
+
+
+#### createShortLink
+
+- ##### What's Changed
+ - [Changed] title
made optional in request body
+
+
+## Platform Client
+
+
+
+### Analytics
+
+
+
+#### checkJobStatusByNameV2
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property endDate
of schema JobStatus
in response with status code 200
+
+
+### AuditTrail
+
+
+
+#### createAuditLog
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 400
+
+
+### Cart
+
+
+
+#### platformCheckoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+
+
+#### platformCheckoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+
+
+### Catalog
+
+
+
+#### getAllCollections
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### createCollection
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in request body
+ - [Added] seo.breadcrumbs[].action.type
made required in request body
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionItems
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionDetail
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getApplicationProducts
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### validateProductGlobalTemplate
+
+- ##### What's New
+ - [Added] method validateProductGlobalTemplate
+
+
+
+#### updateLocationPrice
+
+- ##### What's New
+ - [Added] method updateLocationPrice
+
+
+
+#### updateLocationQuantity
+
+- ##### What's New
+ - [Added] method updateLocationQuantity
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### createSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createSlideshow
+
+
+
+#### getSlideshowBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshowBySlug
+
+
+
+#### updateSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateSlideshow
+
+
+
+#### deleteSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteSlideshow
+
+
+
+### Serviceability
+
+
+
+#### createCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccounts
+
+- ##### What's New
+ - [Added] property items[].schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property items[].schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRules
+
+- ##### What's New
+ - [Added] property items[].conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property items[].conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRules
+
+- ##### What's New
+ - [Added] property items[].conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRule
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### updateStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### updateServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in request body
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### createCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method createCourierPartnerScheme
+
+
+
+#### getCourierPartnerSchemes
+
+- ##### What's New
+ - [Added] method getCourierPartnerSchemes
+
+
+
+#### updateCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method updateCourierPartnerScheme
+
+
+
+#### getCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method getCourierPartnerScheme
+
+
+
+#### sampleFileServiceability
+
+- ##### What's New
+ - [Added] method sampleFileServiceability
+
+
+
+#### getSampleFileServiceabilityStatus
+
+- ##### What's New
+ - [Added] method getSampleFileServiceabilityStatus
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] method getCountries
+
+
+
+### Order
+
+
+
+#### downloadLanesReport
+
+- ##### What's New
+ - [Added] property filters
of schema BulkReportsDownloadRequestSchema
in request body
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+#### getOrders
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+### Payment
+
+
+
+#### updatePaymentSession
+
+- ##### What's New
+ - [Added] property paymentDetails[].reason
of schema PaymentSessionDetail
in request body
+
+
+## Public Client
+
+- [Added] Catalog class in public client
+
+
+# CHANGE LOG (1.5.1) - 2.0.0
+
+## Application Client
+
+
+
+### Cart
+
+
+
+#### checkoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+
+
+#### checkoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+
+
+#### updateCartBreakup
+
+- ##### What's New
+ - [Added] method updateCartBreakup
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### getSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshow
+
+
+
+### Logistic
+
+
+
+#### getAllCountries
+
+- ##### What's New
+ - [Added] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+
+
+#### getLocalities
+
+- ##### What's New
+ - [Added] query
parameter sector
(type: string
)
+
+
+
+### Payment
+
+
+
+#### getPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPosPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPaymentModeRoutesPaymentLink
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### validateCustomerAndCreditSummary
+
+- ##### What's New
+ - [Added] method validateCustomerAndCreditSummary
+
+
+
+### Share
+
+
+
+#### createShortLink
+
+- ##### What's Changed
+ - [Changed] title
made optional in request body
+
+
+## Platform Client
+
+
+
+### Analytics
+
+
+
+#### checkJobStatusByNameV2
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property endDate
of schema JobStatus
in response with status code 200
+
+
+### AuditTrail
+
+
+
+#### createAuditLog
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 400
+
+
+### Cart
+
+
+
+#### platformCheckoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+
+
+#### platformCheckoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+
+
+### Catalog
+
+
+
+#### getAllCollections
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### createCollection
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in request body
+ - [Added] seo.breadcrumbs[].action.type
made required in request body
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionItems
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionDetail
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getApplicationProducts
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### validateProductGlobalTemplate
+
+- ##### What's New
+ - [Added] method validateProductGlobalTemplate
+
+
+
+#### updateLocationPrice
+
+- ##### What's New
+ - [Added] method updateLocationPrice
+
+
+
+#### updateLocationQuantity
+
+- ##### What's New
+ - [Added] method updateLocationQuantity
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### createSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createSlideshow
+
+
+
+#### getSlideshowBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshowBySlug
+
+
+
+#### updateSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateSlideshow
+
+
+
+#### deleteSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteSlideshow
+
+
+
+### Serviceability
+
+
+
+#### createCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccounts
+
+- ##### What's New
+ - [Added] property items[].schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property items[].schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRules
+
+- ##### What's New
+ - [Added] property items[].conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property items[].conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRules
+
+- ##### What's New
+ - [Added] property items[].conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRule
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### updateStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### updateServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in request body
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### createCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method createCourierPartnerScheme
+
+
+
+#### getCourierPartnerSchemes
+
+- ##### What's New
+ - [Added] method getCourierPartnerSchemes
+
+
+
+#### updateCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method updateCourierPartnerScheme
+
+
+
+#### getCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method getCourierPartnerScheme
+
+
+
+#### sampleFileServiceability
+
+- ##### What's New
+ - [Added] method sampleFileServiceability
+
+
+
+#### getSampleFileServiceabilityStatus
+
+- ##### What's New
+ - [Added] method getSampleFileServiceabilityStatus
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] method getCountries
+
+
+
+### Order
+
+
+
+#### downloadLanesReport
+
+- ##### What's New
+ - [Added] property filters
of schema BulkReportsDownloadRequestSchema
in request body
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+#### getOrders
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+# CHANGE LOG (1.5.0) - 2.0.0
+
+## Application Client
+
+
+
+### Cart
+
+
+
+#### checkoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+
+
+#### checkoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+
+
+#### updateCartBreakup
+
+- ##### What's New
+ - [Added] method updateCartBreakup
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### getSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshow
+
+
+
+### Logistic
+
+
+
+#### getAllCountries
+
+- ##### What's New
+ - [Added] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+
+
+#### getLocalities
+
+- ##### What's New
+ - [Added] query
parameter sector
(type: string
)
+
+
+
+### Payment
+
+
+
+#### getPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPosPaymentModeRoutes
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### getPaymentModeRoutesPaymentLink
+
+- ##### What's New
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+
+
+#### validateCustomerAndCreditSummary
+
+- ##### What's New
+ - [Added] method validateCustomerAndCreditSummary
+
+
+
+### Share
+
+
+
+#### createShortLink
+
+- ##### What's Changed
+ - [Changed] title
made optional in request body
+
+
+## Platform Client
+
+
+
+### Analytics
+
+
+
+#### checkJobStatusByNameV2
+
+- ##### What's New
+ - [Added] Possible nullable value true
to property endDate
of schema JobStatus
in response with status code 200
+
+
+### AuditTrail
+
+
+
+#### createAuditLog
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 400
+
+
+### Cart
+
+
+
+#### platformCheckoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+
+
+#### platformCheckoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+
+
+### Catalog
+
+
+
+#### getAllCollections
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### createCollection
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in request body
+ - [Added] seo.breadcrumbs[].action.type
made required in request body
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionItems
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionDetail
+
+- ##### What's New
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getApplicationProducts
+
+- ##### What's New
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### validateProductGlobalTemplate
+
+- ##### What's New
+ - [Added] method validateProductGlobalTemplate
+
+
+
+#### updateLocationPrice
+
+- ##### What's New
+ - [Added] method updateLocationPrice
+
+
+
+#### updateLocationQuantity
+
+- ##### What's New
+ - [Added] method updateLocationQuantity
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### createSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createSlideshow
+
+
+
+#### getSlideshowBySlug
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshowBySlug
+
+
+
+#### updateSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateSlideshow
+
+
+
+#### deleteSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteSlideshow
+
+
+
+### Serviceability
+
+
+
+#### createCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccounts
+
+- ##### What's New
+ - [Added] property items[].schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property items[].schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### getCourierPartnerAccount
+
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+
+
+#### updateCourierRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createCourierPartnerRule
+
+- ##### What's New
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getCourierPartnerRules
+
+- ##### What's New
+ - [Added] property items[].conditions.forward.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+ - [Added] property items[].conditions.reverse.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.forward.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.reverse.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRules
+
+- ##### What's New
+ - [Added] property items[].conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property items[].conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### createStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getStoreRule
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### updateStoreRules
+
+- ##### What's New
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in request body
+ - [Added] property conditions.toLocation.includes[].parentId[]
of schema LocationRuleValues
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in request body
+ - [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+
+
+#### getServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### updateServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in request body
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### createCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method createCourierPartnerScheme
+
+
+
+#### getCourierPartnerSchemes
+
+- ##### What's New
+ - [Added] method getCourierPartnerSchemes
+
+
+
+#### updateCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method updateCourierPartnerScheme
+
+
+
+#### getCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method getCourierPartnerScheme
+
+
+
+#### sampleFileServiceability
+
+- ##### What's New
+ - [Added] method sampleFileServiceability
+
+
+
+#### getSampleFileServiceabilityStatus
+
+- ##### What's New
+ - [Added] method getSampleFileServiceabilityStatus
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] method getCountries
+
+
+
+### Order
+
+
+
+#### downloadLanesReport
+
+- ##### What's New
+ - [Added] property filters
of schema BulkReportsDownloadRequestSchema
in request body
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+#### getOrders
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+# CHANGE LOG (1.4.15) - 2.0.0
+
+## Application Client
+
+
+
+### Cart
+
+
+
+#### checkoutCart
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailCreation
in request body
+
+
+#### checkoutCartV2
+
+- ##### What's New
+ - [Added] property successCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema CartCheckoutDetailV2Creation
in request body
+
+
+#### updateCartBreakup
+
+- ##### What's New
+ - [Added] method updateCartBreakup
+
+
+
+### Content
+
+
+
+#### getSlideshows
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
+
+
+
+#### getSlideshow
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshow
+
+
+
+### Logistic
+
+
+
+#### getAllCountries
+
+- ##### What's New
+ - [Added] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from string
to array
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+
+
+#### getLocalities
+
+- ##### What's New
+ - [Added] query
parameter sector
(type: string
)
-#### getShipments
-- ##### What's New
- - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+### Payment
-#### checkoutCart
+
+#### getPaymentModeRoutes
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
-#### getCartSharedItems
+#### getPosPaymentModeRoutes
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 404
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
-#### updateCartWithSharedItems
+#### getPaymentModeRoutesPaymentLink
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property paymentOptions.paymentOption[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
+ - [Added] property advancePayment[].list[].partialPaymentAllowed
of schema PaymentModeList
in response with status code 200
-#### getPromotionOffers
+#### validateCustomerAndCreditSummary
- ##### What's New
- - [Added] query
parameter sortBy
(type: string
)
+ - [Added] method validateCustomerAndCreditSummary
- - [Added] property availablePromotions[].isBankOffer
of schema PromotionOffer
in response with status code 200
-#### checkoutCartV2
+### Share
-- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
-#### getPromotions
+#### createShortLink
-- ##### What's New
- - [Added] method getPromotions
+- ##### What's Changed
+ - [Changed] title
made optional in request body
+## Platform Client
-### Logistic
+### Analytics
-#### getAllCountries
+
+
+#### checkJobStatusByNameV2
- ##### What's New
- - [Added] property results[].parentId[]
of schema CountryEntityResult
in response with status code 200
+ - [Added] Possible nullable value true
to property endDate
of schema JobStatus
in response with status code 200
-- ##### What's Changed
- - [Breaking] [Changed] Type from string
to array
of property results[].parentId
of schema CountryEntityResult
in response with status code 200
+### AuditTrail
-## Platform Client
+#### createAuditLog
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] Response with status 400
+
### Cart
-#### getPromotionOffers
+#### platformCheckoutCart
- ##### What's New
- - [Added] query
parameter sortBy
(type: string
)
-
- - [Added] property availablePromotions[].isBankOffer
of schema PromotionOffer
in response with status code 200
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailCreation
in request body
-#### fetchAndvalidateCartItems
+#### platformCheckoutCartV2
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property successCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
+ - [Added] property failureCallbackUrl
of schema PlatformCartCheckoutDetailV2Creation
in request body
-#### checkCartServiceability
+### Catalog
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
-#### getAbandonedCartDetails
+#### getAllCollections
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
-#### addItems
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### createCollection
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in request body
+ - [Added] seo.breadcrumbs[].action.type
made required in request body
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
-#### updateCart
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in request body
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionItems
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
-#### getCartSharedItems
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getCollectionDetail
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 404
+ - [Added] properties seo.breadcrumbs[].action.page
, seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] seo.breadcrumbs[].action.type
made required in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
-#### updateCartWithSharedItems
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+
+#### getApplicationProducts
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] properties items[].seo.breadcrumbs[].action.page
, items[].seo.breadcrumbs[].action.type
in response with status code 200
+ - [Added] items[].seo.breadcrumbs[].action.type
made required in response with status code 200
+
+- ##### What's Deprecated
+ - [Breaking] [Deleted] property items[].seo.breadcrumbs[].action[]
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from array
to object
of property items[].seo.breadcrumbs[].action
of schema ApplicationItemSeoBreadcrumbs
in response with status code 200
-#### updateCartUser
+#### validateProductGlobalTemplate
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] method validateProductGlobalTemplate
-#### getCart
+
+#### updateLocationPrice
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] method updateLocationPrice
-#### platformAddItems
+
+#### updateLocationQuantity
- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] method updateLocationQuantity
-#### platformUpdateCart
-- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property cart.appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+### Content
-#### applyCoupon
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
+#### getSlideshows
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshows
-#### removeCoupon
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+#### createSlideshow
-#### selectAddress
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method createSlideshow
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 201
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 201
-#### getShipments
+#### getSlideshowBySlug
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method getSlideshowBySlug
-#### updateShipments
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property shipments[].items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+#### updateSlideshow
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method updateSlideshow
-#### platformCheckoutCart
-- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
+#### deleteSlideshow
-#### selectPaymentMode
+- ##### What's Deprecated
+ - [Breaking] [Deleted] method deleteSlideshow
-- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
-#### platformCheckoutCartV2
+### Serviceability
-- ##### What's New
- - [Added] property cart.items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
-#### selectPaymentModeV2
+#### createCourierPartnerAccount
- ##### What's New
- - [Added] property items[].promotionsApplied[].floatAmount
of schema AppliedPromotion
in response with status code 200
- - [Added] property appliedPromoDetails[].floatAmount
of schema AppliedPromotion
in response with status code 200
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
-### Catalog
+#### getCourierPartnerAccounts
+- ##### What's New
+ - [Added] property items[].schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property items[].schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
-#### validateProductGlobalTemplate
+#### updateCourierPartnerAccount
- ##### What's New
- - [Added] method validateProductGlobalTemplate
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+#### getCourierPartnerAccount
-### Serviceability
-
+- ##### What's New
+ - [Added] property schemeRules.feature.qcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
+ - [Added] property schemeRules.feature.nonQcShipmentItemQuantity
of schema CourierPartnerSchemeFeatures
in response with status code 200
#### updateCourierRule
@@ -383,6 +11285,123 @@
- [Breaking] [Changed] Type from string
to array
of property conditions.toLocation.includes[].parentId
of schema LocationRuleValues
in response with status code 200
+#### getServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### updateServiceability
+
+- ##### What's New
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in request body
+ - [Added] property isReversePickup
of schema ServiceabilityModel
in response with status code 200
+
+
+#### createCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method createCourierPartnerScheme
+
+
+
+#### getCourierPartnerSchemes
+
+- ##### What's New
+ - [Added] method getCourierPartnerSchemes
+
+
+
+#### updateCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method updateCourierPartnerScheme
+
+
+
+#### getCourierPartnerScheme
+
+- ##### What's New
+ - [Added] method getCourierPartnerScheme
+
+
+
+#### sampleFileServiceability
+
+- ##### What's New
+ - [Added] method sampleFileServiceability
+
+
+
+#### getSampleFileServiceabilityStatus
+
+- ##### What's New
+ - [Added] method getSampleFileServiceabilityStatus
+
+
+
+#### getCountries
+
+- ##### What's New
+ - [Added] method getCountries
+
+
+
+### Order
+
+
+
+#### downloadLanesReport
+
+- ##### What's New
+ - [Added] property filters
of schema BulkReportsDownloadRequestSchema
in request body
+
+
+#### getShipments
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+ - [Added] property items[].bags[].article.childDetails[]
of schema Article
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property items[].bags[].article.childDetails
of schema Article
in response with status code 200
+
+
+#### getOrders
+
+- ##### What's New
+ - [Added] query
parameter fulfillmentType
(type: string
)
+
+
+
+#### getApplicationShipments
+
+- ##### What's New
+ - [Added] property items[].bags[].article.childDetails[]
of schema Article
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property items[].bags[].article.childDetails
of schema Article
in response with status code 200
+
+
+#### getBagById
+
+- ##### What's New
+ - [Added] property data.article.childDetails[]
of schema Article
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property data.article.childDetails
of schema Article
in response with status code 200
+
+
+#### getBags
+
+- ##### What's New
+ - [Added] property data.items[].article.childDetails[]
of schema Article
in response with status code 200
+
+- ##### What's Changed
+ - [Breaking] [Changed] Type from object
to array
of property data.items[].article.childDetails
of schema Article
in response with status code 200
+
+
# CHANGE LOG (1.4.14) - 1.9.5
## Application Client
diff --git a/FDKClient.podspec b/FDKClient.podspec
index feea707a76..ff5335d7c3 100644
--- a/FDKClient.podspec
+++ b/FDKClient.podspec
@@ -5,7 +5,7 @@
Pod::Spec.new do |s|
s.name = 'FDKClient'
- s.version = '1.4.15-beta.3'
+ s.version = '1.4.15-beta.4'
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/Sources/code/application/ApplicationAPIClient.swift b/Sources/code/application/ApplicationAPIClient.swift
index db5e005242..728681055a 100644
--- a/Sources/code/application/ApplicationAPIClient.swift
+++ b/Sources/code/application/ApplicationAPIClient.swift
@@ -13,7 +13,7 @@ class ApplicationAPIClient {
var headers = [
(key: "Authorization", value: "Bearer " + "\(config.applicationId):\(config.applicationToken)".asBase64)
]
- headers.append((key: "x-fp-sdk-version", value: "1.4.15-beta.3"))
+ headers.append((key: "x-fp-sdk-version", value: "1.4.15-beta.4"))
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
headers.append((key: "User-Agent", value: userAgent))
diff --git a/Sources/code/application/ApplicationClient.swift b/Sources/code/application/ApplicationClient.swift
index 003d4b8d88..26aa616e69 100644
--- a/Sources/code/application/ApplicationClient.swift
+++ b/Sources/code/application/ApplicationClient.swift
@@ -18,8 +18,6 @@ public class ApplicationClient {
public let fileStorage: FileStorage
- public let finance: Finance
-
public let lead: Lead
public let logistic: Logistic
@@ -56,8 +54,6 @@ public class ApplicationClient {
fileStorage = FileStorage(config: config)
- finance = Finance(config: config)
-
lead = Lead(config: config)
logistic = Logistic(config: config)
diff --git a/Sources/code/application/ApplicationEnums.swift b/Sources/code/application/ApplicationEnums.swift
index b3544caf72..0e95ba4119 100644
--- a/Sources/code/application/ApplicationEnums.swift
+++ b/Sources/code/application/ApplicationEnums.swift
@@ -22,8 +22,6 @@ public extension ApplicationClient.Content {
-
-
public extension ApplicationClient.Lead {
diff --git a/Sources/code/application/ApplicationModelsExtenstions.swift b/Sources/code/application/ApplicationModelsExtenstions.swift
index f5e7bafcf3..66e05809d7 100644
--- a/Sources/code/application/ApplicationModelsExtenstions.swift
+++ b/Sources/code/application/ApplicationModelsExtenstions.swift
@@ -130,8 +130,6 @@ public extension ApplicationClient.Content.ActionPage {
-
-
public extension ApplicationClient.Theme.ActionPage {
static func convertURLToAction(urlString: String) -> ApplicationClient.Theme.ActionPage? {
diff --git a/Sources/code/application/ApplicationPageType.swift b/Sources/code/application/ApplicationPageType.swift
index b283cf0f94..58afdcd851 100644
--- a/Sources/code/application/ApplicationPageType.swift
+++ b/Sources/code/application/ApplicationPageType.swift
@@ -533,8 +533,6 @@ public extension ApplicationClient.Content {
-
-
public extension ApplicationClient.Theme {
enum PageType: String, Codable, CaseIterable {
diff --git a/Sources/code/application/Client/CartApplicationClient.swift b/Sources/code/application/Client/CartApplicationClient.swift
index dc8a3b47a9..8256997e69 100644
--- a/Sources/code/application/Client/CartApplicationClient.swift
+++ b/Sources/code/application/Client/CartApplicationClient.swift
@@ -51,8 +51,6 @@ extension ApplicationClient {
ulrs["getShipments"] = config.domain.appendAsPath("/service/application/cart/v1.0/shipment")
- ulrs["checkoutCart"] = config.domain.appendAsPath("/service/application/cart/v1.0/checkout")
-
ulrs["updateCartMeta"] = config.domain.appendAsPath("/service/application/cart/v1.0/meta")
ulrs["getCartShareLink"] = config.domain.appendAsPath("/service/application/cart/v1.0/share-cart")
@@ -69,8 +67,6 @@ extension ApplicationClient {
ulrs["checkoutCartV2"] = config.domain.appendAsPath("/service/application/cart/v2.0/checkout")
- ulrs["getPromotions"] = config.domain.appendAsPath("/service/application/cart/v1.0/promotion")
-
self.relativeUrls = ulrs
}
public func update(updatedUrl : [String: String]){
@@ -97,7 +93,7 @@ extension ApplicationClient {
orderType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -160,7 +156,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -242,9 +238,9 @@ extension ApplicationClient {
buyNow: Bool?,
id: String?,
orderType: String?,
- body: AddCartCreation,
+ body: AddCartRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AddCartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AddCartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -299,7 +295,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AddCartDetailResult.self, from: data)
+ let response = Utility.decode(AddCartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -325,9 +321,9 @@ extension ApplicationClient {
buyNow: Bool?,
cartType: String?,
orderType: String?,
- body: UpdateCartCreation,
+ body: UpdateCartRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdateCartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdateCartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -386,7 +382,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdateCartDetailResult.self, from: data)
+ let response = Utility.decode(UpdateCartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -408,7 +404,7 @@ extension ApplicationClient {
id: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DeleteCartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DeleteCartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -443,7 +439,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DeleteCartDetailResult.self, from: data)
+ let response = Utility.decode(DeleteCartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -466,7 +462,7 @@ extension ApplicationClient {
buyNow: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartItemCountResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartItemCountResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -505,7 +501,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartItemCountResult.self, from: data)
+ let response = Utility.decode(CartItemCountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -530,7 +526,7 @@ extension ApplicationClient {
storeId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetCouponResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetCouponResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -577,7 +573,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetCouponResult.self, from: data)
+ let response = Utility.decode(GetCouponResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -602,9 +598,9 @@ extension ApplicationClient {
id: String?,
buyNow: Bool?,
cartType: String?,
- body: ApplyCoupon,
+ body: ApplyCouponRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -659,7 +655,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -682,7 +678,7 @@ extension ApplicationClient {
buyNow: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -721,7 +717,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -746,7 +742,7 @@ extension ApplicationClient {
slug: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkPriceResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkPriceResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -793,7 +789,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkPriceResult.self, from: data)
+ let response = Utility.decode(BulkPriceResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -816,9 +812,9 @@ extension ApplicationClient {
i: Bool?,
b: Bool?,
buyNow: Bool?,
- body: RewardPointCreation,
+ body: RewardPointRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -865,7 +861,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -892,7 +888,7 @@ extension ApplicationClient {
isDefault: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetAddressesResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetAddressesResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -947,7 +943,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetAddressesResult.self, from: data)
+ let response = Utility.decode(GetAddressesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -968,7 +964,7 @@ extension ApplicationClient {
public func addAddress(
body: Address,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SaveAddressResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SaveAddressResponse?, _ error: FDKError?) -> Void
) {
@@ -999,7 +995,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SaveAddressResult.self, from: data)
+ let response = Utility.decode(SaveAddressResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1106,7 +1102,7 @@ extension ApplicationClient {
id: String,
body: Address,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdateAddressResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdateAddressResponse?, _ error: FDKError?) -> Void
) {
@@ -1139,7 +1135,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdateAddressResult.self, from: data)
+ let response = Utility.decode(UpdateAddressResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1161,7 +1157,7 @@ extension ApplicationClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DeleteAddressResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DeleteAddressResponse?, _ error: FDKError?) -> Void
) {
@@ -1194,7 +1190,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DeleteAddressResult.self, from: data)
+ let response = Utility.decode(DeleteAddressResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1217,9 +1213,9 @@ extension ApplicationClient {
buyNow: Bool?,
i: Bool?,
b: Bool?,
- body: SelectCartAddressCreation,
+ body: SelectCartAddressRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1266,7 +1262,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1287,9 +1283,9 @@ extension ApplicationClient {
public func selectPaymentMode(
id: String?,
buyNow: Bool?,
- body: UpdateCartPaymentCreation,
+ body: UpdateCartPaymentRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartDetailResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1328,7 +1324,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartDetailResult.self, from: data)
+ let response = Utility.decode(CartDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1467,7 +1463,7 @@ extension ApplicationClient {
orderType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartShipmentsResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartShipmentsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1522,69 +1518,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartShipmentsResult.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
- /**
- *
- * Summary: Checkout cart
- * Description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement.
- **/
- public func checkoutCart(
- buyNow: Bool?,
- cartType: String?,
- body: CartCheckoutDetailCreation,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartCheckoutResult?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
-
- if let value = buyNow {
- xQuery["buy_now"] = value
- }
-
- if let value = cartType {
- xQuery["cart_type"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- let fullUrl = relativeUrls["checkoutCart"] ?? ""
-
- ApplicationAPIClient.execute(
- config: config,
- method: "POST",
- url: fullUrl,
- query: xQuery,
- extraHeaders: xHeaders,
- body: body.dictionary,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CartCheckoutResult.self, from: data)
+ let response = Utility.decode(CartShipmentsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1605,9 +1539,9 @@ extension ApplicationClient {
public func updateCartMeta(
id: String?,
buyNow: Bool?,
- body: CartMetaCreation,
+ body: CartMetaRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartMetaResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartMetaResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1646,7 +1580,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartMetaResult.self, from: data)
+ let response = Utility.decode(CartMetaResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1665,9 +1599,9 @@ extension ApplicationClient {
* Description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences.
**/
public func getCartShareLink(
- body: GetShareCartLinkCreation,
+ body: GetShareCartLinkRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetShareCartLinkResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetShareCartLinkResponse?, _ error: FDKError?) -> Void
) {
@@ -1698,7 +1632,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetShareCartLinkResult.self, from: data)
+ let response = Utility.decode(GetShareCartLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1720,7 +1654,7 @@ extension ApplicationClient {
token: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SharedCartResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SharedCartResponse?, _ error: FDKError?) -> Void
) {
@@ -1753,7 +1687,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SharedCartResult.self, from: data)
+ let response = Utility.decode(SharedCartResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1776,7 +1710,7 @@ extension ApplicationClient {
action: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SharedCartResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SharedCartResponse?, _ error: FDKError?) -> Void
) {
@@ -1811,7 +1745,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SharedCartResult.self, from: data)
+ let response = Utility.decode(SharedCartResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1835,10 +1769,9 @@ extension ApplicationClient {
promotionGroup: String?,
storeId: Int?,
cartType: String?,
- sortBy: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PromotionOffersResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PromotionOffersResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1863,10 +1796,6 @@ extension ApplicationClient {
xQuery["cart_type"] = value
}
- if let value = sortBy {
- xQuery["sort_by"] = value
- }
-
var xHeaders: [(key: String, value: String)] = []
@@ -1893,7 +1822,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PromotionOffersResult.self, from: data)
+ let response = Utility.decode(PromotionOffersResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1985,7 +1914,7 @@ extension ApplicationClient {
uid: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PromotionPaymentOffersResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PromotionPaymentOffersResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2024,7 +1953,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PromotionPaymentOffersResult.self, from: data)
+ let response = Utility.decode(PromotionPaymentOffersResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2045,9 +1974,9 @@ extension ApplicationClient {
public func checkoutCartV2(
buyNow: Bool?,
cartType: String?,
- body: CartCheckoutDetailV2Creation,
+ body: CartCheckoutDetailV2Request,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CartCheckoutResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CartCheckoutResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2086,69 +2015,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CartCheckoutResult.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
- /**
- *
- * Summary: List all available promotions of the sales channel
- * Description: List all promotional offers available for the sales channel, including details such as offer text, unique promotion ID, and validity period.
- **/
- public func getPromotions(
- pageSize: Int?,
- pageNo: Int?,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: Promotions?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
-
- if let value = pageSize {
- xQuery["page_size"] = value
- }
-
- if let value = pageNo {
- xQuery["page_no"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- let fullUrl = relativeUrls["getPromotions"] ?? ""
-
- ApplicationAPIClient.execute(
- config: config,
- method: "GET",
- url: fullUrl,
- query: xQuery,
- extraHeaders: xHeaders,
- body: nil,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(Promotions.self, from: data)
+ let response = Utility.decode(CartCheckoutResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/CatalogApplicationClient.swift b/Sources/code/application/Client/CatalogApplicationClient.swift
index 9d49d4dcb8..fab9aea37f 100644
--- a/Sources/code/application/Client/CatalogApplicationClient.swift
+++ b/Sources/code/application/Client/CatalogApplicationClient.swift
@@ -205,7 +205,7 @@ extension ApplicationClient {
slug: [String],
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductsComparisonResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductsComparisonResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -237,7 +237,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductsComparisonResponseSchema.self, from: data)
+ let response = Utility.decode(ProductsComparisonResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -259,7 +259,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductCompareResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductCompareResponse?, _ error: FDKError?) -> Void
) {
@@ -292,7 +292,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductCompareResponseSchema.self, from: data)
+ let response = Utility.decode(ProductCompareResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -314,7 +314,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductFrequentlyComparedSimilarResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductFrequentlyComparedSimilarResponse?, _ error: FDKError?) -> Void
) {
@@ -347,7 +347,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductFrequentlyComparedSimilarResponseSchema.self, from: data)
+ let response = Utility.decode(ProductFrequentlyComparedSimilarResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -369,7 +369,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductVariantsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductVariantsResponse?, _ error: FDKError?) -> Void
) {
@@ -402,7 +402,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductVariantsResponseSchema.self, from: data)
+ let response = Utility.decode(ProductVariantsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -421,14 +421,14 @@ extension ApplicationClient {
* Description: Get the current stock status for products identified by their IDs, such as SKU, ALU, EAN, etc.
**/
public func getProductStockByIds(
- itemId: Int?,
+ itemId: String?,
alu: String?,
skuCode: String?,
ean: String?,
upc: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductStockStatusResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductStockStatusResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -479,7 +479,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductStockStatusResponseSchema.self, from: data)
+ let response = Utility.decode(ProductStockStatusResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -608,7 +608,7 @@ extension ApplicationClient {
pageType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -671,7 +671,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductListingResponseSchema.self, from: data)
+ let response = Utility.decode(ProductListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -709,9 +709,9 @@ extension ApplicationClient {
sortOn: String?,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "cursor")
+ let paginator = Paginator(pageSize: pageSize, type: "cursor")
paginator.onPage = {
self.getProducts(
q: q,
@@ -749,7 +749,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BrandListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BrandListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -792,7 +792,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BrandListingResponseSchema.self, from: data)
+ let response = Utility.decode(BrandListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -817,9 +817,9 @@ extension ApplicationClient {
department: String?,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getBrands(
department: department,
@@ -849,7 +849,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BrandDetailResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BrandDetailResponse?, _ error: FDKError?) -> Void
) {
@@ -882,7 +882,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BrandDetailResponseSchema.self, from: data)
+ let response = Utility.decode(BrandDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -904,7 +904,7 @@ extension ApplicationClient {
department: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CategoryListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CategoryListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -939,7 +939,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CategoryListingResponseSchema.self, from: data)
+ let response = Utility.decode(CategoryListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -961,7 +961,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CategoryMetaResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CategoryMetaResponse?, _ error: FDKError?) -> Void
) {
@@ -994,7 +994,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CategoryMetaResponseSchema.self, from: data)
+ let response = Utility.decode(CategoryMetaResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1018,7 +1018,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: HomeListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: HomeListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1061,7 +1061,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(HomeListingResponseSchema.self, from: data)
+ let response = Utility.decode(HomeListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1086,9 +1086,9 @@ extension ApplicationClient {
sortOn: String?,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "cursor")
+ let paginator = Paginator(pageSize: pageSize, type: "cursor")
paginator.onPage = {
self.getHomeProducts(
sortOn: sortOn,
@@ -1118,7 +1118,7 @@ extension ApplicationClient {
public func getDepartments(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DepartmentResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DepartmentResponse?, _ error: FDKError?) -> Void
) {
@@ -1149,7 +1149,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DepartmentResponseSchema.self, from: data)
+ let response = Utility.decode(DepartmentResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1171,7 +1171,7 @@ extension ApplicationClient {
q: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AutoCompleteResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AutoCompleteResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1203,7 +1203,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AutoCompleteResponseSchema.self, from: data)
+ let response = Utility.decode(AutoCompleteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1228,7 +1228,7 @@ extension ApplicationClient {
q: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetCollectionListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetCollectionListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1275,7 +1275,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetCollectionListingResponseSchema.self, from: data)
+ let response = Utility.decode(GetCollectionListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1303,9 +1303,9 @@ extension ApplicationClient {
tag: [String]?,
q: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getCollections(
pageNo: paginator.pageNo,
@@ -1344,7 +1344,7 @@ extension ApplicationClient {
pageType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1409,7 +1409,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductListingResponseSchema.self, from: data)
+ let response = Utility.decode(ProductListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1450,9 +1450,9 @@ extension ApplicationClient {
sortOn: String?,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "cursor")
+ let paginator = Paginator(pageSize: pageSize, type: "cursor")
paginator.onPage = {
self.getCollectionItemsBySlug(
slug: slug,
@@ -1489,7 +1489,7 @@ extension ApplicationClient {
slug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CollectionDetailResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CollectionDetailResponse?, _ error: FDKError?) -> Void
) {
@@ -1522,7 +1522,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CollectionDetailResponseSchema.self, from: data)
+ let response = Utility.decode(CollectionDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1546,7 +1546,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetFollowListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetFollowListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1587,7 +1587,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetFollowListingResponseSchema.self, from: data)
+ let response = Utility.decode(GetFollowListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1612,9 +1612,9 @@ extension ApplicationClient {
collectionType: String,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "cursor")
+ let paginator = Paginator(pageSize: pageSize, type: "cursor")
paginator.onPage = {
self.getFollowedListing(
collectionType: collectionType,
@@ -1646,7 +1646,7 @@ extension ApplicationClient {
collectionId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FollowPostResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FollowPostResponse?, _ error: FDKError?) -> Void
) {
@@ -1681,7 +1681,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FollowPostResponseSchema.self, from: data)
+ let response = Utility.decode(FollowPostResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1704,7 +1704,7 @@ extension ApplicationClient {
collectionId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FollowPostResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FollowPostResponse?, _ error: FDKError?) -> Void
) {
@@ -1739,7 +1739,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FollowPostResponseSchema.self, from: data)
+ let response = Utility.decode(FollowPostResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1759,10 +1759,10 @@ extension ApplicationClient {
**/
public func getFollowerCountById(
collectionType: String,
- collectionId: Int,
+ collectionId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FollowerCountResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FollowerCountResponse?, _ error: FDKError?) -> Void
) {
@@ -1797,7 +1797,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FollowerCountResponseSchema.self, from: data)
+ let response = Utility.decode(FollowerCountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1819,7 +1819,7 @@ extension ApplicationClient {
collectionType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FollowIdsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FollowIdsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1854,7 +1854,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FollowIdsResponseSchema.self, from: data)
+ let response = Utility.decode(FollowIdsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1883,7 +1883,7 @@ extension ApplicationClient {
tags: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: StoreListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StoreListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1946,7 +1946,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(StoreListingResponseSchema.self, from: data)
+ let response = Utility.decode(StoreListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1986,9 +1986,9 @@ extension ApplicationClient {
longitude: Double?,
tags: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getStores(
pageNo: paginator.pageNo,
@@ -2214,7 +2214,7 @@ extension ApplicationClient {
**/
public func getProductBundlesBySlug(
slug: String?,
- id: Int?,
+ id: String?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: ProductBundle?, _ error: FDKError?) -> Void
diff --git a/Sources/code/application/Client/CommonApplicationClient.swift b/Sources/code/application/Client/CommonApplicationClient.swift
index 33c533c4a0..275d9f2560 100644
--- a/Sources/code/application/Client/CommonApplicationClient.swift
+++ b/Sources/code/application/Client/CommonApplicationClient.swift
@@ -35,7 +35,7 @@ extension ApplicationClient {
query: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ApplicationResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ApplicationResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -74,7 +74,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ApplicationResponseSchema.self, from: data)
+ let response = Utility.decode(ApplicationResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/ConfigurationApplicationClient.swift b/Sources/code/application/Client/ConfigurationApplicationClient.swift
index 9117df6a41..4994d06aed 100644
--- a/Sources/code/application/Client/ConfigurationApplicationClient.swift
+++ b/Sources/code/application/Client/ConfigurationApplicationClient.swift
@@ -113,7 +113,7 @@ extension ApplicationClient {
public func getOwnerInfo(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ApplicationAboutResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ApplicationAboutResponse?, _ error: FDKError?) -> Void
) {
@@ -144,7 +144,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ApplicationAboutResponseSchema.self, from: data)
+ let response = Utility.decode(ApplicationAboutResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -217,7 +217,7 @@ extension ApplicationClient {
public func getIntegrationTokens(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AppTokenResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AppTokenResponse?, _ error: FDKError?) -> Void
) {
@@ -248,7 +248,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AppTokenResponseSchema.self, from: data)
+ let response = Utility.decode(AppTokenResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -391,7 +391,7 @@ extension ApplicationClient {
public func getFeatures(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AppFeatureResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AppFeatureResponse?, _ error: FDKError?) -> Void
) {
@@ -422,7 +422,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AppFeatureResponseSchema.self, from: data)
+ let response = Utility.decode(AppFeatureResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -495,7 +495,7 @@ extension ApplicationClient {
public func getCurrencies(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CurrenciesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CurrenciesResponse?, _ error: FDKError?) -> Void
) {
@@ -526,7 +526,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CurrenciesResponseSchema.self, from: data)
+ let response = Utility.decode(CurrenciesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -602,7 +602,7 @@ extension ApplicationClient {
public func getAppCurrencies(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AppCurrencyResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AppCurrencyResponse?, _ error: FDKError?) -> Void
) {
@@ -633,7 +633,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AppCurrencyResponseSchema.self, from: data)
+ let response = Utility.decode(AppCurrencyResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -654,7 +654,7 @@ extension ApplicationClient {
public func getLanguages(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: LanguageResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: LanguageResponse?, _ error: FDKError?) -> Void
) {
@@ -685,7 +685,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(LanguageResponseSchema.self, from: data)
+ let response = Utility.decode(LanguageResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -704,9 +704,9 @@ extension ApplicationClient {
* Description: Reset cookie of ordering store.
**/
public func getOrderingStoreCookie(
- body: OrderingStoreSelectRequestSchema,
+ body: OrderingStoreSelectRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessMessageResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessMessageResponse?, _ error: FDKError?) -> Void
) {
@@ -737,7 +737,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessMessageResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessMessageResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -758,7 +758,7 @@ extension ApplicationClient {
public func removeOrderingStoreCookie(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessMessageResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessMessageResponse?, _ error: FDKError?) -> Void
) {
@@ -789,7 +789,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessMessageResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessMessageResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -816,7 +816,7 @@ extension ApplicationClient {
userName: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AppStaffListResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AppStaffListResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -871,7 +871,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AppStaffListResponseSchema.self, from: data)
+ let response = Utility.decode(AppStaffListResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -895,7 +895,7 @@ extension ApplicationClient {
user: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AppStaffResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AppStaffResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -938,7 +938,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AppStaffResponseSchema.self, from: data)
+ let response = Utility.decode(AppStaffResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/ContentApplicationClient.swift b/Sources/code/application/Client/ContentApplicationClient.swift
index faad9e9047..2270102b4f 100644
--- a/Sources/code/application/Client/ContentApplicationClient.swift
+++ b/Sources/code/application/Client/ContentApplicationClient.swift
@@ -15,7 +15,7 @@ extension ApplicationClient {
ulrs["getBlog"] = config.domain.appendAsPath("/service/application/content/v1.0/blogs/{slug}")
- ulrs["getBlogs"] = config.domain.appendAsPath("/service/application/content/v1.0/blogs")
+ ulrs["getBlogs"] = config.domain.appendAsPath("/service/application/content/v1.0/blogs/")
ulrs["getDataLoaders"] = config.domain.appendAsPath("/service/application/content/v1.0/data-loader")
@@ -33,13 +33,13 @@ extension ApplicationClient {
ulrs["getLegalInformation"] = config.domain.appendAsPath("/service/application/content/v1.0/legal")
- ulrs["getNavigations"] = config.domain.appendAsPath("/service/application/content/v1.0/navigations")
+ ulrs["getNavigations"] = config.domain.appendAsPath("/service/application/content/v1.0/navigations/")
ulrs["getSEOConfiguration"] = config.domain.appendAsPath("/service/application/content/v1.0/seo")
ulrs["getSEOMarkupSchemas"] = config.domain.appendAsPath("/service/application/content/v1.0/seo/schema")
- ulrs["getSlideshows"] = config.domain.appendAsPath("/service/application/content/v1.0/slideshow")
+ ulrs["getSlideshows"] = config.domain.appendAsPath("/service/application/content/v1.0/slideshow/")
ulrs["getSlideshow"] = config.domain.appendAsPath("/service/application/content/v1.0/slideshow/{slug}")
@@ -49,11 +49,11 @@ extension ApplicationClient {
ulrs["getPage"] = config.domain.appendAsPath("/service/application/content/v2.0/pages/{slug}")
- ulrs["getPages"] = config.domain.appendAsPath("/service/application/content/v2.0/pages")
+ ulrs["getPages"] = config.domain.appendAsPath("/service/application/content/v2.0/pages/")
- ulrs["getCustomObjectBySlug"] = config.domain.appendAsPath("/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}")
+ ulrs["getCustomObject"] = config.domain.appendAsPath("/service/application/content/v1.0/metaobjects/{metaobject_id}")
- ulrs["getCustomFieldsByResourceId"] = config.domain.appendAsPath("/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}")
+ ulrs["getCustomFields"] = config.domain.appendAsPath("/service/application/content/v1.0/metafields/{resource}/{resource_id}")
self.relativeUrls = ulrs
}
@@ -125,7 +125,6 @@ extension ApplicationClient {
public func getBlog(
slug: String,
rootId: String?,
- preview: Bool?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: BlogSchema?, _ error: FDKError?) -> Void
@@ -137,10 +136,6 @@ extension ApplicationClient {
xQuery["root_id"] = value
}
- if let value = preview {
- xQuery["preview"] = value
- }
-
var xHeaders: [(key: String, value: String)] = []
@@ -194,7 +189,7 @@ extension ApplicationClient {
search: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BlogGetDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BlogGetResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -241,7 +236,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BlogGetDetails.self, from: data)
+ let response = Utility.decode(BlogGetResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -689,7 +684,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: NavigationGetDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: NavigationGetResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -728,7 +723,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(NavigationGetDetails.self, from: data)
+ let response = Utility.decode(NavigationGetResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -865,7 +860,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SlideshowGetDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SlideshowGetResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -904,7 +899,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SlideshowGetDetails.self, from: data)
+ let response = Utility.decode(SlideshowGetResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -917,6 +912,37 @@ extension ApplicationClient {
}
+
+ /**
+ *
+ * Summary: get paginator for getSlideshows
+ * Description: fetch the next page by calling .next(...) function
+ **/
+ public func getSlideshowsPaginator(
+ pageSize: Int?,
+ headers: [(key: String, value: String)]? = nil
+ ) -> Paginator {
+ let pageSize = pageSize ?? 20
+ let paginator = Paginator(pageSize: pageSize, type: "number")
+ paginator.onPage = {
+ self.getSlideshows(
+ pageNo: paginator.pageNo,
+ pageSize: paginator.pageSize,
+
+ headers: headers
+ ) { response, error in
+ if let response = response {
+ paginator.hasNext = response.page?.hasNext ?? false
+ paginator.pageNo = (paginator.pageNo ?? 0) + 1
+ }
+ paginator.onNext?(response, error)
+ }
+ }
+ return paginator
+ }
+
+
+
/**
*
* Summary: Get a Slideshow
@@ -1146,7 +1172,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PageGetDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PageGetResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1185,7 +1211,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PageGetDetails.self, from: data)
+ let response = Utility.decode(PageGetResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1200,12 +1226,11 @@ extension ApplicationClient {
/**
*
- * Summary: Get custom object details
- * Description: Details of a custom object entry can be obtained using this endpoint.
+ * Summary: Get custom object
+ * Description: Get details of custom objects, their field details, definitions, and references can be obtained using this endpoint.
**/
- public func getCustomObjectBySlug(
- definitionSlug: String,
- slug: String,
+ public func getCustomObject(
+ metaobjectId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomObjectByIdSchema?, _ error: FDKError?) -> Void
@@ -1220,11 +1245,9 @@ extension ApplicationClient {
xHeaders.append(contentsOf: headers)
}
- var fullUrl = relativeUrls["getCustomObjectBySlug"] ?? ""
+ var fullUrl = relativeUrls["getCustomObject"] ?? ""
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "definition_slug" + "}", with: "\(definitionSlug)")
-
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "slug" + "}", with: "\(slug)")
+ fullUrl = fullUrl.replacingOccurrences(of: "{" + "metaobject_id" + "}", with: "\(metaobjectId)")
ApplicationAPIClient.execute(
config: config,
@@ -1258,12 +1281,12 @@ extension ApplicationClient {
/**
*
- * Summary: Get list of custom fields of given resource and resource slug
- * Description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug.
+ * Summary: Get list of custom fields
+ * Description: List custom fields attached to a particular resource by using the resource.
**/
- public func getCustomFieldsByResourceId(
+ public func getCustomFields(
resource: String,
- resourceSlug: String,
+ resourceId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomFieldsResponseByResourceIdSchema?, _ error: FDKError?) -> Void
@@ -1278,11 +1301,11 @@ extension ApplicationClient {
xHeaders.append(contentsOf: headers)
}
- var fullUrl = relativeUrls["getCustomFieldsByResourceId"] ?? ""
+ var fullUrl = relativeUrls["getCustomFields"] ?? ""
fullUrl = fullUrl.replacingOccurrences(of: "{" + "resource" + "}", with: "\(resource)")
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "resource_slug" + "}", with: "\(resourceSlug)")
+ fullUrl = fullUrl.replacingOccurrences(of: "{" + "resource_id" + "}", with: "\(resourceId)")
ApplicationAPIClient.execute(
config: config,
diff --git a/Sources/code/application/Client/FileStorageApplicationClient.swift b/Sources/code/application/Client/FileStorageApplicationClient.swift
index cd91eae55f..0422d59ce2 100644
--- a/Sources/code/application/Client/FileStorageApplicationClient.swift
+++ b/Sources/code/application/Client/FileStorageApplicationClient.swift
@@ -11,9 +11,9 @@ extension ApplicationClient {
self.config = config;
var ulrs = [String: String]()
- ulrs["startUpload"] = config.domain.appendAsPath("/service/application/assets/v2.0/namespaces/{namespace}/upload/start")
+ ulrs["startUpload"] = config.domain.appendAsPath("/service/application/assets/v1.0/namespaces/{namespace}/upload/start")
- ulrs["completeUpload"] = config.domain.appendAsPath("/service/application/assets/v2.0/namespaces/{namespace}/upload/complete")
+ ulrs["completeUpload"] = config.domain.appendAsPath("/service/application/assets/v1.0/namespaces/{namespace}/upload/complete")
ulrs["signUrls"] = config.domain.appendAsPath("/service/application/assets/v1.0/sign-urls")
@@ -34,9 +34,9 @@ extension ApplicationClient {
**/
public func startUpload(
namespace: String,
- body: FileUploadStart,
+ body: StartRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileUpload?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StartResponse?, _ error: FDKError?) -> Void
) {
@@ -69,7 +69,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileUpload.self, from: data)
+ let response = Utility.decode(StartResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -84,15 +84,15 @@ extension ApplicationClient {
/**
*
- * Summary: Finalizes upload process.
+ * Summary: Complete file upload
* Description:
Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database.
**/
public func completeUpload(
namespace: String,
- body: FileUpload,
+ body: StartResponse,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileUploadComplete?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CompleteResponse?, _ error: FDKError?) -> Void
) {
@@ -125,7 +125,7 @@ Complete the file upload and store the file details such as name, size, content
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileUploadComplete.self, from: data)
+ let response = Utility.decode(CompleteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -140,13 +140,13 @@ Complete the file upload and store the file details such as name, size, content
/**
*
- * Summary: Signs file URLs.
+ * Summary: Get signed URLs
* Description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files.
**/
public func signUrls(
- body: SignUrl,
+ body: SignUrlRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SignUrlResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SignUrlResponse?, _ error: FDKError?) -> Void
) {
@@ -177,7 +177,7 @@ Complete the file upload and store the file details such as name, size, content
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SignUrlResult.self, from: data)
+ let response = Utility.decode(SignUrlResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/FinanceApplicationClient.swift b/Sources/code/application/Client/FinanceApplicationClient.swift
deleted file mode 100644
index e8eeeecd03..0000000000
--- a/Sources/code/application/Client/FinanceApplicationClient.swift
+++ /dev/null
@@ -1,130 +0,0 @@
-import Foundation
-
-extension ApplicationClient {
-
- public class Finance {
-
- var config: ApplicationConfig
- var relativeUrls = [String: String]()
-
- init(config: ApplicationConfig) {
- self.config = config;
- var ulrs = [String: String]()
-
- ulrs["customerCreditBalance"] = config.domain.appendAsPath("/service/application/finance/v1.0/customer-credit-balance")
-
- ulrs["lockUnlockCreditNote"] = config.domain.appendAsPath("/service/application/finance/v1.0/lock-unlock-credit-note")
-
- self.relativeUrls = ulrs
- }
- public func update(updatedUrl : [String: String]){
- for (key, value) in updatedUrl{
- self.relativeUrls[key] = value
- }
- }
-
-
-
- /**
- *
- * Summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
- * Description: This API will provide customer's credit balance against phone number or email and seller*affiliate id
- **/
- public func customerCreditBalance(
- body: CustomerCreditBalanceRequestSchema,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomerCreditBalanceResponseSchema?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- let fullUrl = relativeUrls["customerCreditBalance"] ?? ""
-
- ApplicationAPIClient.execute(
- config: config,
- method: "POST",
- url: fullUrl,
- query: nil,
- extraHeaders: xHeaders,
- body: body.dictionary,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CustomerCreditBalanceResponseSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
- /**
- *
- * Summary: Lock or Unlock requested credit note.
- * Description: Used to lock or unlock requested credit note.
- **/
- public func lockUnlockCreditNote(
- body: LockUnlockRequestSchema,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: LockUnlockResponseSchema?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- let fullUrl = relativeUrls["lockUnlockCreditNote"] ?? ""
-
- ApplicationAPIClient.execute(
- config: config,
- method: "POST",
- url: fullUrl,
- query: nil,
- extraHeaders: xHeaders,
- body: body.dictionary,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(LockUnlockResponseSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }}
-}
\ No newline at end of file
diff --git a/Sources/code/application/Client/LeadApplicationClient.swift b/Sources/code/application/Client/LeadApplicationClient.swift
index 2894210c75..13c5d96a3e 100644
--- a/Sources/code/application/Client/LeadApplicationClient.swift
+++ b/Sources/code/application/Client/LeadApplicationClient.swift
@@ -257,7 +257,7 @@ extension ApplicationClient {
slug: String,
body: CustomFormSubmissionPayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubmitCustomFormDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubmitCustomFormResponse?, _ error: FDKError?) -> Void
) {
@@ -290,7 +290,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubmitCustomFormDetails.self, from: data)
+ let response = Utility.decode(SubmitCustomFormResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/LogisticApplicationClient.swift b/Sources/code/application/Client/LogisticApplicationClient.swift
index 55892989ba..06428462da 100644
--- a/Sources/code/application/Client/LogisticApplicationClient.swift
+++ b/Sources/code/application/Client/LogisticApplicationClient.swift
@@ -21,16 +21,12 @@ extension ApplicationClient {
ulrs["getOptimalLocations"] = config.domain.appendAsPath("/service/application/logistics/v1.0/reassign_stores")
- ulrs["getCourierPartners"] = config.domain.appendAsPath("/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners")
-
ulrs["getLocations"] = config.domain.appendAsPath("/service/application/logistics/v1.0/locations")
ulrs["getCountries"] = config.domain.appendAsPath("/service/application/logistics/v2.0/countries")
ulrs["getCountry"] = config.domain.appendAsPath("/service/application/logistics/v1.0/countries/{country_iso_code}")
- ulrs["getDeliveryPromise"] = config.domain.appendAsPath("/service/application/logistics/v1.0/delivery-promise")
-
ulrs["getLocalities"] = config.domain.appendAsPath("/service/application/logistics/v1.0/localities/{locality_type}")
ulrs["getLocality"] = config.domain.appendAsPath("/service/application/logistics/v1.0/localities/{locality_type}/{locality_value}")
@@ -56,7 +52,7 @@ extension ApplicationClient {
pincode: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PincodeDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PincodeApiResponse?, _ error: FDKError?) -> Void
) {
@@ -89,7 +85,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PincodeDetails.self, from: data)
+ let response = Utility.decode(PincodeApiResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -108,9 +104,9 @@ extension ApplicationClient {
* Description: Get the estimated delivery time frame for a specific product from a designated store.
**/
public func getTatProduct(
- body: TATViewDetails,
+ body: TATViewRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TATViewResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: TATViewResponse?, _ error: FDKError?) -> Void
) {
@@ -141,7 +137,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(TATViewResult.self, from: data)
+ let response = Utility.decode(TATViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -162,7 +158,7 @@ extension ApplicationClient {
public func getAllCountries(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CountryListResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CountryListResponse?, _ error: FDKError?) -> Void
) {
@@ -193,7 +189,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CountryListResult.self, from: data)
+ let response = Utility.decode(CountryListResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -212,9 +208,9 @@ extension ApplicationClient {
* Description: Get the delivery zone associated with a given pincode.
**/
public func getPincodeZones(
- body: GetZoneFromPincodeViewDetails,
+ body: GetZoneFromPincodeViewRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetZoneFromPincodeViewResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetZoneFromPincodeViewResponse?, _ error: FDKError?) -> Void
) {
@@ -245,7 +241,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetZoneFromPincodeViewResult.self, from: data)
+ let response = Utility.decode(GetZoneFromPincodeViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -264,9 +260,9 @@ extension ApplicationClient {
* Description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels.
**/
public func getOptimalLocations(
- body: ReAssignStoreDetails,
+ body: ReAssignStoreRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ReAssignStoreResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ReAssignStoreResponse?, _ error: FDKError?) -> Void
) {
@@ -297,65 +293,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ReAssignStoreResult.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
- /**
- *
- * Summary: Serviceable Courier Partners.
- * Description: Get all the serviceable courier partners of a destination and the shipments.
- **/
- public func getCourierPartners(
- companyId: Int,
- applicationId: String,
- body: ShipmentCourierPartnerDetails,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentCourierPartnerResult?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- var fullUrl = relativeUrls["getCourierPartners"] ?? ""
-
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "company_id" + "}", with: "\(companyId)")
-
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "application_id" + "}", with: "\(applicationId)")
-
- ApplicationAPIClient.execute(
- config: config,
- method: "POST",
- url: fullUrl,
- query: nil,
- extraHeaders: xHeaders,
- body: body.dictionary,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(ShipmentCourierPartnerResult.self, from: data)
+ let response = Utility.decode(ReAssignStoreResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -385,7 +323,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetStoreResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetStoreResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -446,7 +384,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetStoreResult.self, from: data)
+ let response = Utility.decode(GetStoreResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -469,7 +407,6 @@ extension ApplicationClient {
pageNo: Int?,
pageSize: Int?,
q: String?,
- hierarchy: String?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: GetCountries?, _ error: FDKError?) -> Void
@@ -493,10 +430,6 @@ extension ApplicationClient {
xQuery["q"] = value
}
- if let value = hierarchy {
- xQuery["hierarchy"] = value
- }
-
var xHeaders: [(key: String, value: String)] = []
@@ -591,68 +524,6 @@ extension ApplicationClient {
}
- /**
- *
- * Summary: Get delivery promise
- * Description: Get delivery promises for both global and store levels based on a specific locality type.
- **/
- public func getDeliveryPromise(
- pageNo: Int?,
- pageSize: Int?,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetPromiseDetails?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
-
- if let value = pageNo {
- xQuery["page_no"] = value
- }
-
- if let value = pageSize {
- xQuery["page_size"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- let fullUrl = relativeUrls["getDeliveryPromise"] ?? ""
-
- ApplicationAPIClient.execute(
- config: config,
- method: "GET",
- url: fullUrl,
- query: xQuery,
- extraHeaders: xHeaders,
- body: nil,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(GetPromiseDetails.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
/**
*
* Summary: Get localities
@@ -819,9 +690,9 @@ extension ApplicationClient {
public func validateAddress(
countryIsoCode: String,
templateName: String,
- body: ValidateAddressDetails,
+ body: ValidateAddressRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ValidateAddressDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ValidateAddressRequest?, _ error: FDKError?) -> Void
) {
@@ -856,7 +727,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ValidateAddressDetails.self, from: data)
+ let response = Utility.decode(ValidateAddressRequest.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/OrderApplicationClient.swift b/Sources/code/application/Client/OrderApplicationClient.swift
index c419cd0436..22f2bd44fc 100644
--- a/Sources/code/application/Client/OrderApplicationClient.swift
+++ b/Sources/code/application/Client/OrderApplicationClient.swift
@@ -15,8 +15,6 @@ extension ApplicationClient {
ulrs["getOrderById"] = config.domain.appendAsPath("/service/application/order/v1.0/orders/{order_id}")
- ulrs["getPosOrderById"] = config.domain.appendAsPath("/service/application/order/v1.0/orders/pos-order/{order_id}")
-
ulrs["getShipmentById"] = config.domain.appendAsPath("/service/application/order/v1.0/orders/shipments/{shipment_id}")
ulrs["getInvoiceByShipmentId"] = config.domain.appendAsPath("/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice")
@@ -202,61 +200,6 @@ extension ApplicationClient {
}
- /**
- *
- * Summary: Retrieves POS order details
- * Description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID.
- **/
- public func getPosOrderById(
- orderId: String,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderById?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
-
- var fullUrl = relativeUrls["getPosOrderById"] ?? ""
-
- fullUrl = fullUrl.replacingOccurrences(of: "{" + "order_id" + "}", with: "\(orderId)")
-
- ApplicationAPIClient.execute(
- config: config,
- method: "GET",
- url: fullUrl,
- query: nil,
- extraHeaders: xHeaders,
- body: nil,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(OrderById.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
/**
*
* Summary: Get a Shipment
@@ -437,7 +380,7 @@ extension ApplicationClient {
shipmentId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomerDetailsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomerDetailsResponse?, _ error: FDKError?) -> Void
) {
@@ -472,7 +415,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomerDetailsResponseSchema.self, from: data)
+ let response = Utility.decode(CustomerDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -495,7 +438,7 @@ extension ApplicationClient {
shipmentId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SendOtpToCustomerResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SendOtpToCustomerResponse?, _ error: FDKError?) -> Void
) {
@@ -530,7 +473,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SendOtpToCustomerResponseSchema.self, from: data)
+ let response = Utility.decode(SendOtpToCustomerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -546,14 +489,14 @@ extension ApplicationClient {
/**
*
* Summary: Verifies OTP
- * Description: Verify OTP for getting shipment details
+ * Description: Verify OTP sent by customer.
**/
public func verifyOtpShipmentCustomer(
orderId: String,
shipmentId: String,
body: VerifyOtp,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: VerifyOtpResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: VerifyOtpResponse?, _ error: FDKError?) -> Void
) {
@@ -588,7 +531,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(VerifyOtpResponseSchema.self, from: data)
+ let response = Utility.decode(VerifyOtpResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -603,8 +546,8 @@ extension ApplicationClient {
/**
*
- * Summary: Retrieve Reasons for Cancellation and Return journey
- * Description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations.
+ * Summary: List bag cancellation reasons
+ * Description: Get reasons to perform full or partial cancellation of a bag.
**/
public func getShipmentBagReasons(
shipmentId: String,
@@ -717,13 +660,13 @@ extension ApplicationClient {
/**
*
* Summary: Updates shipment status
- * Description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images.
+ * Description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings.
**/
public func updateShipmentStatus(
shipmentId: String,
- body: UpdateShipmentStatusRequestSchema,
+ body: UpdateShipmentStatusRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentApplicationStatusResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ShipmentApplicationStatusResponse?, _ error: FDKError?) -> Void
) {
@@ -756,7 +699,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ShipmentApplicationStatusResponseSchema.self, from: data)
+ let response = Utility.decode(ShipmentApplicationStatusResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/PaymentApplicationClient.swift b/Sources/code/application/Client/PaymentApplicationClient.swift
index 67e28729ac..7731b2faa5 100644
--- a/Sources/code/application/Client/PaymentApplicationClient.swift
+++ b/Sources/code/application/Client/PaymentApplicationClient.swift
@@ -123,7 +123,7 @@ extension ApplicationClient {
refresh: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AggregatorsConfigDetail?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AggregatorsConfigDetailResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -162,7 +162,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AggregatorsConfigDetail.self, from: data)
+ let response = Utility.decode(AggregatorsConfigDetailResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -181,9 +181,9 @@ extension ApplicationClient {
* Description: Link payment card to a user account for seamless transactions. Upon successful linking, the card becomes associated with the user's profile, enabling secure and convenient payments.
**/
public func attachCardToCustomer(
- body: AttachCard,
+ body: AttachCardRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AttachCardsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AttachCardsResponse?, _ error: FDKError?) -> Void
) {
@@ -214,7 +214,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AttachCardsDetails.self, from: data)
+ let response = Utility.decode(AttachCardsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -236,7 +236,7 @@ extension ApplicationClient {
refresh: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ActiveCardPaymentGatewayDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ActiveCardPaymentGatewayResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -271,7 +271,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ActiveCardPaymentGatewayDetails.self, from: data)
+ let response = Utility.decode(ActiveCardPaymentGatewayResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -293,7 +293,7 @@ extension ApplicationClient {
forceRefresh: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ListCardsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ListCardsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -328,7 +328,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ListCardsDetails.self, from: data)
+ let response = Utility.decode(ListCardsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -347,9 +347,9 @@ extension ApplicationClient {
* Description: Delete payment card from the user's account.
**/
public func deleteUserCard(
- body: DeleteCard,
+ body: DeletehCardRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DeleteCardsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DeleteCardsResponse?, _ error: FDKError?) -> Void
) {
@@ -380,7 +380,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DeleteCardsDetails.self, from: data)
+ let response = Utility.decode(DeleteCardsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -399,9 +399,9 @@ extension ApplicationClient {
* Description: Verify if the user is eligible for pay-later payment from the payment aggregator side using the customer's phone number.
**/
public func verifyCustomerForPayment(
- body: ValidateCustomer,
+ body: ValidateCustomerRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ValidateCustomerDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ValidateCustomerResponse?, _ error: FDKError?) -> Void
) {
@@ -432,7 +432,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ValidateCustomerDetails.self, from: data)
+ let response = Utility.decode(ValidateCustomerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -451,9 +451,9 @@ extension ApplicationClient {
* Description: Verify the payment status and charge from the customer's BNPL (Buy Now, Pay Later) account after order confirmation.
**/
public func verifyAndChargePayment(
- body: ChargeCustomer,
+ body: ChargeCustomerRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ChargeCustomerDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ChargeCustomerResponse?, _ error: FDKError?) -> Void
) {
@@ -484,7 +484,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ChargeCustomerDetails.self, from: data)
+ let response = Utility.decode(ChargeCustomerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -503,9 +503,9 @@ extension ApplicationClient {
* Description: Initiate the payment procedure for an order. Upon successful initiation, it returns a details including the success status, aggregator information, payment method, status, merchant order ID aggregator order , polling URL, timeout, virtual ID, Razorpay payment ID, customer ID, and device ID.
**/
public func initialisePayment(
- body: PaymentInitialization,
+ body: PaymentInitializationRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentInitializationDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentInitializationResponse?, _ error: FDKError?) -> Void
) {
@@ -536,7 +536,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentInitializationDetails.self, from: data)
+ let response = Utility.decode(PaymentInitializationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -555,9 +555,9 @@ extension ApplicationClient {
* Description: Polling process to confirm the payment status. It periodically checks and updates the current status of a payment, ensuring timely and accurate confirmation of payment transactions.
**/
public func checkAndUpdatePaymentStatus(
- body: PaymentStatusUpdate,
+ body: PaymentStatusUpdateRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentStatusUpdateDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentStatusUpdateResponse?, _ error: FDKError?) -> Void
) {
@@ -588,7 +588,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentStatusUpdateDetails.self, from: data)
+ let response = Utility.decode(PaymentStatusUpdateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -608,7 +608,7 @@ extension ApplicationClient {
**/
public func getPaymentModeRoutes(
amount: Int,
- cartId: String,
+ cartId: String?,
checkoutMode: String?,
refresh: Bool?,
orderId: String?,
@@ -619,12 +619,15 @@ extension ApplicationClient {
shipmentId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentModeRouteDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentModeRouteResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
xQuery["amount"] = amount
- xQuery["cart_id"] = cartId
+
+ if let value = cartId {
+ xQuery["cart_id"] = value
+ }
if let value = checkoutMode {
xQuery["checkout_mode"] = value
@@ -684,7 +687,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentModeRouteDetails.self, from: data)
+ let response = Utility.decode(PaymentModeRouteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -704,7 +707,7 @@ extension ApplicationClient {
**/
public func getPosPaymentModeRoutes(
amount: Int,
- cartId: String,
+ cartId: String?,
pincode: String,
checkoutMode: String?,
refresh: Bool?,
@@ -713,12 +716,15 @@ extension ApplicationClient {
userDetails: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentModeRouteDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentModeRouteResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
xQuery["amount"] = amount
- xQuery["cart_id"] = cartId
+
+ if let value = cartId {
+ xQuery["cart_id"] = value
+ }
xQuery["pincode"] = pincode
if let value = checkoutMode {
@@ -764,7 +770,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentModeRouteDetails.self, from: data)
+ let response = Utility.decode(PaymentModeRouteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -941,7 +947,7 @@ extension ApplicationClient {
public func getRupifiBannerDetails(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RupifiBannerDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: RupifiBannerResponse?, _ error: FDKError?) -> Void
) {
@@ -972,7 +978,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RupifiBannerDetails.self, from: data)
+ let response = Utility.decode(RupifiBannerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -993,7 +999,7 @@ extension ApplicationClient {
public func getEpaylaterBannerDetails(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: EpaylaterBannerDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: EpaylaterBannerResponse?, _ error: FDKError?) -> Void
) {
@@ -1024,7 +1030,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(EpaylaterBannerDetails.self, from: data)
+ let response = Utility.decode(EpaylaterBannerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1043,9 +1049,9 @@ extension ApplicationClient {
* Description: Resend or cancel payment link that have been initiated but may require modification or cancellation for various reasons, ensuring flexibility and control in payment processing.
**/
public func resendOrCancelPayment(
- body: ResendOrCancelPayment,
+ body: ResendOrCancelPaymentRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ResendOrCancelPaymentDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ResendOrCancelPaymentResponse?, _ error: FDKError?) -> Void
) {
@@ -1076,7 +1082,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ResendOrCancelPaymentDetails.self, from: data)
+ let response = Utility.decode(ResendOrCancelPaymentResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1095,9 +1101,9 @@ extension ApplicationClient {
* Description: Render HTML for a payment aggregator page.
**/
public func renderHTML(
- body: RenderHTML,
+ body: renderHTMLRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RenderHTMLDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: renderHTMLResponse?, _ error: FDKError?) -> Void
) {
@@ -1128,7 +1134,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RenderHTMLDetails.self, from: data)
+ let response = Utility.decode(renderHTMLResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1147,9 +1153,9 @@ extension ApplicationClient {
* Description: Validate if a Virtual Payment Address (VPA) is valid for processing payments and returns the validation result.is_valid boolean value indicating whether the VPA is valid for payments.
**/
public func validateVPA(
- body: ValidateVPA,
+ body: ValidateVPARequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ValidateVPADetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ValidateVPAResponse?, _ error: FDKError?) -> Void
) {
@@ -1180,7 +1186,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ValidateVPADetails.self, from: data)
+ let response = Utility.decode(ValidateVPAResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1203,7 +1209,7 @@ extension ApplicationClient {
aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CardDetailsFetchedDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CardDetailsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1240,7 +1246,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CardDetailsFetchedDetails.self, from: data)
+ let response = Utility.decode(CardDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1261,7 +1267,7 @@ extension ApplicationClient {
public func getActiveRefundTransferModes(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TransferModeFetchDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: TransferModeResponse?, _ error: FDKError?) -> Void
) {
@@ -1292,7 +1298,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(TransferModeFetchDetails.self, from: data)
+ let response = Utility.decode(TransferModeResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1311,9 +1317,9 @@ extension ApplicationClient {
* Description: Enable/Disable a particular refund transfer mode based on the request body parameters, indicating whether the mode should be enabled or disabled.
**/
public func enableOrDisableRefundTransferMode(
- body: UpdateRefundTransferMode,
+ body: UpdateRefundTransferModeRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RefundTransferModeUpdateDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdateRefundTransferModeResponse?, _ error: FDKError?) -> Void
) {
@@ -1344,7 +1350,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RefundTransferModeUpdateDetails.self, from: data)
+ let response = Utility.decode(UpdateRefundTransferModeResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1366,7 +1372,7 @@ extension ApplicationClient {
orderId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderBeneficiaryFetchDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OrderBeneficiaryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1398,7 +1404,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OrderBeneficiaryFetchDetails.self, from: data)
+ let response = Utility.decode(OrderBeneficiaryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1420,7 +1426,7 @@ extension ApplicationClient {
ifscCode: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: IfscCodeDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: IfscCodeResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1455,7 +1461,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(IfscCodeDetails.self, from: data)
+ let response = Utility.decode(IfscCodeResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1477,7 +1483,7 @@ extension ApplicationClient {
orderId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderBeneficiaryFetchDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OrderBeneficiaryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1509,7 +1515,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OrderBeneficiaryFetchDetails.self, from: data)
+ let response = Utility.decode(OrderBeneficiaryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1528,9 +1534,9 @@ extension ApplicationClient {
* Description: Verify the OTP provided by the user and adds a bank beneficiary for refund processing.
**/
public func verifyOtpAndAddBeneficiaryForBank(
- body: AddBeneficiaryViaOtpVerification,
+ body: AddBeneficiaryViaOtpVerificationRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AddBeneficiaryViaOtpVerificationDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AddBeneficiaryViaOtpVerificationResponse?, _ error: FDKError?) -> Void
) {
@@ -1561,7 +1567,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AddBeneficiaryViaOtpVerificationDetails.self, from: data)
+ let response = Utility.decode(AddBeneficiaryViaOtpVerificationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1580,9 +1586,9 @@ extension ApplicationClient {
* Description: Add beneficiary details specifically for refund transactions, including account holder name, account number and bank details.
**/
public func addBeneficiaryDetails(
- body: AddBeneficiaryDetails,
+ body: AddBeneficiaryDetailsRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RefundAccountDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: RefundAccountResponse?, _ error: FDKError?) -> Void
) {
@@ -1613,7 +1619,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RefundAccountDetails.self, from: data)
+ let response = Utility.decode(RefundAccountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1632,9 +1638,9 @@ extension ApplicationClient {
* Description: Add bank account specifically for refunds, employing OTP verification for security.
**/
public func addRefundBankAccountUsingOTP(
- body: AddBeneficiaryDetailsOTP,
+ body: AddBeneficiaryDetailsOTPRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RefundAccountDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: RefundAccountResponse?, _ error: FDKError?) -> Void
) {
@@ -1665,7 +1671,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RefundAccountDetails.self, from: data)
+ let response = Utility.decode(RefundAccountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1684,9 +1690,9 @@ extension ApplicationClient {
* Description: Verify OTP provided by the user and adds a wallet beneficiary.
**/
public func verifyOtpAndAddBeneficiaryForWallet(
- body: WalletOtp,
+ body: WalletOtpRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: WalletOtpDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: WalletOtpResponse?, _ error: FDKError?) -> Void
) {
@@ -1717,7 +1723,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(WalletOtpDetails.self, from: data)
+ let response = Utility.decode(WalletOtpResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1736,9 +1742,9 @@ extension ApplicationClient {
* Description: Update default beneficiary for the order refund of the user.
**/
public func updateDefaultBeneficiary(
- body: SetDefaultBeneficiary,
+ body: SetDefaultBeneficiaryRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SetDefaultBeneficiaryDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SetDefaultBeneficiaryResponse?, _ error: FDKError?) -> Void
) {
@@ -1769,7 +1775,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SetDefaultBeneficiaryDetails.self, from: data)
+ let response = Utility.decode(SetDefaultBeneficiaryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1791,7 +1797,7 @@ extension ApplicationClient {
paymentLinkId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetPaymentLinkDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetPaymentLinkResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1826,7 +1832,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetPaymentLinkDetails.self, from: data)
+ let response = Utility.decode(GetPaymentLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1845,9 +1851,9 @@ extension ApplicationClient {
* Description: Create new payment link for transactions.
**/
public func createPaymentLink(
- body: CreatePaymentLink,
+ body: CreatePaymentLinkRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreatePaymentLinkDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreatePaymentLinkResponse?, _ error: FDKError?) -> Void
) {
@@ -1878,7 +1884,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreatePaymentLinkDetails.self, from: data)
+ let response = Utility.decode(CreatePaymentLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1897,9 +1903,9 @@ extension ApplicationClient {
* Description: Resend an existing payment link to the user to complete the payment.
**/
public func resendPaymentLink(
- body: CancelOrResendPaymentLink,
+ body: CancelOrResendPaymentLinkRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ResendPaymentLinkDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ResendPaymentLinkResponse?, _ error: FDKError?) -> Void
) {
@@ -1930,7 +1936,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ResendPaymentLinkDetails.self, from: data)
+ let response = Utility.decode(ResendPaymentLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1949,9 +1955,9 @@ extension ApplicationClient {
* Description: Cancel previously generated payment link.
**/
public func cancelPaymentLink(
- body: CancelOrResendPaymentLink,
+ body: CancelOrResendPaymentLinkRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CancelPaymentLinkDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CancelPaymentLinkResponse?, _ error: FDKError?) -> Void
) {
@@ -1982,7 +1988,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CancelPaymentLinkDetails.self, from: data)
+ let response = Utility.decode(CancelPaymentLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2004,7 +2010,7 @@ extension ApplicationClient {
paymentLinkId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentModeRouteDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentModeRouteResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2036,7 +2042,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentModeRouteDetails.self, from: data)
+ let response = Utility.decode(PaymentModeRouteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2058,7 +2064,7 @@ extension ApplicationClient {
paymentLinkId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PollingPaymentLinkDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PollingPaymentLinkResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2093,7 +2099,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PollingPaymentLinkDetails.self, from: data)
+ let response = Utility.decode(PollingPaymentLinkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2112,9 +2118,9 @@ extension ApplicationClient {
* Description: Initiate the creation of an order handler for processing payments through a link.
**/
public func createOrderHandlerPaymentLink(
- body: CreateOrderUser,
+ body: CreateOrderUserRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateOrderUserDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateOrderUserResponse?, _ error: FDKError?) -> Void
) {
@@ -2145,7 +2151,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateOrderUserDetails.self, from: data)
+ let response = Utility.decode(CreateOrderUserResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2164,9 +2170,9 @@ extension ApplicationClient {
* Description: Begin payment process for an order by initializing it through a payment link.Upon successful initialization, the response includes details about the payment status, aggregator details, order IDs, polling URL for status updates, and other relevant information.
**/
public func initialisePaymentPaymentLink(
- body: PaymentInitialization,
+ body: PaymentInitializationRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentInitializationDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentInitializationResponse?, _ error: FDKError?) -> Void
) {
@@ -2197,7 +2203,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentInitializationDetails.self, from: data)
+ let response = Utility.decode(PaymentInitializationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2216,9 +2222,9 @@ extension ApplicationClient {
* Description: Verify and update status of a payment made through a link.Upon successful verification and update, the response includes details about the aggregator name, payment status, and whether retrying the process is required.
**/
public func checkAndUpdatePaymentStatusPaymentLink(
- body: PaymentStatusUpdate,
+ body: PaymentStatusUpdateRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentStatusUpdateDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentStatusUpdateResponse?, _ error: FDKError?) -> Void
) {
@@ -2249,7 +2255,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentStatusUpdateDetails.self, from: data)
+ let response = Utility.decode(PaymentStatusUpdateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2271,7 +2277,7 @@ extension ApplicationClient {
aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomerCreditSummaryDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomerCreditSummaryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2306,7 +2312,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomerCreditSummaryDetails.self, from: data)
+ let response = Utility.decode(CustomerCreditSummaryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2322,14 +2328,14 @@ extension ApplicationClient {
/**
*
* Summary: Redirects users to the payment aggregator's interface
- * Description: This endpoint is used to redirect users to the payment aggregator's platform where they can complete the payment process. The request may include necessary details for initiating the payment on the aggregator’s side, and the user is transferred seamlessly to their interface.
+ * Description: Get details about the active card aggregator used by the user, including the aggregator's name. You can refresh the data by setting the 'refresh' parameter to true if needed.
**/
public func redirectToAggregator(
source: String?,
- aggregator: String,
+ aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RedirectToAggregatorDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: RedirectToAggregatorResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2337,7 +2343,10 @@ extension ApplicationClient {
if let value = source {
xQuery["source"] = value
}
- xQuery["aggregator"] = aggregator
+
+ if let value = aggregator {
+ xQuery["aggregator"] = value
+ }
var xHeaders: [(key: String, value: String)] = []
@@ -2365,7 +2374,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RedirectToAggregatorDetails.self, from: data)
+ let response = Utility.decode(RedirectToAggregatorResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2387,7 +2396,7 @@ extension ApplicationClient {
aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CheckCreditDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CheckCreditResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2422,7 +2431,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CheckCreditDetails.self, from: data)
+ let response = Utility.decode(CheckCreditResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2441,9 +2450,9 @@ extension ApplicationClient {
* Description: Initiate the onboarding process for payment services, providing personal, business, and device information, along with marketplace details, to enable customer registration and credit availability.
**/
public func customerOnboard(
- body: CustomerOnboarding,
+ body: CustomerOnboardingRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomerOnboardingDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomerOnboardingResponse?, _ error: FDKError?) -> Void
) {
@@ -2474,7 +2483,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomerOnboardingDetails.self, from: data)
+ let response = Utility.decode(CustomerOnboardingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2496,7 +2505,7 @@ extension ApplicationClient {
aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OutstandingOrderDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OutstandingOrderDetailsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2531,7 +2540,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OutstandingOrderDetails.self, from: data)
+ let response = Utility.decode(OutstandingOrderDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2553,7 +2562,7 @@ extension ApplicationClient {
aggregator: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaidOrderDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaidOrderDetailsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2588,7 +2597,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaidOrderDetails.self, from: data)
+ let response = Utility.decode(PaidOrderDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2607,9 +2616,9 @@ extension ApplicationClient {
* Description: Create an order and payment on the aggregator side.
**/
public func createPaymentOrder(
- body: PaymentOrder,
+ body: PaymentOrderRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PaymentOrderDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PaymentOrderResponse?, _ error: FDKError?) -> Void
) {
@@ -2640,7 +2649,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PaymentOrderDetails.self, from: data)
+ let response = Utility.decode(PaymentOrderResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/RewardsApplicationClient.swift b/Sources/code/application/Client/RewardsApplicationClient.swift
index 1c13c0167f..be259a0c1e 100644
--- a/Sources/code/application/Client/RewardsApplicationClient.swift
+++ b/Sources/code/application/Client/RewardsApplicationClient.swift
@@ -93,12 +93,12 @@ extension ApplicationClient {
/**
*
* Summary: Order from catalogue
- * Description: Place a reward on order items available in the catalogue.
+ * Description: Place an reward on order items available in the catalogue.
**/
public func catalogueOrder(
- body: CatalogueOrderCreation,
+ body: CatalogueOrderRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CatalogueOrderDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CatalogueOrderResponse?, _ error: FDKError?) -> Void
) {
@@ -129,7 +129,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CatalogueOrderDetails.self, from: data)
+ let response = Utility.decode(CatalogueOrderResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -152,7 +152,7 @@ extension ApplicationClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PointsHistoryDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PointsHistoryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -191,7 +191,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PointsHistoryDetails.self, from: data)
+ let response = Utility.decode(PointsHistoryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -212,7 +212,7 @@ extension ApplicationClient {
public func getUserPoints(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PointsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PointsResponse?, _ error: FDKError?) -> Void
) {
@@ -243,7 +243,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PointsDetails.self, from: data)
+ let response = Utility.decode(PointsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -264,7 +264,7 @@ extension ApplicationClient {
public func getUserReferralDetails(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ReferralDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ReferralDetailsResponse?, _ error: FDKError?) -> Void
) {
@@ -295,7 +295,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ReferralDetails.self, from: data)
+ let response = Utility.decode(ReferralDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -314,9 +314,9 @@ extension ApplicationClient {
* Description: Retrieve the discount applied to a specific order.
**/
public func getOrderDiscount(
- body: RetrieveOrderDiscount,
+ body: OrderDiscountRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderDiscountDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OrderDiscountResponse?, _ error: FDKError?) -> Void
) {
@@ -347,7 +347,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OrderDiscountDetails.self, from: data)
+ let response = Utility.decode(OrderDiscountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -366,9 +366,9 @@ extension ApplicationClient {
* Description: Applies a referral code to earn or redeem rewards.
**/
public func redeemReferralCode(
- body: RedeemReferralCode,
+ body: RedeemReferralCodeRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: RedeemReferralCodeDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: RedeemReferralCodeResponse?, _ error: FDKError?) -> Void
) {
@@ -399,7 +399,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(RedeemReferralCodeDetails.self, from: data)
+ let response = Utility.decode(RedeemReferralCodeResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/Client/ThemeApplicationClient.swift b/Sources/code/application/Client/ThemeApplicationClient.swift
index c5618e4d65..2cbcfb67f3 100644
--- a/Sources/code/application/Client/ThemeApplicationClient.swift
+++ b/Sources/code/application/Client/ThemeApplicationClient.swift
@@ -163,17 +163,12 @@ extension ApplicationClient {
* Description: Gets the theme configuration and template details of a theme applied to the application.
**/
public func getAppliedTheme(
- filters: Bool?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: ThemesSchema?, _ error: FDKError?) -> Void
) {
- var xQuery: [String: Any] = [:]
-
- if let value = filters {
- xQuery["filters"] = value
- }
+
var xHeaders: [(key: String, value: String)] = []
@@ -188,7 +183,7 @@ extension ApplicationClient {
config: config,
method: "GET",
url: fullUrl,
- query: xQuery,
+ query: nil,
extraHeaders: xHeaders,
body: nil,
responseType: "application/json",
@@ -221,17 +216,12 @@ extension ApplicationClient {
**/
public func getThemeForPreview(
themeId: String,
- filters: Bool?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: ThemesSchema?, _ error: FDKError?) -> Void
) {
- var xQuery: [String: Any] = [:]
-
- if let value = filters {
- xQuery["filters"] = value
- }
+
var xHeaders: [(key: String, value: String)] = []
@@ -248,7 +238,7 @@ extension ApplicationClient {
config: config,
method: "GET",
url: fullUrl,
- query: xQuery,
+ query: nil,
extraHeaders: xHeaders,
body: nil,
responseType: "application/json",
diff --git a/Sources/code/application/Client/UserApplicationClient.swift b/Sources/code/application/Client/UserApplicationClient.swift
index 5adbae3af6..72b5bebd3a 100644
--- a/Sources/code/application/Client/UserApplicationClient.swift
+++ b/Sources/code/application/Client/UserApplicationClient.swift
@@ -401,7 +401,7 @@ extension ApplicationClient {
platform: String?,
body: SendOtpRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SendOtp?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SendOtpResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -436,7 +436,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SendOtp.self, from: data)
+ let response = Utility.decode(SendOtpResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1038,7 +1038,7 @@ extension ApplicationClient {
/**
*
- * Summary: Update password
+ * Summary: Update Password
* Description: Allow user to change their password.
**/
public func updatePassword(
@@ -1097,7 +1097,7 @@ extension ApplicationClient {
platform: String?,
body: SendMobileOtpRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SendOtpSuccess?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OtpSuccess?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1132,7 +1132,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SendOtpSuccess.self, from: data)
+ let response = Utility.decode(OtpSuccess.self, from: data)
onResponse(response, nil)
} else {
@@ -1154,7 +1154,7 @@ extension ApplicationClient {
platform: String?,
body: SendMobileForgotOtpRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SendOtpSuccess?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OtpSuccess?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1189,7 +1189,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SendOtpSuccess.self, from: data)
+ let response = Utility.decode(OtpSuccess.self, from: data)
onResponse(response, nil)
} else {
@@ -1204,7 +1204,7 @@ extension ApplicationClient {
/**
*
- * Summary: Verify mobile OTP
+ * Summary: Verify Mobile OTP
* Description: Verify one-time password sent to user's mobile.
**/
public func verifyMobileOTP(
@@ -2235,7 +2235,7 @@ extension ApplicationClient {
q: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UserExistsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UserExistsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2267,7 +2267,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UserExistsDetails.self, from: data)
+ let response = Utility.decode(UserExistsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2447,7 +2447,7 @@ extension ApplicationClient {
* Description: Update user attributes.
**/
public func updateUserAttributes(
- body: UpdateUserAttributes,
+ body: UpdateUserAttributesRequest,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: UserAttributes?, _ error: FDKError?) -> Void
) {
diff --git a/Sources/code/application/Client/WebhookApplicationClient.swift b/Sources/code/application/Client/WebhookApplicationClient.swift
index 7333751bbf..4755bc9e31 100644
--- a/Sources/code/application/Client/WebhookApplicationClient.swift
+++ b/Sources/code/application/Client/WebhookApplicationClient.swift
@@ -25,13 +25,13 @@ extension ApplicationClient {
/**
*
- * Summary: Capture and save click events from various sales channels
- * Description: Send click events from various sales channels to enable insightful data collection and analysis.
+ * Summary: Endpoint to capture click events from sales channels and persist them in database.
+ * Description: Send click events from sales channels.
**/
public func saveClickEvent(
- body: ClickEventPayload,
+ body: ClickEventRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ClickEventDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ClickEventResponse?, _ error: FDKError?) -> Void
) {
@@ -62,7 +62,7 @@ extension ApplicationClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ClickEventDetails.self, from: data)
+ let response = Utility.decode(ClickEventResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/application/FileStorage.swift b/Sources/code/application/FileStorage.swift
index a4ef86e9ea..8828f082b4 100644
--- a/Sources/code/application/FileStorage.swift
+++ b/Sources/code/application/FileStorage.swift
@@ -2,8 +2,8 @@ import Alamofire
import Foundation
public extension ApplicationClient.FileStorage {
- func upload(data: Data, withFileName fileName: String, as contentType: String, toNameSpace namespace: String, onResponse: @escaping (_ response: ApplicationClient.FileStorage.FileUploadComplete?, _ error: FDKError?) -> Void) {
- startUpload(namespace: namespace, body: ApplicationClient.FileStorage.FileUploadStart(contentType: contentType, fileName: fileName, params: nil, size: data.count, tags: nil)) { (startResponse, error) in
+ func upload(data: Data, withFileName fileName: String, as contentType: String, toNameSpace namespace: String, onResponse: @escaping (_ response: ApplicationClient.FileStorage.CompleteResponse?, _ error: FDKError?) -> Void) {
+ startUpload(namespace: namespace, body: ApplicationClient.FileStorage.StartRequest(contentType: contentType, fileName: fileName, params: nil, size: data.count, tags: nil)) { (startResponse, error) in
guard let startResponse = startResponse else {
return onResponse(nil, error)
}
diff --git a/Sources/code/application/Models/Cart/AddCartCreationCartAppModel.swift b/Sources/code/application/Models/Cart/AddCartCreationCartAppModel.swift
deleted file mode 100644
index 4c4cba109d..0000000000
--- a/Sources/code/application/Models/Cart/AddCartCreationCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: AddCartCreation
- Used By: Cart
- */
- class AddCartCreation: Codable {
-
- public var items: [AddProductCart]?
-
- public var newCart: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case newCart = "new_cart"
-
- }
-
- public init(items: [AddProductCart]? = nil, newCart: Bool? = nil) {
-
- self.items = items
-
- self.newCart = newCart
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([AddProductCart].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- newCart = try container.decode(Bool.self, forKey: .newCart)
-
- } 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(newCart, forKey: .newCart)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/AddCartDetailResponseCartAppModel.swift b/Sources/code/application/Models/Cart/AddCartDetailResponseCartAppModel.swift
new file mode 100644
index 0000000000..cf869501db
--- /dev/null
+++ b/Sources/code/application/Models/Cart/AddCartDetailResponseCartAppModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: AddCartDetailResponse
+ Used By: Cart
+ */
+ class AddCartDetailResponse: Codable {
+
+ public var message: String?
+
+ public var partial: Bool?
+
+ public var cart: CartDetailResponse?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case partial = "partial"
+
+ case cart = "cart"
+
+ case success = "success"
+
+ }
+
+ public init(cart: CartDetailResponse? = nil, message: String? = nil, partial: Bool? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.partial = partial
+
+ self.cart = cart
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ partial = try container.decode(Bool.self, forKey: .partial)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cart = try container.decode(CartDetailResponse.self, forKey: .cart)
+
+ } 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(partial, forKey: .partial)
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/AddCartDetailResultCartAppModel.swift b/Sources/code/application/Models/Cart/AddCartDetailResultCartAppModel.swift
deleted file mode 100644
index 4ff1f21759..0000000000
--- a/Sources/code/application/Models/Cart/AddCartDetailResultCartAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: AddCartDetailResult
- Used By: Cart
- */
- class AddCartDetailResult: Codable {
-
- public var message: String?
-
- public var partial: Bool?
-
- public var cart: CartDetailResult?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case partial = "partial"
-
- case cart = "cart"
-
- case success = "success"
-
- }
-
- public init(cart: CartDetailResult? = nil, message: String? = nil, partial: Bool? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.partial = partial
-
- self.cart = cart
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- partial = try container.decode(Bool.self, forKey: .partial)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cart = try container.decode(CartDetailResult.self, forKey: .cart)
-
- } 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(partial, forKey: .partial)
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/AddCartRequestCartAppModel.swift b/Sources/code/application/Models/Cart/AddCartRequestCartAppModel.swift
new file mode 100644
index 0000000000..96683c2025
--- /dev/null
+++ b/Sources/code/application/Models/Cart/AddCartRequestCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: AddCartRequest
+ Used By: Cart
+ */
+ class AddCartRequest: Codable {
+
+ public var items: [AddProductCart]?
+
+ public var newCart: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case newCart = "new_cart"
+
+ }
+
+ public init(items: [AddProductCart]? = nil, newCart: Bool? = nil) {
+
+ self.items = items
+
+ self.newCart = newCart
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([AddProductCart].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ newCart = try container.decode(Bool.self, forKey: .newCart)
+
+ } 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(newCart, forKey: .newCart)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/ApplyCouponCartAppModel.swift b/Sources/code/application/Models/Cart/ApplyCouponCartAppModel.swift
deleted file mode 100644
index 927756f1b2..0000000000
--- a/Sources/code/application/Models/Cart/ApplyCouponCartAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ApplyCoupon
- Used By: Cart
- */
- class ApplyCoupon: Codable {
-
- public var couponCode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case couponCode = "coupon_code"
-
- }
-
- public init(couponCode: String) {
-
- self.couponCode = couponCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- couponCode = try container.decode(String.self, forKey: .couponCode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(couponCode, forKey: .couponCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/ApplyCouponRequestCartAppModel.swift b/Sources/code/application/Models/Cart/ApplyCouponRequestCartAppModel.swift
new file mode 100644
index 0000000000..4953ad50bb
--- /dev/null
+++ b/Sources/code/application/Models/Cart/ApplyCouponRequestCartAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: ApplyCouponRequest
+ Used By: Cart
+ */
+ class ApplyCouponRequest: Codable {
+
+ public var couponCode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case couponCode = "coupon_code"
+
+ }
+
+ public init(couponCode: String) {
+
+ self.couponCode = couponCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ couponCode = try container.decode(String.self, forKey: .couponCode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(couponCode, forKey: .couponCode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/ArticlePriceDetailsCartAppModel.swift b/Sources/code/application/Models/Cart/ArticlePriceDetailsCartAppModel.swift
deleted file mode 100644
index f76b5dba15..0000000000
--- a/Sources/code/application/Models/Cart/ArticlePriceDetailsCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ArticlePriceDetails
- Used By: Cart
- */
- class ArticlePriceDetails: Codable {
-
- public var marked: Double?
-
- public var effective: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case marked = "marked"
-
- case effective = "effective"
-
- }
-
- public init(effective: Double? = nil, marked: Double? = nil) {
-
- self.marked = marked
-
- self.effective = effective
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- marked = try container.decode(Double.self, forKey: .marked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- effective = try container.decode(Double.self, forKey: .effective)
-
- } 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(marked, forKey: .marked)
-
-
-
- try? container.encodeIfPresent(effective, forKey: .effective)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/BulkPriceResponseCartAppModel.swift b/Sources/code/application/Models/Cart/BulkPriceResponseCartAppModel.swift
new file mode 100644
index 0000000000..55b995b07d
--- /dev/null
+++ b/Sources/code/application/Models/Cart/BulkPriceResponseCartAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: BulkPriceResponse
+ Used By: Cart
+ */
+ class BulkPriceResponse: Codable {
+
+ public var data: [BulkPriceOffer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [BulkPriceOffer]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([BulkPriceOffer].self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/BulkPriceResultCartAppModel.swift b/Sources/code/application/Models/Cart/BulkPriceResultCartAppModel.swift
deleted file mode 100644
index 6153ea28ae..0000000000
--- a/Sources/code/application/Models/Cart/BulkPriceResultCartAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: BulkPriceResult
- Used By: Cart
- */
- class BulkPriceResult: Codable {
-
- public var data: [BulkPriceOffer]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [BulkPriceOffer]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([BulkPriceOffer].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutCustomMetaCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutCustomMetaCartAppModel.swift
deleted file mode 100644
index 3141abd6fc..0000000000
--- a/Sources/code/application/Models/Cart/CartCheckoutCustomMetaCartAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartCheckoutCustomMeta
- Used By: Cart
- */
- class CartCheckoutCustomMeta: Codable {
-
- public var key: String
-
- public var value: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case value = "value"
-
- }
-
- public init(key: String, value: String) {
-
- self.key = key
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(String.self, forKey: .key)
-
-
-
-
- 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(key, forKey: .key)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutDetailCreationCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutDetailCreationCartAppModel.swift
deleted file mode 100644
index 96ad3e52ea..0000000000
--- a/Sources/code/application/Models/Cart/CartCheckoutDetailCreationCartAppModel.swift
+++ /dev/null
@@ -1,552 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartCheckoutDetailCreation
- Used By: Cart
- */
- class CartCheckoutDetailCreation: Codable {
-
- public var customMeta: [CartCheckoutCustomMeta]?
-
- public var customerDetails: CustomerDetails?
-
- public var merchantCode: String?
-
- public var id: String?
-
- public var paymentAutoConfirm: Bool?
-
- public var paymentMode: String
-
- public var aggregator: String?
-
- public var addressId: String?
-
- public var callbackUrl: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var staff: StaffCheckout?
-
- public var orderType: String?
-
- public var orderingStore: Int?
-
- public var extraMeta: [String: Any]?
-
- public var paymentIdentifier: String?
-
- public var billingAddress: [String: Any]?
-
- public var paymentParams: [String: Any]?
-
- public var billingAddressId: String?
-
- public var meta: [String: Any]?
-
- public var paymentExtraIdentifiers: [String: Any]?
-
- public var iin: String?
-
- public var network: String?
-
- public var type: String?
-
- public var cardId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customMeta = "custom_meta"
-
- case customerDetails = "customer_details"
-
- case merchantCode = "merchant_code"
-
- case id = "id"
-
- case paymentAutoConfirm = "payment_auto_confirm"
-
- case paymentMode = "payment_mode"
-
- case aggregator = "aggregator"
-
- case addressId = "address_id"
-
- case callbackUrl = "callback_url"
-
- case deliveryAddress = "delivery_address"
-
- case staff = "staff"
-
- case orderType = "order_type"
-
- case orderingStore = "ordering_store"
-
- case extraMeta = "extra_meta"
-
- case paymentIdentifier = "payment_identifier"
-
- case billingAddress = "billing_address"
-
- case paymentParams = "payment_params"
-
- case billingAddressId = "billing_address_id"
-
- case meta = "meta"
-
- case paymentExtraIdentifiers = "payment_extra_identifiers"
-
- case iin = "iin"
-
- case network = "network"
-
- case type = "type"
-
- case cardId = "card_id"
-
- }
-
- public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, type: String? = nil) {
-
- self.customMeta = customMeta
-
- self.customerDetails = customerDetails
-
- self.merchantCode = merchantCode
-
- self.id = id
-
- self.paymentAutoConfirm = paymentAutoConfirm
-
- self.paymentMode = paymentMode
-
- self.aggregator = aggregator
-
- self.addressId = addressId
-
- self.callbackUrl = callbackUrl
-
- self.deliveryAddress = deliveryAddress
-
- self.staff = staff
-
- self.orderType = orderType
-
- self.orderingStore = orderingStore
-
- self.extraMeta = extraMeta
-
- self.paymentIdentifier = paymentIdentifier
-
- self.billingAddress = billingAddress
-
- self.paymentParams = paymentParams
-
- self.billingAddressId = billingAddressId
-
- self.meta = meta
-
- self.paymentExtraIdentifiers = paymentExtraIdentifiers
-
- self.iin = iin
-
- self.network = network
-
- self.type = type
-
- self.cardId = cardId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customMeta = try container.decode([CartCheckoutCustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staff = try container.decode(StaffCheckout.self, forKey: .staff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingStore = try container.decode(Int.self, forKey: .orderingStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- paymentExtraIdentifiers = try container.decode([String: Any].self, forKey: .paymentExtraIdentifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- iin = try container.decode(String.self, forKey: .iin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- network = try container.decode(String.self, forKey: .network)
-
- } 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 {
- cardId = try container.decode(String.self, forKey: .cardId)
-
- } 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(customMeta, forKey: .customMeta)
-
-
-
- try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(addressId, forKey: .addressId)
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
- try? container.encodeIfPresent(staff, forKey: .staff)
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
-
- try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
- try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(paymentExtraIdentifiers, forKey: .paymentExtraIdentifiers)
-
-
-
- try? container.encodeIfPresent(iin, forKey: .iin)
-
-
-
- try? container.encodeIfPresent(network, forKey: .network)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutDetailV2CreationCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutDetailV2CreationCartAppModel.swift
deleted file mode 100644
index e6b170cceb..0000000000
--- a/Sources/code/application/Models/Cart/CartCheckoutDetailV2CreationCartAppModel.swift
+++ /dev/null
@@ -1,567 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartCheckoutDetailV2Creation
- Used By: Cart
- */
- class CartCheckoutDetailV2Creation: Codable {
-
- public var customMeta: [CartCheckoutCustomMeta]?
-
- public var customerDetails: CustomerDetails?
-
- public var merchantCode: String?
-
- public var cartId: String?
-
- public var id: String?
-
- public var paymentAutoConfirm: Bool?
-
- public var paymentMethods: [PaymentMethod]
-
- public var paymentMode: String
-
- public var aggregator: String?
-
- public var addressId: String?
-
- public var callbackUrl: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var staff: StaffCheckout?
-
- public var orderType: String?
-
- public var orderingStore: Int?
-
- public var extraMeta: [String: Any]?
-
- public var paymentIdentifier: String?
-
- public var billingAddress: [String: Any]?
-
- public var paymentParams: [String: Any]?
-
- public var billingAddressId: String?
-
- public var meta: [String: Any]?
-
- public var iin: String?
-
- public var network: String?
-
- public var type: String?
-
- public var cardId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customMeta = "custom_meta"
-
- case customerDetails = "customer_details"
-
- case merchantCode = "merchant_code"
-
- case cartId = "cart_id"
-
- case id = "id"
-
- case paymentAutoConfirm = "payment_auto_confirm"
-
- case paymentMethods = "payment_methods"
-
- case paymentMode = "payment_mode"
-
- case aggregator = "aggregator"
-
- case addressId = "address_id"
-
- case callbackUrl = "callback_url"
-
- case deliveryAddress = "delivery_address"
-
- case staff = "staff"
-
- case orderType = "order_type"
-
- case orderingStore = "ordering_store"
-
- case extraMeta = "extra_meta"
-
- case paymentIdentifier = "payment_identifier"
-
- case billingAddress = "billing_address"
-
- case paymentParams = "payment_params"
-
- case billingAddressId = "billing_address_id"
-
- case meta = "meta"
-
- case iin = "iin"
-
- case network = "network"
-
- case type = "type"
-
- case cardId = "card_id"
-
- }
-
- public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, cartId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, type: String? = nil) {
-
- self.customMeta = customMeta
-
- self.customerDetails = customerDetails
-
- self.merchantCode = merchantCode
-
- self.cartId = cartId
-
- self.id = id
-
- self.paymentAutoConfirm = paymentAutoConfirm
-
- self.paymentMethods = paymentMethods
-
- self.paymentMode = paymentMode
-
- self.aggregator = aggregator
-
- self.addressId = addressId
-
- self.callbackUrl = callbackUrl
-
- self.deliveryAddress = deliveryAddress
-
- self.staff = staff
-
- self.orderType = orderType
-
- self.orderingStore = orderingStore
-
- self.extraMeta = extraMeta
-
- self.paymentIdentifier = paymentIdentifier
-
- self.billingAddress = billingAddress
-
- self.paymentParams = paymentParams
-
- self.billingAddressId = billingAddressId
-
- self.meta = meta
-
- self.iin = iin
-
- self.network = network
-
- self.type = type
-
- self.cardId = cardId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customMeta = try container.decode([CartCheckoutCustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cartId = try container.decode(String.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- paymentMethods = try container.decode([PaymentMethod].self, forKey: .paymentMethods)
-
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staff = try container.decode(StaffCheckout.self, forKey: .staff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingStore = try container.decode(Int.self, forKey: .orderingStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- iin = try container.decode(String.self, forKey: .iin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- network = try container.decode(String.self, forKey: .network)
-
- } 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 {
- cardId = try container.decode(String.self, forKey: .cardId)
-
- } 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(customMeta, forKey: .customMeta)
-
-
-
- try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
- try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(addressId, forKey: .addressId)
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
- try? container.encodeIfPresent(staff, forKey: .staff)
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
-
- try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
- try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(iin, forKey: .iin)
-
-
-
- try? container.encodeIfPresent(network, forKey: .network)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutDetailV2RequestCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutDetailV2RequestCartAppModel.swift
new file mode 100644
index 0000000000..2205bba105
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartCheckoutDetailV2RequestCartAppModel.swift
@@ -0,0 +1,567 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartCheckoutDetailV2Request
+ Used By: Cart
+ */
+ class CartCheckoutDetailV2Request: Codable {
+
+ public var customMeta: [String: Any]?
+
+ public var customerDetails: CustomerDetails?
+
+ public var merchantCode: String?
+
+ public var cartId: String?
+
+ public var id: String?
+
+ public var paymentAutoConfirm: Bool?
+
+ public var paymentMethods: [PaymentMethod]
+
+ public var paymentMode: String
+
+ public var aggregator: String?
+
+ public var addressId: String?
+
+ public var callbackUrl: String?
+
+ public var deliveryAddress: [String: Any]?
+
+ public var staff: StaffCheckout?
+
+ public var orderType: String?
+
+ public var orderingStore: Int?
+
+ public var extraMeta: [String: Any]?
+
+ public var paymentIdentifier: String?
+
+ public var billingAddress: [String: Any]?
+
+ public var paymentParams: [String: Any]?
+
+ public var billingAddressId: String?
+
+ public var meta: [String: Any]?
+
+ public var iin: String?
+
+ public var network: String?
+
+ public var type: String?
+
+ public var cardId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customMeta = "custom_meta"
+
+ case customerDetails = "customer_details"
+
+ case merchantCode = "merchant_code"
+
+ case cartId = "cart_id"
+
+ case id = "id"
+
+ case paymentAutoConfirm = "payment_auto_confirm"
+
+ case paymentMethods = "payment_methods"
+
+ case paymentMode = "payment_mode"
+
+ case aggregator = "aggregator"
+
+ case addressId = "address_id"
+
+ case callbackUrl = "callback_url"
+
+ case deliveryAddress = "delivery_address"
+
+ case staff = "staff"
+
+ case orderType = "order_type"
+
+ case orderingStore = "ordering_store"
+
+ case extraMeta = "extra_meta"
+
+ case paymentIdentifier = "payment_identifier"
+
+ case billingAddress = "billing_address"
+
+ case paymentParams = "payment_params"
+
+ case billingAddressId = "billing_address_id"
+
+ case meta = "meta"
+
+ case iin = "iin"
+
+ case network = "network"
+
+ case type = "type"
+
+ case cardId = "card_id"
+
+ }
+
+ public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, cartId: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, id: String? = nil, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil, type: String? = nil) {
+
+ self.customMeta = customMeta
+
+ self.customerDetails = customerDetails
+
+ self.merchantCode = merchantCode
+
+ self.cartId = cartId
+
+ self.id = id
+
+ self.paymentAutoConfirm = paymentAutoConfirm
+
+ self.paymentMethods = paymentMethods
+
+ self.paymentMode = paymentMode
+
+ self.aggregator = aggregator
+
+ self.addressId = addressId
+
+ self.callbackUrl = callbackUrl
+
+ self.deliveryAddress = deliveryAddress
+
+ self.staff = staff
+
+ self.orderType = orderType
+
+ self.orderingStore = orderingStore
+
+ self.extraMeta = extraMeta
+
+ self.paymentIdentifier = paymentIdentifier
+
+ self.billingAddress = billingAddress
+
+ self.paymentParams = paymentParams
+
+ self.billingAddressId = billingAddressId
+
+ self.meta = meta
+
+ self.iin = iin
+
+ self.network = network
+
+ self.type = type
+
+ self.cardId = cardId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ customMeta = try container.decode([String: Any].self, forKey: .customMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCode = try container.decode(String.self, forKey: .merchantCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cartId = try container.decode(String.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ paymentMethods = try container.decode([PaymentMethod].self, forKey: .paymentMethods)
+
+
+
+
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+
+
+
+ do {
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ addressId = try container.decode(String.self, forKey: .addressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ staff = try container.decode(StaffCheckout.self, forKey: .staff)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingStore = try container.decode(Int.self, forKey: .orderingStore)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ iin = try container.decode(String.self, forKey: .iin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ network = try container.decode(String.self, forKey: .network)
+
+ } 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 {
+ cardId = try container.decode(String.self, forKey: .cardId)
+
+ } 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(customMeta, forKey: .customMeta)
+
+
+
+ try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
+
+
+
+ try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
+
+
+
+ try? container.encodeIfPresent(cartId, forKey: .cartId)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(addressId, forKey: .addressId)
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+ try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
+
+
+
+ try? container.encodeIfPresent(staff, forKey: .staff)
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+ try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
+
+
+
+ try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
+
+
+
+ try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
+
+
+
+ try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
+
+
+
+ try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
+
+
+
+ try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+ try? container.encodeIfPresent(iin, forKey: .iin)
+
+
+
+ try? container.encodeIfPresent(network, forKey: .network)
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+ try? container.encodeIfPresent(cardId, forKey: .cardId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutResponseCartAppModel.swift
new file mode 100644
index 0000000000..eeb7474a16
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartCheckoutResponseCartAppModel.swift
@@ -0,0 +1,207 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartCheckoutResponse
+ Used By: Cart
+ */
+ class CartCheckoutResponse: Codable {
+
+ public var paymentConfirmUrl: String?
+
+ public var appInterceptUrl: String?
+
+ public var success: Bool?
+
+ public var callbackUrl: String?
+
+ public var message: String?
+
+ public var data: [String: Any]?
+
+ public var orderId: String?
+
+ public var cart: CheckCart?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ case appInterceptUrl = "app_intercept_url"
+
+ case success = "success"
+
+ case callbackUrl = "callback_url"
+
+ case message = "message"
+
+ case data = "data"
+
+ case orderId = "order_id"
+
+ case cart = "cart"
+
+ }
+
+ public init(appInterceptUrl: String? = nil, callbackUrl: String? = nil, cart: CheckCart? = nil, data: [String: Any]? = nil, message: String? = nil, orderId: String? = nil, paymentConfirmUrl: String? = nil, success: Bool? = nil) {
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ self.appInterceptUrl = appInterceptUrl
+
+ self.success = success
+
+ self.callbackUrl = callbackUrl
+
+ self.message = message
+
+ self.data = data
+
+ self.orderId = orderId
+
+ self.cart = cart
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appInterceptUrl = try container.decode(String.self, forKey: .appInterceptUrl)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cart = try container.decode(CheckCart.self, forKey: .cart)
+
+ } 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(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+
+ try? container.encodeIfPresent(appInterceptUrl, forKey: .appInterceptUrl)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartCheckoutResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartCheckoutResultCartAppModel.swift
deleted file mode 100644
index c1be6f2c05..0000000000
--- a/Sources/code/application/Models/Cart/CartCheckoutResultCartAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartCheckoutResult
- Used By: Cart
- */
- class CartCheckoutResult: Codable {
-
- public var paymentConfirmUrl: String?
-
- public var appInterceptUrl: String?
-
- public var success: Bool?
-
- public var callbackUrl: String?
-
- public var message: String?
-
- public var data: [String: Any]?
-
- public var orderId: String?
-
- public var cart: CheckCart?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case appInterceptUrl = "app_intercept_url"
-
- case success = "success"
-
- case callbackUrl = "callback_url"
-
- case message = "message"
-
- case data = "data"
-
- case orderId = "order_id"
-
- case cart = "cart"
-
- }
-
- public init(appInterceptUrl: String? = nil, callbackUrl: String? = nil, cart: CheckCart? = nil, data: [String: Any]? = nil, message: String? = nil, orderId: String? = nil, paymentConfirmUrl: String? = nil, success: Bool? = nil) {
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.appInterceptUrl = appInterceptUrl
-
- self.success = success
-
- self.callbackUrl = callbackUrl
-
- self.message = message
-
- self.data = data
-
- self.orderId = orderId
-
- self.cart = cart
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appInterceptUrl = try container.decode(String.self, forKey: .appInterceptUrl)
-
- } 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 {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cart = try container.decode(CheckCart.self, forKey: .cart)
-
- } 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(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
- try? container.encodeIfPresent(appInterceptUrl, forKey: .appInterceptUrl)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartDetailResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartDetailResponseCartAppModel.swift
new file mode 100644
index 0000000000..229f46b51a
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartDetailResponseCartAppModel.swift
@@ -0,0 +1,625 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartDetailResponse
+ Used By: Cart
+ */
+ class CartDetailResponse: Codable {
+
+ public var cartId: Int?
+
+ public var uid: String?
+
+ public var appliedPromoDetails: [AppliedPromotion]?
+
+ public var checkoutMode: String?
+
+ public var panNo: String?
+
+ public var isValid: Bool?
+
+ public var id: String?
+
+ public var paymentSelectionLock: PaymentSelectionLock?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var comment: String?
+
+ public var items: [CartProductInfo]?
+
+ public var deliveryChargeInfo: String?
+
+ public var commonConfig: CartCommonConfig?
+
+ public var coupon: CartDetailCoupon?
+
+ public var message: String?
+
+ public var notification: [String: Any]?
+
+ public var staffUserId: String?
+
+ public var success: Bool?
+
+ public var gstin: String?
+
+ public var restrictCheckout: Bool?
+
+ public var lastModified: String?
+
+ public var breakupValues: CartBreakup?
+
+ public var currency: CartCurrency?
+
+ public var couponText: String?
+
+ public var buyNow: Bool?
+
+ public var panConfig: [String: Any]?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartId = "cart_id"
+
+ case uid = "uid"
+
+ case appliedPromoDetails = "applied_promo_details"
+
+ case checkoutMode = "checkout_mode"
+
+ case panNo = "pan_no"
+
+ case isValid = "is_valid"
+
+ case id = "id"
+
+ case paymentSelectionLock = "payment_selection_lock"
+
+ case deliveryPromise = "delivery_promise"
+
+ case comment = "comment"
+
+ case items = "items"
+
+ case deliveryChargeInfo = "delivery_charge_info"
+
+ case commonConfig = "common_config"
+
+ case coupon = "coupon"
+
+ case message = "message"
+
+ case notification = "notification"
+
+ case staffUserId = "staff_user_id"
+
+ case success = "success"
+
+ case gstin = "gstin"
+
+ case restrictCheckout = "restrict_checkout"
+
+ case lastModified = "last_modified"
+
+ case breakupValues = "breakup_values"
+
+ case currency = "currency"
+
+ case couponText = "coupon_text"
+
+ case buyNow = "buy_now"
+
+ case panConfig = "pan_config"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, commonConfig: CartCommonConfig? = nil, coupon: CartDetailCoupon? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, notification: [String: Any]? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, staffUserId: String? = nil, success: Bool? = nil, uid: String? = nil) {
+
+ self.cartId = cartId
+
+ self.uid = uid
+
+ self.appliedPromoDetails = appliedPromoDetails
+
+ self.checkoutMode = checkoutMode
+
+ self.panNo = panNo
+
+ self.isValid = isValid
+
+ self.id = id
+
+ self.paymentSelectionLock = paymentSelectionLock
+
+ self.deliveryPromise = deliveryPromise
+
+ self.comment = comment
+
+ self.items = items
+
+ self.deliveryChargeInfo = deliveryChargeInfo
+
+ self.commonConfig = commonConfig
+
+ self.coupon = coupon
+
+ self.message = message
+
+ self.notification = notification
+
+ self.staffUserId = staffUserId
+
+ self.success = success
+
+ self.gstin = gstin
+
+ self.restrictCheckout = restrictCheckout
+
+ self.lastModified = lastModified
+
+ self.breakupValues = breakupValues
+
+ self.currency = currency
+
+ self.couponText = couponText
+
+ self.buyNow = buyNow
+
+ self.panConfig = panConfig
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cartId = try container.decode(Int.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panNo = try container.decode(String.self, forKey: .panNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ commonConfig = try container.decode(CartCommonConfig.self, forKey: .commonConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ coupon = try container.decode(CartDetailCoupon.self, forKey: .coupon)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ notification = try container.decode([String: Any].self, forKey: .notification)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ staffUserId = try container.decode(String.self, forKey: .staffUserId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lastModified = try container.decode(String.self, forKey: .lastModified)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(CartCurrency.self, forKey: .currency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ couponText = try container.decode(String.self, forKey: .couponText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ buyNow = try container.decode(Bool.self, forKey: .buyNow)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panConfig = try container.decode([String: Any].self, forKey: .panConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(cartId, forKey: .cartId)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+ try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+ try? container.encodeIfPresent(panNo, forKey: .panNo)
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
+
+
+
+ try? container.encodeIfPresent(commonConfig, forKey: .commonConfig)
+
+
+
+ try? container.encodeIfPresent(coupon, forKey: .coupon)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(notification, forKey: .notification)
+
+
+
+ try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+ try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
+
+
+
+ try? container.encodeIfPresent(lastModified, forKey: .lastModified)
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(couponText, forKey: .couponText)
+
+
+
+ try? container.encodeIfPresent(buyNow, forKey: .buyNow)
+
+
+
+ try? container.encodeIfPresent(panConfig, forKey: .panConfig)
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartDetailResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartDetailResultCartAppModel.swift
deleted file mode 100644
index 3eb27f149e..0000000000
--- a/Sources/code/application/Models/Cart/CartDetailResultCartAppModel.swift
+++ /dev/null
@@ -1,625 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartDetailResult
- Used By: Cart
- */
- class CartDetailResult: Codable {
-
- public var cartId: Int?
-
- public var uid: String?
-
- public var appliedPromoDetails: [AppliedPromotion]?
-
- public var checkoutMode: String?
-
- public var panNo: String?
-
- public var isValid: Bool?
-
- public var id: String?
-
- public var paymentSelectionLock: PaymentSelectionLock?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var comment: String?
-
- public var items: [CartProductInfo]?
-
- public var deliveryChargeInfo: String?
-
- public var commonConfig: CartCommonConfig?
-
- public var coupon: CartDetailCoupon?
-
- public var message: String?
-
- public var notification: [String: Any]?
-
- public var staffUserId: String?
-
- public var success: Bool?
-
- public var gstin: String?
-
- public var restrictCheckout: Bool?
-
- public var lastModified: String?
-
- public var breakupValues: CartBreakup?
-
- public var currency: CartCurrency?
-
- public var couponText: String?
-
- public var buyNow: Bool?
-
- public var panConfig: [String: Any]?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartId = "cart_id"
-
- case uid = "uid"
-
- case appliedPromoDetails = "applied_promo_details"
-
- case checkoutMode = "checkout_mode"
-
- case panNo = "pan_no"
-
- case isValid = "is_valid"
-
- case id = "id"
-
- case paymentSelectionLock = "payment_selection_lock"
-
- case deliveryPromise = "delivery_promise"
-
- case comment = "comment"
-
- case items = "items"
-
- case deliveryChargeInfo = "delivery_charge_info"
-
- case commonConfig = "common_config"
-
- case coupon = "coupon"
-
- case message = "message"
-
- case notification = "notification"
-
- case staffUserId = "staff_user_id"
-
- case success = "success"
-
- case gstin = "gstin"
-
- case restrictCheckout = "restrict_checkout"
-
- case lastModified = "last_modified"
-
- case breakupValues = "breakup_values"
-
- case currency = "currency"
-
- case couponText = "coupon_text"
-
- case buyNow = "buy_now"
-
- case panConfig = "pan_config"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, commonConfig: CartCommonConfig? = nil, coupon: CartDetailCoupon? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, notification: [String: Any]? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, staffUserId: String? = nil, success: Bool? = nil, uid: String? = nil) {
-
- self.cartId = cartId
-
- self.uid = uid
-
- self.appliedPromoDetails = appliedPromoDetails
-
- self.checkoutMode = checkoutMode
-
- self.panNo = panNo
-
- self.isValid = isValid
-
- self.id = id
-
- self.paymentSelectionLock = paymentSelectionLock
-
- self.deliveryPromise = deliveryPromise
-
- self.comment = comment
-
- self.items = items
-
- self.deliveryChargeInfo = deliveryChargeInfo
-
- self.commonConfig = commonConfig
-
- self.coupon = coupon
-
- self.message = message
-
- self.notification = notification
-
- self.staffUserId = staffUserId
-
- self.success = success
-
- self.gstin = gstin
-
- self.restrictCheckout = restrictCheckout
-
- self.lastModified = lastModified
-
- self.breakupValues = breakupValues
-
- self.currency = currency
-
- self.couponText = couponText
-
- self.buyNow = buyNow
-
- self.panConfig = panConfig
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cartId = try container.decode(Int.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panNo = try container.decode(String.self, forKey: .panNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- commonConfig = try container.decode(CartCommonConfig.self, forKey: .commonConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- coupon = try container.decode(CartDetailCoupon.self, forKey: .coupon)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- notification = try container.decode([String: Any].self, forKey: .notification)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staffUserId = try container.decode(String.self, forKey: .staffUserId)
-
- } 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 {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastModified = try container.decode(String.self, forKey: .lastModified)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CartCurrency.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponText = try container.decode(String.self, forKey: .couponText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- buyNow = try container.decode(Bool.self, forKey: .buyNow)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panConfig = try container.decode([String: Any].self, forKey: .panConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(cartId, forKey: .cartId)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
- try? container.encodeIfPresent(panNo, forKey: .panNo)
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
-
-
-
- try? container.encodeIfPresent(commonConfig, forKey: .commonConfig)
-
-
-
- try? container.encodeIfPresent(coupon, forKey: .coupon)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(notification, forKey: .notification)
-
-
-
- try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
- try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
-
-
-
- try? container.encodeIfPresent(lastModified, forKey: .lastModified)
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(couponText, forKey: .couponText)
-
-
-
- try? container.encodeIfPresent(buyNow, forKey: .buyNow)
-
-
-
- try? container.encodeIfPresent(panConfig, forKey: .panConfig)
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartItemCountResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartItemCountResponseCartAppModel.swift
new file mode 100644
index 0000000000..53624a43c8
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartItemCountResponseCartAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartItemCountResponse
+ Used By: Cart
+ */
+ class CartItemCountResponse: Codable {
+
+ public var userCartItemsCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userCartItemsCount = "user_cart_items_count"
+
+ }
+
+ public init(userCartItemsCount: Int? = nil) {
+
+ self.userCartItemsCount = userCartItemsCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ userCartItemsCount = try container.decode(Int.self, forKey: .userCartItemsCount)
+
+ } 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(userCartItemsCount, forKey: .userCartItemsCount)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartItemCountResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartItemCountResultCartAppModel.swift
deleted file mode 100644
index 0dc57ab99c..0000000000
--- a/Sources/code/application/Models/Cart/CartItemCountResultCartAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartItemCountResult
- Used By: Cart
- */
- class CartItemCountResult: Codable {
-
- public var userCartItemsCount: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userCartItemsCount = "user_cart_items_count"
-
- }
-
- public init(userCartItemsCount: Int? = nil) {
-
- self.userCartItemsCount = userCartItemsCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- userCartItemsCount = try container.decode(Int.self, forKey: .userCartItemsCount)
-
- } 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(userCartItemsCount, forKey: .userCartItemsCount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartMetaCreationCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaCreationCartAppModel.swift
deleted file mode 100644
index 0ab3e2a519..0000000000
--- a/Sources/code/application/Models/Cart/CartMetaCreationCartAppModel.swift
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartMetaCreation
- Used By: Cart
- */
- class CartMetaCreation: Codable {
-
- public var deliverySlots: [String: Any]?
-
- public var giftDetails: ArticleGiftDetail?
-
- public var pickUpCustomerDetails: [String: Any]?
-
- public var checkoutMode: String?
-
- public var comment: String?
-
- public var gstin: String?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case deliverySlots = "delivery_slots"
-
- case giftDetails = "gift_details"
-
- case pickUpCustomerDetails = "pick_up_customer_details"
-
- case checkoutMode = "checkout_mode"
-
- case comment = "comment"
-
- case gstin = "gstin"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(checkoutMode: String? = nil, comment: String? = nil, customCartMeta: [String: Any]? = nil, deliverySlots: [String: Any]? = nil, giftDetails: ArticleGiftDetail? = nil, gstin: String? = nil, pickUpCustomerDetails: [String: Any]? = nil) {
-
- self.deliverySlots = deliverySlots
-
- self.giftDetails = giftDetails
-
- self.pickUpCustomerDetails = pickUpCustomerDetails
-
- self.checkoutMode = checkoutMode
-
- self.comment = comment
-
- self.gstin = gstin
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- deliverySlots = try container.decode([String: Any].self, forKey: .deliverySlots)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- giftDetails = try container.decode(ArticleGiftDetail.self, forKey: .giftDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pickUpCustomerDetails = try container.decode([String: Any].self, forKey: .pickUpCustomerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(deliverySlots, forKey: .deliverySlots)
-
-
-
- try? container.encodeIfPresent(giftDetails, forKey: .giftDetails)
-
-
-
- try? container.encodeIfPresent(pickUpCustomerDetails, forKey: .pickUpCustomerDetails)
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartMetaMissingResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaMissingResponseCartAppModel.swift
new file mode 100644
index 0000000000..162b84bc10
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartMetaMissingResponseCartAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartMetaMissingResponse
+ Used By: Cart
+ */
+ class CartMetaMissingResponse: Codable {
+
+ public var errors: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case errors = "errors"
+
+ }
+
+ public init(errors: [String]? = nil) {
+
+ self.errors = errors
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ errors = try container.decode([String].self, forKey: .errors)
+
+ } 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(errors, forKey: .errors)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartMetaMissingResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaMissingResultCartAppModel.swift
deleted file mode 100644
index 0db15353ad..0000000000
--- a/Sources/code/application/Models/Cart/CartMetaMissingResultCartAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartMetaMissingResult
- Used By: Cart
- */
- class CartMetaMissingResult: Codable {
-
- public var errors: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [String]? = nil) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- errors = try container.decode([String].self, forKey: .errors)
-
- } 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(errors, forKey: .errors)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartMetaRequestCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaRequestCartAppModel.swift
new file mode 100644
index 0000000000..ecc2e91854
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartMetaRequestCartAppModel.swift
@@ -0,0 +1,185 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartMetaRequest
+ Used By: Cart
+ */
+ class CartMetaRequest: Codable {
+
+ public var deliverySlots: [String: Any]?
+
+ public var giftDetails: ArticleGiftDetail?
+
+ public var pickUpCustomerDetails: [String: Any]?
+
+ public var checkoutMode: String?
+
+ public var comment: String?
+
+ public var gstin: String?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case deliverySlots = "delivery_slots"
+
+ case giftDetails = "gift_details"
+
+ case pickUpCustomerDetails = "pick_up_customer_details"
+
+ case checkoutMode = "checkout_mode"
+
+ case comment = "comment"
+
+ case gstin = "gstin"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(checkoutMode: String? = nil, comment: String? = nil, customCartMeta: [String: Any]? = nil, deliverySlots: [String: Any]? = nil, giftDetails: ArticleGiftDetail? = nil, gstin: String? = nil, pickUpCustomerDetails: [String: Any]? = nil) {
+
+ self.deliverySlots = deliverySlots
+
+ self.giftDetails = giftDetails
+
+ self.pickUpCustomerDetails = pickUpCustomerDetails
+
+ self.checkoutMode = checkoutMode
+
+ self.comment = comment
+
+ self.gstin = gstin
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ deliverySlots = try container.decode([String: Any].self, forKey: .deliverySlots)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ giftDetails = try container.decode(ArticleGiftDetail.self, forKey: .giftDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pickUpCustomerDetails = try container.decode([String: Any].self, forKey: .pickUpCustomerDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(deliverySlots, forKey: .deliverySlots)
+
+
+
+ try? container.encodeIfPresent(giftDetails, forKey: .giftDetails)
+
+
+
+ try? container.encodeIfPresent(pickUpCustomerDetails, forKey: .pickUpCustomerDetails)
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartMetaResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaResponseCartAppModel.swift
new file mode 100644
index 0000000000..b18ad9431f
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartMetaResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartMetaResponse
+ Used By: Cart
+ */
+ class CartMetaResponse: Codable {
+
+ public var message: String?
+
+ public var isValid: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case isValid = "is_valid"
+
+ }
+
+ public init(isValid: Bool? = nil, message: String? = nil) {
+
+ self.message = message
+
+ self.isValid = isValid
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartMetaResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartMetaResultCartAppModel.swift
deleted file mode 100644
index 89c8f4b384..0000000000
--- a/Sources/code/application/Models/Cart/CartMetaResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartMetaResult
- Used By: Cart
- */
- class CartMetaResult: Codable {
-
- public var message: String?
-
- public var isValid: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case isValid = "is_valid"
-
- }
-
- public init(isValid: Bool? = nil, message: String? = nil) {
-
- self.message = message
-
- self.isValid = isValid
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CartShipmentsResponseCartAppModel.swift b/Sources/code/application/Models/Cart/CartShipmentsResponseCartAppModel.swift
new file mode 100644
index 0000000000..8a22110fdb
--- /dev/null
+++ b/Sources/code/application/Models/Cart/CartShipmentsResponseCartAppModel.swift
@@ -0,0 +1,471 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: CartShipmentsResponse
+ Used By: Cart
+ */
+ class CartShipmentsResponse: Codable {
+
+ public var deliveryChargeInfo: String?
+
+ public var checkoutMode: String?
+
+ public var message: String?
+
+ public var gstin: String?
+
+ public var restrictCheckout: Bool?
+
+ public var lastModified: String?
+
+ public var cartId: Int?
+
+ public var isValid: Bool?
+
+ public var breakupValues: CartBreakup?
+
+ public var currency: CartCurrency?
+
+ public var id: String?
+
+ public var shipments: [ShipmentResponse]?
+
+ public var paymentSelectionLock: PaymentSelectionLock?
+
+ public var couponText: String?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var error: Bool?
+
+ public var comment: String?
+
+ public var buyNow: Bool?
+
+ public var uid: String?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case deliveryChargeInfo = "delivery_charge_info"
+
+ case checkoutMode = "checkout_mode"
+
+ case message = "message"
+
+ case gstin = "gstin"
+
+ case restrictCheckout = "restrict_checkout"
+
+ case lastModified = "last_modified"
+
+ case cartId = "cart_id"
+
+ case isValid = "is_valid"
+
+ case breakupValues = "breakup_values"
+
+ case currency = "currency"
+
+ case id = "id"
+
+ case shipments = "shipments"
+
+ case paymentSelectionLock = "payment_selection_lock"
+
+ case couponText = "coupon_text"
+
+ case deliveryPromise = "delivery_promise"
+
+ case error = "error"
+
+ case comment = "comment"
+
+ case buyNow = "buy_now"
+
+ case uid = "uid"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, error: Bool? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, lastModified: String? = nil, message: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, shipments: [ShipmentResponse]? = nil, uid: String? = nil) {
+
+ self.deliveryChargeInfo = deliveryChargeInfo
+
+ self.checkoutMode = checkoutMode
+
+ self.message = message
+
+ self.gstin = gstin
+
+ self.restrictCheckout = restrictCheckout
+
+ self.lastModified = lastModified
+
+ self.cartId = cartId
+
+ self.isValid = isValid
+
+ self.breakupValues = breakupValues
+
+ self.currency = currency
+
+ self.id = id
+
+ self.shipments = shipments
+
+ self.paymentSelectionLock = paymentSelectionLock
+
+ self.couponText = couponText
+
+ self.deliveryPromise = deliveryPromise
+
+ self.error = error
+
+ self.comment = comment
+
+ self.buyNow = buyNow
+
+ self.uid = uid
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lastModified = try container.decode(String.self, forKey: .lastModified)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cartId = try container.decode(Int.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(CartCurrency.self, forKey: .currency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ shipments = try container.decode([ShipmentResponse].self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ couponText = try container.decode(String.self, forKey: .couponText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(Bool.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ buyNow = try container.decode(Bool.self, forKey: .buyNow)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(deliveryChargeInfo, forKey: .deliveryChargeInfo)
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+ try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
+
+
+
+ try? container.encodeIfPresent(lastModified, forKey: .lastModified)
+
+
+
+ try? container.encodeIfPresent(cartId, forKey: .cartId)
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+
+ try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
+
+
+
+ try? container.encodeIfPresent(couponText, forKey: .couponText)
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+ try? container.encodeIfPresent(buyNow, forKey: .buyNow)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/CartShipmentsResultCartAppModel.swift b/Sources/code/application/Models/Cart/CartShipmentsResultCartAppModel.swift
deleted file mode 100644
index 8b412aecb9..0000000000
--- a/Sources/code/application/Models/Cart/CartShipmentsResultCartAppModel.swift
+++ /dev/null
@@ -1,471 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: CartShipmentsResult
- Used By: Cart
- */
- class CartShipmentsResult: Codable {
-
- public var deliveryChargeInfo: String?
-
- public var checkoutMode: String?
-
- public var message: String?
-
- public var gstin: String?
-
- public var restrictCheckout: Bool?
-
- public var lastModified: String?
-
- public var cartId: Int?
-
- public var isValid: Bool?
-
- public var breakupValues: CartBreakup?
-
- public var currency: CartCurrency?
-
- public var id: String?
-
- public var shipments: [ShipmentResult]?
-
- public var paymentSelectionLock: PaymentSelectionLock?
-
- public var couponText: String?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var error: Bool?
-
- public var comment: String?
-
- public var buyNow: Bool?
-
- public var uid: String?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case deliveryChargeInfo = "delivery_charge_info"
-
- case checkoutMode = "checkout_mode"
-
- case message = "message"
-
- case gstin = "gstin"
-
- case restrictCheckout = "restrict_checkout"
-
- case lastModified = "last_modified"
-
- case cartId = "cart_id"
-
- case isValid = "is_valid"
-
- case breakupValues = "breakup_values"
-
- case currency = "currency"
-
- case id = "id"
-
- case shipments = "shipments"
-
- case paymentSelectionLock = "payment_selection_lock"
-
- case couponText = "coupon_text"
-
- case deliveryPromise = "delivery_promise"
-
- case error = "error"
-
- case comment = "comment"
-
- case buyNow = "buy_now"
-
- case uid = "uid"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, error: Bool? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, lastModified: String? = nil, message: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, shipments: [ShipmentResult]? = nil, uid: String? = nil) {
-
- self.deliveryChargeInfo = deliveryChargeInfo
-
- self.checkoutMode = checkoutMode
-
- self.message = message
-
- self.gstin = gstin
-
- self.restrictCheckout = restrictCheckout
-
- self.lastModified = lastModified
-
- self.cartId = cartId
-
- self.isValid = isValid
-
- self.breakupValues = breakupValues
-
- self.currency = currency
-
- self.id = id
-
- self.shipments = shipments
-
- self.paymentSelectionLock = paymentSelectionLock
-
- self.couponText = couponText
-
- self.deliveryPromise = deliveryPromise
-
- self.error = error
-
- self.comment = comment
-
- self.buyNow = buyNow
-
- self.uid = uid
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastModified = try container.decode(String.self, forKey: .lastModified)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cartId = try container.decode(Int.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CartCurrency.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- shipments = try container.decode([ShipmentResult].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponText = try container.decode(String.self, forKey: .couponText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(Bool.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- buyNow = try container.decode(Bool.self, forKey: .buyNow)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(deliveryChargeInfo, forKey: .deliveryChargeInfo)
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
- try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
-
-
-
- try? container.encodeIfPresent(lastModified, forKey: .lastModified)
-
-
-
- try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
- try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
-
-
-
- try? container.encodeIfPresent(couponText, forKey: .couponText)
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
- try? container.encodeIfPresent(buyNow, forKey: .buyNow)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/CouponValidityCartAppModel.swift b/Sources/code/application/Models/Cart/CouponValidityCartAppModel.swift
index 249acab5f1..8c85745a4e 100644
--- a/Sources/code/application/Models/Cart/CouponValidityCartAppModel.swift
+++ b/Sources/code/application/Models/Cart/CouponValidityCartAppModel.swift
@@ -20,8 +20,6 @@ public extension ApplicationClient.Cart {
public var code: String?
- public var errorEn: String?
-
public enum CodingKeys: String, CodingKey {
@@ -37,11 +35,9 @@ public extension ApplicationClient.Cart {
case code = "code"
- case errorEn = "error_en"
-
}
- public init(code: String? = nil, discount: Double? = nil, displayMessageEn: String? = nil, errorEn: String? = nil, nextValidationRequired: Bool? = nil, title: String? = nil, valid: Bool? = nil) {
+ public init(code: String? = nil, discount: Double? = nil, displayMessageEn: String? = nil, nextValidationRequired: Bool? = nil, title: String? = nil, valid: Bool? = nil) {
self.title = title
@@ -55,8 +51,6 @@ public extension ApplicationClient.Cart {
self.code = code
- self.errorEn = errorEn
-
}
required public init(from decoder: Decoder) throws {
@@ -134,18 +128,6 @@ public extension ApplicationClient.Cart {
}
-
- do {
- errorEn = try container.decode(String.self, forKey: .errorEn)
-
- } 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 {
@@ -175,10 +157,6 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(code, forKey: .code)
-
- try? container.encodeIfPresent(errorEn, forKey: .errorEn)
-
-
}
}
diff --git a/Sources/code/application/Models/Cart/DeleteAddressResponseCartAppModel.swift b/Sources/code/application/Models/Cart/DeleteAddressResponseCartAppModel.swift
new file mode 100644
index 0000000000..9f15cd4b47
--- /dev/null
+++ b/Sources/code/application/Models/Cart/DeleteAddressResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: DeleteAddressResponse
+ Used By: Cart
+ */
+ class DeleteAddressResponse: Codable {
+
+ public var id: String?
+
+ public var isDeleted: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case isDeleted = "is_deleted"
+
+ }
+
+ public init(id: String? = nil, isDeleted: Bool? = nil) {
+
+ self.id = id
+
+ self.isDeleted = isDeleted
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/DeleteAddressResultCartAppModel.swift b/Sources/code/application/Models/Cart/DeleteAddressResultCartAppModel.swift
deleted file mode 100644
index cadd592a3e..0000000000
--- a/Sources/code/application/Models/Cart/DeleteAddressResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: DeleteAddressResult
- Used By: Cart
- */
- class DeleteAddressResult: Codable {
-
- public var id: String?
-
- public var isDeleted: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case isDeleted = "is_deleted"
-
- }
-
- public init(id: String? = nil, isDeleted: Bool? = nil) {
-
- self.id = id
-
- self.isDeleted = isDeleted
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/DeleteCartDetailResponseCartAppModel.swift b/Sources/code/application/Models/Cart/DeleteCartDetailResponseCartAppModel.swift
new file mode 100644
index 0000000000..97d3f794b5
--- /dev/null
+++ b/Sources/code/application/Models/Cart/DeleteCartDetailResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: DeleteCartDetailResponse
+ Used By: Cart
+ */
+ class DeleteCartDetailResponse: Codable {
+
+ public var message: String?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/DeleteCartDetailResultCartAppModel.swift b/Sources/code/application/Models/Cart/DeleteCartDetailResultCartAppModel.swift
deleted file mode 100644
index 9ab731f074..0000000000
--- a/Sources/code/application/Models/Cart/DeleteCartDetailResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: DeleteCartDetailResult
- Used By: Cart
- */
- class DeleteCartDetailResult: Codable {
-
- public var message: String?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/FreeGiftItemCartAppModel.swift b/Sources/code/application/Models/Cart/FreeGiftItemCartAppModel.swift
deleted file mode 100644
index 77839b0d4f..0000000000
--- a/Sources/code/application/Models/Cart/FreeGiftItemCartAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: FreeGiftItem
- Used By: Cart
- */
- class FreeGiftItem: Codable {
-
- public var itemSlug: String?
-
- public var itemName: String?
-
- public var itemPriceDetails: [String: Any]?
-
- public var itemBrandName: String?
-
- public var itemId: Int?
-
- public var itemImagesUrl: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemSlug = "item_slug"
-
- case itemName = "item_name"
-
- case itemPriceDetails = "item_price_details"
-
- case itemBrandName = "item_brand_name"
-
- case itemId = "item_id"
-
- case itemImagesUrl = "item_images_url"
-
- }
-
- public init(itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: [String: Any]? = nil, itemSlug: String? = nil) {
-
- self.itemSlug = itemSlug
-
- self.itemName = itemName
-
- self.itemPriceDetails = itemPriceDetails
-
- self.itemBrandName = itemBrandName
-
- self.itemId = itemId
-
- self.itemImagesUrl = itemImagesUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- itemSlug = try container.decode(String.self, forKey: .itemSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemName = try container.decode(String.self, forKey: .itemName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemPriceDetails = try container.decode([String: Any].self, forKey: .itemPriceDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemBrandName = try container.decode(String.self, forKey: .itemBrandName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemImagesUrl = try container.decode([String].self, forKey: .itemImagesUrl)
-
- } 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(itemSlug, forKey: .itemSlug)
-
-
-
- try? container.encodeIfPresent(itemName, forKey: .itemName)
-
-
-
- try? container.encodeIfPresent(itemPriceDetails, forKey: .itemPriceDetails)
-
-
-
- try? container.encodeIfPresent(itemBrandName, forKey: .itemBrandName)
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
- try? container.encodeIfPresent(itemImagesUrl, forKey: .itemImagesUrl)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/FreeGiftItemCreationCartAppModel.swift b/Sources/code/application/Models/Cart/FreeGiftItemCreationCartAppModel.swift
deleted file mode 100644
index 5de203d73c..0000000000
--- a/Sources/code/application/Models/Cart/FreeGiftItemCreationCartAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: FreeGiftItemCreation
- Used By: Cart
- */
- class FreeGiftItemCreation: Codable {
-
- public var promotionId: String
-
- public var itemId: String
-
- public var itemSize: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case promotionId = "promotion_id"
-
- case itemId = "item_id"
-
- case itemSize = "item_size"
-
- }
-
- public init(itemId: String, itemSize: String, promotionId: String) {
-
- self.promotionId = promotionId
-
- self.itemId = itemId
-
- self.itemSize = itemSize
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- promotionId = try container.decode(String.self, forKey: .promotionId)
-
-
-
-
- itemId = try container.decode(String.self, forKey: .itemId)
-
-
-
-
- itemSize = try container.decode(String.self, forKey: .itemSize)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(promotionId, forKey: .promotionId)
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
- try? container.encodeIfPresent(itemSize, forKey: .itemSize)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/FreeGiftItemsCartAppModel.swift b/Sources/code/application/Models/Cart/FreeGiftItemsCartAppModel.swift
index 3c2ab69406..dc520d2e54 100644
--- a/Sources/code/application/Models/Cart/FreeGiftItemsCartAppModel.swift
+++ b/Sources/code/application/Models/Cart/FreeGiftItemsCartAppModel.swift
@@ -14,16 +14,10 @@ public extension ApplicationClient.Cart {
public var itemPriceDetails: ItemPriceDetails?
- public var articlePrice: ArticlePriceDetails?
-
public var itemBrandName: String?
public var itemId: Int?
- public var availableSizes: [String]?
-
- public var size: String?
-
public var itemImagesUrl: [String]?
@@ -35,21 +29,15 @@ public extension ApplicationClient.Cart {
case itemPriceDetails = "item_price_details"
- case articlePrice = "article_price"
-
case itemBrandName = "item_brand_name"
case itemId = "item_id"
- case availableSizes = "available_sizes"
-
- case size = "size"
-
case itemImagesUrl = "item_images_url"
}
- public init(articlePrice: ArticlePriceDetails? = nil, availableSizes: [String]? = nil, itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil, size: String? = nil) {
+ public init(itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil) {
self.itemSlug = itemSlug
@@ -57,16 +45,10 @@ public extension ApplicationClient.Cart {
self.itemPriceDetails = itemPriceDetails
- self.articlePrice = articlePrice
-
self.itemBrandName = itemBrandName
self.itemId = itemId
- self.availableSizes = availableSizes
-
- self.size = size
-
self.itemImagesUrl = itemImagesUrl
}
@@ -111,18 +93,6 @@ public extension ApplicationClient.Cart {
- do {
- articlePrice = try container.decode(ArticlePriceDetails.self, forKey: .articlePrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
itemBrandName = try container.decode(String.self, forKey: .itemBrandName)
@@ -147,30 +117,6 @@ public extension ApplicationClient.Cart {
- do {
- availableSizes = try container.decode([String].self, forKey: .availableSizes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
do {
itemImagesUrl = try container.decode([String].self, forKey: .itemImagesUrl)
@@ -200,10 +146,6 @@ public extension ApplicationClient.Cart {
- try? container.encodeIfPresent(articlePrice, forKey: .articlePrice)
-
-
-
try? container.encodeIfPresent(itemBrandName, forKey: .itemBrandName)
@@ -212,14 +154,6 @@ public extension ApplicationClient.Cart {
- try? container.encodeIfPresent(availableSizes, forKey: .availableSizes)
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
try? container.encodeIfPresent(itemImagesUrl, forKey: .itemImagesUrl)
diff --git a/Sources/code/application/Models/Cart/GetAddressesResponseCartAppModel.swift b/Sources/code/application/Models/Cart/GetAddressesResponseCartAppModel.swift
new file mode 100644
index 0000000000..7d8bdd2b47
--- /dev/null
+++ b/Sources/code/application/Models/Cart/GetAddressesResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: GetAddressesResponse
+ Used By: Cart
+ */
+ class GetAddressesResponse: Codable {
+
+ public var piiMasking: Bool?
+
+ public var address: [Address]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case piiMasking = "pii_masking"
+
+ case address = "address"
+
+ }
+
+ public init(address: [Address]? = nil, piiMasking: Bool? = nil) {
+
+ self.piiMasking = piiMasking
+
+ self.address = address
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ piiMasking = try container.decode(Bool.self, forKey: .piiMasking)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ address = try container.decode([Address].self, forKey: .address)
+
+ } 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(piiMasking, forKey: .piiMasking)
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/GetAddressesResultCartAppModel.swift b/Sources/code/application/Models/Cart/GetAddressesResultCartAppModel.swift
deleted file mode 100644
index 90186b4c8a..0000000000
--- a/Sources/code/application/Models/Cart/GetAddressesResultCartAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: GetAddressesResult
- Used By: Cart
- */
- class GetAddressesResult: Codable {
-
- public var piiMasking: Bool?
-
- public var address: [Address]?
-
- public var validationConfig: ValidationConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case piiMasking = "pii_masking"
-
- case address = "address"
-
- case validationConfig = "validation_config"
-
- }
-
- public init(address: [Address]? = nil, piiMasking: Bool? = nil, validationConfig: ValidationConfig? = nil) {
-
- self.piiMasking = piiMasking
-
- self.address = address
-
- self.validationConfig = validationConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- piiMasking = try container.decode(Bool.self, forKey: .piiMasking)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode([Address].self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- validationConfig = try container.decode(ValidationConfig.self, forKey: .validationConfig)
-
- } 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(piiMasking, forKey: .piiMasking)
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
- try? container.encodeIfPresent(validationConfig, forKey: .validationConfig)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/GetCouponResponseCartAppModel.swift b/Sources/code/application/Models/Cart/GetCouponResponseCartAppModel.swift
new file mode 100644
index 0000000000..dfec7d50fc
--- /dev/null
+++ b/Sources/code/application/Models/Cart/GetCouponResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: GetCouponResponse
+ Used By: Cart
+ */
+ class GetCouponResponse: Codable {
+
+ public var page: PageCoupon?
+
+ public var availableCouponList: [Coupon]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case availableCouponList = "available_coupon_list"
+
+ }
+
+ public init(availableCouponList: [Coupon]? = nil, page: PageCoupon? = nil) {
+
+ self.page = page
+
+ self.availableCouponList = availableCouponList
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ page = try container.decode(PageCoupon.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ availableCouponList = try container.decode([Coupon].self, forKey: .availableCouponList)
+
+ } 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(page, forKey: .page)
+
+
+
+ try? container.encodeIfPresent(availableCouponList, forKey: .availableCouponList)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/GetCouponResultCartAppModel.swift b/Sources/code/application/Models/Cart/GetCouponResultCartAppModel.swift
deleted file mode 100644
index 8b71ac67e8..0000000000
--- a/Sources/code/application/Models/Cart/GetCouponResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: GetCouponResult
- Used By: Cart
- */
- class GetCouponResult: Codable {
-
- public var page: PageCoupon?
-
- public var availableCouponList: [Coupon]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case availableCouponList = "available_coupon_list"
-
- }
-
- public init(availableCouponList: [Coupon]? = nil, page: PageCoupon? = nil) {
-
- self.page = page
-
- self.availableCouponList = availableCouponList
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(PageCoupon.self, forKey: .page)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- availableCouponList = try container.decode([Coupon].self, forKey: .availableCouponList)
-
- } 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(page, forKey: .page)
-
-
-
- try? container.encodeIfPresent(availableCouponList, forKey: .availableCouponList)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/GetShareCartLinkCreationCartAppModel.swift b/Sources/code/application/Models/Cart/GetShareCartLinkCreationCartAppModel.swift
deleted file mode 100644
index 50da7d16d9..0000000000
--- a/Sources/code/application/Models/Cart/GetShareCartLinkCreationCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: GetShareCartLinkCreation
- Used By: Cart
- */
- class GetShareCartLinkCreation: Codable {
-
- public var id: String?
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case meta = "meta"
-
- }
-
- public init(id: String? = nil, meta: [String: Any]? = nil) {
-
- self.id = id
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/GetShareCartLinkRequestCartAppModel.swift b/Sources/code/application/Models/Cart/GetShareCartLinkRequestCartAppModel.swift
new file mode 100644
index 0000000000..1c77581c11
--- /dev/null
+++ b/Sources/code/application/Models/Cart/GetShareCartLinkRequestCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: GetShareCartLinkRequest
+ Used By: Cart
+ */
+ class GetShareCartLinkRequest: Codable {
+
+ public var id: String?
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case meta = "meta"
+
+ }
+
+ public init(id: String? = nil, meta: [String: Any]? = nil) {
+
+ self.id = id
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/GetShareCartLinkResponseCartAppModel.swift b/Sources/code/application/Models/Cart/GetShareCartLinkResponseCartAppModel.swift
new file mode 100644
index 0000000000..c9b97e778c
--- /dev/null
+++ b/Sources/code/application/Models/Cart/GetShareCartLinkResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: GetShareCartLinkResponse
+ Used By: Cart
+ */
+ class GetShareCartLinkResponse: Codable {
+
+ public var token: String?
+
+ public var shareUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case token = "token"
+
+ case shareUrl = "share_url"
+
+ }
+
+ public init(shareUrl: String? = nil, token: String? = nil) {
+
+ self.token = token
+
+ self.shareUrl = shareUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ token = try container.decode(String.self, forKey: .token)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shareUrl = try container.decode(String.self, forKey: .shareUrl)
+
+ } 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(token, forKey: .token)
+
+
+
+ try? container.encodeIfPresent(shareUrl, forKey: .shareUrl)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/GetShareCartLinkResultCartAppModel.swift b/Sources/code/application/Models/Cart/GetShareCartLinkResultCartAppModel.swift
deleted file mode 100644
index d455abf7fb..0000000000
--- a/Sources/code/application/Models/Cart/GetShareCartLinkResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: GetShareCartLinkResult
- Used By: Cart
- */
- class GetShareCartLinkResult: Codable {
-
- public var token: String?
-
- public var shareUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case token = "token"
-
- case shareUrl = "share_url"
-
- }
-
- public init(shareUrl: String? = nil, token: String? = nil) {
-
- self.token = token
-
- self.shareUrl = shareUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- token = try container.decode(String.self, forKey: .token)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shareUrl = try container.decode(String.self, forKey: .shareUrl)
-
- } 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(token, forKey: .token)
-
-
-
- try? container.encodeIfPresent(shareUrl, forKey: .shareUrl)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/OperationErrorResponseCartAppModel.swift b/Sources/code/application/Models/Cart/OperationErrorResponseCartAppModel.swift
new file mode 100644
index 0000000000..1a125324e2
--- /dev/null
+++ b/Sources/code/application/Models/Cart/OperationErrorResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: OperationErrorResponse
+ Used By: Cart
+ */
+ class OperationErrorResponse: Codable {
+
+ public var message: String?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/OperationErrorResultCartAppModel.swift b/Sources/code/application/Models/Cart/OperationErrorResultCartAppModel.swift
deleted file mode 100644
index c968e51514..0000000000
--- a/Sources/code/application/Models/Cart/OperationErrorResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: OperationErrorResult
- Used By: Cart
- */
- class OperationErrorResult: Codable {
-
- public var message: String?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/PageCartAppModel.swift b/Sources/code/application/Models/Cart/PageCartAppModel.swift
deleted file mode 100644
index a316386a2b..0000000000
--- a/Sources/code/application/Models/Cart/PageCartAppModel.swift
+++ /dev/null
@@ -1,178 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: Page
- Used By: Cart
- */
- class Page: Codable {
-
- public var itemTotal: Int?
-
- public var nextId: String?
-
- public var hasPrevious: Bool?
-
- public var hasNext: Bool?
-
- public var current: Int?
-
- public var type: String
-
- public var size: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemTotal = "item_total"
-
- case nextId = "next_id"
-
- case hasPrevious = "has_previous"
-
- case hasNext = "has_next"
-
- case current = "current"
-
- case type = "type"
-
- case size = "size"
-
- }
-
- public init(current: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, nextId: String? = nil, size: Int? = nil, type: String) {
-
- self.itemTotal = itemTotal
-
- self.nextId = nextId
-
- self.hasPrevious = hasPrevious
-
- self.hasNext = hasNext
-
- self.current = current
-
- self.type = type
-
- self.size = size
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- nextId = try container.decode(String.self, forKey: .nextId)
-
- } 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 {
- 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 {
- current = try container.decode(Int.self, forKey: .current)
-
- } 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 {
- 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(itemTotal, forKey: .itemTotal)
-
-
-
- try? container.encodeIfPresent(nextId, forKey: .nextId)
-
-
-
- try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
-
-
-
- try? container.encodeIfPresent(hasNext, forKey: .hasNext)
-
-
-
- try? container.encodeIfPresent(current, forKey: .current)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/ProductActionCartAppModel.swift b/Sources/code/application/Models/Cart/ProductActionCartAppModel.swift
index 185a9f57d6..f0ac0f1639 100644
--- a/Sources/code/application/Models/Cart/ProductActionCartAppModel.swift
+++ b/Sources/code/application/Models/Cart/ProductActionCartAppModel.swift
@@ -14,8 +14,6 @@ public extension ApplicationClient.Cart {
public var type: String?
- public var page: ProductActionPage?
-
public enum CodingKeys: String, CodingKey {
@@ -25,11 +23,9 @@ public extension ApplicationClient.Cart {
case type = "type"
- case page = "page"
-
}
- public init(page: ProductActionPage? = nil, query: ActionQuery? = nil, type: String? = nil, url: String? = nil) {
+ public init(query: ActionQuery? = nil, type: String? = nil, url: String? = nil) {
self.query = query
@@ -37,8 +33,6 @@ public extension ApplicationClient.Cart {
self.type = type
- self.page = page
-
}
required public init(from decoder: Decoder) throws {
@@ -80,18 +74,6 @@ public extension ApplicationClient.Cart {
}
-
- do {
- page = try container.decode(ProductActionPage.self, forKey: .page)
-
- } 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 {
@@ -109,10 +91,6 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(type, forKey: .type)
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
}
}
diff --git a/Sources/code/application/Models/Cart/ProductActionPageCartAppModel.swift b/Sources/code/application/Models/Cart/ProductActionPageCartAppModel.swift
deleted file mode 100644
index 25ee81f711..0000000000
--- a/Sources/code/application/Models/Cart/ProductActionPageCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ProductActionPage
- Used By: Cart
- */
- class ProductActionPage: Codable {
-
- public var type: String?
-
- public var params: ProductActionParams?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case params = "params"
-
- }
-
- public init(params: ProductActionParams? = nil, type: String? = nil) {
-
- self.type = type
-
- self.params = params
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- params = try container.decode(ProductActionParams.self, forKey: .params)
-
- } 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(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(params, forKey: .params)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/ProductActionParamsCartAppModel.swift b/Sources/code/application/Models/Cart/ProductActionParamsCartAppModel.swift
deleted file mode 100644
index cfe2cd6957..0000000000
--- a/Sources/code/application/Models/Cart/ProductActionParamsCartAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ProductActionParams
- Used By: Cart
- */
- class ProductActionParams: Codable {
-
- public var slug: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- }
-
- public init(slug: [String]? = nil) {
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/PromotionOfferCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionOfferCartAppModel.swift
index 6abdf0d80c..38ab03053e 100644
--- a/Sources/code/application/Models/Cart/PromotionOfferCartAppModel.swift
+++ b/Sources/code/application/Models/Cart/PromotionOfferCartAppModel.swift
@@ -28,8 +28,6 @@ public extension ApplicationClient.Cart {
public var description: String?
- public var isBankOffer: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -53,11 +51,9 @@ public extension ApplicationClient.Cart {
case description = "description"
- case isBankOffer = "is_bank_offer"
-
}
- public init(buyRules: [String: Any]? = nil, description: String? = nil, discountRules: [[String: Any]]? = nil, freeGiftItems: [FreeGiftItems]? = nil, id: String? = nil, isBankOffer: Bool? = nil, offerText: String? = nil, promotionGroup: String? = nil, promotionName: String? = nil, promotionType: String? = nil, validTill: String? = nil) {
+ public init(buyRules: [String: Any]? = nil, description: String? = nil, discountRules: [[String: Any]]? = nil, freeGiftItems: [FreeGiftItems]? = nil, id: String? = nil, offerText: String? = nil, promotionGroup: String? = nil, promotionName: String? = nil, promotionType: String? = nil, validTill: String? = nil) {
self.id = id
@@ -79,8 +75,6 @@ public extension ApplicationClient.Cart {
self.description = description
- self.isBankOffer = isBankOffer
-
}
required public init(from decoder: Decoder) throws {
@@ -206,18 +200,6 @@ public extension ApplicationClient.Cart {
}
-
- do {
- isBankOffer = try container.decode(Bool.self, forKey: .isBankOffer)
-
- } 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 {
@@ -263,10 +245,6 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(description, forKey: .description)
-
- try? container.encodeIfPresent(isBankOffer, forKey: .isBankOffer)
-
-
}
}
diff --git a/Sources/code/application/Models/Cart/PromotionOffersResponseCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionOffersResponseCartAppModel.swift
new file mode 100644
index 0000000000..8c0db24ca1
--- /dev/null
+++ b/Sources/code/application/Models/Cart/PromotionOffersResponseCartAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: PromotionOffersResponse
+ Used By: Cart
+ */
+ class PromotionOffersResponse: Codable {
+
+ public var availablePromotions: [PromotionOffer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case availablePromotions = "available_promotions"
+
+ }
+
+ public init(availablePromotions: [PromotionOffer]? = nil) {
+
+ self.availablePromotions = availablePromotions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ availablePromotions = try container.decode([PromotionOffer].self, forKey: .availablePromotions)
+
+ } 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(availablePromotions, forKey: .availablePromotions)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/PromotionOffersResultCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionOffersResultCartAppModel.swift
deleted file mode 100644
index d27a034511..0000000000
--- a/Sources/code/application/Models/Cart/PromotionOffersResultCartAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: PromotionOffersResult
- Used By: Cart
- */
- class PromotionOffersResult: Codable {
-
- public var availablePromotions: [PromotionOffer]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case availablePromotions = "available_promotions"
-
- }
-
- public init(availablePromotions: [PromotionOffer]? = nil) {
-
- self.availablePromotions = availablePromotions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- availablePromotions = try container.decode([PromotionOffer].self, forKey: .availablePromotions)
-
- } 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(availablePromotions, forKey: .availablePromotions)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/PromotionPaymentOffersResponseCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionPaymentOffersResponseCartAppModel.swift
new file mode 100644
index 0000000000..6a1a4e41dd
--- /dev/null
+++ b/Sources/code/application/Models/Cart/PromotionPaymentOffersResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: PromotionPaymentOffersResponse
+ Used By: Cart
+ */
+ class PromotionPaymentOffersResponse: Codable {
+
+ public var success: Bool?
+
+ public var promotions: [PromotionPaymentOffer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case promotions = "promotions"
+
+ }
+
+ public init(promotions: [PromotionPaymentOffer]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.promotions = promotions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ promotions = try container.decode([PromotionPaymentOffer].self, forKey: .promotions)
+
+ } 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)
+
+
+
+ try? container.encodeIfPresent(promotions, forKey: .promotions)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/PromotionPaymentOffersResultCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionPaymentOffersResultCartAppModel.swift
deleted file mode 100644
index 7058ea1c72..0000000000
--- a/Sources/code/application/Models/Cart/PromotionPaymentOffersResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: PromotionPaymentOffersResult
- Used By: Cart
- */
- class PromotionPaymentOffersResult: Codable {
-
- public var success: Bool?
-
- public var promotions: [PromotionPaymentOffer]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case promotions = "promotions"
-
- }
-
- public init(promotions: [PromotionPaymentOffer]? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.promotions = promotions
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- promotions = try container.decode([PromotionPaymentOffer].self, forKey: .promotions)
-
- } 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)
-
-
-
- try? container.encodeIfPresent(promotions, forKey: .promotions)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/PromotionsCartAppModel.swift b/Sources/code/application/Models/Cart/PromotionsCartAppModel.swift
deleted file mode 100644
index ab5d490200..0000000000
--- a/Sources/code/application/Models/Cart/PromotionsCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: Promotions
- Used By: Cart
- */
- class Promotions: Codable {
-
- public var items: [PromotionOffersResult]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PromotionOffersResult]? = nil, page: Page? = nil) {
-
- 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([PromotionOffersResult].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/RewardPointCreationCartAppModel.swift b/Sources/code/application/Models/Cart/RewardPointCreationCartAppModel.swift
deleted file mode 100644
index 88ba0330ea..0000000000
--- a/Sources/code/application/Models/Cart/RewardPointCreationCartAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: RewardPointCreation
- Used By: Cart
- */
- class RewardPointCreation: Codable {
-
- public var points: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case points = "points"
-
- }
-
- public init(points: Bool) {
-
- self.points = points
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- points = try container.decode(Bool.self, forKey: .points)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(points, forKey: .points)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/RewardPointRequestCartAppModel.swift b/Sources/code/application/Models/Cart/RewardPointRequestCartAppModel.swift
new file mode 100644
index 0000000000..9293af29a3
--- /dev/null
+++ b/Sources/code/application/Models/Cart/RewardPointRequestCartAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: RewardPointRequest
+ Used By: Cart
+ */
+ class RewardPointRequest: Codable {
+
+ public var points: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case points = "points"
+
+ }
+
+ public init(points: Bool) {
+
+ self.points = points
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ points = try container.decode(Bool.self, forKey: .points)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(points, forKey: .points)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/SaveAddressResponseCartAppModel.swift b/Sources/code/application/Models/Cart/SaveAddressResponseCartAppModel.swift
new file mode 100644
index 0000000000..0459276c20
--- /dev/null
+++ b/Sources/code/application/Models/Cart/SaveAddressResponseCartAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: SaveAddressResponse
+ Used By: Cart
+ */
+ class SaveAddressResponse: Codable {
+
+ public var id: String?
+
+ public var success: Bool?
+
+ public var isDefaultAddress: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case success = "success"
+
+ case isDefaultAddress = "is_default_address"
+
+ }
+
+ public init(id: String? = nil, isDefaultAddress: Bool? = nil, success: Bool? = nil) {
+
+ self.id = id
+
+ self.success = success
+
+ self.isDefaultAddress = isDefaultAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/SaveAddressResultCartAppModel.swift b/Sources/code/application/Models/Cart/SaveAddressResultCartAppModel.swift
deleted file mode 100644
index 34d3a46052..0000000000
--- a/Sources/code/application/Models/Cart/SaveAddressResultCartAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: SaveAddressResult
- Used By: Cart
- */
- class SaveAddressResult: Codable {
-
- public var id: String?
-
- public var success: Bool?
-
- public var isDefaultAddress: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case success = "success"
-
- case isDefaultAddress = "is_default_address"
-
- }
-
- public init(id: String? = nil, isDefaultAddress: Bool? = nil, success: Bool? = nil) {
-
- self.id = id
-
- self.success = success
-
- self.isDefaultAddress = isDefaultAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/SelectCartAddressCreationCartAppModel.swift b/Sources/code/application/Models/Cart/SelectCartAddressCreationCartAppModel.swift
deleted file mode 100644
index 7168040612..0000000000
--- a/Sources/code/application/Models/Cart/SelectCartAddressCreationCartAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: SelectCartAddressCreation
- Used By: Cart
- */
- class SelectCartAddressCreation: Codable {
-
- public var id: String?
-
- public var billingAddressId: String?
-
- public var cartId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case billingAddressId = "billing_address_id"
-
- case cartId = "cart_id"
-
- }
-
- public init(billingAddressId: String? = nil, cartId: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.billingAddressId = billingAddressId
-
- self.cartId = cartId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cartId = try container.decode(String.self, forKey: .cartId)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
- try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/SelectCartAddressRequestCartAppModel.swift b/Sources/code/application/Models/Cart/SelectCartAddressRequestCartAppModel.swift
new file mode 100644
index 0000000000..87e53efa1e
--- /dev/null
+++ b/Sources/code/application/Models/Cart/SelectCartAddressRequestCartAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: SelectCartAddressRequest
+ Used By: Cart
+ */
+ class SelectCartAddressRequest: Codable {
+
+ public var id: String?
+
+ public var billingAddressId: String?
+
+ public var cartId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case billingAddressId = "billing_address_id"
+
+ case cartId = "cart_id"
+
+ }
+
+ public init(billingAddressId: String? = nil, cartId: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.billingAddressId = billingAddressId
+
+ self.cartId = cartId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cartId = try container.decode(String.self, forKey: .cartId)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
+
+
+
+ try? container.encodeIfPresent(cartId, forKey: .cartId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/SharedCartResponseCartAppModel.swift b/Sources/code/application/Models/Cart/SharedCartResponseCartAppModel.swift
new file mode 100644
index 0000000000..b3cdb36735
--- /dev/null
+++ b/Sources/code/application/Models/Cart/SharedCartResponseCartAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: SharedCartResponse
+ Used By: Cart
+ */
+ class SharedCartResponse: Codable {
+
+ public var error: String?
+
+ public var cart: SharedCart?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case cart = "cart"
+
+ }
+
+ public init(cart: SharedCart? = nil, error: String? = nil) {
+
+ self.error = error
+
+ self.cart = cart
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cart = try container.decode(SharedCart.self, forKey: .cart)
+
+ } 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(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/SharedCartResultCartAppModel.swift b/Sources/code/application/Models/Cart/SharedCartResultCartAppModel.swift
deleted file mode 100644
index 89e8022bee..0000000000
--- a/Sources/code/application/Models/Cart/SharedCartResultCartAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: SharedCartResult
- Used By: Cart
- */
- class SharedCartResult: Codable {
-
- public var error: String?
-
- public var cart: SharedCart?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case cart = "cart"
-
- }
-
- public init(cart: SharedCart? = nil, error: String? = nil) {
-
- self.error = error
-
- self.cart = cart
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cart = try container.decode(SharedCart.self, forKey: .cart)
-
- } 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(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/ShipmentResponseCartAppModel.swift b/Sources/code/application/Models/Cart/ShipmentResponseCartAppModel.swift
new file mode 100644
index 0000000000..228cf4fb95
--- /dev/null
+++ b/Sources/code/application/Models/Cart/ShipmentResponseCartAppModel.swift
@@ -0,0 +1,251 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: ShipmentResponse
+ Used By: Cart
+ */
+ class ShipmentResponse: Codable {
+
+ public var shipments: Int?
+
+ public var promise: ShipmentPromise?
+
+ public var orderType: String?
+
+ public var boxType: String?
+
+ public var shipmentType: String?
+
+ public var dpOptions: [String: Any]?
+
+ public var dpId: String?
+
+ public var items: [CartProductInfo]?
+
+ public var fulfillmentType: String?
+
+ public var fulfillmentId: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ case promise = "promise"
+
+ case orderType = "order_type"
+
+ case boxType = "box_type"
+
+ case shipmentType = "shipment_type"
+
+ case dpOptions = "dp_options"
+
+ case dpId = "dp_id"
+
+ case items = "items"
+
+ case fulfillmentType = "fulfillment_type"
+
+ case fulfillmentId = "fulfillment_id"
+
+ }
+
+ public init(boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int? = nil, fulfillmentType: String? = nil, items: [CartProductInfo]? = nil, orderType: String? = nil, promise: ShipmentPromise? = nil, shipments: Int? = nil, shipmentType: String? = nil) {
+
+ self.shipments = shipments
+
+ self.promise = promise
+
+ self.orderType = orderType
+
+ self.boxType = boxType
+
+ self.shipmentType = shipmentType
+
+ self.dpOptions = dpOptions
+
+ self.dpId = dpId
+
+ self.items = items
+
+ self.fulfillmentType = fulfillmentType
+
+ self.fulfillmentId = fulfillmentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode(Int.self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ promise = try container.decode(ShipmentPromise.self, forKey: .promise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ boxType = try container.decode(String.self, forKey: .boxType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentType = try container.decode(String.self, forKey: .shipmentType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dpId = try container.decode(String.self, forKey: .dpId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
+
+ } 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(shipments, forKey: .shipments)
+
+
+
+ try? container.encodeIfPresent(promise, forKey: .promise)
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+ try? container.encodeIfPresent(boxType, forKey: .boxType)
+
+
+
+ try? container.encodeIfPresent(shipmentType, forKey: .shipmentType)
+
+
+
+ try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
+
+
+
+ try? container.encodeIfPresent(dpId, forKey: .dpId)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
+
+
+
+ try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/ShipmentResultCartAppModel.swift b/Sources/code/application/Models/Cart/ShipmentResultCartAppModel.swift
deleted file mode 100644
index 43d7c38afc..0000000000
--- a/Sources/code/application/Models/Cart/ShipmentResultCartAppModel.swift
+++ /dev/null
@@ -1,251 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ShipmentResult
- Used By: Cart
- */
- class ShipmentResult: Codable {
-
- public var shipments: Int?
-
- public var promise: ShipmentPromise?
-
- public var orderType: String?
-
- public var boxType: String?
-
- public var shipmentType: String?
-
- public var dpOptions: [String: Any]?
-
- public var dpId: String?
-
- public var items: [CartProductInfo]?
-
- public var fulfillmentType: String?
-
- public var fulfillmentId: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- case promise = "promise"
-
- case orderType = "order_type"
-
- case boxType = "box_type"
-
- case shipmentType = "shipment_type"
-
- case dpOptions = "dp_options"
-
- case dpId = "dp_id"
-
- case items = "items"
-
- case fulfillmentType = "fulfillment_type"
-
- case fulfillmentId = "fulfillment_id"
-
- }
-
- public init(boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int? = nil, fulfillmentType: String? = nil, items: [CartProductInfo]? = nil, orderType: String? = nil, promise: ShipmentPromise? = nil, shipments: Int? = nil, shipmentType: String? = nil) {
-
- self.shipments = shipments
-
- self.promise = promise
-
- self.orderType = orderType
-
- self.boxType = boxType
-
- self.shipmentType = shipmentType
-
- self.dpOptions = dpOptions
-
- self.dpId = dpId
-
- self.items = items
-
- self.fulfillmentType = fulfillmentType
-
- self.fulfillmentId = fulfillmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode(Int.self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- promise = try container.decode(ShipmentPromise.self, forKey: .promise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- boxType = try container.decode(String.self, forKey: .boxType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentType = try container.decode(String.self, forKey: .shipmentType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dpId = try container.decode(String.self, forKey: .dpId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
- } 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(shipments, forKey: .shipments)
-
-
-
- try? container.encodeIfPresent(promise, forKey: .promise)
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
- try? container.encodeIfPresent(boxType, forKey: .boxType)
-
-
-
- try? container.encodeIfPresent(shipmentType, forKey: .shipmentType)
-
-
-
- try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
-
-
-
- try? container.encodeIfPresent(dpId, forKey: .dpId)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/UpdateAddressResponseCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateAddressResponseCartAppModel.swift
new file mode 100644
index 0000000000..059258aadf
--- /dev/null
+++ b/Sources/code/application/Models/Cart/UpdateAddressResponseCartAppModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: UpdateAddressResponse
+ Used By: Cart
+ */
+ class UpdateAddressResponse: Codable {
+
+ public var isUpdated: Bool?
+
+ public var id: String?
+
+ public var success: Bool?
+
+ public var isDefaultAddress: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isUpdated = "is_updated"
+
+ case id = "id"
+
+ case success = "success"
+
+ case isDefaultAddress = "is_default_address"
+
+ }
+
+ public init(id: String? = nil, isDefaultAddress: Bool? = nil, isUpdated: Bool? = nil, success: Bool? = nil) {
+
+ self.isUpdated = isUpdated
+
+ self.id = id
+
+ self.success = success
+
+ self.isDefaultAddress = isDefaultAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isUpdated = try container.decode(Bool.self, forKey: .isUpdated)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
+
+ } 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(isUpdated, forKey: .isUpdated)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/UpdateAddressResultCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateAddressResultCartAppModel.swift
deleted file mode 100644
index b12627172e..0000000000
--- a/Sources/code/application/Models/Cart/UpdateAddressResultCartAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: UpdateAddressResult
- Used By: Cart
- */
- class UpdateAddressResult: Codable {
-
- public var isUpdated: Bool?
-
- public var id: String?
-
- public var success: Bool?
-
- public var isDefaultAddress: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isUpdated = "is_updated"
-
- case id = "id"
-
- case success = "success"
-
- case isDefaultAddress = "is_default_address"
-
- }
-
- public init(id: String? = nil, isDefaultAddress: Bool? = nil, isUpdated: Bool? = nil, success: Bool? = nil) {
-
- self.isUpdated = isUpdated
-
- self.id = id
-
- self.success = success
-
- self.isDefaultAddress = isDefaultAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isUpdated = try container.decode(Bool.self, forKey: .isUpdated)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
-
- } 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(isUpdated, forKey: .isUpdated)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/UpdateCartCreationCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartCreationCartAppModel.swift
deleted file mode 100644
index 3b296a3091..0000000000
--- a/Sources/code/application/Models/Cart/UpdateCartCreationCartAppModel.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: UpdateCartCreation
- Used By: Cart
- */
- class UpdateCartCreation: Codable {
-
- public var items: [UpdateProductCart]?
-
- public var freeGiftItems: [FreeGiftItemCreation]?
-
- public var operation: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case freeGiftItems = "free_gift_items"
-
- case operation = "operation"
-
- }
-
- public init(freeGiftItems: [FreeGiftItemCreation]? = nil, items: [UpdateProductCart]? = nil, operation: String) {
-
- self.items = items
-
- self.freeGiftItems = freeGiftItems
-
- self.operation = operation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([UpdateProductCart].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- freeGiftItems = try container.decode([FreeGiftItemCreation].self, forKey: .freeGiftItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(freeGiftItems, forKey: .freeGiftItems)
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/UpdateCartDetailResponseCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartDetailResponseCartAppModel.swift
new file mode 100644
index 0000000000..35d4177761
--- /dev/null
+++ b/Sources/code/application/Models/Cart/UpdateCartDetailResponseCartAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: UpdateCartDetailResponse
+ Used By: Cart
+ */
+ class UpdateCartDetailResponse: Codable {
+
+ public var message: String?
+
+ public var cart: CartDetailResponse?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case cart = "cart"
+
+ case success = "success"
+
+ }
+
+ public init(cart: CartDetailResponse? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.cart = cart
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ cart = try container.decode(CartDetailResponse.self, forKey: .cart)
+
+ } 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/UpdateCartDetailResultCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartDetailResultCartAppModel.swift
deleted file mode 100644
index 2c3e28ce8e..0000000000
--- a/Sources/code/application/Models/Cart/UpdateCartDetailResultCartAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: UpdateCartDetailResult
- Used By: Cart
- */
- class UpdateCartDetailResult: Codable {
-
- public var message: String?
-
- public var cart: CartDetailResult?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case cart = "cart"
-
- case success = "success"
-
- }
-
- public init(cart: CartDetailResult? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.cart = cart
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- cart = try container.decode(CartDetailResult.self, forKey: .cart)
-
- } 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/UpdateCartPaymentCreationCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartPaymentCreationCartAppModel.swift
deleted file mode 100644
index 2b3509eff4..0000000000
--- a/Sources/code/application/Models/Cart/UpdateCartPaymentCreationCartAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: UpdateCartPaymentCreation
- Used By: Cart
- */
- class UpdateCartPaymentCreation: Codable {
-
- public var id: String?
-
- public var paymentIdentifier: String?
-
- public var addressId: String?
-
- public var merchantCode: String?
-
- public var aggregatorName: String?
-
- public var paymentMode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case paymentIdentifier = "payment_identifier"
-
- case addressId = "address_id"
-
- case merchantCode = "merchant_code"
-
- case aggregatorName = "aggregator_name"
-
- case paymentMode = "payment_mode"
-
- }
-
- public init(addressId: String? = nil, aggregatorName: String? = nil, id: String? = nil, merchantCode: String? = nil, paymentIdentifier: String? = nil, paymentMode: String? = nil) {
-
- self.id = id
-
- self.paymentIdentifier = paymentIdentifier
-
- self.addressId = addressId
-
- self.merchantCode = merchantCode
-
- self.aggregatorName = aggregatorName
-
- self.paymentMode = paymentMode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
- try? container.encodeIfPresent(addressId, forKey: .addressId)
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/UpdateCartPaymentRequestCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartPaymentRequestCartAppModel.swift
new file mode 100644
index 0000000000..18ec46ec52
--- /dev/null
+++ b/Sources/code/application/Models/Cart/UpdateCartPaymentRequestCartAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: UpdateCartPaymentRequest
+ Used By: Cart
+ */
+ class UpdateCartPaymentRequest: Codable {
+
+ public var id: String?
+
+ public var paymentIdentifier: String?
+
+ public var addressId: String?
+
+ public var merchantCode: String?
+
+ public var aggregatorName: String?
+
+ public var paymentMode: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case paymentIdentifier = "payment_identifier"
+
+ case addressId = "address_id"
+
+ case merchantCode = "merchant_code"
+
+ case aggregatorName = "aggregator_name"
+
+ case paymentMode = "payment_mode"
+
+ }
+
+ public init(addressId: String? = nil, aggregatorName: String? = nil, id: String? = nil, merchantCode: String? = nil, paymentIdentifier: String? = nil, paymentMode: String? = nil) {
+
+ self.id = id
+
+ self.paymentIdentifier = paymentIdentifier
+
+ self.addressId = addressId
+
+ self.merchantCode = merchantCode
+
+ self.aggregatorName = aggregatorName
+
+ self.paymentMode = paymentMode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ addressId = try container.decode(String.self, forKey: .addressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCode = try container.decode(String.self, forKey: .merchantCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
+
+
+
+ try? container.encodeIfPresent(addressId, forKey: .addressId)
+
+
+
+ try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/UpdateCartRequestCartAppModel.swift b/Sources/code/application/Models/Cart/UpdateCartRequestCartAppModel.swift
new file mode 100644
index 0000000000..72ecd7ffba
--- /dev/null
+++ b/Sources/code/application/Models/Cart/UpdateCartRequestCartAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Cart {
+ /*
+ Model: UpdateCartRequest
+ Used By: Cart
+ */
+ class UpdateCartRequest: Codable {
+
+ public var items: [UpdateProductCart]?
+
+ public var operation: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case operation = "operation"
+
+ }
+
+ public init(items: [UpdateProductCart]? = nil, operation: String) {
+
+ self.items = items
+
+ self.operation = operation
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([UpdateProductCart].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Cart/ValidationConfigCartAppModel.swift b/Sources/code/application/Models/Cart/ValidationConfigCartAppModel.swift
deleted file mode 100644
index 80ea7c62a9..0000000000
--- a/Sources/code/application/Models/Cart/ValidationConfigCartAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ValidationConfig
- Used By: Cart
- */
- class ValidationConfig: Codable {
-
- public var addressMaxLimit: Int
-
- public var userAddressCount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addressMaxLimit = "address_max_limit"
-
- case userAddressCount = "user_address_count"
-
- }
-
- public init(addressMaxLimit: Int, userAddressCount: Int) {
-
- self.addressMaxLimit = addressMaxLimit
-
- self.userAddressCount = userAddressCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- addressMaxLimit = try container.decode(Int.self, forKey: .addressMaxLimit)
-
-
-
-
- userAddressCount = try container.decode(Int.self, forKey: .userAddressCount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(addressMaxLimit, forKey: .addressMaxLimit)
-
-
-
- try? container.encodeIfPresent(userAddressCount, forKey: .userAddressCount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Cart/ValidationErrorCartAppModel.swift b/Sources/code/application/Models/Cart/ValidationErrorCartAppModel.swift
deleted file mode 100644
index 3ae4f8b69b..0000000000
--- a/Sources/code/application/Models/Cart/ValidationErrorCartAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Cart {
- /*
- Model: ValidationError
- Used By: Cart
- */
- class ValidationError: Codable {
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/AppStoreCatalogAppModel.swift b/Sources/code/application/Models/Catalog/AppStoreCatalogAppModel.swift
index 0715132b8d..794329c02d 100644
--- a/Sources/code/application/Models/Catalog/AppStoreCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/AppStoreCatalogAppModel.swift
@@ -10,50 +10,20 @@ public extension ApplicationClient.Catalog {
public var uid: Int?
- public var departments: [AppStoreDepartment]?
+ public var departments: [StoreDepartments]?
public var company: CompanyStore?
- public var manager: StoreManagerSchema?
+ public var manager: StoreManagerSerializer?
public var storeCode: String?
- public var address: StoreAddressSchema?
+ public var address: StoreAddressSerializer?
public var name: String?
public var contactNumbers: [SellerPhoneNumber]?
- public var customJson: [String: Any]?
-
- public var additionalContacts: [ContactDetails]?
-
- public var companyId: Int?
-
- public var displayName: String?
-
- public var storeType: String?
-
- public var autoInvoice: Bool?
-
- public var creditNote: Bool?
-
- public var stage: String?
-
- public var gstCredentials: GSTCredentials?
-
- public var productReturnConfig: ProductReturnConfig?
-
- public var avgOrderProcessingTime: OrderProcessingTime?
-
- public var bulkShipment: Bool?
-
- public var defaultOrderAcceptanceTiming: Bool?
-
- public var orderAcceptanceTiming: [OrderTiming]?
-
- public var autoAssignCourierPartner: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -73,39 +43,9 @@ public extension ApplicationClient.Catalog {
case contactNumbers = "contact_numbers"
- case customJson = "_custom_json"
-
- case additionalContacts = "additional_contacts"
-
- case companyId = "company_id"
-
- case displayName = "display_name"
-
- case storeType = "store_type"
-
- case autoInvoice = "auto_invoice"
-
- case creditNote = "credit_note"
-
- case stage = "stage"
-
- case gstCredentials = "gst_credentials"
-
- case productReturnConfig = "product_return_config"
-
- case avgOrderProcessingTime = "avg_order_processing_time"
-
- case bulkShipment = "bulk_shipment"
-
- case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
-
- case orderAcceptanceTiming = "order_acceptance_timing"
-
- case autoAssignCourierPartner = "auto_assign_courier_partner"
-
}
- public init(additionalContacts: [ContactDetails]? = nil, address: StoreAddressSchema? = nil, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: OrderProcessingTime? = nil, bulkShipment: Bool? = nil, company: CompanyStore? = nil, companyId: Int? = nil, contactNumbers: [SellerPhoneNumber]? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, departments: [AppStoreDepartment]? = nil, displayName: String? = nil, gstCredentials: GSTCredentials? = nil, manager: StoreManagerSchema? = nil, name: String? = nil, orderAcceptanceTiming: [OrderTiming]? = nil, productReturnConfig: ProductReturnConfig? = nil, stage: String? = nil, storeCode: String? = nil, storeType: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(address: StoreAddressSerializer? = nil, company: CompanyStore? = nil, contactNumbers: [SellerPhoneNumber]? = nil, departments: [StoreDepartments]? = nil, manager: StoreManagerSerializer? = nil, name: String? = nil, storeCode: String? = nil, uid: Int? = nil) {
self.uid = uid
@@ -123,36 +63,6 @@ public extension ApplicationClient.Catalog {
self.contactNumbers = contactNumbers
- self.customJson = customJson
-
- self.additionalContacts = additionalContacts
-
- self.companyId = companyId
-
- self.displayName = displayName
-
- self.storeType = storeType
-
- self.autoInvoice = autoInvoice
-
- self.creditNote = creditNote
-
- self.stage = stage
-
- self.gstCredentials = gstCredentials
-
- self.productReturnConfig = productReturnConfig
-
- self.avgOrderProcessingTime = avgOrderProcessingTime
-
- self.bulkShipment = bulkShipment
-
- self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
-
- self.orderAcceptanceTiming = orderAcceptanceTiming
-
- self.autoAssignCourierPartner = autoAssignCourierPartner
-
}
required public init(from decoder: Decoder) throws {
@@ -172,7 +82,7 @@ public extension ApplicationClient.Catalog {
do {
- departments = try container.decode([AppStoreDepartment].self, forKey: .departments)
+ departments = try container.decode([StoreDepartments].self, forKey: .departments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -196,7 +106,7 @@ public extension ApplicationClient.Catalog {
do {
- manager = try container.decode(StoreManagerSchema.self, forKey: .manager)
+ manager = try container.decode(StoreManagerSerializer.self, forKey: .manager)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -220,7 +130,7 @@ public extension ApplicationClient.Catalog {
do {
- address = try container.decode(StoreAddressSchema.self, forKey: .address)
+ address = try container.decode(StoreAddressSerializer.self, forKey: .address)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -254,186 +164,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 {
- additionalContacts = try container.decode([ContactDetails].self, forKey: .additionalContacts)
-
- } 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)
-
- } 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 {
- 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 {
-
- }
-
-
-
- do {
- autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- creditNote = try container.decode(Bool.self, forKey: .creditNote)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(GSTCredentials.self, forKey: .gstCredentials)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfig.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- avgOrderProcessingTime = try container.decode(OrderProcessingTime.self, forKey: .avgOrderProcessingTime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderAcceptanceTiming = try container.decode([OrderTiming].self, forKey: .orderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
-
- } 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 {
@@ -471,66 +201,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(additionalContacts, forKey: .additionalContacts)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
- try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
-
-
-
- try? container.encodeIfPresent(creditNote, forKey: .creditNote)
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
- try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
-
-
-
- try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
-
-
-
- try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
-
-
-
- try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
-
-
-
- try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/AppStoreDepartmentCatalogAppModel.swift b/Sources/code/application/Models/Catalog/AppStoreDepartmentCatalogAppModel.swift
deleted file mode 100644
index 7b647f39c8..0000000000
--- a/Sources/code/application/Models/Catalog/AppStoreDepartmentCatalogAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: AppStoreDepartment
- Used By: Catalog
- */
- class AppStoreDepartment: Codable {
-
- public var priorityOrder: Int?
-
- public var name: String?
-
- public var isActive: Bool?
-
- public var logo: Media?
-
- public var uid: Int?
-
- public var slug: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case priorityOrder = "priority_order"
-
- case name = "name"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case uid = "uid"
-
- case slug = "slug"
-
- }
-
- public init(isActive: Bool? = nil, logo: Media? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.priorityOrder = priorityOrder
-
- self.name = name
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.uid = uid
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ApplicationStoreFilterListingCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ApplicationStoreFilterListingCatalogAppModel.swift
deleted file mode 100644
index b52d8f491c..0000000000
--- a/Sources/code/application/Models/Catalog/ApplicationStoreFilterListingCatalogAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ApplicationStoreFilterListing
- Used By: Catalog
- */
- class ApplicationStoreFilterListing: Codable {
-
- public var slug: String?
-
- public var uid: Int?
-
- public var isActive: Bool?
-
- public var priorityOrder: Int?
-
- public var name: String?
-
- public var logo: String?
-
- public var modifiedBy: ModifiedBy?
-
- public var modifiedOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case uid = "uid"
-
- case isActive = "is_active"
-
- case priorityOrder = "priority_order"
-
- case name = "name"
-
- case logo = "logo"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- }
-
- public init(isActive: Bool? = nil, logo: String? = nil, modifiedBy: ModifiedBy? = nil, modifiedOn: String? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.slug = slug
-
- self.uid = uid
-
- self.isActive = isActive
-
- self.priorityOrder = priorityOrder
-
- self.name = name
-
- self.logo = logo
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBy.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
- try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ApplicationStoreListingCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ApplicationStoreListingCatalogAppModel.swift
index 72f745f1a1..226c796a12 100644
--- a/Sources/code/application/Models/Catalog/ApplicationStoreListingCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ApplicationStoreListingCatalogAppModel.swift
@@ -8,7 +8,7 @@ public extension ApplicationClient.Catalog {
*/
class ApplicationStoreListing: Codable {
- public var filters: [ApplicationStoreFilterListing]?
+ public var filters: [[String: Any]]?
public var items: [AppStore]?
@@ -25,7 +25,7 @@ public extension ApplicationClient.Catalog {
}
- public init(filters: [ApplicationStoreFilterListing]? = nil, items: [AppStore]? = nil, page: Page? = nil) {
+ public init(filters: [[String: Any]]? = nil, items: [AppStore]? = nil, page: Page? = nil) {
self.filters = filters
@@ -40,7 +40,7 @@ public extension ApplicationClient.Catalog {
do {
- filters = try container.decode([ApplicationStoreFilterListing].self, forKey: .filters)
+ filters = try container.decode([[String: Any]].self, forKey: .filters)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/application/Models/Catalog/ArticleIdentifierCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ArticleIdentifierCatalogAppModel.swift
deleted file mode 100644
index ad63eed602..0000000000
--- a/Sources/code/application/Models/Catalog/ArticleIdentifierCatalogAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ArticleIdentifier
- Used By: Catalog
- */
- class ArticleIdentifier: Codable {
-
- public var ean: String?
-
- public var alu: String?
-
- public var upc: String?
-
- public var skuCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case ean = "ean"
-
- case alu = "alu"
-
- case upc = "upc"
-
- case skuCode = "sku_code"
-
- }
-
- public init(alu: String? = nil, ean: String? = nil, skuCode: String? = nil, upc: String? = nil) {
-
- self.ean = ean
-
- self.alu = alu
-
- self.upc = upc
-
- self.skuCode = skuCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- ean = try container.decode(String.self, forKey: .ean)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- alu = try container.decode(String.self, forKey: .alu)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upc = try container.decode(String.self, forKey: .upc)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- skuCode = try container.decode(String.self, forKey: .skuCode)
-
- } 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(ean, forKey: .ean)
-
-
-
- try? container.encodeIfPresent(alu, forKey: .alu)
-
-
-
- try? container.encodeIfPresent(upc, forKey: .upc)
-
-
-
- try? container.encodeIfPresent(skuCode, forKey: .skuCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/AutoCompleteResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/AutoCompleteResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..dca1f97c17
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/AutoCompleteResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: AutoCompleteResponse
+ Used By: Catalog
+ */
+ class AutoCompleteResponse: Codable {
+
+ public var items: [AutocompleteItem]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [AutocompleteItem]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([AutocompleteItem].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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/AutoCompleteResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/AutoCompleteResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index dde7da6d11..0000000000
--- a/Sources/code/application/Models/Catalog/AutoCompleteResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: AutoCompleteResponseSchema
- Used By: Catalog
- */
- class AutoCompleteResponseSchema: Codable {
-
- public var items: [AutocompleteItem]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [AutocompleteItem]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([AutocompleteItem].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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/BrandDetailCatalogAppModel.swift b/Sources/code/application/Models/Catalog/BrandDetailCatalogAppModel.swift
deleted file mode 100644
index 40ac4b3604..0000000000
--- a/Sources/code/application/Models/Catalog/BrandDetailCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: BrandDetail
- Used By: Catalog
- */
- class BrandDetail: Codable {
-
- public var id: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- }
-
- public init(id: Int? = nil) {
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } 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(id, forKey: .id)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/BrandDetailResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/BrandDetailResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..c1b9edafd3
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/BrandDetailResponseCatalogAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: BrandDetailResponse
+ Used By: Catalog
+ */
+ class BrandDetailResponse: Codable {
+
+ public var logo: Media?
+
+ public var uid: Int?
+
+ public var description: String?
+
+ public var banners: ImageUrls?
+
+ public var customJson: [String: Any]?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case logo = "logo"
+
+ case uid = "uid"
+
+ case description = "description"
+
+ case banners = "banners"
+
+ case customJson = "_custom_json"
+
+ case name = "name"
+
+ }
+
+ public init(banners: ImageUrls? = nil, description: String? = nil, logo: Media? = nil, name: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+
+ self.logo = logo
+
+ self.uid = uid
+
+ self.description = description
+
+ self.banners = banners
+
+ self.customJson = customJson
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/BrandDetailResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/BrandDetailResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index c4c6002ede..0000000000
--- a/Sources/code/application/Models/Catalog/BrandDetailResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: BrandDetailResponseSchema
- Used By: Catalog
- */
- class BrandDetailResponseSchema: Codable {
-
- public var logo: Media?
-
- public var uid: Int?
-
- public var description: String?
-
- public var banners: ImageUrls?
-
- public var customJson: [String: Any]?
-
- public var name: String?
-
- public var slug: String?
-
- public var app: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case logo = "logo"
-
- case uid = "uid"
-
- case description = "description"
-
- case banners = "banners"
-
- case customJson = "_custom_json"
-
- case name = "name"
-
- case slug = "slug"
-
- case app = "_app"
-
- }
-
- public init(banners: ImageUrls? = nil, description: String? = nil, logo: Media? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, app: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.logo = logo
-
- self.uid = uid
-
- self.description = description
-
- self.banners = banners
-
- self.customJson = customJson
-
- self.name = name
-
- self.slug = slug
-
- self.app = app
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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 {
- 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 {
- 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 {
- app = try container.decode([String: Any].self, forKey: .app)
-
- } 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(logo, forKey: .logo)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
- try? container.encodeIfPresent(app, forKey: .app)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/BrandListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/BrandListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..3385b9bfdb
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/BrandListingResponseCatalogAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: BrandListingResponse
+ Used By: Catalog
+ */
+ class BrandListingResponse: Codable {
+
+ public var items: [BrandItem]?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
+
+ } 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/BrandListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/BrandListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 820497818f..0000000000
--- a/Sources/code/application/Models/Catalog/BrandListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: BrandListingResponseSchema
- Used By: Catalog
- */
- class BrandListingResponseSchema: Codable {
-
- public var items: [BrandItem]?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
-
- } 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)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/CategoryItemsCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CategoryItemsCatalogAppModel.swift
index d77362f96a..4373bcebdf 100644
--- a/Sources/code/application/Models/Catalog/CategoryItemsCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/CategoryItemsCatalogAppModel.swift
@@ -20,10 +20,6 @@ public extension ApplicationClient.Catalog {
public var action: ProductListingAction
- public var priority: Int?
-
- public var customJson: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -39,13 +35,9 @@ public extension ApplicationClient.Catalog {
case action = "action"
- case priority = "priority"
-
- case customJson = "_custom_json"
-
}
- public init(action: ProductListingAction, banners: CategoryBanner, childs: [Child]? = nil, name: String, priority: Int? = nil, slug: String, uid: Int, customJson: [String: Any]? = nil) {
+ public init(action: ProductListingAction, banners: CategoryBanner, childs: [Child]? = nil, name: String, slug: String, uid: Int) {
self.uid = uid
@@ -59,10 +51,6 @@ public extension ApplicationClient.Catalog {
self.action = action
- self.priority = priority
-
- self.customJson = customJson
-
}
required public init(from decoder: Decoder) throws {
@@ -105,30 +93,6 @@ public extension ApplicationClient.Catalog {
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -158,14 +122,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(action, forKey: .action)
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/CategoryListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CategoryListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..915df531ab
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/CategoryListingResponseCatalogAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: CategoryListingResponse
+ Used By: Catalog
+ */
+ class CategoryListingResponse: Codable {
+
+ public var data: [DepartmentCategoryTree]?
+
+ public var departments: [DepartmentIdentifier]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case departments = "departments"
+
+ }
+
+ public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
+
+ self.data = data
+
+ self.departments = departments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
+
+ } 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(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(departments, forKey: .departments)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/CategoryListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CategoryListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index b3efd65768..0000000000
--- a/Sources/code/application/Models/Catalog/CategoryListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: CategoryListingResponseSchema
- Used By: Catalog
- */
- class CategoryListingResponseSchema: Codable {
-
- public var data: [DepartmentCategoryTree]?
-
- public var departments: [DepartmentIdentifier]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case departments = "departments"
-
- }
-
- public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
-
- self.data = data
-
- self.departments = departments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
-
- } 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(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/CategoryMetaResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CategoryMetaResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..19f4a61adc
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/CategoryMetaResponseCatalogAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: CategoryMetaResponse
+ Used By: Catalog
+ */
+ class CategoryMetaResponse: Codable {
+
+ public var logo: Media?
+
+ public var uid: Int?
+
+ public var banners: ImageUrls?
+
+ public var customJson: [String: Any]?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case logo = "logo"
+
+ case uid = "uid"
+
+ case banners = "banners"
+
+ case customJson = "_custom_json"
+
+ case name = "name"
+
+ }
+
+ public init(banners: ImageUrls? = nil, logo: Media? = nil, name: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+
+ self.logo = logo
+
+ self.uid = uid
+
+ self.banners = banners
+
+ self.customJson = customJson
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } 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 {
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/CategoryMetaResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CategoryMetaResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index b6f101bbb6..0000000000
--- a/Sources/code/application/Models/Catalog/CategoryMetaResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: CategoryMetaResponseSchema
- Used By: Catalog
- */
- class CategoryMetaResponseSchema: Codable {
-
- public var logo: Media?
-
- public var uid: Int?
-
- public var banners: ImageUrls?
-
- public var customJson: [String: Any]?
-
- public var name: String?
-
- public var app: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case logo = "logo"
-
- case uid = "uid"
-
- case banners = "banners"
-
- case customJson = "_custom_json"
-
- case name = "name"
-
- case app = "_app"
-
- }
-
- public init(banners: ImageUrls? = nil, logo: Media? = nil, name: String? = nil, uid: Int? = nil, app: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.logo = logo
-
- self.uid = uid
-
- self.banners = banners
-
- self.customJson = customJson
-
- self.name = name
-
- self.app = app
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } 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 {
- 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 {
- app = try container.decode([String: Any].self, forKey: .app)
-
- } 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(logo, forKey: .logo)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(app, forKey: .app)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ChildCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ChildCatalogAppModel.swift
index 2f4ac6e328..6015d9a18f 100644
--- a/Sources/code/application/Models/Catalog/ChildCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ChildCatalogAppModel.swift
@@ -22,8 +22,6 @@ public extension ApplicationClient.Catalog {
public var action: ProductListingAction?
- public var priority: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -41,11 +39,9 @@ public extension ApplicationClient.Catalog {
case action = "action"
- case priority = "priority"
-
}
- public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [SecondLevelChild]? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [SecondLevelChild]? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
self.uid = uid
@@ -61,8 +57,6 @@ public extension ApplicationClient.Catalog {
self.action = action
- self.priority = priority
-
}
required public init(from decoder: Decoder) throws {
@@ -152,18 +146,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 func encode(to encoder: Encoder) throws {
@@ -197,10 +179,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(action, forKey: .action)
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/CollectionDetailResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CollectionDetailResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..3554ce7deb
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/CollectionDetailResponseCatalogAppModel.swift
@@ -0,0 +1,471 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: CollectionDetailResponse
+ Used By: Catalog
+ */
+ class CollectionDetailResponse: Codable {
+
+ public var isActive: Bool?
+
+ public var sortOn: String?
+
+ public var meta: [String: Any]?
+
+ public var banners: ImageUrls?
+
+ public var cron: [String: Any]?
+
+ public var schedule: [String: Any]?
+
+ public var query: [CollectionQuery]?
+
+ public var description: String?
+
+ public var type: String?
+
+ public var customJson: [String: Any]?
+
+ public var name: String?
+
+ public var allowSort: Bool?
+
+ public var visibleFacetsKeys: [String]?
+
+ public var badge: [String: Any]?
+
+ public var slug: String?
+
+ public var allowFacets: Bool?
+
+ public var logo: Media?
+
+ public var priority: Int?
+
+ public var tag: [String]?
+
+ public var appId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isActive = "is_active"
+
+ case sortOn = "sort_on"
+
+ case meta = "meta"
+
+ case banners = "banners"
+
+ case cron = "cron"
+
+ case schedule = "_schedule"
+
+ case query = "query"
+
+ case description = "description"
+
+ case type = "type"
+
+ case customJson = "_custom_json"
+
+ case name = "name"
+
+ case allowSort = "allow_sort"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ case badge = "badge"
+
+ case slug = "slug"
+
+ case allowFacets = "allow_facets"
+
+ case logo = "logo"
+
+ case priority = "priority"
+
+ case tag = "tag"
+
+ case appId = "app_id"
+
+ }
+
+ public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, type: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, schedule: [String: Any]? = nil) {
+
+ self.isActive = isActive
+
+ self.sortOn = sortOn
+
+ self.meta = meta
+
+ self.banners = banners
+
+ self.cron = cron
+
+ self.schedule = schedule
+
+ self.query = query
+
+ self.description = description
+
+ self.type = type
+
+ self.customJson = customJson
+
+ self.name = name
+
+ self.allowSort = allowSort
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ self.badge = badge
+
+ self.slug = slug
+
+ self.allowFacets = allowFacets
+
+ self.logo = logo
+
+ self.priority = priority
+
+ self.tag = tag
+
+ self.appId = appId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+ try? container.encodeIfPresent(cron, forKey: .cron)
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/CollectionDetailResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CollectionDetailResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 36fce31b58..0000000000
--- a/Sources/code/application/Models/Catalog/CollectionDetailResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,647 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: CollectionDetailResponseSchema
- Used By: Catalog
- */
- class CollectionDetailResponseSchema: Codable {
-
- public var isActive: Bool?
-
- public var sortOn: String?
-
- public var meta: [String: Any]?
-
- public var banners: ImageUrls?
-
- public var cron: [String: Any]?
-
- public var schedule: [String: Any]?
-
- public var query: [CollectionQuery]?
-
- public var description: String?
-
- public var type: String?
-
- public var customJson: [String: Any]?
-
- public var name: String?
-
- public var allowSort: Bool?
-
- public var visibleFacetsKeys: [String]?
-
- public var badge: [String: Any]?
-
- public var slug: String?
-
- public var allowFacets: Bool?
-
- public var logo: Media?
-
- public var priority: Int?
-
- public var tag: [String]?
-
- public var appId: String?
-
- public var uid: String?
-
- public var id: String?
-
- public var published: Bool?
-
- public var tags: [String]?
-
- public var action: ProductListingAction?
-
- public var localeLanguage: [String: Any]?
-
- public var seo: CollectionItemSEO?
-
- public var isVisible: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isActive = "is_active"
-
- case sortOn = "sort_on"
-
- case meta = "meta"
-
- case banners = "banners"
-
- case cron = "cron"
-
- case schedule = "_schedule"
-
- case query = "query"
-
- case description = "description"
-
- case type = "type"
-
- case customJson = "_custom_json"
-
- case name = "name"
-
- case allowSort = "allow_sort"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- case badge = "badge"
-
- case slug = "slug"
-
- case allowFacets = "allow_facets"
-
- case logo = "logo"
-
- case priority = "priority"
-
- case tag = "tag"
-
- case appId = "app_id"
-
- case uid = "uid"
-
- case id = "_id"
-
- case published = "published"
-
- case tags = "tags"
-
- case action = "action"
-
- case localeLanguage = "_locale_language"
-
- case seo = "seo"
-
- case isVisible = "is_visible"
-
- }
-
- public init(action: ProductListingAction? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: CollectionItemSEO? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: [String: Any]? = nil) {
-
- self.isActive = isActive
-
- self.sortOn = sortOn
-
- self.meta = meta
-
- self.banners = banners
-
- self.cron = cron
-
- self.schedule = schedule
-
- self.query = query
-
- self.description = description
-
- self.type = type
-
- self.customJson = customJson
-
- self.name = name
-
- self.allowSort = allowSort
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- self.badge = badge
-
- self.slug = slug
-
- self.allowFacets = allowFacets
-
- self.logo = logo
-
- self.priority = priority
-
- self.tag = tag
-
- self.appId = appId
-
- self.uid = uid
-
- self.id = id
-
- self.published = published
-
- self.tags = tags
-
- self.action = action
-
- self.localeLanguage = localeLanguage
-
- self.seo = seo
-
- self.isVisible = isVisible
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
- 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 {
- 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 {
- 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 {
- 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 {
- 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 {
- 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)
- } 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- seo = try container.decode(CollectionItemSEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } 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(isActive, forKey: .isActive)
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/CollectionItemSEOCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CollectionItemSEOCatalogAppModel.swift
deleted file mode 100644
index 82ff5ac4be..0000000000
--- a/Sources/code/application/Models/Catalog/CollectionItemSEOCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: CollectionItemSEO
- Used By: Catalog
- */
- class CollectionItemSEO: Codable {
-
- public var title: String?
-
- public var description: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case title = "title"
-
- case description = "description"
-
- }
-
- public init(description: String? = nil, title: String? = nil) {
-
- self.title = title
-
- self.description = description
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/CollectionQueryCatalogAppModel.swift b/Sources/code/application/Models/Catalog/CollectionQueryCatalogAppModel.swift
index c47cf2aaba..e3726b0749 100644
--- a/Sources/code/application/Models/Catalog/CollectionQueryCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/CollectionQueryCatalogAppModel.swift
@@ -10,7 +10,7 @@ public extension ApplicationClient.Catalog {
public var op: String
- public var value: [String]
+ public var value: [[String: Any]]
public var attribute: String
@@ -25,7 +25,7 @@ public extension ApplicationClient.Catalog {
}
- public init(attribute: String, op: String, value: [String]) {
+ public init(attribute: String, op: String, value: [[String: Any]]) {
self.op = op
@@ -44,7 +44,7 @@ public extension ApplicationClient.Catalog {
- value = try container.decode([String].self, forKey: .value)
+ value = try container.decode([[String: Any]].self, forKey: .value)
diff --git a/Sources/code/application/Models/Catalog/ContactDetailsCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ContactDetailsCatalogAppModel.swift
deleted file mode 100644
index 674faf23aa..0000000000
--- a/Sources/code/application/Models/Catalog/ContactDetailsCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ContactDetails
- Used By: Catalog
- */
- class ContactDetails: 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? = nil, number: String? = nil) {
-
- self.number = number
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- number = try container.decode(String.self, forKey: .number)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryCode = try container.decode(Int.self, forKey: .countryCode)
-
- } 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(number, forKey: .number)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/DepartmentResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/DepartmentResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..f3dd44944b
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/DepartmentResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: DepartmentResponse
+ Used By: Catalog
+ */
+ class DepartmentResponse: Codable {
+
+ public var items: [Department]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Department]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Department].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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/DepartmentResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/DepartmentResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 86c21d8fe0..0000000000
--- a/Sources/code/application/Models/Catalog/DepartmentResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: DepartmentResponseSchema
- Used By: Catalog
- */
- class DepartmentResponseSchema: Codable {
-
- public var items: [Department]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Department]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Department].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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/EnabledStatusCatalogAppModel.swift b/Sources/code/application/Models/Catalog/EnabledStatusCatalogAppModel.swift
deleted file mode 100644
index 496209cb23..0000000000
--- a/Sources/code/application/Models/Catalog/EnabledStatusCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: EnabledStatus
- Used By: Catalog
- */
- class EnabledStatus: Codable {
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ErrorResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ErrorResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..664a8469e0
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ErrorResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ErrorResponse
+ Used By: Catalog
+ */
+ class ErrorResponse: Codable {
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil) {
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(error, forKey: .error)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ErrorResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ErrorResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 4806074c85..0000000000
--- a/Sources/code/application/Models/Catalog/ErrorResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ErrorResponseSchema
- Used By: Catalog
- */
- class ErrorResponseSchema: Codable {
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- }
-
- public init(error: String? = nil) {
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(error, forKey: .error)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/FollowIdsResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowIdsResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..1ba345d602
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/FollowIdsResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: FollowIdsResponse
+ Used By: Catalog
+ */
+ class FollowIdsResponse: Codable {
+
+ public var data: FollowIdsData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: FollowIdsData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(FollowIdsData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/FollowIdsResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowIdsResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index d8aa08a13c..0000000000
--- a/Sources/code/application/Models/Catalog/FollowIdsResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: FollowIdsResponseSchema
- Used By: Catalog
- */
- class FollowIdsResponseSchema: Codable {
-
- public var data: FollowIdsData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: FollowIdsData? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(FollowIdsData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/FollowPostResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowPostResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..8f044b81e1
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/FollowPostResponseCatalogAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: FollowPostResponse
+ Used By: Catalog
+ */
+ class FollowPostResponse: Codable {
+
+ public var message: String
+
+ public var id: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case id = "id"
+
+ }
+
+ public init(id: String, message: String) {
+
+ self.message = message
+
+ self.id = id
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/FollowPostResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowPostResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index f524cabd6c..0000000000
--- a/Sources/code/application/Models/Catalog/FollowPostResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: FollowPostResponseSchema
- Used By: Catalog
- */
- class FollowPostResponseSchema: Codable {
-
- public var message: String
-
- public var id: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case id = "id"
-
- }
-
- public init(id: String, message: String) {
-
- self.message = message
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/FollowerCountResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowerCountResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..ab867fd749
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/FollowerCountResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: FollowerCountResponse
+ Used By: Catalog
+ */
+ class FollowerCountResponse: Codable {
+
+ public var count: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case count = "count"
+
+ }
+
+ public init(count: Int? = nil) {
+
+ self.count = count
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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(count, forKey: .count)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/FollowerCountResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/FollowerCountResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 990e60d1b3..0000000000
--- a/Sources/code/application/Models/Catalog/FollowerCountResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: FollowerCountResponseSchema
- Used By: Catalog
- */
- class FollowerCountResponseSchema: Codable {
-
- public var count: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case count = "count"
-
- }
-
- public init(count: Int? = nil) {
-
- self.count = count
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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(count, forKey: .count)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/GSTCredentialsCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GSTCredentialsCatalogAppModel.swift
deleted file mode 100644
index 6d5af53586..0000000000
--- a/Sources/code/application/Models/Catalog/GSTCredentialsCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: GSTCredentials
- Used By: Catalog
- */
- class GSTCredentials: Codable {
-
- public var eInvoice: EnabledStatus?
-
- public var eWaybill: EnabledStatus?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eInvoice = "e_invoice"
-
- case eWaybill = "e_waybill"
-
- }
-
- public init(eInvoice: EnabledStatus? = nil, eWaybill: EnabledStatus? = nil) {
-
- self.eInvoice = eInvoice
-
- self.eWaybill = eWaybill
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eInvoice = try container.decode(EnabledStatus.self, forKey: .eInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eWaybill = try container.decode(EnabledStatus.self, forKey: .eWaybill)
-
- } 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(eInvoice, forKey: .eInvoice)
-
-
-
- try? container.encodeIfPresent(eWaybill, forKey: .eWaybill)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/GetCollectionDetailNestCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GetCollectionDetailNestCatalogAppModel.swift
index 6c9bb645d6..7e234e83dc 100644
--- a/Sources/code/application/Models/Catalog/GetCollectionDetailNestCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/GetCollectionDetailNestCatalogAppModel.swift
@@ -20,7 +20,7 @@ public extension ApplicationClient.Catalog {
public var cron: [String: Any]?
- public var schedule: Schedule?
+ public var schedule: [String: Any]?
public var query: [CollectionQuery]?
@@ -52,16 +52,6 @@ public extension ApplicationClient.Catalog {
public var appId: String?
- public var published: Bool?
-
- public var id: String?
-
- public var localeLanguage: [String: Any]?
-
- public var seo: [String: Any]?
-
- public var isVisible: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -109,19 +99,9 @@ public extension ApplicationClient.Catalog {
case appId = "app_id"
- case published = "published"
-
- case id = "_id"
-
- case localeLanguage = "_locale_language"
-
- case seo = "seo"
-
- case isVisible = "is_visible"
-
}
- public init(action: ProductListingAction? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: [String: Any]? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: Schedule? = nil) {
+ public init(action: ProductListingAction? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, schedule: [String: Any]? = nil) {
self.isActive = isActive
@@ -167,16 +147,6 @@ public extension ApplicationClient.Catalog {
self.appId = appId
- self.published = published
-
- self.id = id
-
- self.localeLanguage = localeLanguage
-
- self.seo = seo
-
- self.isVisible = isVisible
-
}
required public init(from decoder: Decoder) throws {
@@ -256,7 +226,7 @@ public extension ApplicationClient.Catalog {
do {
- schedule = try container.decode(Schedule.self, forKey: .schedule)
+ schedule = try container.decode([String: Any].self, forKey: .schedule)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -446,66 +416,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- seo = try container.decode([String: Any].self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } 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 {
@@ -599,26 +509,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(appId, forKey: .appId)
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/GetCollectionListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GetCollectionListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..f1cb2d8193
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/GetCollectionListingResponseCatalogAppModel.swift
@@ -0,0 +1,90 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: GetCollectionListingResponse
+ Used By: Catalog
+ */
+ class GetCollectionListingResponse: Codable {
+
+ public var items: [GetCollectionDetailNest]?
+
+ public var filters: CollectionListingFilter?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case filters = "filters"
+
+ case page = "page"
+
+ }
+
+ public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page) {
+
+ self.items = items
+
+ self.filters = filters
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/GetCollectionListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GetCollectionListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 9e26f666c4..0000000000
--- a/Sources/code/application/Models/Catalog/GetCollectionListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: GetCollectionListingResponseSchema
- Used By: Catalog
- */
- class GetCollectionListingResponseSchema: Codable {
-
- public var items: [GetCollectionDetailNest]?
-
- public var filters: CollectionListingFilter?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case filters = "filters"
-
- case page = "page"
-
- }
-
- public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page) {
-
- self.items = items
-
- self.filters = filters
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/GetFollowListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GetFollowListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..70e43db47b
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/GetFollowListingResponseCatalogAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: GetFollowListingResponse
+ Used By: Catalog
+ */
+ class GetFollowListingResponse: Codable {
+
+ public var items: [ProductListingDetail]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ProductListingDetail], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([ProductListingDetail].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/GetFollowListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/GetFollowListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index bc9f42acfa..0000000000
--- a/Sources/code/application/Models/Catalog/GetFollowListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: GetFollowListingResponseSchema
- Used By: Catalog
- */
- class GetFollowListingResponseSchema: Codable {
-
- public var items: [ProductListingDetail]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ProductListingDetail], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([ProductListingDetail].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/HomeListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/HomeListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..c12bf300b5
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/HomeListingResponseCatalogAppModel.swift
@@ -0,0 +1,90 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: HomeListingResponse
+ Used By: Catalog
+ */
+ class HomeListingResponse: Codable {
+
+ public var items: [ProductListingDetail]?
+
+ 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: [ProductListingDetail]? = nil, message: String? = nil, page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+
+ 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(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/HomeListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/HomeListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 5bbb104c2b..0000000000
--- a/Sources/code/application/Models/Catalog/HomeListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: HomeListingResponseSchema
- Used By: Catalog
- */
- class HomeListingResponseSchema: Codable {
-
- public var items: [ProductListingDetail]?
-
- public var page: Page
-
- public var message: String?
-
- public var sortOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case message = "message"
-
- case sortOn = "sort_on"
-
- }
-
- public init(items: [ProductListingDetail]? = nil, message: String? = nil, page: Page, sortOn: String? = nil) {
-
- self.items = items
-
- self.page = page
-
- self.message = message
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- 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)
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/IdentifierCatalogAppModel.swift b/Sources/code/application/Models/Catalog/IdentifierCatalogAppModel.swift
deleted file mode 100644
index 37c1b6672a..0000000000
--- a/Sources/code/application/Models/Catalog/IdentifierCatalogAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: Identifier
- Used By: Catalog
- */
- class Identifier: Codable {
-
- public var ean: String?
-
- public var skuCode: String?
-
- public var alu: String?
-
- public var upc: String?
-
- public var isbn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case ean = "ean"
-
- case skuCode = "sku_code"
-
- case alu = "alu"
-
- case upc = "upc"
-
- case isbn = "isbn"
-
- }
-
- public init(alu: String? = nil, ean: String? = nil, isbn: String? = nil, skuCode: String? = nil, upc: String? = nil) {
-
- self.ean = ean
-
- self.skuCode = skuCode
-
- self.alu = alu
-
- self.upc = upc
-
- self.isbn = isbn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- ean = try container.decode(String.self, forKey: .ean)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- skuCode = try container.decode(String.self, forKey: .skuCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- alu = try container.decode(String.self, forKey: .alu)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upc = try container.decode(String.self, forKey: .upc)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isbn = try container.decode(String.self, forKey: .isbn)
-
- } 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(ean, forKey: .ean)
-
-
-
- try? container.encodeIfPresent(skuCode, forKey: .skuCode)
-
-
-
- try? container.encodeIfPresent(alu, forKey: .alu)
-
-
-
- try? container.encodeIfPresent(upc, forKey: .upc)
-
-
-
- try? container.encodeIfPresent(isbn, forKey: .isbn)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/MOQCatalogAppModel.swift b/Sources/code/application/Models/Catalog/MOQCatalogAppModel.swift
deleted file mode 100644
index 1f19ec64ac..0000000000
--- a/Sources/code/application/Models/Catalog/MOQCatalogAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: MOQ
- Used By: Catalog
- */
- class MOQ: Codable {
-
- public var maximum: Int?
-
- public var minimum: Int?
-
- public var incrementUnit: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case maximum = "maximum"
-
- case minimum = "minimum"
-
- case incrementUnit = "increment_unit"
-
- }
-
- public init(incrementUnit: Int? = nil, maximum: Int? = nil, minimum: Int? = nil) {
-
- self.maximum = maximum
-
- self.minimum = minimum
-
- self.incrementUnit = incrementUnit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- incrementUnit = try container.decode(Int.self, forKey: .incrementUnit)
-
- } 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(maximum, forKey: .maximum)
-
-
-
- try? container.encodeIfPresent(minimum, forKey: .minimum)
-
-
-
- try? container.encodeIfPresent(incrementUnit, forKey: .incrementUnit)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ModifiedByCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ModifiedByCatalogAppModel.swift
deleted file mode 100644
index 017fafef0a..0000000000
--- a/Sources/code/application/Models/Catalog/ModifiedByCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ModifiedBy
- Used By: Catalog
- */
- class ModifiedBy: Codable {
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/NextScheduleCatalogAppModel.swift b/Sources/code/application/Models/Catalog/NextScheduleCatalogAppModel.swift
deleted file mode 100644
index d627b881a8..0000000000
--- a/Sources/code/application/Models/Catalog/NextScheduleCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: NextSchedule
- Used By: Catalog
- */
- class NextSchedule: Codable {
-
- public var start: String?
-
- public var end: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case start = "start"
-
- case end = "end"
-
- }
-
- public init(end: String? = nil, start: String? = nil) {
-
- self.start = start
-
- self.end = end
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(start, forKey: .start)
-
-
-
- try? container.encodeIfPresent(end, forKey: .end)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/OrderProcessingTimeCatalogAppModel.swift b/Sources/code/application/Models/Catalog/OrderProcessingTimeCatalogAppModel.swift
deleted file mode 100644
index 737a726dd2..0000000000
--- a/Sources/code/application/Models/Catalog/OrderProcessingTimeCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: OrderProcessingTime
- Used By: Catalog
- */
- class OrderProcessingTime: Codable {
-
- public var duration: Int?
-
- public var durationType: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case duration = "duration"
-
- case durationType = "duration_type"
-
- }
-
- public init(duration: Int? = nil, durationType: String? = nil) {
-
- self.duration = duration
-
- self.durationType = durationType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- durationType = try container.decode(String.self, forKey: .durationType)
-
- } 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(duration, forKey: .duration)
-
-
-
- try? container.encodeIfPresent(durationType, forKey: .durationType)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/OrderTimingCatalogAppModel.swift b/Sources/code/application/Models/Catalog/OrderTimingCatalogAppModel.swift
deleted file mode 100644
index bf0d906e09..0000000000
--- a/Sources/code/application/Models/Catalog/OrderTimingCatalogAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: OrderTiming
- Used By: Catalog
- */
- class OrderTiming: Codable {
-
- public var weekday: String?
-
- public var opening: Time?
-
- public var closing: Time?
-
- public var open: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case weekday = "weekday"
-
- case opening = "opening"
-
- case closing = "closing"
-
- case open = "open"
-
- }
-
- public init(closing: Time? = nil, open: Bool? = nil, opening: Time? = nil, weekday: String? = nil) {
-
- self.weekday = weekday
-
- self.opening = opening
-
- self.closing = closing
-
- self.open = open
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- weekday = try container.decode(String.self, forKey: .weekday)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- opening = try container.decode(Time.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(Time.self, forKey: .closing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- open = try container.decode(Bool.self, forKey: .open)
-
- } 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(opening, forKey: .opening)
-
-
-
- try? container.encodeIfPresent(closing, forKey: .closing)
-
-
-
- try? container.encodeIfPresent(open, forKey: .open)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductBrandCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductBrandCatalogAppModel.swift
index 01d6bd4083..91b835878b 100644
--- a/Sources/code/application/Models/Catalog/ProductBrandCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductBrandCatalogAppModel.swift
@@ -18,8 +18,6 @@ public extension ApplicationClient.Catalog {
public var action: ProductListingAction?
- public var customJson: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -33,11 +31,9 @@ public extension ApplicationClient.Catalog {
case action = "action"
- case customJson = "_custom_json"
-
}
- public init(action: ProductListingAction? = nil, description: String? = nil, logo: Media? = nil, name: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(action: ProductListingAction? = nil, description: String? = nil, logo: Media? = nil, name: String? = nil, uid: Int? = nil) {
self.uid = uid
@@ -49,8 +45,6 @@ public extension ApplicationClient.Catalog {
self.action = action
- self.customJson = customJson
-
}
required public init(from decoder: Decoder) throws {
@@ -116,18 +110,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -153,10 +135,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(action, forKey: .action)
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductCompareDetailCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductCompareDetailCatalogAppModel.swift
deleted file mode 100644
index a3757dc737..0000000000
--- a/Sources/code/application/Models/Catalog/ProductCompareDetailCatalogAppModel.swift
+++ /dev/null
@@ -1,838 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductCompareDetail
- Used By: Catalog
- */
- class ProductCompareDetail: Codable {
-
- public var uid: Int?
-
- public var customOrder: ProductDetailCustomOrder?
-
- public var netQuantity: NetQuantity?
-
- public var ratingCount: Int?
-
- public var templateTag: String?
-
- public var sellable: Bool?
-
- public var customMeta: [CustomMetaFields]?
-
- public var similars: [String]?
-
- public var tags: [String]?
-
- public var seo: ApplicationItemSEO?
-
- public var imageNature: String?
-
- public var hasVariant: Bool?
-
- public var itemType: String?
-
- public var description: String?
-
- public var groupedAttributes: [ProductDetailGroupedAttribute]?
-
- public var medias: [Media]?
-
- public var type: String?
-
- public var customJson: [String: Any]?
-
- public var itemCode: String?
-
- public var name: String?
-
- public var moq: ApplicationItemMOQ?
-
- public var shortDescription: String?
-
- public var categories: [ProductBrand]?
-
- public var attributes: [String: Any]?
-
- public var discount: String?
-
- public var tryouts: [String]?
-
- public var slug: String
-
- public var action: ProductListingAction?
-
- public var rating: Double?
-
- public var isDependent: Bool?
-
- public var productGroupTag: [String]?
-
- public var highlights: [String]?
-
- public var price: ProductListingPrice?
-
- public var brand: ProductBrand?
-
- public var department: ProductDepartment?
-
- public var teaserTag: String?
-
- public var countryOfOrigin: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case customOrder = "custom_order"
-
- case netQuantity = "net_quantity"
-
- case ratingCount = "rating_count"
-
- case templateTag = "template_tag"
-
- case sellable = "sellable"
-
- case customMeta = "_custom_meta"
-
- case similars = "similars"
-
- case tags = "tags"
-
- case seo = "seo"
-
- case imageNature = "image_nature"
-
- case hasVariant = "has_variant"
-
- case itemType = "item_type"
-
- case description = "description"
-
- case groupedAttributes = "grouped_attributes"
-
- case medias = "medias"
-
- case type = "type"
-
- case customJson = "_custom_json"
-
- case itemCode = "item_code"
-
- case name = "name"
-
- case moq = "moq"
-
- case shortDescription = "short_description"
-
- case categories = "categories"
-
- case attributes = "attributes"
-
- case discount = "discount"
-
- case tryouts = "tryouts"
-
- case slug = "slug"
-
- case action = "action"
-
- case rating = "rating"
-
- case isDependent = "is_dependent"
-
- case productGroupTag = "product_group_tag"
-
- case highlights = "highlights"
-
- case price = "price"
-
- case brand = "brand"
-
- case department = "department"
-
- case teaserTag = "teaser_tag"
-
- case countryOfOrigin = "country_of_origin"
-
- }
-
- public init(action: ProductListingAction? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ProductBrand]? = nil, countryOfOrigin: String? = nil, customOrder: ProductDetailCustomOrder? = nil, department: ProductDepartment? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, isDependent: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: String? = nil, templateTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
-
- self.uid = uid
-
- self.customOrder = customOrder
-
- self.netQuantity = netQuantity
-
- self.ratingCount = ratingCount
-
- self.templateTag = templateTag
-
- self.sellable = sellable
-
- self.customMeta = customMeta
-
- self.similars = similars
-
- self.tags = tags
-
- self.seo = seo
-
- self.imageNature = imageNature
-
- self.hasVariant = hasVariant
-
- self.itemType = itemType
-
- self.description = description
-
- self.groupedAttributes = groupedAttributes
-
- self.medias = medias
-
- self.type = type
-
- self.customJson = customJson
-
- self.itemCode = itemCode
-
- self.name = name
-
- self.moq = moq
-
- self.shortDescription = shortDescription
-
- self.categories = categories
-
- self.attributes = attributes
-
- self.discount = discount
-
- self.tryouts = tryouts
-
- self.slug = slug
-
- self.action = action
-
- self.rating = rating
-
- self.isDependent = isDependent
-
- self.productGroupTag = productGroupTag
-
- self.highlights = highlights
-
- self.price = price
-
- self.brand = brand
-
- self.department = department
-
- self.teaserTag = teaserTag
-
- self.countryOfOrigin = countryOfOrigin
-
- }
-
- 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 {
- customOrder = try container.decode(ProductDetailCustomOrder.self, forKey: .customOrder)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- netQuantity = try container.decode(NetQuantity.self, forKey: .netQuantity)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([CustomMetaFields].self, forKey: .customMeta)
-
- } 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 {
- 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 {
- seo = try container.decode(ApplicationItemSEO.self, forKey: .seo)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- groupedAttributes = try container.decode([ProductDetailGroupedAttribute].self, forKey: .groupedAttributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- moq = try container.decode(ApplicationItemMOQ.self, forKey: .moq)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- categories = try container.decode([ProductBrand].self, forKey: .categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- brand = try container.decode(ProductBrand.self, forKey: .brand)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- department = try container.decode(ProductDepartment.self, forKey: .department)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- teaserTag = try container.decode(String.self, forKey: .teaserTag)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
- try? container.encodeIfPresent(netQuantity, forKey: .netQuantity)
-
-
-
- try? container.encodeIfPresent(ratingCount, forKey: .ratingCount)
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
- try? container.encodeIfPresent(similars, forKey: .similars)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
- try? container.encodeIfPresent(imageNature, forKey: .imageNature)
-
-
-
- try? container.encodeIfPresent(hasVariant, forKey: .hasVariant)
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
- try? container.encodeIfPresent(groupedAttributes, forKey: .groupedAttributes)
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
- try? container.encodeIfPresent(shortDescription, forKey: .shortDescription)
-
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
- try? container.encodeIfPresent(tryouts, forKey: .tryouts)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
- try? container.encodeIfPresent(rating, forKey: .rating)
-
-
-
- try? container.encodeIfPresent(isDependent, forKey: .isDependent)
-
-
-
- try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag)
-
-
-
- try? container.encodeIfPresent(highlights, forKey: .highlights)
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
- try? container.encodeIfPresent(department, forKey: .department)
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductCompareResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductCompareResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..56147ea84b
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductCompareResponseCatalogAppModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductCompareResponse
+ Used By: Catalog
+ */
+ class ProductCompareResponse: Codable {
+
+ public var title: String?
+
+ public var items: [ProductDetail]?
+
+ public var attributesMetadata: [AttributeMetadata]?
+
+ public var subtitle: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case title = "title"
+
+ case items = "items"
+
+ case attributesMetadata = "attributes_metadata"
+
+ case subtitle = "subtitle"
+
+ }
+
+ public init(attributesMetadata: [AttributeMetadata]? = nil, items: [ProductDetail]? = nil, subtitle: String? = nil, title: String? = nil) {
+
+ self.title = title
+
+ self.items = items
+
+ self.attributesMetadata = attributesMetadata
+
+ self.subtitle = subtitle
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([ProductDetail].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ attributesMetadata = try container.decode([AttributeMetadata].self, forKey: .attributesMetadata)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(attributesMetadata, forKey: .attributesMetadata)
+
+
+
+ try? container.encodeIfPresent(subtitle, forKey: .subtitle)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductCompareResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductCompareResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index c5ed5927c6..0000000000
--- a/Sources/code/application/Models/Catalog/ProductCompareResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductCompareResponseSchema
- Used By: Catalog
- */
- class ProductCompareResponseSchema: Codable {
-
- public var title: String?
-
- public var items: [ProductDetail]?
-
- public var attributesMetadata: [AttributeMetadata]?
-
- public var subtitle: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case title = "title"
-
- case items = "items"
-
- case attributesMetadata = "attributes_metadata"
-
- case subtitle = "subtitle"
-
- }
-
- public init(attributesMetadata: [AttributeMetadata]? = nil, items: [ProductDetail]? = nil, subtitle: String? = nil, title: String? = nil) {
-
- self.title = title
-
- self.items = items
-
- self.attributesMetadata = attributesMetadata
-
- self.subtitle = subtitle
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ProductDetail].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- attributesMetadata = try container.decode([AttributeMetadata].self, forKey: .attributesMetadata)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(attributesMetadata, forKey: .attributesMetadata)
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductDetailCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductDetailCatalogAppModel.swift
index ae99e92cd9..2c1cf99058 100644
--- a/Sources/code/application/Models/Catalog/ProductDetailCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductDetailCatalogAppModel.swift
@@ -82,12 +82,6 @@ public extension ApplicationClient.Catalog {
public var teaserTag: String?
- public var promoMeta: [String: Any]?
-
- public var noOfBoxes: Int?
-
- public var countryOfOrigin: String?
-
public enum CodingKeys: String, CodingKey {
@@ -165,15 +159,9 @@ public extension ApplicationClient.Catalog {
case teaserTag = "teaser_tag"
- case promoMeta = "promo_meta"
-
- case noOfBoxes = "no_of_boxes"
-
- case countryOfOrigin = "country_of_origin"
-
}
- public init(action: ProductListingAction? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ProductBrand]? = nil, categoryMap: ProductCategoryMap? = nil, color: String? = nil, countryOfOrigin: String? = nil, customOrder: ProductDetailCustomOrder? = nil, department: ProductDepartment? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, isDependent: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
+ public init(action: ProductListingAction? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ProductBrand]? = nil, categoryMap: ProductCategoryMap? = nil, color: String? = nil, customOrder: ProductDetailCustomOrder? = nil, department: ProductDepartment? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, isDependent: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, rating: Double? = nil, ratingCount: Int? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
self.uid = uid
@@ -249,12 +237,6 @@ public extension ApplicationClient.Catalog {
self.teaserTag = teaserTag
- self.promoMeta = promoMeta
-
- self.noOfBoxes = noOfBoxes
-
- self.countryOfOrigin = countryOfOrigin
-
}
required public init(from decoder: Decoder) throws {
@@ -697,42 +679,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -886,18 +832,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
- try? container.encodeIfPresent(promoMeta, forKey: .promoMeta)
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductDetailsCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductDetailsCatalogAppModel.swift
index 4f233d239a..8e3920af01 100644
--- a/Sources/code/application/Models/Catalog/ProductDetailsCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductDetailsCatalogAppModel.swift
@@ -44,7 +44,7 @@ public extension ApplicationClient.Catalog {
public var rating: Double?
- public var identifier: Identifier?
+ public var identifier: [String: Any]?
public var highlights: [[String: Any]]?
@@ -97,7 +97,7 @@ public extension ApplicationClient.Catalog {
}
- public init(attributes: [String: Any]? = nil, brandUid: Int? = nil, countryOfOrigin: [String: Any]? = nil, description: [String: Any]? = nil, groupedAttributes: [String: Any]? = nil, hasVariant: Bool? = nil, highlights: [[String: Any]]? = nil, hsnCode: Int? = nil, identifier: Identifier? = nil, images: [[String: Any]]? = nil, imageNature: [String: Any]? = nil, isSet: Bool? = nil, itemCode: [String: Any]? = nil, media: [[String: Any]]? = nil, name: [String: Any]? = nil, outOfStock: Bool? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: [String: Any]? = nil, slug: [String: Any]? = nil, templateTag: [String: Any]? = nil) {
+ public init(attributes: [String: Any]? = nil, brandUid: Int? = nil, countryOfOrigin: [String: Any]? = nil, description: [String: Any]? = nil, groupedAttributes: [String: Any]? = nil, hasVariant: Bool? = nil, highlights: [[String: Any]]? = nil, hsnCode: Int? = nil, identifier: [String: Any]? = nil, images: [[String: Any]]? = nil, imageNature: [String: Any]? = nil, isSet: Bool? = nil, itemCode: [String: Any]? = nil, media: [[String: Any]]? = nil, name: [String: Any]? = nil, outOfStock: Bool? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: [String: Any]? = nil, slug: [String: Any]? = nil, templateTag: [String: Any]? = nil) {
self.templateTag = templateTag
@@ -364,7 +364,7 @@ public extension ApplicationClient.Catalog {
do {
- identifier = try container.decode(Identifier.self, forKey: .identifier)
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/application/Models/Catalog/ProductFiltersValueCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductFiltersValueCatalogAppModel.swift
index 5ca53287dd..07b49c0f3d 100644
--- a/Sources/code/application/Models/Catalog/ProductFiltersValueCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductFiltersValueCatalogAppModel.swift
@@ -32,8 +32,6 @@ public extension ApplicationClient.Catalog {
public var max: Int?
- public var logo: Media?
-
public enum CodingKeys: String, CodingKey {
@@ -61,11 +59,9 @@ public extension ApplicationClient.Catalog {
case max = "max"
- case logo = "logo"
-
}
- public init(count: Int? = nil, currencyCode: String? = nil, currencySymbol: String? = nil, display: String, displayFormat: String? = nil, isSelected: Bool, logo: Media? = nil, max: Int? = nil, min: Int? = nil, queryFormat: String? = nil, selectedMax: Int? = nil, selectedMin: Int? = nil, value: String? = nil) {
+ public init(count: Int? = nil, currencyCode: String? = nil, currencySymbol: String? = nil, display: String, displayFormat: String? = nil, isSelected: Bool, max: Int? = nil, min: Int? = nil, queryFormat: String? = nil, selectedMax: Int? = nil, selectedMin: Int? = nil, value: String? = nil) {
self.min = min
@@ -91,8 +87,6 @@ public extension ApplicationClient.Catalog {
self.max = max
- self.logo = logo
-
}
required public init(from decoder: Decoder) throws {
@@ -228,18 +222,6 @@ public extension ApplicationClient.Catalog {
}
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -293,10 +275,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(max, forKey: .max)
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..1a01f158c3
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductFrequentlyComparedSimilarResponse
+ Used By: Catalog
+ */
+ class ProductFrequentlyComparedSimilarResponse: Codable {
+
+ public var similars: ProductCompareResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case similars = "similars"
+
+ }
+
+ public init(similars: ProductCompareResponse? = nil) {
+
+ self.similars = similars
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ similars = try container.decode(ProductCompareResponse.self, forKey: .similars)
+
+ } 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(similars, forKey: .similars)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index bc14177912..0000000000
--- a/Sources/code/application/Models/Catalog/ProductFrequentlyComparedSimilarResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductFrequentlyComparedSimilarResponseSchema
- Used By: Catalog
- */
- class ProductFrequentlyComparedSimilarResponseSchema: Codable {
-
- public var similars: ProductCompareResponseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case similars = "similars"
-
- }
-
- public init(similars: ProductCompareResponseSchema? = nil) {
-
- self.similars = similars
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- similars = try container.decode(ProductCompareResponseSchema.self, forKey: .similars)
-
- } 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(similars, forKey: .similars)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductListingDetailCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductListingDetailCatalogAppModel.swift
index a33c7fe2a8..2f418bf016 100644
--- a/Sources/code/application/Models/Catalog/ProductListingDetailCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductListingDetailCatalogAppModel.swift
@@ -62,7 +62,7 @@ public extension ApplicationClient.Catalog {
public var attributes: [String: Any]?
- public var variants: [ProductVariantListingResponseSchema]?
+ public var variants: [ProductVariantListingResponse]?
public var discount: String?
@@ -88,12 +88,6 @@ public extension ApplicationClient.Catalog {
public var teaserTag: String?
- public var countryOfOrigin: String?
-
- public var isTryout: Bool?
-
- public var channel: String?
-
public enum CodingKeys: String, CodingKey {
@@ -177,15 +171,9 @@ public extension ApplicationClient.Catalog {
case teaserTag = "teaser_tag"
- case countryOfOrigin = "country_of_origin"
-
- case isTryout = "is_tryout"
-
- case channel = "channel"
-
}
- public init(action: ProductListingAction? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ProductBrand]? = nil, categoryMap: ProductCategoryMap? = nil, channel: String? = nil, color: String? = nil, countryOfOrigin: String? = nil, customOrder: ProductDetailCustomOrder? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String? = nil, isDependent: Bool? = nil, isTryout: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, variants: [ProductVariantListingResponseSchema]? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
+ public init(action: ProductListingAction? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ProductBrand]? = nil, categoryMap: ProductCategoryMap? = nil, color: String? = nil, customOrder: ProductDetailCustomOrder? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String? = nil, isDependent: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, variants: [ProductVariantListingResponse]? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
self.uid = uid
@@ -267,12 +255,6 @@ public extension ApplicationClient.Catalog {
self.teaserTag = teaserTag
- self.countryOfOrigin = countryOfOrigin
-
- self.isTryout = isTryout
-
- self.channel = channel
-
}
required public init(from decoder: Decoder) throws {
@@ -604,7 +586,7 @@ public extension ApplicationClient.Catalog {
do {
- variants = try container.decode([ProductVariantListingResponseSchema].self, forKey: .variants)
+ variants = try container.decode([ProductVariantListingResponse].self, forKey: .variants)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -751,42 +733,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 {
-
- }
-
-
-
- do {
- isTryout = try container.decode(Bool.self, forKey: .isTryout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- channel = try container.decode(String.self, forKey: .channel)
-
- } 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 {
@@ -952,18 +898,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
- try? container.encodeIfPresent(isTryout, forKey: .isTryout)
-
-
-
- try? container.encodeIfPresent(channel, forKey: .channel)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..b70168d172
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductListingResponseCatalogAppModel.swift
@@ -0,0 +1,112 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductListingResponse
+ Used By: Catalog
+ */
+ class ProductListingResponse: Codable {
+
+ public var items: [ProductListingDetail]?
+
+ public var filters: [ProductFilters]?
+
+ public var page: Page
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case filters = "filters"
+
+ case page = "page"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
+
+ self.items = items
+
+ self.filters = filters
+
+ self.page = page
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index dded566a0c..0000000000
--- a/Sources/code/application/Models/Catalog/ProductListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductListingResponseSchema
- Used By: Catalog
- */
- class ProductListingResponseSchema: Codable {
-
- public var items: [ProductListingDetail]?
-
- public var filters: [ProductFilters]?
-
- public var page: Page
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case filters = "filters"
-
- case page = "page"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
-
- self.items = items
-
- self.filters = filters
-
- self.page = page
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductReturnConfigCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductReturnConfigCatalogAppModel.swift
deleted file mode 100644
index fc34214f78..0000000000
--- a/Sources/code/application/Models/Catalog/ProductReturnConfigCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductReturnConfig
- Used By: Catalog
- */
- class ProductReturnConfig: Codable {
-
- public var onSameStore: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case onSameStore = "on_same_store"
-
- }
-
- public init(onSameStore: Bool? = nil) {
-
- self.onSameStore = onSameStore
-
- }
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(onSameStore, forKey: .onSameStore)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductSellersPriceResponseV3CatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductSellersPriceResponseV3CatalogAppModel.swift
deleted file mode 100644
index aac81e4457..0000000000
--- a/Sources/code/application/Models/Catalog/ProductSellersPriceResponseV3CatalogAppModel.swift
+++ /dev/null
@@ -1,537 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductSellersPriceResponseV3
- Used By: Catalog
- */
- class ProductSellersPriceResponseV3: Codable {
-
- public var store: StoreV3?
-
- public var articleAssignment: ArticleAssignmentV3?
-
- public var isCod: Bool?
-
- public var strategyWiseListing: [StrategyWiseListingSchemaV3]?
-
- public var quantity: Int?
-
- public var itemType: String?
-
- public var groupedAttributes: [SellerGroupAttributes]?
-
- public var returnConfig: ReturnConfigSchemaV3?
-
- public var articleId: String?
-
- public var isGift: Bool?
-
- public var set: ProductSetV3?
-
- public var sellerCount: Int?
-
- public var pricePerPiece: ProductStockPriceV3?
-
- public var discountMeta: DiscountMeta?
-
- public var discount: String?
-
- public var longLat: [Double]?
-
- public var specialBadge: String?
-
- public var price: ProductStockPriceV3?
-
- public var pricePerUnit: ProductStockUnitPriceV3?
-
- public var pincode: Int?
-
- public var marketplaceAttributes: [MarketPlaceSttributesSchemaV3]?
-
- public var seller: SellerV3?
-
- public var deliveryPromise: PromiseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case store = "store"
-
- case articleAssignment = "article_assignment"
-
- case isCod = "is_cod"
-
- case strategyWiseListing = "strategy_wise_listing"
-
- case quantity = "quantity"
-
- case itemType = "item_type"
-
- case groupedAttributes = "grouped_attributes"
-
- case returnConfig = "return_config"
-
- case articleId = "article_id"
-
- case isGift = "is_gift"
-
- case set = "set"
-
- case sellerCount = "seller_count"
-
- case pricePerPiece = "price_per_piece"
-
- case discountMeta = "discount_meta"
-
- case discount = "discount"
-
- case longLat = "long_lat"
-
- case specialBadge = "special_badge"
-
- case price = "price"
-
- case pricePerUnit = "price_per_unit"
-
- case pincode = "pincode"
-
- case marketplaceAttributes = "marketplace_attributes"
-
- case seller = "seller"
-
- case deliveryPromise = "delivery_promise"
-
- }
-
- public init(articleAssignment: ArticleAssignmentV3? = nil, articleId: String? = nil, deliveryPromise: PromiseSchema? = nil, discount: String? = nil, discountMeta: DiscountMeta? = nil, groupedAttributes: [SellerGroupAttributes]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, itemType: String? = nil, longLat: [Double]? = nil, marketplaceAttributes: [MarketPlaceSttributesSchemaV3]? = nil, pincode: Int? = nil, price: ProductStockPriceV3? = nil, pricePerPiece: ProductStockPriceV3? = nil, pricePerUnit: ProductStockUnitPriceV3? = nil, quantity: Int? = nil, returnConfig: ReturnConfigSchemaV3? = nil, seller: SellerV3? = nil, sellerCount: Int? = nil, set: ProductSetV3? = nil, specialBadge: String? = nil, store: StoreV3? = nil, strategyWiseListing: [StrategyWiseListingSchemaV3]? = nil) {
-
- self.store = store
-
- self.articleAssignment = articleAssignment
-
- self.isCod = isCod
-
- self.strategyWiseListing = strategyWiseListing
-
- self.quantity = quantity
-
- self.itemType = itemType
-
- self.groupedAttributes = groupedAttributes
-
- self.returnConfig = returnConfig
-
- self.articleId = articleId
-
- self.isGift = isGift
-
- self.set = set
-
- self.sellerCount = sellerCount
-
- self.pricePerPiece = pricePerPiece
-
- self.discountMeta = discountMeta
-
- self.discount = discount
-
- self.longLat = longLat
-
- self.specialBadge = specialBadge
-
- self.price = price
-
- self.pricePerUnit = pricePerUnit
-
- self.pincode = pincode
-
- self.marketplaceAttributes = marketplaceAttributes
-
- self.seller = seller
-
- self.deliveryPromise = deliveryPromise
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- store = try container.decode(StoreV3.self, forKey: .store)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articleAssignment = try container.decode(ArticleAssignmentV3.self, forKey: .articleAssignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- strategyWiseListing = try container.decode([StrategyWiseListingSchemaV3].self, forKey: .strategyWiseListing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- groupedAttributes = try container.decode([SellerGroupAttributes].self, forKey: .groupedAttributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnConfig = try container.decode(ReturnConfigSchemaV3.self, forKey: .returnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articleId = try container.decode(String.self, forKey: .articleId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- set = try container.decode(ProductSetV3.self, forKey: .set)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellerCount = try container.decode(Int.self, forKey: .sellerCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pricePerPiece = try container.decode(ProductStockPriceV3.self, forKey: .pricePerPiece)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountMeta = try container.decode(DiscountMeta.self, forKey: .discountMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- longLat = try container.decode([Double].self, forKey: .longLat)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- specialBadge = try container.decode(String.self, forKey: .specialBadge)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- price = try container.decode(ProductStockPriceV3.self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pricePerUnit = try container.decode(ProductStockUnitPriceV3.self, forKey: .pricePerUnit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- marketplaceAttributes = try container.decode([MarketPlaceSttributesSchemaV3].self, forKey: .marketplaceAttributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- seller = try container.decode(SellerV3.self, forKey: .seller)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(PromiseSchema.self, forKey: .deliveryPromise)
-
- } 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(articleAssignment, forKey: .articleAssignment)
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
- try? container.encodeIfPresent(strategyWiseListing, forKey: .strategyWiseListing)
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
- try? container.encodeIfPresent(groupedAttributes, forKey: .groupedAttributes)
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
-
- try? container.encodeIfPresent(articleId, forKey: .articleId)
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
- try? container.encodeIfPresent(set, forKey: .set)
-
-
-
- try? container.encodeIfPresent(sellerCount, forKey: .sellerCount)
-
-
-
- try? container.encodeIfPresent(pricePerPiece, forKey: .pricePerPiece)
-
-
-
- try? container.encodeIfPresent(discountMeta, forKey: .discountMeta)
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
- try? container.encodeIfPresent(longLat, forKey: .longLat)
-
-
-
- try? container.encodeIfPresent(specialBadge, forKey: .specialBadge)
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
- try? container.encodeIfPresent(pricePerUnit, forKey: .pricePerUnit)
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
- try? container.encodeIfPresent(marketplaceAttributes, forKey: .marketplaceAttributes)
-
-
-
- try? container.encodeIfPresent(seller, forKey: .seller)
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductSizePriceResponseV3CatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductSizePriceResponseV3CatalogAppModel.swift
index fc6a8da327..6ba0f186b8 100644
--- a/Sources/code/application/Models/Catalog/ProductSizePriceResponseV3CatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductSizePriceResponseV3CatalogAppModel.swift
@@ -54,16 +54,6 @@ public extension ApplicationClient.Catalog {
public var deliveryPromise: PromiseSchema?
- public var trader: [Trader]?
-
- public var customJson: [String: Any]?
-
- public var tags: [String]?
-
- public var inventoryUpdatedOn: String?
-
- public var isServiceable: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -113,19 +103,9 @@ public extension ApplicationClient.Catalog {
case deliveryPromise = "delivery_promise"
- case trader = "trader"
-
- case customJson = "_custom_json"
-
- case tags = "tags"
-
- case inventoryUpdatedOn = "inventory_updated_on"
-
- case isServiceable = "is_serviceable"
-
}
- public init(articleAssignment: ArticleAssignmentV3? = nil, articleId: String? = nil, deliveryPromise: PromiseSchema? = nil, discount: String? = nil, discountMeta: DiscountMeta? = nil, groupedAttributes: [SellerGroupAttributes]? = nil, inventoryUpdatedOn: String? = nil, isCod: Bool? = nil, isGift: Bool? = nil, isServiceable: Bool? = nil, itemType: String? = nil, longLat: [Double]? = nil, marketplaceAttributes: [MarketPlaceSttributesSchemaV3]? = nil, pincode: Int? = nil, price: ProductStockPriceV3? = nil, pricePerPiece: ProductStockPriceV3? = nil, pricePerUnit: ProductStockUnitPriceV3? = nil, quantity: Int? = nil, returnConfig: ReturnConfigSchemaV3? = nil, seller: SellerV3? = nil, sellerCount: Int? = nil, set: ProductSetV3? = nil, specialBadge: String? = nil, store: StoreV3? = nil, strategyWiseListing: [StrategyWiseListingSchemaV3]? = nil, tags: [String]? = nil, trader: [Trader]? = nil, customJson: [String: Any]? = nil) {
+ public init(articleAssignment: ArticleAssignmentV3? = nil, articleId: String? = nil, deliveryPromise: PromiseSchema? = nil, discount: String? = nil, discountMeta: DiscountMeta? = nil, groupedAttributes: [SellerGroupAttributes]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, itemType: String? = nil, longLat: [Double]? = nil, marketplaceAttributes: [MarketPlaceSttributesSchemaV3]? = nil, pincode: Int? = nil, price: ProductStockPriceV3? = nil, pricePerPiece: ProductStockPriceV3? = nil, pricePerUnit: ProductStockUnitPriceV3? = nil, quantity: Int? = nil, returnConfig: ReturnConfigSchemaV3? = nil, seller: SellerV3? = nil, sellerCount: Int? = nil, set: ProductSetV3? = nil, specialBadge: String? = nil, store: StoreV3? = nil, strategyWiseListing: [StrategyWiseListingSchemaV3]? = nil) {
self.store = store
@@ -173,16 +153,6 @@ public extension ApplicationClient.Catalog {
self.deliveryPromise = deliveryPromise
- self.trader = trader
-
- self.customJson = customJson
-
- self.tags = tags
-
- self.inventoryUpdatedOn = inventoryUpdatedOn
-
- self.isServiceable = isServiceable
-
}
required public init(from decoder: Decoder) throws {
@@ -464,66 +434,6 @@ public extension ApplicationClient.Catalog {
}
-
- do {
- 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)
- } 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 {
- 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 {
- inventoryUpdatedOn = try container.decode(String.self, forKey: .inventoryUpdatedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isServiceable = try container.decode(Bool.self, forKey: .isServiceable)
-
- } 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 {
@@ -621,26 +531,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
- try? container.encodeIfPresent(trader, forKey: .trader)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(inventoryUpdatedOn, forKey: .inventoryUpdatedOn)
-
-
-
- try? container.encodeIfPresent(isServiceable, forKey: .isServiceable)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductSizeSellersResponseV3CatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductSizeSellersResponseV3CatalogAppModel.swift
index 1627829852..2b4b0ef08f 100644
--- a/Sources/code/application/Models/Catalog/ProductSizeSellersResponseV3CatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductSizeSellersResponseV3CatalogAppModel.swift
@@ -8,7 +8,7 @@ public extension ApplicationClient.Catalog {
*/
class ProductSizeSellersResponseV3: Codable {
- public var items: [ProductSellersPriceResponseV3]?
+ public var items: [ProductSizePriceResponseV3]?
public var page: Page
@@ -25,7 +25,7 @@ public extension ApplicationClient.Catalog {
}
- public init(items: [ProductSellersPriceResponseV3]? = nil, page: Page, sortOn: [ProductSizeSellerFilterSchemaV3]? = nil) {
+ public init(items: [ProductSizePriceResponseV3]? = nil, page: Page, sortOn: [ProductSizeSellerFilterSchemaV3]? = nil) {
self.items = items
@@ -40,7 +40,7 @@ public extension ApplicationClient.Catalog {
do {
- items = try container.decode([ProductSellersPriceResponseV3].self, forKey: .items)
+ items = try container.decode([ProductSizePriceResponseV3].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/application/Models/Catalog/ProductSizesCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductSizesCatalogAppModel.swift
index bfee8da978..23ded6fbc0 100644
--- a/Sources/code/application/Models/Catalog/ProductSizesCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductSizesCatalogAppModel.swift
@@ -26,16 +26,6 @@ public extension ApplicationClient.Catalog {
public var discountMeta: DiscountMeta?
- public var moq: MOQ?
-
- public var tags: [String]?
-
- public var customOrder: [String: Any]?
-
- public var noOfBoxes: Int?
-
- public var teaserTag: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -57,19 +47,9 @@ public extension ApplicationClient.Catalog {
case discountMeta = "discount_meta"
- case moq = "moq"
-
- case tags = "tags"
-
- case customOrder = "custom_order"
-
- case noOfBoxes = "no_of_boxes"
-
- case teaserTag = "teaser_tag"
-
}
- public init(customOrder: [String: Any]? = nil, discount: String? = nil, discountMeta: DiscountMeta? = nil, moq: MOQ? = nil, multiSize: Bool? = nil, noOfBoxes: Int? = nil, price: ProductSizesPrice? = nil, pricePerPiece: ProductSizesPrice? = nil, sellable: Bool? = nil, sizes: [ProductSize]? = nil, sizeChart: SizeChart? = nil, stores: ProductSizeStores? = nil, tags: [String]? = nil, teaserTag: [String: Any]? = nil) {
+ public init(discount: String? = nil, discountMeta: DiscountMeta? = nil, multiSize: Bool? = nil, price: ProductSizesPrice? = nil, pricePerPiece: ProductSizesPrice? = nil, sellable: Bool? = nil, sizes: [ProductSize]? = nil, sizeChart: SizeChart? = nil, stores: ProductSizeStores? = nil) {
self.sizes = sizes
@@ -89,16 +69,6 @@ public extension ApplicationClient.Catalog {
self.discountMeta = discountMeta
- self.moq = moq
-
- self.tags = tags
-
- self.customOrder = customOrder
-
- self.noOfBoxes = noOfBoxes
-
- self.teaserTag = teaserTag
-
}
required public init(from decoder: Decoder) throws {
@@ -212,66 +182,6 @@ public extension ApplicationClient.Catalog {
}
-
- do {
- moq = try container.decode(MOQ.self, forKey: .moq)
-
- } 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 {
- customOrder = try container.decode([String: Any].self, forKey: .customOrder)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -313,26 +223,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(discountMeta, forKey: .discountMeta)
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/ProductStockStatusItemCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductStockStatusItemCatalogAppModel.swift
index 834c952ba4..f0067380d2 100644
--- a/Sources/code/application/Models/Catalog/ProductStockStatusItemCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ProductStockStatusItemCatalogAppModel.swift
@@ -10,112 +10,64 @@ public extension ApplicationClient.Catalog {
public var uid: String?
- public var sellerIdentifier: String?
-
- public var identifier: ArticleIdentifier?
+ public var quantity: Int?
- public var price: ProductStockPrice?
+ public var store: StoreDetail?
public var size: String?
- public var itemId: Int?
-
- public var brand: BrandDetail?
+ public var price: ProductStockPrice?
public var company: CompanyDetail?
- public var store: StoreDetail?
-
- public var quantity: Int?
-
- public var companyId: Int?
-
- public var brandId: Int?
-
- public var storeId: Int?
+ public var itemId: Int?
public var seller: Seller?
- public var priceMarked: Double?
-
- public var priceEffective: Double?
-
- public var currency: String?
+ public var identifier: [String: Any]?
public enum CodingKeys: String, CodingKey {
case uid = "uid"
- case sellerIdentifier = "seller_identifier"
-
- case identifier = "identifier"
+ case quantity = "quantity"
- case price = "price"
+ case store = "store"
case size = "size"
- case itemId = "item_id"
-
- case brand = "brand"
+ case price = "price"
case company = "company"
- case store = "store"
-
- case quantity = "quantity"
-
- case companyId = "company_id"
-
- case brandId = "brand_id"
-
- case storeId = "store_id"
+ case itemId = "item_id"
case seller = "seller"
- case priceMarked = "price_marked"
-
- case priceEffective = "price_effective"
-
- case currency = "currency"
+ case identifier = "identifier"
}
- public init(brand: BrandDetail? = nil, brandId: Int? = nil, company: CompanyDetail? = nil, companyId: Int? = nil, currency: String? = nil, identifier: ArticleIdentifier? = nil, itemId: Int? = nil, price: ProductStockPrice? = nil, priceEffective: Double? = nil, priceMarked: Double? = nil, quantity: Int? = nil, seller: Seller? = nil, sellerIdentifier: String? = nil, size: String? = nil, store: StoreDetail? = nil, storeId: Int? = nil, uid: String? = nil) {
+ public init(company: CompanyDetail? = nil, identifier: [String: Any]? = nil, itemId: Int? = nil, price: ProductStockPrice? = nil, quantity: Int? = nil, seller: Seller? = nil, size: String? = nil, store: StoreDetail? = nil, uid: String? = nil) {
self.uid = uid
- self.sellerIdentifier = sellerIdentifier
-
- self.identifier = identifier
+ self.quantity = quantity
- self.price = price
+ self.store = store
self.size = size
- self.itemId = itemId
-
- self.brand = brand
+ self.price = price
self.company = company
- self.store = store
-
- self.quantity = quantity
-
- self.companyId = companyId
-
- self.brandId = brandId
-
- self.storeId = storeId
+ self.itemId = itemId
self.seller = seller
- self.priceMarked = priceMarked
-
- self.priceEffective = priceEffective
-
- self.currency = currency
+ self.identifier = identifier
}
@@ -136,19 +88,7 @@ public extension ApplicationClient.Catalog {
do {
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifier = try container.decode(ArticleIdentifier.self, forKey: .identifier)
+ quantity = try container.decode(Int.self, forKey: .quantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -160,7 +100,7 @@ public extension ApplicationClient.Catalog {
do {
- price = try container.decode(ProductStockPrice.self, forKey: .price)
+ store = try container.decode(StoreDetail.self, forKey: .store)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -184,19 +124,7 @@ public extension ApplicationClient.Catalog {
do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- brand = try container.decode(BrandDetail.self, forKey: .brand)
+ price = try container.decode(ProductStockPrice.self, forKey: .price)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -220,55 +148,7 @@ public extension ApplicationClient.Catalog {
do {
- store = try container.decode(StoreDetail.self, forKey: .store)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- storeId = try container.decode(Int.self, forKey: .storeId)
+ itemId = try container.decode(Int.self, forKey: .itemId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -292,31 +172,7 @@ public extension ApplicationClient.Catalog {
do {
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(String.self, forKey: .currency)
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -336,15 +192,11 @@ public extension ApplicationClient.Catalog {
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
- try? container.encodeIfPresent(price, forKey: .price)
+ try? container.encodeIfPresent(store, forKey: .store)
@@ -352,11 +204,7 @@ public extension ApplicationClient.Catalog {
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
+ try? container.encodeIfPresent(price, forKey: .price)
@@ -364,23 +212,7 @@ public extension ApplicationClient.Catalog {
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
@@ -388,15 +220,7 @@ public extension ApplicationClient.Catalog {
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
}
diff --git a/Sources/code/application/Models/Catalog/ProductStockStatusResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductStockStatusResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..3a1138e969
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductStockStatusResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductStockStatusResponse
+ Used By: Catalog
+ */
+ class ProductStockStatusResponse: Codable {
+
+ public var items: [ProductStockStatusItem]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [ProductStockStatusItem]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([ProductStockStatusItem].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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductStockStatusResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductStockStatusResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 140c072d04..0000000000
--- a/Sources/code/application/Models/Catalog/ProductStockStatusResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductStockStatusResponseSchema
- Used By: Catalog
- */
- class ProductStockStatusResponseSchema: Codable {
-
- public var items: [ProductStockStatusItem]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [ProductStockStatusItem]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([ProductStockStatusItem].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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantItemResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantItemResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..eda8000211
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductVariantItemResponseCatalogAppModel.swift
@@ -0,0 +1,273 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductVariantItemResponse
+ Used By: Catalog
+ */
+ class ProductVariantItemResponse: Codable {
+
+ public var uid: Int?
+
+ public var colorName: String?
+
+ public var color: String?
+
+ public var medias: [Media]?
+
+ public var isAvailable: Bool?
+
+ public var customMeta: [CustomMetaFields]?
+
+ public var name: String?
+
+ public var value: String?
+
+ public var slug: String?
+
+ public var customJson: [String: Any]?
+
+ public var action: ProductListingAction?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uid = "uid"
+
+ case colorName = "color_name"
+
+ case color = "color"
+
+ case medias = "medias"
+
+ case isAvailable = "is_available"
+
+ case customMeta = "_custom_meta"
+
+ case name = "name"
+
+ case value = "value"
+
+ case slug = "slug"
+
+ case customJson = "_custom_json"
+
+ case action = "action"
+
+ }
+
+ public init(action: ProductListingAction? = nil, color: String? = nil, colorName: String? = nil, isAvailable: Bool? = nil, medias: [Media]? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, value: String? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
+
+ self.uid = uid
+
+ self.colorName = colorName
+
+ self.color = color
+
+ self.medias = medias
+
+ self.isAvailable = isAvailable
+
+ self.customMeta = customMeta
+
+ self.name = name
+
+ self.value = value
+
+ self.slug = slug
+
+ self.customJson = customJson
+
+ self.action = action
+
+ }
+
+ 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 {
+ colorName = try container.decode(String.self, forKey: .colorName)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ medias = try container.decode([Media].self, forKey: .medias)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customMeta = try container.decode([CustomMetaFields].self, forKey: .customMeta)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+ try? container.encodeIfPresent(colorName, forKey: .colorName)
+
+
+
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+ try? container.encodeIfPresent(medias, forKey: .medias)
+
+
+
+ try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
+
+
+
+ try? container.encodeIfPresent(customMeta, forKey: .customMeta)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantItemResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantItemResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 3dbb88fefd..0000000000
--- a/Sources/code/application/Models/Catalog/ProductVariantItemResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,273 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductVariantItemResponseSchema
- Used By: Catalog
- */
- class ProductVariantItemResponseSchema: Codable {
-
- public var uid: Int?
-
- public var colorName: String?
-
- public var color: String?
-
- public var medias: [Media]?
-
- public var isAvailable: Bool?
-
- public var customMeta: [CustomMetaFields]?
-
- public var name: String?
-
- public var value: String?
-
- public var slug: String?
-
- public var customJson: [String: Any]?
-
- public var action: ProductListingAction?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case colorName = "color_name"
-
- case color = "color"
-
- case medias = "medias"
-
- case isAvailable = "is_available"
-
- case customMeta = "_custom_meta"
-
- case name = "name"
-
- case value = "value"
-
- case slug = "slug"
-
- case customJson = "_custom_json"
-
- case action = "action"
-
- }
-
- public init(action: ProductListingAction? = nil, color: String? = nil, colorName: String? = nil, isAvailable: Bool? = nil, medias: [Media]? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, value: String? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMetaFields]? = nil) {
-
- self.uid = uid
-
- self.colorName = colorName
-
- self.color = color
-
- self.medias = medias
-
- self.isAvailable = isAvailable
-
- self.customMeta = customMeta
-
- self.name = name
-
- self.value = value
-
- self.slug = slug
-
- self.customJson = customJson
-
- self.action = action
-
- }
-
- 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 {
- colorName = try container.decode(String.self, forKey: .colorName)
-
- } 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 {
-
- }
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([CustomMetaFields].self, forKey: .customMeta)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(colorName, forKey: .colorName)
-
-
-
- try? container.encodeIfPresent(color, forKey: .color)
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
- try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..e081bf5f0e
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductVariantListingResponseCatalogAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductVariantListingResponse
+ Used By: Catalog
+ */
+ class ProductVariantListingResponse: Codable {
+
+ public var header: String?
+
+ public var items: [ProductVariantItemResponse]?
+
+ public var total: Int?
+
+ public var key: String?
+
+ public var displayType: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case header = "header"
+
+ case items = "items"
+
+ case total = "total"
+
+ case key = "key"
+
+ case displayType = "display_type"
+
+ }
+
+ public init(displayType: String? = nil, header: String? = nil, items: [ProductVariantItemResponse]? = nil, key: String? = nil, total: Int? = nil) {
+
+ self.header = header
+
+ self.items = items
+
+ self.total = total
+
+ self.key = key
+
+ self.displayType = displayType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ header = try container.decode(String.self, forKey: .header)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([ProductVariantItemResponse].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ displayType = try container.decode(String.self, forKey: .displayType)
+
+ } 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(header, forKey: .header)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+ try? container.encodeIfPresent(displayType, forKey: .displayType)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 3aacd98c2a..0000000000
--- a/Sources/code/application/Models/Catalog/ProductVariantListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductVariantListingResponseSchema
- Used By: Catalog
- */
- class ProductVariantListingResponseSchema: Codable {
-
- public var header: String?
-
- public var items: [ProductVariantItemResponseSchema]?
-
- public var total: Int?
-
- public var key: String?
-
- public var displayType: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case header = "header"
-
- case items = "items"
-
- case total = "total"
-
- case key = "key"
-
- case displayType = "display_type"
-
- }
-
- public init(displayType: String? = nil, header: String? = nil, items: [ProductVariantItemResponseSchema]? = nil, key: String? = nil, total: Int? = nil) {
-
- self.header = header
-
- self.items = items
-
- self.total = total
-
- self.key = key
-
- self.displayType = displayType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- header = try container.decode(String.self, forKey: .header)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ProductVariantItemResponseSchema].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- displayType = try container.decode(String.self, forKey: .displayType)
-
- } 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(header, forKey: .header)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
- try? container.encodeIfPresent(displayType, forKey: .displayType)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..b0a9915000
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductVariantResponseCatalogAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductVariantResponse
+ Used By: Catalog
+ */
+ class ProductVariantResponse: Codable {
+
+ public var displayType: String?
+
+ public var header: String?
+
+ public var groupId: String?
+
+ public var items: [ProductVariantItemResponse]?
+
+ public var key: String?
+
+ public var logo: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case displayType = "display_type"
+
+ case header = "header"
+
+ case groupId = "group_id"
+
+ case items = "items"
+
+ case key = "key"
+
+ case logo = "logo"
+
+ }
+
+ public init(displayType: String? = nil, groupId: String? = nil, header: String? = nil, items: [ProductVariantItemResponse]? = nil, key: String? = nil, logo: String? = nil) {
+
+ self.displayType = displayType
+
+ self.header = header
+
+ self.groupId = groupId
+
+ self.items = items
+
+ self.key = key
+
+ self.logo = logo
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ displayType = try container.decode(String.self, forKey: .displayType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ header = try container.decode(String.self, forKey: .header)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ groupId = try container.decode(String.self, forKey: .groupId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([ProductVariantItemResponse].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(displayType, forKey: .displayType)
+
+
+
+ try? container.encodeIfPresent(header, forKey: .header)
+
+
+
+ try? container.encodeIfPresent(groupId, forKey: .groupId)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 5ac0f5156e..0000000000
--- a/Sources/code/application/Models/Catalog/ProductVariantResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductVariantResponseSchema
- Used By: Catalog
- */
- class ProductVariantResponseSchema: Codable {
-
- public var displayType: String?
-
- public var header: String?
-
- public var groupId: String?
-
- public var items: [ProductVariantItemResponseSchema]?
-
- public var key: String?
-
- public var logo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case displayType = "display_type"
-
- case header = "header"
-
- case groupId = "group_id"
-
- case items = "items"
-
- case key = "key"
-
- case logo = "logo"
-
- }
-
- public init(displayType: String? = nil, groupId: String? = nil, header: String? = nil, items: [ProductVariantItemResponseSchema]? = nil, key: String? = nil, logo: String? = nil) {
-
- self.displayType = displayType
-
- self.header = header
-
- self.groupId = groupId
-
- self.items = items
-
- self.key = key
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- displayType = try container.decode(String.self, forKey: .displayType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- header = try container.decode(String.self, forKey: .header)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- groupId = try container.decode(String.self, forKey: .groupId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ProductVariantItemResponseSchema].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(displayType, forKey: .displayType)
-
-
-
- try? container.encodeIfPresent(header, forKey: .header)
-
-
-
- try? container.encodeIfPresent(groupId, forKey: .groupId)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantsResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantsResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..ed55445ff3
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductVariantsResponseCatalogAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductVariantsResponse
+ Used By: Catalog
+ */
+ class ProductVariantsResponse: Codable {
+
+ public var variants: [ProductVariantResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case variants = "variants"
+
+ }
+
+ public init(variants: [ProductVariantResponse]? = nil) {
+
+ self.variants = variants
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ variants = try container.decode([ProductVariantResponse].self, forKey: .variants)
+
+ } 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(variants, forKey: .variants)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductVariantsResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductVariantsResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 310576b7d9..0000000000
--- a/Sources/code/application/Models/Catalog/ProductVariantsResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductVariantsResponseSchema
- Used By: Catalog
- */
- class ProductVariantsResponseSchema: Codable {
-
- public var variants: [ProductVariantResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case variants = "variants"
-
- }
-
- public init(variants: [ProductVariantResponseSchema]? = nil) {
-
- self.variants = variants
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- variants = try container.decode([ProductVariantResponseSchema].self, forKey: .variants)
-
- } 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(variants, forKey: .variants)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ProductsComparisonResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductsComparisonResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..07704a5b2c
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/ProductsComparisonResponseCatalogAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: ProductsComparisonResponse
+ Used By: Catalog
+ */
+ class ProductsComparisonResponse: Codable {
+
+ public var items: [ProductDetail]?
+
+ public var attributesMetadata: [AttributeMetadata]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case attributesMetadata = "attributes_metadata"
+
+ }
+
+ public init(attributesMetadata: [AttributeMetadata]? = nil, items: [ProductDetail]? = nil) {
+
+ self.items = items
+
+ self.attributesMetadata = attributesMetadata
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([ProductDetail].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ attributesMetadata = try container.decode([AttributeMetadata].self, forKey: .attributesMetadata)
+
+ } 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(attributesMetadata, forKey: .attributesMetadata)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ProductsComparisonResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ProductsComparisonResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index ba499b23bb..0000000000
--- a/Sources/code/application/Models/Catalog/ProductsComparisonResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: ProductsComparisonResponseSchema
- Used By: Catalog
- */
- class ProductsComparisonResponseSchema: Codable {
-
- public var items: [ProductCompareDetail]?
-
- public var attributesMetadata: [AttributeMetadata]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case attributesMetadata = "attributes_metadata"
-
- }
-
- public init(attributesMetadata: [AttributeMetadata]? = nil, items: [ProductCompareDetail]? = nil) {
-
- self.items = items
-
- self.attributesMetadata = attributesMetadata
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([ProductCompareDetail].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- attributesMetadata = try container.decode([AttributeMetadata].self, forKey: .attributesMetadata)
-
- } 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(attributesMetadata, forKey: .attributesMetadata)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/ScheduleCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ScheduleCatalogAppModel.swift
deleted file mode 100644
index ed4db0bb10..0000000000
--- a/Sources/code/application/Models/Catalog/ScheduleCatalogAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: Schedule
- Used By: Catalog
- */
- class Schedule: Codable {
-
- public var cron: String?
-
- public var nextSchedule: [NextSchedule]?
-
- public var duration: Int?
-
- public var start: String?
-
- public var end: String?
-
- public var metadata: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cron = "cron"
-
- case nextSchedule = "next_schedule"
-
- case duration = "duration"
-
- case start = "start"
-
- case end = "end"
-
- case metadata = "metadata"
-
- }
-
- public init(cron: String? = nil, duration: Int? = nil, end: String? = nil, metadata: [String: Any]? = nil, nextSchedule: [NextSchedule]? = nil, start: String? = nil) {
-
- self.cron = cron
-
- self.nextSchedule = nextSchedule
-
- self.duration = duration
-
- self.start = start
-
- self.end = end
-
- self.metadata = metadata
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- nextSchedule = try container.decode([NextSchedule].self, forKey: .nextSchedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- metadata = try container.decode([String: Any].self, forKey: .metadata)
-
- } 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(cron, forKey: .cron)
-
-
-
- try? container.encodeIfPresent(nextSchedule, forKey: .nextSchedule)
-
-
-
- try? container.encodeIfPresent(duration, forKey: .duration)
-
-
-
- try? container.encodeIfPresent(start, forKey: .start)
-
-
-
- try? container.encodeIfPresent(end, forKey: .end)
-
-
-
- try? container.encodeIfPresent(metadata, forKey: .metadata)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/SecondLevelChildCatalogAppModel.swift b/Sources/code/application/Models/Catalog/SecondLevelChildCatalogAppModel.swift
index 574b7eece1..bfff8a461d 100644
--- a/Sources/code/application/Models/Catalog/SecondLevelChildCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/SecondLevelChildCatalogAppModel.swift
@@ -22,8 +22,6 @@ public extension ApplicationClient.Catalog {
public var action: ProductListingAction?
- public var priority: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -41,11 +39,9 @@ public extension ApplicationClient.Catalog {
case action = "action"
- case priority = "priority"
-
}
- public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [ThirdLevelChild]? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [ThirdLevelChild]? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
self.uid = uid
@@ -61,8 +57,6 @@ public extension ApplicationClient.Catalog {
self.action = action
- self.priority = priority
-
}
required public init(from decoder: Decoder) throws {
@@ -152,18 +146,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 func encode(to encoder: Encoder) throws {
@@ -197,10 +179,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(action, forKey: .action)
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/StoreAddressSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreAddressSchemaCatalogAppModel.swift
deleted file mode 100644
index 382fdb4c7c..0000000000
--- a/Sources/code/application/Models/Catalog/StoreAddressSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: StoreAddressSchema
- Used By: Catalog
- */
- class StoreAddressSchema: Codable {
-
- public var latitude: Double?
-
- public var state: String?
-
- public var country: String?
-
- public var landmark: String?
-
- public var address1: String?
-
- public var pincode: Int?
-
- public var city: String?
-
- public var longitude: Double?
-
- public var address2: String?
-
- public var latLong: LatLong?
-
- public var countryCode: String?
-
- public var addressMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case latitude = "latitude"
-
- case state = "state"
-
- case country = "country"
-
- case landmark = "landmark"
-
- case address1 = "address1"
-
- case pincode = "pincode"
-
- case city = "city"
-
- case longitude = "longitude"
-
- case address2 = "address2"
-
- case latLong = "lat_long"
-
- case countryCode = "country_code"
-
- case addressMeta = "address_meta"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressMeta: [String: Any]? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double? = nil, latLong: LatLong? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.latitude = latitude
-
- self.state = state
-
- self.country = country
-
- self.landmark = landmark
-
- self.address1 = address1
-
- self.pincode = pincode
-
- self.city = city
-
- self.longitude = longitude
-
- self.address2 = address2
-
- self.latLong = latLong
-
- self.countryCode = countryCode
-
- self.addressMeta = addressMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- latLong = try container.decode(LatLong.self, forKey: .latLong)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- addressMeta = try container.decode([String: Any].self, forKey: .addressMeta)
-
- } 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(latitude, forKey: .latitude)
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
- try? container.encodeIfPresent(addressMeta, forKey: .addressMeta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/StoreAddressSerializerCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreAddressSerializerCatalogAppModel.swift
new file mode 100644
index 0000000000..1b8e4f4b7f
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/StoreAddressSerializerCatalogAppModel.swift
@@ -0,0 +1,229 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: StoreAddressSerializer
+ Used By: Catalog
+ */
+ class StoreAddressSerializer: Codable {
+
+ public var latitude: Double?
+
+ public var state: String?
+
+ public var country: String?
+
+ public var landmark: String?
+
+ public var address1: String?
+
+ public var pincode: Int?
+
+ public var city: String?
+
+ public var longitude: Double?
+
+ public var address2: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case latitude = "latitude"
+
+ case state = "state"
+
+ case country = "country"
+
+ case landmark = "landmark"
+
+ case address1 = "address1"
+
+ case pincode = "pincode"
+
+ case city = "city"
+
+ case longitude = "longitude"
+
+ case address2 = "address2"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, city: String? = nil, country: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
+
+ self.latitude = latitude
+
+ self.state = state
+
+ self.country = country
+
+ self.landmark = landmark
+
+ self.address1 = address1
+
+ self.pincode = pincode
+
+ self.city = city
+
+ self.longitude = longitude
+
+ self.address2 = address2
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/StoreCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreCatalogAppModel.swift
index e51051c18c..be98d04444 100644
--- a/Sources/code/application/Models/Catalog/StoreCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/StoreCatalogAppModel.swift
@@ -30,10 +30,6 @@ public extension ApplicationClient.Catalog {
public var tags: [String]?
- public var managerContact: String?
-
- public var contacts: [ContactDetails]?
-
public enum CodingKeys: String, CodingKey {
@@ -59,13 +55,9 @@ public extension ApplicationClient.Catalog {
case tags = "tags"
- case managerContact = "manager_contact"
-
- case contacts = "contacts"
-
}
- public init(address: String? = nil, city: String? = nil, contacts: [ContactDetails]? = nil, country: String? = nil, latLong: LatLong? = nil, managerContact: String? = nil, name: String? = nil, pincode: Int? = nil, state: String? = nil, storeCode: String? = nil, storeEmail: String? = nil, tags: [String]? = nil, uid: Int? = nil) {
+ public init(address: String? = nil, city: String? = nil, country: String? = nil, latLong: LatLong? = nil, name: String? = nil, pincode: Int? = nil, state: String? = nil, storeCode: String? = nil, storeEmail: String? = nil, tags: [String]? = nil, uid: Int? = nil) {
self.uid = uid
@@ -89,10 +81,6 @@ public extension ApplicationClient.Catalog {
self.tags = tags
- self.managerContact = managerContact
-
- self.contacts = contacts
-
}
required public init(from decoder: Decoder) throws {
@@ -230,30 +218,6 @@ public extension ApplicationClient.Catalog {
}
-
- do {
- managerContact = try container.decode(String.self, forKey: .managerContact)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- contacts = try container.decode([ContactDetails].self, forKey: .contacts)
-
- } 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 {
@@ -303,14 +267,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(tags, forKey: .tags)
-
- try? container.encodeIfPresent(managerContact, forKey: .managerContact)
-
-
-
- try? container.encodeIfPresent(contacts, forKey: .contacts)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/StoreContactCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreContactCatalogAppModel.swift
deleted file mode 100644
index 97b77e3dd0..0000000000
--- a/Sources/code/application/Models/Catalog/StoreContactCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: StoreContact
- Used By: Catalog
- */
- class StoreContact: 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? = nil, number: String? = nil) {
-
- self.number = number
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- number = try container.decode(String.self, forKey: .number)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryCode = try container.decode(Int.self, forKey: .countryCode)
-
- } 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(number, forKey: .number)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/StoreDetailsCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreDetailsCatalogAppModel.swift
index 0a0837578b..d636fde1b6 100644
--- a/Sources/code/application/Models/Catalog/StoreDetailsCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/StoreDetailsCatalogAppModel.swift
@@ -14,13 +14,13 @@ public extension ApplicationClient.Catalog {
public var company: CompanyStore?
- public var manager: StoreManagerSchema?
+ public var manager: StoreManagerSerializer?
public var storeCode: String?
public var timing: [StoreTiming]?
- public var address: StoreAddressSchema?
+ public var address: StoreAddressSerializer?
public var customJson: [String: Any]?
@@ -28,34 +28,6 @@ public extension ApplicationClient.Catalog {
public var contactNumbers: [SellerPhoneNumber]?
- public var additionalContacts: [ContactDetails]?
-
- public var companyId: Int?
-
- public var displayName: String?
-
- public var storeType: String?
-
- public var autoInvoice: Bool?
-
- public var creditNote: Bool?
-
- public var stage: String?
-
- public var gstCredentials: GSTCredentials?
-
- public var productReturnConfig: ProductReturnConfig?
-
- public var avgOrderProcessingTime: OrderProcessingTime?
-
- public var bulkShipment: Bool?
-
- public var defaultOrderAcceptanceTiming: Bool?
-
- public var orderAcceptanceTiming: [OrderTiming]?
-
- public var autoAssignCourierPartner: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -79,37 +51,9 @@ public extension ApplicationClient.Catalog {
case contactNumbers = "contact_numbers"
- case additionalContacts = "additional_contacts"
-
- case companyId = "company_id"
-
- case displayName = "display_name"
-
- case storeType = "store_type"
-
- case autoInvoice = "auto_invoice"
-
- case creditNote = "credit_note"
-
- case stage = "stage"
-
- case gstCredentials = "gst_credentials"
-
- case productReturnConfig = "product_return_config"
-
- case avgOrderProcessingTime = "avg_order_processing_time"
-
- case bulkShipment = "bulk_shipment"
-
- case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
-
- case orderAcceptanceTiming = "order_acceptance_timing"
-
- case autoAssignCourierPartner = "auto_assign_courier_partner"
-
}
- public init(additionalContacts: [ContactDetails]? = nil, address: StoreAddressSchema? = nil, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: OrderProcessingTime? = nil, bulkShipment: Bool? = nil, company: CompanyStore? = nil, companyId: Int? = nil, contactNumbers: [SellerPhoneNumber]? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, departments: [StoreDepartments]? = nil, displayName: String? = nil, gstCredentials: GSTCredentials? = nil, manager: StoreManagerSchema? = nil, name: String? = nil, orderAcceptanceTiming: [OrderTiming]? = nil, productReturnConfig: ProductReturnConfig? = nil, stage: String? = nil, storeCode: String? = nil, storeType: String? = nil, timing: [StoreTiming]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(address: StoreAddressSerializer? = nil, company: CompanyStore? = nil, contactNumbers: [SellerPhoneNumber]? = nil, departments: [StoreDepartments]? = nil, manager: StoreManagerSerializer? = nil, name: String? = nil, storeCode: String? = nil, timing: [StoreTiming]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
self.uid = uid
@@ -131,34 +75,6 @@ public extension ApplicationClient.Catalog {
self.contactNumbers = contactNumbers
- self.additionalContacts = additionalContacts
-
- self.companyId = companyId
-
- self.displayName = displayName
-
- self.storeType = storeType
-
- self.autoInvoice = autoInvoice
-
- self.creditNote = creditNote
-
- self.stage = stage
-
- self.gstCredentials = gstCredentials
-
- self.productReturnConfig = productReturnConfig
-
- self.avgOrderProcessingTime = avgOrderProcessingTime
-
- self.bulkShipment = bulkShipment
-
- self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
-
- self.orderAcceptanceTiming = orderAcceptanceTiming
-
- self.autoAssignCourierPartner = autoAssignCourierPartner
-
}
required public init(from decoder: Decoder) throws {
@@ -202,7 +118,7 @@ public extension ApplicationClient.Catalog {
do {
- manager = try container.decode(StoreManagerSchema.self, forKey: .manager)
+ manager = try container.decode(StoreManagerSerializer.self, forKey: .manager)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -238,7 +154,7 @@ public extension ApplicationClient.Catalog {
do {
- address = try container.decode(StoreAddressSchema.self, forKey: .address)
+ address = try container.decode(StoreAddressSerializer.self, forKey: .address)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -284,174 +200,6 @@ public extension ApplicationClient.Catalog {
}
-
- do {
- additionalContacts = try container.decode([ContactDetails].self, forKey: .additionalContacts)
-
- } 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)
-
- } 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 {
- 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 {
-
- }
-
-
-
- do {
- autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- creditNote = try container.decode(Bool.self, forKey: .creditNote)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(GSTCredentials.self, forKey: .gstCredentials)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfig.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- avgOrderProcessingTime = try container.decode(OrderProcessingTime.self, forKey: .avgOrderProcessingTime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderAcceptanceTiming = try container.decode([OrderTiming].self, forKey: .orderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
-
- } 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 {
@@ -497,62 +245,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
- try? container.encodeIfPresent(additionalContacts, forKey: .additionalContacts)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
- try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
-
-
-
- try? container.encodeIfPresent(creditNote, forKey: .creditNote)
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
- try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
-
-
-
- try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
-
-
-
- try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
-
-
-
- try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
-
-
-
- try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/StoreListingResponseCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreListingResponseCatalogAppModel.swift
new file mode 100644
index 0000000000..33881a5146
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/StoreListingResponseCatalogAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: StoreListingResponse
+ Used By: Catalog
+ */
+ class StoreListingResponse: Codable {
+
+ public var items: [Store]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Store], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([Store].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/StoreListingResponseSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreListingResponseSchemaCatalogAppModel.swift
deleted file mode 100644
index 645c28f7ae..0000000000
--- a/Sources/code/application/Models/Catalog/StoreListingResponseSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: StoreListingResponseSchema
- Used By: Catalog
- */
- class StoreListingResponseSchema: Codable {
-
- public var items: [Store]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Store], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([Store].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/StoreManagerSchemaCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreManagerSchemaCatalogAppModel.swift
deleted file mode 100644
index 34610e0ffb..0000000000
--- a/Sources/code/application/Models/Catalog/StoreManagerSchemaCatalogAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: StoreManagerSchema
- Used By: Catalog
- */
- class StoreManagerSchema: Codable {
-
- public var name: String?
-
- public var email: String?
-
- public var mobileNo: SellerPhoneNumber?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- }
-
- public init(email: String? = nil, mobileNo: SellerPhoneNumber? = nil, name: String? = nil) {
-
- self.name = name
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
-
- do {
- mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
-
- } 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(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Catalog/StoreManagerSerializerCatalogAppModel.swift b/Sources/code/application/Models/Catalog/StoreManagerSerializerCatalogAppModel.swift
new file mode 100644
index 0000000000..f6059893f8
--- /dev/null
+++ b/Sources/code/application/Models/Catalog/StoreManagerSerializerCatalogAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Catalog {
+ /*
+ Model: StoreManagerSerializer
+ Used By: Catalog
+ */
+ class StoreManagerSerializer: Codable {
+
+ public var name: String?
+
+ public var email: String?
+
+ public var mobileNo: SellerPhoneNumber?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ }
+
+ public init(email: String? = nil, mobileNo: SellerPhoneNumber? = nil, name: String? = nil) {
+
+ self.name = name
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
+
+ } 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(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Catalog/ThirdLevelChildCatalogAppModel.swift b/Sources/code/application/Models/Catalog/ThirdLevelChildCatalogAppModel.swift
index 36b529cc1a..fa341031d5 100644
--- a/Sources/code/application/Models/Catalog/ThirdLevelChildCatalogAppModel.swift
+++ b/Sources/code/application/Models/Catalog/ThirdLevelChildCatalogAppModel.swift
@@ -22,8 +22,6 @@ public extension ApplicationClient.Catalog {
public var action: ProductListingAction?
- public var priority: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -41,11 +39,9 @@ public extension ApplicationClient.Catalog {
case action = "action"
- case priority = "priority"
-
}
- public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [[String: Any]]? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
+ public init(action: ProductListingAction? = nil, banners: ImageUrls? = nil, childs: [[String: Any]]? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
self.uid = uid
@@ -61,8 +57,6 @@ public extension ApplicationClient.Catalog {
self.action = action
- self.priority = priority
-
}
required public init(from decoder: Decoder) throws {
@@ -152,18 +146,6 @@ public extension ApplicationClient.Catalog {
}
-
- 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 func encode(to encoder: Encoder) throws {
@@ -197,10 +179,6 @@ public extension ApplicationClient.Catalog {
try? container.encodeIfPresent(action, forKey: .action)
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
}
}
diff --git a/Sources/code/application/Models/Catalog/TraderCatalogAppModel.swift b/Sources/code/application/Models/Catalog/TraderCatalogAppModel.swift
deleted file mode 100644
index f3013c3a43..0000000000
--- a/Sources/code/application/Models/Catalog/TraderCatalogAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Catalog {
- /*
- Model: Trader
- Used By: Catalog
- */
- class Trader: Codable {
-
- public var key: String?
-
- public var value: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case value = "value"
-
- }
-
- public init(key: String? = nil, value: String? = nil) {
-
- self.key = key
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Common/ApplicationResponseCommonAppModel.swift b/Sources/code/application/Models/Common/ApplicationResponseCommonAppModel.swift
new file mode 100644
index 0000000000..ab80d92f11
--- /dev/null
+++ b/Sources/code/application/Models/Common/ApplicationResponseCommonAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Common {
+ /*
+ Model: ApplicationResponse
+ Used By: Common
+ */
+ class ApplicationResponse: Codable {
+
+ public var application: Application?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case application = "application"
+
+ }
+
+ public init(application: Application? = nil) {
+
+ self.application = application
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ application = try container.decode(Application.self, forKey: .application)
+
+ } 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(application, forKey: .application)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Common/ApplicationResponseSchemaCommonAppModel.swift b/Sources/code/application/Models/Common/ApplicationResponseSchemaCommonAppModel.swift
deleted file mode 100644
index 67fa5cb03d..0000000000
--- a/Sources/code/application/Models/Common/ApplicationResponseSchemaCommonAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Common {
- /*
- Model: ApplicationResponseSchema
- Used By: Common
- */
- class ApplicationResponseSchema: Codable {
-
- public var application: Application?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case application = "application"
-
- }
-
- public init(application: Application? = nil) {
-
- self.application = application
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- application = try container.decode(Application.self, forKey: .application)
-
- } 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(application, forKey: .application)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Common/BadRequestCommonAppModel.swift b/Sources/code/application/Models/Common/BadRequestCommonAppModel.swift
new file mode 100644
index 0000000000..2370b4fe8e
--- /dev/null
+++ b/Sources/code/application/Models/Common/BadRequestCommonAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Common {
+ /*
+ Model: BadRequest
+ Used By: Common
+ */
+ class BadRequest: Codable {
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Common/BadRequestSchemaCommonAppModel.swift b/Sources/code/application/Models/Common/BadRequestSchemaCommonAppModel.swift
deleted file mode 100644
index 383e12b50c..0000000000
--- a/Sources/code/application/Models/Common/BadRequestSchemaCommonAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Common {
- /*
- Model: BadRequestSchema
- Used By: Common
- */
- class BadRequestSchema: Codable {
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/AppCurrencyResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppCurrencyResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..8a0d5ef230
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/AppCurrencyResponseConfigurationAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: AppCurrencyResponse
+ Used By: Configuration
+ */
+ class AppCurrencyResponse: Codable {
+
+ public var application: String?
+
+ public var defaultCurrency: DefaultCurrency?
+
+ public var supportedCurrency: [Currency]?
+
+ public var id: String?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case application = "application"
+
+ case defaultCurrency = "default_currency"
+
+ case supportedCurrency = "supported_currency"
+
+ case id = "_id"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
+
+ self.application = application
+
+ self.defaultCurrency = defaultCurrency
+
+ self.supportedCurrency = supportedCurrency
+
+ self.id = id
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } 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(application, forKey: .application)
+
+
+
+ try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
+
+
+
+ try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/AppCurrencyResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppCurrencyResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index e3eca5e2bb..0000000000
--- a/Sources/code/application/Models/Configuration/AppCurrencyResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: AppCurrencyResponseSchema
- Used By: Configuration
- */
- class AppCurrencyResponseSchema: Codable {
-
- public var application: String?
-
- public var defaultCurrency: DefaultCurrency?
-
- public var supportedCurrency: [Currency]?
-
- public var id: String?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case application = "application"
-
- case defaultCurrency = "default_currency"
-
- case supportedCurrency = "supported_currency"
-
- case id = "_id"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
-
- self.application = application
-
- self.defaultCurrency = defaultCurrency
-
- self.supportedCurrency = supportedCurrency
-
- self.id = id
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } 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(application, forKey: .application)
-
-
-
- try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
-
-
-
- try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/AppFeatureResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppFeatureResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..35e2cc6e5e
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/AppFeatureResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: AppFeatureResponse
+ Used By: Configuration
+ */
+ class AppFeatureResponse: Codable {
+
+ public var feature: AppFeature?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case feature = "feature"
+
+ }
+
+ public init(feature: AppFeature? = nil) {
+
+ self.feature = feature
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ feature = try container.decode(AppFeature.self, forKey: .feature)
+
+ } 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(feature, forKey: .feature)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/AppFeatureResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppFeatureResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index 54b0682b46..0000000000
--- a/Sources/code/application/Models/Configuration/AppFeatureResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: AppFeatureResponseSchema
- Used By: Configuration
- */
- class AppFeatureResponseSchema: Codable {
-
- public var feature: AppFeature?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case feature = "feature"
-
- }
-
- public init(feature: AppFeature? = nil) {
-
- self.feature = feature
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- feature = try container.decode(AppFeature.self, forKey: .feature)
-
- } 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(feature, forKey: .feature)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/AppStaffListResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppStaffListResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..d33b753aa4
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/AppStaffListResponseConfigurationAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: AppStaffListResponse
+ Used By: Configuration
+ */
+ class AppStaffListResponse: Codable {
+
+ public var page: Page?
+
+ public var items: [AppStaff]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [AppStaff]? = nil, page: Page? = nil) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([AppStaff].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(page, forKey: .page)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/AppStaffListResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppStaffListResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index 3c57e034a8..0000000000
--- a/Sources/code/application/Models/Configuration/AppStaffListResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: AppStaffListResponseSchema
- Used By: Configuration
- */
- class AppStaffListResponseSchema: Codable {
-
- public var page: Page?
-
- public var items: [AppStaff]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [AppStaff]? = nil, page: Page? = nil) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- items = try container.decode([AppStaff].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(page, forKey: .page)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/AppStaffResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppStaffResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..1769d6c7ea
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/AppStaffResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: AppStaffResponse
+ Used By: Configuration
+ */
+ class AppStaffResponse: Codable {
+
+ public var staffUsers: [AppStaff]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case staffUsers = "staff_users"
+
+ }
+
+ public init(staffUsers: [AppStaff]? = nil) {
+
+ self.staffUsers = staffUsers
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ staffUsers = try container.decode([AppStaff].self, forKey: .staffUsers)
+
+ } 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(staffUsers, forKey: .staffUsers)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/AppStaffResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppStaffResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index ee664a2e6e..0000000000
--- a/Sources/code/application/Models/Configuration/AppStaffResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: AppStaffResponseSchema
- Used By: Configuration
- */
- class AppStaffResponseSchema: Codable {
-
- public var staffUsers: [AppStaff]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case staffUsers = "staff_users"
-
- }
-
- public init(staffUsers: [AppStaff]? = nil) {
-
- self.staffUsers = staffUsers
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- staffUsers = try container.decode([AppStaff].self, forKey: .staffUsers)
-
- } 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(staffUsers, forKey: .staffUsers)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/AppTokenResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppTokenResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..cfd56fe364
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/AppTokenResponseConfigurationAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: AppTokenResponse
+ Used By: Configuration
+ */
+ class AppTokenResponse: Codable {
+
+ public var tokens: Tokens?
+
+ public var id: String?
+
+ public var application: String?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+ public var v: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case tokens = "tokens"
+
+ case id = "_id"
+
+ case application = "application"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ case v = "__v"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
+
+ self.tokens = tokens
+
+ self.id = id
+
+ self.application = application
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ self.v = v
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ tokens = try container.decode(Tokens.self, forKey: .tokens)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Int.self, forKey: .v)
+
+ } 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(tokens, forKey: .tokens)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/AppTokenResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/AppTokenResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index c39af35524..0000000000
--- a/Sources/code/application/Models/Configuration/AppTokenResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: AppTokenResponseSchema
- Used By: Configuration
- */
- class AppTokenResponseSchema: Codable {
-
- public var tokens: Tokens?
-
- public var id: String?
-
- public var application: String?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case tokens = "tokens"
-
- case id = "_id"
-
- case application = "application"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- case v = "__v"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
-
- self.tokens = tokens
-
- self.id = id
-
- self.application = application
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- tokens = try container.decode(Tokens.self, forKey: .tokens)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(tokens, forKey: .tokens)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/ApplicationAboutResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/ApplicationAboutResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..291ce32aca
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/ApplicationAboutResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: ApplicationAboutResponse
+ Used By: Configuration
+ */
+ class ApplicationAboutResponse: Codable {
+
+ public var applicationInfo: ApplicationInfo?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationInfo = "application_info"
+
+ }
+
+ public init(applicationInfo: ApplicationInfo? = nil) {
+
+ self.applicationInfo = applicationInfo
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ applicationInfo = try container.decode(ApplicationInfo.self, forKey: .applicationInfo)
+
+ } 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(applicationInfo, forKey: .applicationInfo)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/ApplicationAboutResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/ApplicationAboutResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index 4fba70836c..0000000000
--- a/Sources/code/application/Models/Configuration/ApplicationAboutResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: ApplicationAboutResponseSchema
- Used By: Configuration
- */
- class ApplicationAboutResponseSchema: Codable {
-
- public var applicationInfo: ApplicationInfo?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationInfo = "application_info"
-
- }
-
- public init(applicationInfo: ApplicationInfo? = nil) {
-
- self.applicationInfo = applicationInfo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- applicationInfo = try container.decode(ApplicationInfo.self, forKey: .applicationInfo)
-
- } 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(applicationInfo, forKey: .applicationInfo)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/CurrenciesResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/CurrenciesResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..825f64372c
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/CurrenciesResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: CurrenciesResponse
+ Used By: Configuration
+ */
+ class CurrenciesResponse: Codable {
+
+ public var items: [Currency]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Currency]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Currency].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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/CurrenciesResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/CurrenciesResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index a24d203c3d..0000000000
--- a/Sources/code/application/Models/Configuration/CurrenciesResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: CurrenciesResponseSchema
- Used By: Configuration
- */
- class CurrenciesResponseSchema: Codable {
-
- public var items: [Currency]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Currency]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Currency].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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/InvalidPayloadRequestConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/InvalidPayloadRequestConfigurationAppModel.swift
new file mode 100644
index 0000000000..6120918a7d
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/InvalidPayloadRequestConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: InvalidPayloadRequest
+ Used By: Configuration
+ */
+ class InvalidPayloadRequest: Codable {
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/InvalidPayloadRequestSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/InvalidPayloadRequestSchemaConfigurationAppModel.swift
deleted file mode 100644
index 05d9377556..0000000000
--- a/Sources/code/application/Models/Configuration/InvalidPayloadRequestSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: InvalidPayloadRequestSchema
- Used By: Configuration
- */
- class InvalidPayloadRequestSchema: Codable {
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/LanguageResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/LanguageResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..fb86ef667d
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/LanguageResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: LanguageResponse
+ Used By: Configuration
+ */
+ class LanguageResponse: Codable {
+
+ public var items: [SupportedLanguage]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [SupportedLanguage]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([SupportedLanguage].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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/LanguageResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/LanguageResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index 080e0fde86..0000000000
--- a/Sources/code/application/Models/Configuration/LanguageResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: LanguageResponseSchema
- Used By: Configuration
- */
- class LanguageResponseSchema: Codable {
-
- public var items: [SupportedLanguage]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [SupportedLanguage]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([SupportedLanguage].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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestConfigurationAppModel.swift
new file mode 100644
index 0000000000..f05f838719
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestConfigurationAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: OrderingStoreSelectRequest
+ Used By: Configuration
+ */
+ class OrderingStoreSelectRequest: Codable {
+
+ public var orderingStore: OrderingStoreSelect
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderingStore = "ordering_store"
+
+ }
+
+ public init(orderingStore: OrderingStoreSelect) {
+
+ self.orderingStore = orderingStore
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationAppModel.swift
deleted file mode 100644
index 0baf262bba..0000000000
--- a/Sources/code/application/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: OrderingStoreSelectRequestSchema
- Used By: Configuration
- */
- class OrderingStoreSelectRequestSchema: Codable {
-
- public var orderingStore: OrderingStoreSelect
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderingStore = "ordering_store"
-
- }
-
- public init(orderingStore: OrderingStoreSelect) {
-
- self.orderingStore = orderingStore
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/SuccessMessageResponseConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/SuccessMessageResponseConfigurationAppModel.swift
new file mode 100644
index 0000000000..780ce7b3ac
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/SuccessMessageResponseConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: SuccessMessageResponse
+ Used By: Configuration
+ */
+ class SuccessMessageResponse: Codable {
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Configuration/SuccessMessageResponseSchemaConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/SuccessMessageResponseSchemaConfigurationAppModel.swift
deleted file mode 100644
index 819ca72f92..0000000000
--- a/Sources/code/application/Models/Configuration/SuccessMessageResponseSchemaConfigurationAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Configuration {
- /*
- Model: SuccessMessageResponseSchema
- Used By: Configuration
- */
- class SuccessMessageResponseSchema: Codable {
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Configuration/UnhandledErrorConfigurationAppModel.swift b/Sources/code/application/Models/Configuration/UnhandledErrorConfigurationAppModel.swift
new file mode 100644
index 0000000000..0c340be402
--- /dev/null
+++ b/Sources/code/application/Models/Configuration/UnhandledErrorConfigurationAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Configuration {
+ /*
+ Model: UnhandledError
+ Used By: Configuration
+ */
+ class UnhandledError: Codable {
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Content/BlogGetDetailsContentAppModel.swift b/Sources/code/application/Models/Content/BlogGetDetailsContentAppModel.swift
deleted file mode 100644
index b62547ed8f..0000000000
--- a/Sources/code/application/Models/Content/BlogGetDetailsContentAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: BlogGetDetails
- Used By: Content
- */
- class BlogGetDetails: Codable {
-
- public var items: [BlogSchema]?
-
- public var page: Page?
-
- public var filters: BlogFilters?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case filters = "filters"
-
- }
-
- public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
-
- self.items = items
-
- self.page = page
-
- self.filters = filters
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([BlogSchema].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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- filters = try container.decode(BlogFilters.self, forKey: .filters)
-
- } 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(filters, forKey: .filters)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/BlogGetResponseContentAppModel.swift b/Sources/code/application/Models/Content/BlogGetResponseContentAppModel.swift
new file mode 100644
index 0000000000..099f23c4fb
--- /dev/null
+++ b/Sources/code/application/Models/Content/BlogGetResponseContentAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Content {
+ /*
+ Model: BlogGetResponse
+ Used By: Content
+ */
+ class BlogGetResponse: Codable {
+
+ public var items: [BlogSchema]?
+
+ public var page: Page?
+
+ public var filters: BlogFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case filters = "filters"
+
+ }
+
+ public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([BlogSchema].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(BlogFilters.self, forKey: .filters)
+
+ } 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(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Content/CustomFieldSchemaContentAppModel.swift b/Sources/code/application/Models/Content/CustomFieldSchemaContentAppModel.swift
index 69e45c54f7..4ad4eb2d8c 100644
--- a/Sources/code/application/Models/Content/CustomFieldSchemaContentAppModel.swift
+++ b/Sources/code/application/Models/Content/CustomFieldSchemaContentAppModel.swift
@@ -12,10 +12,12 @@ public extension ApplicationClient.Content {
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var resource: String?
+ public var creator: String?
+
public var value: [CustomFieldValue]?
public var resourceId: String?
@@ -34,6 +36,8 @@ public extension ApplicationClient.Content {
public var invalidValueErrors: [[String: Any]]?
+ public var createdBy: String?
+
public var isDeleted: Bool?
public var createdAt: String?
@@ -47,10 +51,12 @@ public extension ApplicationClient.Content {
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case resource = "resource"
+ case creator = "creator"
+
case value = "value"
case resourceId = "resource_id"
@@ -69,6 +75,8 @@ public extension ApplicationClient.Content {
case invalidValueErrors = "invalid_value_errors"
+ case createdBy = "created_by"
+
case isDeleted = "is_deleted"
case createdAt = "created_at"
@@ -77,16 +85,18 @@ public extension ApplicationClient.Content {
}
- public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, definitionId: String? = nil, hasInvalidValues: Bool? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceId: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil, id: String? = nil) {
+ public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, definitionId: String? = nil, hasInvalidValues: Bool? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceId: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil, id: String? = nil) {
self.id = id
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.resource = resource
+ self.creator = creator
+
self.value = value
self.resourceId = resourceId
@@ -105,6 +115,8 @@ public extension ApplicationClient.Content {
self.invalidValueErrors = invalidValueErrors
+ self.createdBy = createdBy
+
self.isDeleted = isDeleted
self.createdAt = createdAt
@@ -142,7 +154,7 @@ public extension ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -165,6 +177,18 @@ public extension ApplicationClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
value = try container.decode([CustomFieldValue].self, forKey: .value)
@@ -273,6 +297,18 @@ public extension ApplicationClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
@@ -322,7 +358,7 @@ public extension ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -330,6 +366,10 @@ public extension ApplicationClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
try? container.encodeIfPresent(value, forKey: .value)
@@ -366,6 +406,10 @@ public extension ApplicationClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
diff --git a/Sources/code/application/Models/Content/CustomObjectByIdSchemaContentAppModel.swift b/Sources/code/application/Models/Content/CustomObjectByIdSchemaContentAppModel.swift
index 846362a63f..bcca131c99 100644
--- a/Sources/code/application/Models/Content/CustomObjectByIdSchemaContentAppModel.swift
+++ b/Sources/code/application/Models/Content/CustomObjectByIdSchemaContentAppModel.swift
@@ -23,7 +23,7 @@ public extension ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
case status = "status"
@@ -37,7 +37,7 @@ public extension ApplicationClient.Content {
}
- public init(definition: CustomObjectListItemDefinationSchema? = nil, displayName: String? = nil, fields: [CustomObjectFieldSchema]? = nil, id: String? = nil, references: [[String: Any]]? = nil, status: String? = nil) {
+ public init(definition: CustomObjectListItemDefinationSchema? = nil, displayName: String? = nil, fields: [CustomObjectFieldSchema]? = nil, references: [[String: Any]]? = nil, status: String? = nil, id: String? = nil) {
self.id = id
diff --git a/Sources/code/application/Models/Content/CustomObjectFieldSchemaContentAppModel.swift b/Sources/code/application/Models/Content/CustomObjectFieldSchemaContentAppModel.swift
index 5361bed707..759038748f 100644
--- a/Sources/code/application/Models/Content/CustomObjectFieldSchemaContentAppModel.swift
+++ b/Sources/code/application/Models/Content/CustomObjectFieldSchemaContentAppModel.swift
@@ -10,7 +10,7 @@ public extension ApplicationClient.Content {
public var id: String?
- public var slug: String?
+ public var key: String?
public var value: [CustomObjectFieldValue]?
@@ -23,7 +23,7 @@ public extension ApplicationClient.Content {
case id = "_id"
- case slug = "slug"
+ case key = "key"
case value = "value"
@@ -33,11 +33,11 @@ public extension ApplicationClient.Content {
}
- public init(definitionId: String? = nil, slug: String? = nil, type: String? = nil, value: [CustomObjectFieldValue]? = nil, id: String? = nil) {
+ public init(definitionId: String? = nil, key: String? = nil, type: String? = nil, value: [CustomObjectFieldValue]? = nil, id: String? = nil) {
self.id = id
- self.slug = slug
+ self.key = key
self.value = value
@@ -64,7 +64,7 @@ public extension ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -120,7 +120,7 @@ public extension ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
diff --git a/Sources/code/application/Models/Content/CustomObjectListItemSchemaContentAppModel.swift b/Sources/code/application/Models/Content/CustomObjectListItemSchemaContentAppModel.swift
deleted file mode 100644
index 00ec78136e..0000000000
--- a/Sources/code/application/Models/Content/CustomObjectListItemSchemaContentAppModel.swift
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: CustomObjectListItemSchema
- Used By: Content
- */
- class CustomObjectListItemSchema: Codable {
-
- public var id: String?
-
- public var definitionId: String?
-
- public var status: String?
-
- public var updatedAt: String?
-
- public var displayName: String?
-
- public var definition: CustomObjectListItemDefinationSchema?
-
- public var references: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case definitionId = "definition_id"
-
- case status = "status"
-
- case updatedAt = "updated_at"
-
- case displayName = "display_name"
-
- case definition = "definition"
-
- case references = "references"
-
- }
-
- public init(definition: CustomObjectListItemDefinationSchema? = nil, definitionId: String? = nil, displayName: String? = nil, references: Int? = nil, status: String? = nil, updatedAt: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.definitionId = definitionId
-
- self.status = status
-
- self.updatedAt = updatedAt
-
- self.displayName = displayName
-
- self.definition = definition
-
- self.references = references
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- definitionId = try container.decode(String.self, forKey: .definitionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } 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 {
- definition = try container.decode(CustomObjectListItemDefinationSchema.self, forKey: .definition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- references = try container.decode(Int.self, forKey: .references)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(definitionId, forKey: .definitionId)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(definition, forKey: .definition)
-
-
-
- try? container.encodeIfPresent(references, forKey: .references)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/CustomObjectsSchemaContentAppModel.swift b/Sources/code/application/Models/Content/CustomObjectsSchemaContentAppModel.swift
deleted file mode 100644
index c7257fcd89..0000000000
--- a/Sources/code/application/Models/Content/CustomObjectsSchemaContentAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: CustomObjectsSchema
- Used By: Content
- */
- class CustomObjectsSchema: Codable {
-
- public var items: [CustomObjectListItemSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CustomObjectListItemSchema]? = nil, page: Page? = nil) {
-
- 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([CustomObjectListItemSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/NavigationGetDetailsContentAppModel.swift b/Sources/code/application/Models/Content/NavigationGetDetailsContentAppModel.swift
deleted file mode 100644
index ba8b0a4c5a..0000000000
--- a/Sources/code/application/Models/Content/NavigationGetDetailsContentAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: NavigationGetDetails
- Used By: Content
- */
- class NavigationGetDetails: Codable {
-
- public var items: [NavigationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
-
- 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([NavigationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/NavigationGetResponseContentAppModel.swift b/Sources/code/application/Models/Content/NavigationGetResponseContentAppModel.swift
new file mode 100644
index 0000000000..1063cf5cb3
--- /dev/null
+++ b/Sources/code/application/Models/Content/NavigationGetResponseContentAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Content {
+ /*
+ Model: NavigationGetResponse
+ Used By: Content
+ */
+ class NavigationGetResponse: Codable {
+
+ public var items: [NavigationSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
+
+ 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([NavigationSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Content/PageGetDetailsContentAppModel.swift b/Sources/code/application/Models/Content/PageGetDetailsContentAppModel.swift
deleted file mode 100644
index 60b52402bf..0000000000
--- a/Sources/code/application/Models/Content/PageGetDetailsContentAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: PageGetDetails
- Used By: Content
- */
- class PageGetDetails: Codable {
-
- public var items: [PageSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PageSchema]? = nil, page: Page? = nil) {
-
- 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([PageSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/PageGetResponseContentAppModel.swift b/Sources/code/application/Models/Content/PageGetResponseContentAppModel.swift
new file mode 100644
index 0000000000..31e13ead25
--- /dev/null
+++ b/Sources/code/application/Models/Content/PageGetResponseContentAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Content {
+ /*
+ Model: PageGetResponse
+ Used By: Content
+ */
+ class PageGetResponse: Codable {
+
+ public var items: [PageSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PageSchema]? = nil, page: Page? = nil) {
+
+ 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([PageSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Content/SlideshowGetDetailsContentAppModel.swift b/Sources/code/application/Models/Content/SlideshowGetDetailsContentAppModel.swift
deleted file mode 100644
index d6f336e90d..0000000000
--- a/Sources/code/application/Models/Content/SlideshowGetDetailsContentAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: SlideshowGetDetails
- Used By: Content
- */
- class SlideshowGetDetails: Codable {
-
- public var items: [SlideshowSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
-
- 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([SlideshowSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Content/SlideshowGetResponseContentAppModel.swift b/Sources/code/application/Models/Content/SlideshowGetResponseContentAppModel.swift
new file mode 100644
index 0000000000..2db2d98169
--- /dev/null
+++ b/Sources/code/application/Models/Content/SlideshowGetResponseContentAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Content {
+ /*
+ Model: SlideshowGetResponse
+ Used By: Content
+ */
+ class SlideshowGetResponse: Codable {
+
+ public var items: [SlideshowSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
+
+ 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([SlideshowSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Content/ValidationErrorContentAppModel.swift b/Sources/code/application/Models/Content/ValidationErrorContentAppModel.swift
deleted file mode 100644
index 88ed91fce2..0000000000
--- a/Sources/code/application/Models/Content/ValidationErrorContentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Content {
- /*
- Model: ValidationError
- Used By: Content
- */
- class ValidationError: Codable {
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/CompleteResponseFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/CompleteResponseFileStorageAppModel.swift
new file mode 100644
index 0000000000..17c2f6ecf4
--- /dev/null
+++ b/Sources/code/application/Models/FileStorage/CompleteResponseFileStorageAppModel.swift
@@ -0,0 +1,255 @@
+
+
+import Foundation
+public extension ApplicationClient.FileStorage {
+ /*
+ Model: CompleteResponse
+ Used By: FileStorage
+ */
+ class CompleteResponse: Codable {
+
+ public var id: String
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var success: Bool
+
+ public var tags: [String]?
+
+ public var createdOn: String
+
+ public var modifiedOn: String
+
+ public var createdBy: CreatedBy?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case success = "success"
+
+ case tags = "tags"
+
+ case createdOn = "created_on"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ }
+
+ public init(cdn: CDN, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
+
+ self.id = id
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.success = success
+
+ self.tags = tags
+
+ self.createdOn = createdOn
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.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)
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/FileStorage/FileUploadCompleteFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/FileUploadCompleteFileStorageAppModel.swift
deleted file mode 100644
index 4bc766a11d..0000000000
--- a/Sources/code/application/Models/FileStorage/FileUploadCompleteFileStorageAppModel.swift
+++ /dev/null
@@ -1,255 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.FileStorage {
- /*
- Model: FileUploadComplete
- Used By: FileStorage
- */
- class FileUploadComplete: Codable {
-
- public var id: String
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var namespace: String
-
- public var operation: String
-
- public var size: Int
-
- public var upload: Upload
-
- public var cdn: CDN
-
- public var success: Bool
-
- public var tags: [String]?
-
- public var createdOn: String
-
- public var modifiedOn: String
-
- public var createdBy: CreatedBy?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case size = "size"
-
- case upload = "upload"
-
- case cdn = "cdn"
-
- case success = "success"
-
- case tags = "tags"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- }
-
- public init(cdn: CDN, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
-
- self.id = id
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.size = size
-
- self.upload = upload
-
- self.cdn = cdn
-
- self.success = success
-
- self.tags = tags
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- cdn = try container.decode(CDN.self, forKey: .cdn)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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 {
-
- }
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.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)
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
- try? container.encodeIfPresent(cdn, forKey: .cdn)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/FileUploadFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/FileUploadFileStorageAppModel.swift
deleted file mode 100644
index 1c0b8f1a4f..0000000000
--- a/Sources/code/application/Models/FileStorage/FileUploadFileStorageAppModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.FileStorage {
- /*
- Model: FileUpload
- Used By: FileStorage
- */
- class FileUpload: Codable {
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var method: String?
-
- public var namespace: String
-
- public var operation: String
-
- public var size: Int
-
- public var upload: Upload
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case method = "method"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case size = "size"
-
- case upload = "upload"
-
- case tags = "tags"
-
- }
-
- public init(contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.method = method
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.size = size
-
- self.upload = upload
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- do {
- method = try container.decode(String.self, forKey: .method)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/FileUploadStartFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/FileUploadStartFileStorageAppModel.swift
deleted file mode 100644
index f63d777cc6..0000000000
--- a/Sources/code/application/Models/FileStorage/FileUploadStartFileStorageAppModel.swift
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.FileStorage {
- /*
- Model: FileUploadStart
- Used By: FileStorage
- */
- class FileUploadStart: Codable {
-
- public var fileName: String
-
- public var contentType: String
-
- public var size: Int
-
- public var tags: [String]?
-
- public var params: Params?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case contentType = "content_type"
-
- case size = "size"
-
- case tags = "tags"
-
- case params = "params"
-
- }
-
- public init(contentType: String, fileName: String, params: Params? = nil, size: Int, tags: [String]? = nil) {
-
- self.fileName = fileName
-
- self.contentType = contentType
-
- self.size = size
-
- self.tags = tags
-
- self.params = params
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- 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 {
- params = try container.decode(Params.self, forKey: .params)
-
- } 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(fileName, forKey: .fileName)
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(params, forKey: .params)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/SignUrlFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/SignUrlFileStorageAppModel.swift
deleted file mode 100644
index 7f87bf5d0c..0000000000
--- a/Sources/code/application/Models/FileStorage/SignUrlFileStorageAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.FileStorage {
- /*
- Model: SignUrl
- Used By: FileStorage
- */
- class SignUrl: Codable {
-
- public var expiry: Int
-
- public var urls: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case expiry = "expiry"
-
- case urls = "urls"
-
- }
-
- public init(expiry: Int, urls: [String]) {
-
- self.expiry = expiry
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- expiry = try container.decode(Int.self, forKey: .expiry)
-
-
-
-
- urls = try container.decode([String].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(expiry, forKey: .expiry)
-
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/SignUrlRequestFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/SignUrlRequestFileStorageAppModel.swift
new file mode 100644
index 0000000000..2e8282e1c3
--- /dev/null
+++ b/Sources/code/application/Models/FileStorage/SignUrlRequestFileStorageAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.FileStorage {
+ /*
+ Model: SignUrlRequest
+ Used By: FileStorage
+ */
+ class SignUrlRequest: Codable {
+
+ public var expiry: Int
+
+ public var urls: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case expiry = "expiry"
+
+ case urls = "urls"
+
+ }
+
+ public init(expiry: Int, urls: [String]) {
+
+ self.expiry = expiry
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ expiry = try container.decode(Int.self, forKey: .expiry)
+
+
+
+
+ urls = try container.decode([String].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(expiry, forKey: .expiry)
+
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/FileStorage/SignUrlResponseFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/SignUrlResponseFileStorageAppModel.swift
new file mode 100644
index 0000000000..391677f1be
--- /dev/null
+++ b/Sources/code/application/Models/FileStorage/SignUrlResponseFileStorageAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.FileStorage {
+ /*
+ Model: SignUrlResponse
+ Used By: FileStorage
+ */
+ class SignUrlResponse: Codable {
+
+ public var urls: [Urls]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case urls = "urls"
+
+ }
+
+ public init(urls: [Urls]) {
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ urls = try container.decode([Urls].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/FileStorage/SignUrlResultFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/SignUrlResultFileStorageAppModel.swift
deleted file mode 100644
index ca803187a8..0000000000
--- a/Sources/code/application/Models/FileStorage/SignUrlResultFileStorageAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.FileStorage {
- /*
- Model: SignUrlResult
- Used By: FileStorage
- */
- class SignUrlResult: Codable {
-
- public var urls: [Urls]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case urls = "urls"
-
- }
-
- public init(urls: [Urls]) {
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- urls = try container.decode([Urls].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/FileStorage/StartRequestFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/StartRequestFileStorageAppModel.swift
new file mode 100644
index 0000000000..c98bb8f06e
--- /dev/null
+++ b/Sources/code/application/Models/FileStorage/StartRequestFileStorageAppModel.swift
@@ -0,0 +1,120 @@
+
+
+import Foundation
+public extension ApplicationClient.FileStorage {
+ /*
+ Model: StartRequest
+ Used By: FileStorage
+ */
+ class StartRequest: Codable {
+
+ public var fileName: String
+
+ public var contentType: String
+
+ public var size: Int
+
+ public var tags: [String]?
+
+ public var params: Params?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case contentType = "content_type"
+
+ case size = "size"
+
+ case tags = "tags"
+
+ case params = "params"
+
+ }
+
+ public init(contentType: String, fileName: String, params: Params? = nil, size: Int, tags: [String]? = nil) {
+
+ self.fileName = fileName
+
+ self.contentType = contentType
+
+ self.size = size
+
+ self.tags = tags
+
+ self.params = params
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ 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 {
+ params = try container.decode(Params.self, forKey: .params)
+
+ } 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(fileName, forKey: .fileName)
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+ try? container.encodeIfPresent(params, forKey: .params)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/FileStorage/StartResponseFileStorageAppModel.swift b/Sources/code/application/Models/FileStorage/StartResponseFileStorageAppModel.swift
new file mode 100644
index 0000000000..066382622e
--- /dev/null
+++ b/Sources/code/application/Models/FileStorage/StartResponseFileStorageAppModel.swift
@@ -0,0 +1,195 @@
+
+
+import Foundation
+public extension ApplicationClient.FileStorage {
+ /*
+ Model: StartResponse
+ Used By: FileStorage
+ */
+ class StartResponse: Codable {
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var method: String?
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var tags: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case method = "method"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case tags = "tags"
+
+ }
+
+ public init(cdn: CDN, contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.method = method
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.tags = tags
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ do {
+ method = try container.decode(String.self, forKey: .method)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Finance/CustomerCreditBalanceReqDataFinanceAppModel.swift b/Sources/code/application/Models/Finance/CustomerCreditBalanceReqDataFinanceAppModel.swift
deleted file mode 100644
index 17fb3d8a98..0000000000
--- a/Sources/code/application/Models/Finance/CustomerCreditBalanceReqDataFinanceAppModel.swift
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: CustomerCreditBalanceReqData
- Used By: Finance
- */
- class CustomerCreditBalanceReqData: Codable {
-
- public var sellerId: Int
-
- public var affiliateId: String
-
- public var customerMobileNumber: String?
-
- public var customerEmail: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case sellerId = "seller_id"
-
- case affiliateId = "affiliate_id"
-
- case customerMobileNumber = "customer_mobile_number"
-
- case customerEmail = "customer_email"
-
- }
-
- public init(affiliateId: String, customerEmail: String? = nil, customerMobileNumber: String? = nil, sellerId: Int) {
-
- self.sellerId = sellerId
-
- self.affiliateId = affiliateId
-
- self.customerMobileNumber = customerMobileNumber
-
- self.customerEmail = customerEmail
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
-
-
-
- do {
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerEmail = try container.decode(String.self, forKey: .customerEmail)
-
- } 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(sellerId, forKey: .sellerId)
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
- try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
-
-
-
- try? container.encodeIfPresent(customerEmail, forKey: .customerEmail)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/CustomerCreditBalanceRequestSchemaFinanceAppModel.swift b/Sources/code/application/Models/Finance/CustomerCreditBalanceRequestSchemaFinanceAppModel.swift
deleted file mode 100644
index df12e3cd1b..0000000000
--- a/Sources/code/application/Models/Finance/CustomerCreditBalanceRequestSchemaFinanceAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: CustomerCreditBalanceRequestSchema
- Used By: Finance
- */
- class CustomerCreditBalanceRequestSchema: Codable {
-
- public var data: CustomerCreditBalanceReqData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: CustomerCreditBalanceReqData? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(CustomerCreditBalanceReqData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/CustomerCreditBalanceResDataFinanceAppModel.swift b/Sources/code/application/Models/Finance/CustomerCreditBalanceResDataFinanceAppModel.swift
deleted file mode 100644
index 9f6acf9fbc..0000000000
--- a/Sources/code/application/Models/Finance/CustomerCreditBalanceResDataFinanceAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: CustomerCreditBalanceResData
- Used By: Finance
- */
- class CustomerCreditBalanceResData: Codable {
-
- public var customerMobileNumber: String?
-
- public var customerEmail: String?
-
- public var totalCreditedBalance: Double?
-
- public var totalLockedAmount: Double?
-
- public var allowedRedemptionAmount: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customerMobileNumber = "customer_mobile_number"
-
- case customerEmail = "customer_email"
-
- case totalCreditedBalance = "total_credited_balance"
-
- case totalLockedAmount = "total_locked_amount"
-
- case allowedRedemptionAmount = "allowed_redemption_amount"
-
- }
-
- public init(allowedRedemptionAmount: Double? = nil, customerEmail: String? = nil, customerMobileNumber: String? = nil, totalCreditedBalance: Double? = nil, totalLockedAmount: Double? = nil) {
-
- self.customerMobileNumber = customerMobileNumber
-
- self.customerEmail = customerEmail
-
- self.totalCreditedBalance = totalCreditedBalance
-
- self.totalLockedAmount = totalLockedAmount
-
- self.allowedRedemptionAmount = allowedRedemptionAmount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerEmail = try container.decode(String.self, forKey: .customerEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalCreditedBalance = try container.decode(Double.self, forKey: .totalCreditedBalance)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalLockedAmount = try container.decode(Double.self, forKey: .totalLockedAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allowedRedemptionAmount = try container.decode(Double.self, forKey: .allowedRedemptionAmount)
-
- } 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(customerMobileNumber, forKey: .customerMobileNumber)
-
-
-
- try? container.encodeIfPresent(customerEmail, forKey: .customerEmail)
-
-
-
- try? container.encodeIfPresent(totalCreditedBalance, forKey: .totalCreditedBalance)
-
-
-
- try? container.encodeIfPresent(totalLockedAmount, forKey: .totalLockedAmount)
-
-
-
- try? container.encodeIfPresent(allowedRedemptionAmount, forKey: .allowedRedemptionAmount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/CustomerCreditBalanceResponseSchemaFinanceAppModel.swift b/Sources/code/application/Models/Finance/CustomerCreditBalanceResponseSchemaFinanceAppModel.swift
deleted file mode 100644
index 9a01f2cc70..0000000000
--- a/Sources/code/application/Models/Finance/CustomerCreditBalanceResponseSchemaFinanceAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: CustomerCreditBalanceResponseSchema
- Used By: Finance
- */
- class CustomerCreditBalanceResponseSchema: Codable {
-
- public var success: Bool?
-
- public var data: CustomerCreditBalanceResData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(data: CustomerCreditBalanceResData? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode(CustomerCreditBalanceResData.self, forKey: .data)
-
- } 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)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/ErrorFinanceAppModel.swift b/Sources/code/application/Models/Finance/ErrorFinanceAppModel.swift
deleted file mode 100644
index 6951b2e973..0000000000
--- a/Sources/code/application/Models/Finance/ErrorFinanceAppModel.swift
+++ /dev/null
@@ -1,251 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: Error
- Used By: Finance
- */
- class Error: Codable {
-
- public var status: Int?
-
- public var reason: String?
-
- public var success: Bool?
-
- public var message: String?
-
- public var code: String?
-
- public var exception: String?
-
- public var info: String?
-
- public var requestId: String?
-
- public var stackTrace: String?
-
- public var meta: ErrorMeta?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case reason = "reason"
-
- case success = "success"
-
- case message = "message"
-
- case code = "code"
-
- case exception = "exception"
-
- case info = "info"
-
- case requestId = "request_id"
-
- case stackTrace = "stack_trace"
-
- case meta = "meta"
-
- }
-
- public init(code: String? = nil, exception: String? = nil, info: String? = nil, message: String? = nil, meta: ErrorMeta? = nil, reason: String? = nil, requestId: String? = nil, stackTrace: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.reason = reason
-
- self.success = success
-
- self.message = message
-
- self.code = code
-
- self.exception = exception
-
- self.info = info
-
- self.requestId = requestId
-
- self.stackTrace = stackTrace
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- info = try container.decode(String.self, forKey: .info)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(ErrorMeta.self, forKey: .meta)
-
- } 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(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
-
- try? container.encodeIfPresent(info, forKey: .info)
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/ErrorMetaFinanceAppModel.swift b/Sources/code/application/Models/Finance/ErrorMetaFinanceAppModel.swift
deleted file mode 100644
index 545f263910..0000000000
--- a/Sources/code/application/Models/Finance/ErrorMetaFinanceAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: ErrorMeta
- Used By: Finance
- */
- class ErrorMeta: Codable {
-
- public var columnsErrors: [ErrorMetaItems]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case columnsErrors = "columns_errors"
-
- }
-
- public init(columnsErrors: [ErrorMetaItems]? = nil) {
-
- self.columnsErrors = columnsErrors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- columnsErrors = try container.decode([ErrorMetaItems].self, forKey: .columnsErrors)
-
- } 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(columnsErrors, forKey: .columnsErrors)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/ErrorMetaItemsFinanceAppModel.swift b/Sources/code/application/Models/Finance/ErrorMetaItemsFinanceAppModel.swift
deleted file mode 100644
index 21a4f2621f..0000000000
--- a/Sources/code/application/Models/Finance/ErrorMetaItemsFinanceAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: ErrorMetaItems
- Used By: Finance
- */
- class ErrorMetaItems: Codable {
-
- public var code: Int?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case message = "message"
-
- }
-
- public init(code: Int? = nil, message: String? = nil) {
-
- self.code = code
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- code = try container.decode(Int.self, forKey: .code)
-
- } 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)
-
- } 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(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/LockUnlockRequestDataFinanceAppModel.swift b/Sources/code/application/Models/Finance/LockUnlockRequestDataFinanceAppModel.swift
deleted file mode 100644
index 60e4279868..0000000000
--- a/Sources/code/application/Models/Finance/LockUnlockRequestDataFinanceAppModel.swift
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: LockUnlockRequestData
- Used By: Finance
- */
- class LockUnlockRequestData: Codable {
-
- public var sellerId: Int
-
- public var affiliateId: String
-
- public var orderingChannel: String
-
- public var creditNoteNumber: String
-
- public var amount: Double
-
- public var requestType: String
-
- public var orderId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case sellerId = "seller_id"
-
- case affiliateId = "affiliate_id"
-
- case orderingChannel = "ordering_channel"
-
- case creditNoteNumber = "credit_note_number"
-
- case amount = "amount"
-
- case requestType = "request_type"
-
- case orderId = "order_id"
-
- }
-
- public init(affiliateId: String, amount: Double, creditNoteNumber: String, orderingChannel: String, orderId: String, requestType: String, sellerId: Int) {
-
- self.sellerId = sellerId
-
- self.affiliateId = affiliateId
-
- self.orderingChannel = orderingChannel
-
- self.creditNoteNumber = creditNoteNumber
-
- self.amount = amount
-
- self.requestType = requestType
-
- self.orderId = orderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
-
-
-
- orderingChannel = try container.decode(String.self, forKey: .orderingChannel)
-
-
-
-
- creditNoteNumber = try container.decode(String.self, forKey: .creditNoteNumber)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- requestType = try container.decode(String.self, forKey: .requestType)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
- try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
-
-
-
- try? container.encodeIfPresent(creditNoteNumber, forKey: .creditNoteNumber)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(requestType, forKey: .requestType)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/LockUnlockRequestSchemaFinanceAppModel.swift b/Sources/code/application/Models/Finance/LockUnlockRequestSchemaFinanceAppModel.swift
deleted file mode 100644
index 603d0c5f6f..0000000000
--- a/Sources/code/application/Models/Finance/LockUnlockRequestSchemaFinanceAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: LockUnlockRequestSchema
- Used By: Finance
- */
- class LockUnlockRequestSchema: Codable {
-
- public var data: LockUnlockRequestData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: LockUnlockRequestData? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(LockUnlockRequestData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/LockUnlockResponseDataFinanceAppModel.swift b/Sources/code/application/Models/Finance/LockUnlockResponseDataFinanceAppModel.swift
deleted file mode 100644
index 2940d95abe..0000000000
--- a/Sources/code/application/Models/Finance/LockUnlockResponseDataFinanceAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: LockUnlockResponseData
- Used By: Finance
- */
- class LockUnlockResponseData: Codable {
-
- public var creditNoteNumber: String?
-
- public var amount: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case creditNoteNumber = "credit_note_number"
-
- case amount = "amount"
-
- }
-
- public init(amount: Double? = nil, creditNoteNumber: String? = nil) {
-
- self.creditNoteNumber = creditNoteNumber
-
- self.amount = amount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- creditNoteNumber = try container.decode(String.self, forKey: .creditNoteNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } 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(creditNoteNumber, forKey: .creditNoteNumber)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Finance/LockUnlockResponseSchemaFinanceAppModel.swift b/Sources/code/application/Models/Finance/LockUnlockResponseSchemaFinanceAppModel.swift
deleted file mode 100644
index b9723e92d6..0000000000
--- a/Sources/code/application/Models/Finance/LockUnlockResponseSchemaFinanceAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Finance {
- /*
- Model: LockUnlockResponseSchema
- Used By: Finance
- */
- class LockUnlockResponseSchema: Codable {
-
- public var success: Bool?
-
- public var data: LockUnlockResponseData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(data: LockUnlockResponseData? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode(LockUnlockResponseData.self, forKey: .data)
-
- } 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)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Lead/FormFieldDetailsLeadAppModel.swift b/Sources/code/application/Models/Lead/FormFieldDetailsLeadAppModel.swift
deleted file mode 100644
index 48f8695e14..0000000000
--- a/Sources/code/application/Models/Lead/FormFieldDetailsLeadAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Lead {
- /*
- Model: FormFieldDetails
- Used By: Lead
- */
- class FormFieldDetails: Codable {
-
- public var id: String?
-
- public var v: Double?
-
- public var applicationId: String?
-
- public var formSlug: String?
-
- public var createdOn: CreatedOn?
-
- public var response: [FormFieldResponseValues]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case v = "__v"
-
- case applicationId = "application_id"
-
- case formSlug = "form_slug"
-
- case createdOn = "created_on"
-
- case response = "response"
-
- }
-
- public init(applicationId: String? = nil, createdOn: CreatedOn? = nil, formSlug: String? = nil, response: [FormFieldResponseValues]? = nil, id: String? = nil, v: Double? = nil) {
-
- self.id = id
-
- self.v = v
-
- self.applicationId = applicationId
-
- self.formSlug = formSlug
-
- self.createdOn = createdOn
-
- self.response = response
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- v = try container.decode(Double.self, forKey: .v)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- formSlug = try container.decode(String.self, forKey: .formSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdOn = try container.decode(CreatedOn.self, forKey: .createdOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- response = try container.decode([FormFieldResponseValues].self, forKey: .response)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
- try? container.encodeIfPresent(formSlug, forKey: .formSlug)
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
- try? container.encodeIfPresent(response, forKey: .response)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Lead/FormFieldResponseLeadAppModel.swift b/Sources/code/application/Models/Lead/FormFieldResponseLeadAppModel.swift
new file mode 100644
index 0000000000..18e42ba6bf
--- /dev/null
+++ b/Sources/code/application/Models/Lead/FormFieldResponseLeadAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Lead {
+ /*
+ Model: FormFieldResponse
+ Used By: Lead
+ */
+ class FormFieldResponse: Codable {
+
+ public var id: String?
+
+ public var v: Double?
+
+ public var applicationId: String?
+
+ public var formSlug: String?
+
+ public var createdOn: CreatedOn?
+
+ public var response: [FormFieldResponseValues]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case v = "__v"
+
+ case applicationId = "application_id"
+
+ case formSlug = "form_slug"
+
+ case createdOn = "created_on"
+
+ case response = "response"
+
+ }
+
+ public init(applicationId: String? = nil, createdOn: CreatedOn? = nil, formSlug: String? = nil, response: [FormFieldResponseValues]? = nil, id: String? = nil, v: Double? = nil) {
+
+ self.id = id
+
+ self.v = v
+
+ self.applicationId = applicationId
+
+ self.formSlug = formSlug
+
+ self.createdOn = createdOn
+
+ self.response = response
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Double.self, forKey: .v)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ formSlug = try container.decode(String.self, forKey: .formSlug)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdOn = try container.decode(CreatedOn.self, forKey: .createdOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ response = try container.decode([FormFieldResponseValues].self, forKey: .response)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+ try? container.encodeIfPresent(formSlug, forKey: .formSlug)
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+ try? container.encodeIfPresent(response, forKey: .response)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Lead/SubmitCustomFormDetailsLeadAppModel.swift b/Sources/code/application/Models/Lead/SubmitCustomFormDetailsLeadAppModel.swift
deleted file mode 100644
index 3a58cd7de6..0000000000
--- a/Sources/code/application/Models/Lead/SubmitCustomFormDetailsLeadAppModel.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Lead {
- /*
- Model: SubmitCustomFormDetails
- Used By: Lead
- */
- class SubmitCustomFormDetails: Codable {
-
- public var message: String
-
- public var ticket: Ticket?
-
- public var response: FormFieldDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case ticket = "ticket"
-
- case response = "response"
-
- }
-
- public init(message: String, response: FormFieldDetails? = nil, ticket: Ticket? = nil) {
-
- self.message = message
-
- self.ticket = ticket
-
- self.response = response
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- ticket = try container.decode(Ticket.self, forKey: .ticket)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- response = try container.decode(FormFieldDetails.self, forKey: .response)
-
- } 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(ticket, forKey: .ticket)
-
-
-
- try? container.encodeIfPresent(response, forKey: .response)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Lead/SubmitCustomFormResponseLeadAppModel.swift b/Sources/code/application/Models/Lead/SubmitCustomFormResponseLeadAppModel.swift
new file mode 100644
index 0000000000..434065957b
--- /dev/null
+++ b/Sources/code/application/Models/Lead/SubmitCustomFormResponseLeadAppModel.swift
@@ -0,0 +1,90 @@
+
+
+import Foundation
+public extension ApplicationClient.Lead {
+ /*
+ Model: SubmitCustomFormResponse
+ Used By: Lead
+ */
+ class SubmitCustomFormResponse: Codable {
+
+ public var message: String
+
+ public var ticket: Ticket?
+
+ public var response: FormFieldResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case ticket = "ticket"
+
+ case response = "response"
+
+ }
+
+ public init(message: String, response: FormFieldResponse? = nil, ticket: Ticket? = nil) {
+
+ self.message = message
+
+ self.ticket = ticket
+
+ self.response = response
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ ticket = try container.decode(Ticket.self, forKey: .ticket)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ response = try container.decode(FormFieldResponse.self, forKey: .response)
+
+ } 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(ticket, forKey: .ticket)
+
+
+
+ try? container.encodeIfPresent(response, forKey: .response)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/CountryEntityResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryEntityResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..208e013870
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/CountryEntityResponseLogisticAppModel.swift
@@ -0,0 +1,229 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: CountryEntityResponse
+ Used By: Logistic
+ */
+ class CountryEntityResponse: Codable {
+
+ public var meta: CountryMetaResponse?
+
+ public var logistics: LogisticsResponse?
+
+ public var displayName: String?
+
+ public var type: String?
+
+ public var isActive: Bool?
+
+ public var parentId: String?
+
+ public var subType: String?
+
+ public var name: String?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case logistics = "logistics"
+
+ case displayName = "display_name"
+
+ case type = "type"
+
+ case isActive = "is_active"
+
+ case parentId = "parent_id"
+
+ case subType = "sub_type"
+
+ case name = "name"
+
+ case uid = "uid"
+
+ }
+
+ public init(displayName: String? = nil, isActive: Bool? = nil, logistics: LogisticsResponse? = nil, meta: CountryMetaResponse? = nil, name: String? = nil, parentId: String? = nil, subType: String? = nil, type: String? = nil, uid: String? = nil) {
+
+ self.meta = meta
+
+ self.logistics = logistics
+
+ self.displayName = displayName
+
+ self.type = type
+
+ self.isActive = isActive
+
+ self.parentId = parentId
+
+ self.subType = subType
+
+ self.name = name
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ meta = try container.decode(CountryMetaResponse.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ logistics = try container.decode(LogisticsResponse.self, forKey: .logistics)
+
+ } 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 {
+ 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 {
+ 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 {
+ parentId = try container.decode(String.self, forKey: .parentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ subType = try container.decode(String.self, forKey: .subType)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+ try? container.encodeIfPresent(logistics, forKey: .logistics)
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+ try? container.encodeIfPresent(parentId, forKey: .parentId)
+
+
+
+ try? container.encodeIfPresent(subType, forKey: .subType)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/CountryEntityResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryEntityResultLogisticAppModel.swift
deleted file mode 100644
index c7f41b53d7..0000000000
--- a/Sources/code/application/Models/Logistic/CountryEntityResultLogisticAppModel.swift
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: CountryEntityResult
- Used By: Logistic
- */
- class CountryEntityResult: Codable {
-
- public var meta: CountryMetaResult?
-
- public var logistics: LogisticsResult?
-
- public var displayName: String?
-
- public var type: String?
-
- public var isActive: Bool?
-
- public var parentId: [String]?
-
- public var subType: String?
-
- public var name: String?
-
- public var uid: String?
-
- public var onboardingAllowed: Bool?
-
- public var serviceability: [String: Any]?
-
- public var latLong: PincodeLatLongData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- case logistics = "logistics"
-
- case displayName = "display_name"
-
- case type = "type"
-
- case isActive = "is_active"
-
- case parentId = "parent_id"
-
- case subType = "sub_type"
-
- case name = "name"
-
- case uid = "uid"
-
- case onboardingAllowed = "onboarding_allowed"
-
- case serviceability = "serviceability"
-
- case latLong = "lat_long"
-
- }
-
- public init(displayName: String? = nil, isActive: Bool? = nil, latLong: PincodeLatLongData? = nil, logistics: LogisticsResult? = nil, meta: CountryMetaResult? = nil, name: String? = nil, onboardingAllowed: Bool? = nil, parentId: [String]? = nil, serviceability: [String: Any]? = nil, subType: String? = nil, type: String? = nil, uid: String? = nil) {
-
- self.meta = meta
-
- self.logistics = logistics
-
- self.displayName = displayName
-
- self.type = type
-
- self.isActive = isActive
-
- self.parentId = parentId
-
- self.subType = subType
-
- self.name = name
-
- self.uid = uid
-
- self.onboardingAllowed = onboardingAllowed
-
- self.serviceability = serviceability
-
- self.latLong = latLong
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- meta = try container.decode(CountryMetaResult.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logistics = try container.decode(LogisticsResult.self, forKey: .logistics)
-
- } 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 {
- 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 {
- 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 {
- parentId = try container.decode([String].self, forKey: .parentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- subType = try container.decode(String.self, forKey: .subType)
-
- } 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 {
-
- }
-
-
-
- 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 {
- onboardingAllowed = try container.decode(Bool.self, forKey: .onboardingAllowed)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- serviceability = try container.decode([String: Any].self, forKey: .serviceability)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- latLong = try container.decode(PincodeLatLongData.self, forKey: .latLong)
-
- } 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(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(logistics, forKey: .logistics)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
- try? container.encodeIfPresent(parentId, forKey: .parentId)
-
-
-
- try? container.encodeIfPresent(subType, forKey: .subType)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
- try? container.encodeIfPresent(onboardingAllowed, forKey: .onboardingAllowed)
-
-
-
- try? container.encodeIfPresent(serviceability, forKey: .serviceability)
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/CountryHierarchyLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryHierarchyLogisticAppModel.swift
index 93103ae21d..7d692d05f9 100644
--- a/Sources/code/application/Models/Logistic/CountryHierarchyLogisticAppModel.swift
+++ b/Sources/code/application/Models/Logistic/CountryHierarchyLogisticAppModel.swift
@@ -8,22 +8,22 @@ public extension ApplicationClient.Logistic {
*/
class CountryHierarchy: Codable {
- public var displayName: String?
+ public var name: String?
public var slug: String?
public enum CodingKeys: String, CodingKey {
- case displayName = "display_name"
+ case name = "name"
case slug = "slug"
}
- public init(displayName: String? = nil, slug: String? = nil) {
+ public init(name: String? = nil, slug: String? = nil) {
- self.displayName = displayName
+ self.name = name
self.slug = slug
@@ -34,7 +34,7 @@ public extension ApplicationClient.Logistic {
do {
- displayName = try container.decode(String.self, forKey: .displayName)
+ name = try container.decode(String.self, forKey: .name)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -62,7 +62,7 @@ public extension ApplicationClient.Logistic {
var container = encoder.container(keyedBy: CodingKeys.self)
- try? container.encodeIfPresent(displayName, forKey: .displayName)
+ try? container.encodeIfPresent(name, forKey: .name)
diff --git a/Sources/code/application/Models/Logistic/CountryListResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryListResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..46c23331bf
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/CountryListResponseLogisticAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: CountryListResponse
+ Used By: Logistic
+ */
+ class CountryListResponse: Codable {
+
+ public var results: [CountryEntityResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case results = "results"
+
+ }
+
+ public init(results: [CountryEntityResponse]? = nil) {
+
+ self.results = results
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ results = try container.decode([CountryEntityResponse].self, forKey: .results)
+
+ } 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(results, forKey: .results)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/CountryListResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryListResultLogisticAppModel.swift
deleted file mode 100644
index b96b1048a1..0000000000
--- a/Sources/code/application/Models/Logistic/CountryListResultLogisticAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: CountryListResult
- Used By: Logistic
- */
- class CountryListResult: Codable {
-
- public var results: [CountryEntityResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case results = "results"
-
- }
-
- public init(results: [CountryEntityResult]? = nil) {
-
- self.results = results
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- results = try container.decode([CountryEntityResult].self, forKey: .results)
-
- } 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(results, forKey: .results)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/CountryMetaResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryMetaResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..61a4db8b80
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/CountryMetaResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: CountryMetaResponse
+ Used By: Logistic
+ */
+ class CountryMetaResponse: Codable {
+
+ public var countryCode: String?
+
+ public var isdCode: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case countryCode = "country_code"
+
+ case isdCode = "isd_code"
+
+ }
+
+ public init(countryCode: String? = nil, isdCode: String? = nil) {
+
+ self.countryCode = countryCode
+
+ self.isdCode = isdCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ isdCode = try container.decode(String.self, forKey: .isdCode)
+
+ } 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(countryCode, forKey: .countryCode)
+
+
+
+ try? container.encodeIfPresent(isdCode, forKey: .isdCode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/CountryMetaResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CountryMetaResultLogisticAppModel.swift
deleted file mode 100644
index cc053d7de2..0000000000
--- a/Sources/code/application/Models/Logistic/CountryMetaResultLogisticAppModel.swift
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: CountryMetaResult
- Used By: Logistic
- */
- class CountryMetaResult: Codable {
-
- public var iso2: String?
-
- public var iso3: String?
-
- public var currency: CurrencyObject?
-
- public var phoneCode: String?
-
- public var parentId: String?
-
- public var zone: String?
-
- public var deliverables: [String]?
-
- public var hierarchy: [CountryHierarchy]?
-
- public var latitude: String?
-
- public var longitude: String?
-
- public var countryCode: String?
-
- public var isdCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case iso2 = "iso2"
-
- case iso3 = "iso3"
-
- case currency = "currency"
-
- case phoneCode = "phone_code"
-
- case parentId = "parent_id"
-
- case zone = "zone"
-
- case deliverables = "deliverables"
-
- case hierarchy = "hierarchy"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- case countryCode = "country_code"
-
- case isdCode = "isd_code"
-
- }
-
- public init(countryCode: String? = nil, currency: CurrencyObject? = nil, deliverables: [String]? = nil, hierarchy: [CountryHierarchy]? = nil, isdCode: String? = nil, iso2: String? = nil, iso3: String? = nil, latitude: String? = nil, longitude: String? = nil, parentId: String? = nil, phoneCode: String? = nil, zone: String? = nil) {
-
- self.iso2 = iso2
-
- self.iso3 = iso3
-
- self.currency = currency
-
- self.phoneCode = phoneCode
-
- self.parentId = parentId
-
- self.zone = zone
-
- self.deliverables = deliverables
-
- self.hierarchy = hierarchy
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- self.countryCode = countryCode
-
- self.isdCode = isdCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- iso2 = try container.decode(String.self, forKey: .iso2)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- iso3 = try container.decode(String.self, forKey: .iso3)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CurrencyObject.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- phoneCode = try container.decode(String.self, forKey: .phoneCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- parentId = try container.decode(String.self, forKey: .parentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- zone = try container.decode(String.self, forKey: .zone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliverables = try container.decode([String].self, forKey: .deliverables)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- hierarchy = try container.decode([CountryHierarchy].self, forKey: .hierarchy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- latitude = try container.decode(String.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(String.self, forKey: .longitude)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- isdCode = try container.decode(String.self, forKey: .isdCode)
-
- } 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(iso2, forKey: .iso2)
-
-
-
- try? container.encodeIfPresent(iso3, forKey: .iso3)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(phoneCode, forKey: .phoneCode)
-
-
-
- try? container.encodeIfPresent(parentId, forKey: .parentId)
-
-
-
- try? container.encodeIfPresent(zone, forKey: .zone)
-
-
-
- try? container.encodeIfPresent(deliverables, forKey: .deliverables)
-
-
-
- try? container.encodeIfPresent(hierarchy, forKey: .hierarchy)
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
- try? container.encodeIfPresent(isdCode, forKey: .isdCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/CourierPartnerPromiseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CourierPartnerPromiseLogisticAppModel.swift
deleted file mode 100644
index cdd9f6ca59..0000000000
--- a/Sources/code/application/Models/Logistic/CourierPartnerPromiseLogisticAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: CourierPartnerPromise
- Used By: Logistic
- */
- class CourierPartnerPromise: Codable {
-
- public var min: String
-
- public var max: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: String, min: String) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- min = try container.decode(String.self, forKey: .min)
-
-
-
-
- max = try container.decode(String.self, forKey: .max)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/CourierPartnersLogisticAppModel.swift b/Sources/code/application/Models/Logistic/CourierPartnersLogisticAppModel.swift
deleted file mode 100644
index ea70d37eed..0000000000
--- a/Sources/code/application/Models/Logistic/CourierPartnersLogisticAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: CourierPartners
- Used By: Logistic
- */
- class CourierPartners: Codable {
-
- public var extensionId: String?
-
- public var schemeId: String?
-
- public var name: String?
-
- public var deliveryPromise: CourierPartnerPromise?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case schemeId = "scheme_id"
-
- case name = "name"
-
- case deliveryPromise = "delivery_promise"
-
- }
-
- public init(deliveryPromise: CourierPartnerPromise? = nil, extensionId: String? = nil, name: String? = nil, schemeId: String? = nil) {
-
- self.extensionId = extensionId
-
- self.schemeId = schemeId
-
- self.name = name
-
- self.deliveryPromise = deliveryPromise
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
- } 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 {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(CourierPartnerPromise.self, forKey: .deliveryPromise)
-
- } 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(extensionId, forKey: .extensionId)
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ErrorLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ErrorLogisticAppModel.swift
deleted file mode 100644
index b5065310ac..0000000000
--- a/Sources/code/application/Models/Logistic/ErrorLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: Error
- Used By: Logistic
- */
- class Error: Codable {
-
- public var type: String?
-
- public var value: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case value = "value"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, type: String? = nil, value: String? = nil) {
-
- self.type = type
-
- self.value = value
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ErrorResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ErrorResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..ad49488e7e
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/ErrorResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: ErrorResponse
+ Used By: Logistic
+ */
+ class ErrorResponse: Codable {
+
+ public var error: String?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case message = "message"
+
+ }
+
+ public init(error: String? = nil, message: String? = nil) {
+
+ self.error = error
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+ } 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(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/ErrorResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ErrorResultLogisticAppModel.swift
deleted file mode 100644
index 9d0c11510a..0000000000
--- a/Sources/code/application/Models/Logistic/ErrorResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ErrorResult
- Used By: Logistic
- */
- class ErrorResult: Codable {
-
- public var error: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case message = "message"
-
- }
-
- public init(error: String? = nil, message: String? = nil) {
-
- self.error = error
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
- } 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(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ErrorSchemaLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ErrorSchemaLogisticAppModel.swift
deleted file mode 100644
index 4a0d668271..0000000000
--- a/Sources/code/application/Models/Logistic/ErrorSchemaLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ErrorSchema
- Used By: Logistic
- */
- class ErrorSchema: Codable {
-
- public var success: Bool?
-
- public var error: Error?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: Error? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- error = try container.decode(Error.self, forKey: .error)
-
- } 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)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/GetLocalityLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetLocalityLogisticAppModel.swift
index f1a5695353..6067c50485 100644
--- a/Sources/code/application/Models/Logistic/GetLocalityLogisticAppModel.swift
+++ b/Sources/code/application/Models/Logistic/GetLocalityLogisticAppModel.swift
@@ -14,16 +14,6 @@ public extension ApplicationClient.Logistic {
public var displayName: String?
- public var meta: [String: Any]?
-
- public var parentUid: String?
-
- public var serviceability: [String: Any]?
-
- public var code: String?
-
- public var customMeta: [String: Any]?
-
public var parentIds: [String]?
public var type: String?
@@ -39,16 +29,6 @@ public extension ApplicationClient.Logistic {
case displayName = "display_name"
- case meta = "meta"
-
- case parentUid = "parent_uid"
-
- case serviceability = "serviceability"
-
- case code = "code"
-
- case customMeta = "custom_meta"
-
case parentIds = "parent_ids"
case type = "type"
@@ -57,7 +37,7 @@ public extension ApplicationClient.Logistic {
}
- public init(code: String? = nil, customMeta: [String: Any]? = nil, displayName: String? = nil, id: String? = nil, localities: [LocalityParent]? = nil, meta: [String: Any]? = nil, name: String? = nil, parentIds: [String]? = nil, parentUid: String? = nil, serviceability: [String: Any]? = nil, type: String? = nil) {
+ public init(displayName: String? = nil, id: String? = nil, localities: [LocalityParent]? = nil, name: String? = nil, parentIds: [String]? = nil, type: String? = nil) {
self.id = id
@@ -65,16 +45,6 @@ public extension ApplicationClient.Logistic {
self.displayName = displayName
- self.meta = meta
-
- self.parentUid = parentUid
-
- self.serviceability = serviceability
-
- self.code = code
-
- self.customMeta = customMeta
-
self.parentIds = parentIds
self.type = type
@@ -123,66 +93,6 @@ public extension ApplicationClient.Logistic {
- 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)
- } catch {
-
- }
-
-
-
- do {
- parentUid = try container.decode(String.self, forKey: .parentUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- serviceability = try container.decode([String: Any].self, forKey: .serviceability)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([String: Any].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
parentIds = try container.decode([String].self, forKey: .parentIds)
@@ -236,26 +146,6 @@ public extension ApplicationClient.Logistic {
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(parentUid, forKey: .parentUid)
-
-
-
- try? container.encodeIfPresent(serviceability, forKey: .serviceability)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
try? container.encodeIfPresent(parentIds, forKey: .parentIds)
diff --git a/Sources/code/application/Models/Logistic/GetPromiseDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetPromiseDetailsLogisticAppModel.swift
deleted file mode 100644
index 0691141d2e..0000000000
--- a/Sources/code/application/Models/Logistic/GetPromiseDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: GetPromiseDetails
- Used By: Logistic
- */
- class GetPromiseDetails: Codable {
-
- public var items: [StorePromise]?
-
- public var deliveryPromise: Promise?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case deliveryPromise = "delivery_promise"
-
- case page = "page"
-
- }
-
- public init(deliveryPromise: Promise? = nil, items: [StorePromise]? = nil, page: Page? = nil) {
-
- self.items = items
-
- self.deliveryPromise = deliveryPromise
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([StorePromise].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(Promise.self, forKey: .deliveryPromise)
-
- } 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)
-
- } 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(deliveryPromise, forKey: .deliveryPromise)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/GetStoreResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetStoreResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..d7183631bc
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/GetStoreResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: GetStoreResponse
+ Used By: Logistic
+ */
+ class GetStoreResponse: Codable {
+
+ public var items: [StoreItemResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [StoreItemResponse]? = nil, page: Page? = nil) {
+
+ 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([StoreItemResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/GetStoreResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetStoreResultLogisticAppModel.swift
deleted file mode 100644
index 25e304428b..0000000000
--- a/Sources/code/application/Models/Logistic/GetStoreResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: GetStoreResult
- Used By: Logistic
- */
- class GetStoreResult: Codable {
-
- public var items: [StoreItemResult]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [StoreItemResult]? = nil, page: Page? = nil) {
-
- 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([StoreItemResult].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewDetailsLogisticAppModel.swift
deleted file mode 100644
index 310da27f96..0000000000
--- a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: GetZoneFromPincodeViewDetails
- Used By: Logistic
- */
- class GetZoneFromPincodeViewDetails: Codable {
-
- public var pincode: String
-
- public var country: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pincode = "pincode"
-
- case country = "country"
-
- }
-
- public init(country: String, pincode: String) {
-
- self.pincode = pincode
-
- self.country = country
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- pincode = try container.decode(String.self, forKey: .pincode)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..144e9c0611
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewRequestLogisticAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: GetZoneFromPincodeViewRequest
+ Used By: Logistic
+ */
+ class GetZoneFromPincodeViewRequest: Codable {
+
+ public var pincode: String
+
+ public var country: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case pincode = "pincode"
+
+ case country = "country"
+
+ }
+
+ public init(country: String, pincode: String) {
+
+ self.pincode = pincode
+
+ self.country = country
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..2d18def7e5
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResponseLogisticAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: GetZoneFromPincodeViewResponse
+ Used By: Logistic
+ */
+ class GetZoneFromPincodeViewResponse: Codable {
+
+ public var serviceabilityType: String
+
+ public var zones: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case serviceabilityType = "serviceability_type"
+
+ case zones = "zones"
+
+ }
+
+ public init(serviceabilityType: String, zones: [String]) {
+
+ self.serviceabilityType = serviceabilityType
+
+ self.zones = zones
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
+
+
+
+
+ zones = try container.decode([String].self, forKey: .zones)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
+
+
+
+ try? container.encodeIfPresent(zones, forKey: .zones)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResultLogisticAppModel.swift
deleted file mode 100644
index c35bd0a1bb..0000000000
--- a/Sources/code/application/Models/Logistic/GetZoneFromPincodeViewResultLogisticAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: GetZoneFromPincodeViewResult
- Used By: Logistic
- */
- class GetZoneFromPincodeViewResult: Codable {
-
- public var serviceabilityType: String
-
- public var zones: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case serviceabilityType = "serviceability_type"
-
- case zones = "zones"
-
- }
-
- public init(serviceabilityType: String, zones: [String]) {
-
- self.serviceabilityType = serviceabilityType
-
- self.zones = zones
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
-
-
-
-
- zones = try container.decode([String].self, forKey: .zones)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
-
-
-
- try? container.encodeIfPresent(zones, forKey: .zones)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/LocalitiesLogisticAppModel.swift b/Sources/code/application/Models/Logistic/LocalitiesLogisticAppModel.swift
index 01bac32282..0d3909b095 100644
--- a/Sources/code/application/Models/Logistic/LocalitiesLogisticAppModel.swift
+++ b/Sources/code/application/Models/Logistic/LocalitiesLogisticAppModel.swift
@@ -12,18 +12,8 @@ public extension ApplicationClient.Logistic {
public var name: String?
- public var meta: [String: Any]?
-
- public var latLong: PincodeLatLongData?
-
- public var parentUid: String?
-
- public var customMeta: [String: Any]?
-
public var displayName: String?
- public var serviceability: [String: Any]?
-
public var parentIds: [String]?
public var type: String?
@@ -37,18 +27,8 @@ public extension ApplicationClient.Logistic {
case name = "name"
- case meta = "meta"
-
- case latLong = "lat_long"
-
- case parentUid = "parent_uid"
-
- case customMeta = "custom_meta"
-
case displayName = "display_name"
- case serviceability = "serviceability"
-
case parentIds = "parent_ids"
case type = "type"
@@ -57,24 +37,14 @@ public extension ApplicationClient.Logistic {
}
- public init(customMeta: [String: Any]? = nil, displayName: String? = nil, id: String? = nil, latLong: PincodeLatLongData? = nil, localities: [LocalityParent]? = nil, meta: [String: Any]? = nil, name: String? = nil, parentIds: [String]? = nil, parentUid: String? = nil, serviceability: [String: Any]? = nil, type: String? = nil) {
+ public init(displayName: String? = nil, id: String? = nil, localities: [LocalityParent]? = nil, name: String? = nil, parentIds: [String]? = nil, type: String? = nil) {
self.id = id
self.name = name
- self.meta = meta
-
- self.latLong = latLong
-
- self.parentUid = parentUid
-
- self.customMeta = customMeta
-
self.displayName = displayName
- self.serviceability = serviceability
-
self.parentIds = parentIds
self.type = type
@@ -111,54 +81,6 @@ public extension ApplicationClient.Logistic {
- 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)
- } catch {
-
- }
-
-
-
- do {
- latLong = try container.decode(PincodeLatLongData.self, forKey: .latLong)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- parentUid = try container.decode(String.self, forKey: .parentUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([String: Any].self, forKey: .customMeta)
-
- } 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)
@@ -171,18 +93,6 @@ public extension ApplicationClient.Logistic {
- do {
- serviceability = try container.decode([String: Any].self, forKey: .serviceability)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
parentIds = try container.decode([String].self, forKey: .parentIds)
@@ -232,30 +142,10 @@ public extension ApplicationClient.Logistic {
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
-
- try? container.encodeIfPresent(parentUid, forKey: .parentUid)
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
try? container.encodeIfPresent(displayName, forKey: .displayName)
- try? container.encodeIfPresent(serviceability, forKey: .serviceability)
-
-
-
try? container.encodeIfPresent(parentIds, forKey: .parentIds)
diff --git a/Sources/code/application/Models/Logistic/LocalityParentLogisticAppModel.swift b/Sources/code/application/Models/Logistic/LocalityParentLogisticAppModel.swift
index c3b28c0c0b..9b8d3f5ccb 100644
--- a/Sources/code/application/Models/Logistic/LocalityParentLogisticAppModel.swift
+++ b/Sources/code/application/Models/Logistic/LocalityParentLogisticAppModel.swift
@@ -14,16 +14,6 @@ public extension ApplicationClient.Logistic {
public var displayName: String?
- public var meta: [String: Any]?
-
- public var parentUid: String?
-
- public var serviceability: [String: Any]?
-
- public var code: String?
-
- public var customMeta: [String: Any]?
-
public var parentIds: [String]?
public var type: String?
@@ -37,23 +27,13 @@ public extension ApplicationClient.Logistic {
case displayName = "display_name"
- case meta = "meta"
-
- case parentUid = "parent_uid"
-
- case serviceability = "serviceability"
-
- case code = "code"
-
- case customMeta = "custom_meta"
-
case parentIds = "parent_ids"
case type = "type"
}
- public init(code: String? = nil, customMeta: [String: Any]? = nil, displayName: String? = nil, id: String? = nil, meta: [String: Any]? = nil, name: String? = nil, parentIds: [String]? = nil, parentUid: String? = nil, serviceability: [String: Any]? = nil, type: String? = nil) {
+ public init(displayName: String? = nil, id: String? = nil, name: String? = nil, parentIds: [String]? = nil, type: String? = nil) {
self.id = id
@@ -61,16 +41,6 @@ public extension ApplicationClient.Logistic {
self.displayName = displayName
- self.meta = meta
-
- self.parentUid = parentUid
-
- self.serviceability = serviceability
-
- self.code = code
-
- self.customMeta = customMeta
-
self.parentIds = parentIds
self.type = type
@@ -117,66 +87,6 @@ public extension ApplicationClient.Logistic {
- 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)
- } catch {
-
- }
-
-
-
- do {
- parentUid = try container.decode(String.self, forKey: .parentUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- serviceability = try container.decode([String: Any].self, forKey: .serviceability)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([String: Any].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
parentIds = try container.decode([String].self, forKey: .parentIds)
@@ -218,26 +128,6 @@ public extension ApplicationClient.Logistic {
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(parentUid, forKey: .parentUid)
-
-
-
- try? container.encodeIfPresent(serviceability, forKey: .serviceability)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
try? container.encodeIfPresent(parentIds, forKey: .parentIds)
diff --git a/Sources/code/application/Models/Logistic/LogisticsResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/LogisticsResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..74766b62ee
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/LogisticsResponseLogisticAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: LogisticsResponse
+ Used By: Logistic
+ */
+ class LogisticsResponse: Codable {
+
+ public var dp: [String: DP]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case dp = "dp"
+
+ }
+
+ public init(dp: [String: DP]? = nil) {
+
+ self.dp = dp
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ dp = try container.decode([String: DP].self, forKey: .dp)
+
+ } 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(dp, forKey: .dp)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/LogisticsResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/LogisticsResultLogisticAppModel.swift
deleted file mode 100644
index 67e7046afe..0000000000
--- a/Sources/code/application/Models/Logistic/LogisticsResultLogisticAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: LogisticsResult
- Used By: Logistic
- */
- class LogisticsResult: Codable {
-
- public var dp: DP?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dp = "dp"
-
- }
-
- public init(dp: DP? = nil) {
-
- self.dp = dp
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dp = try container.decode(DP.self, forKey: .dp)
-
- } 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(dp, forKey: .dp)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PincodeApiResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeApiResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..0b1964ff2c
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/PincodeApiResponseLogisticAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: PincodeApiResponse
+ Used By: Logistic
+ */
+ class PincodeApiResponse: Codable {
+
+ public var success: Bool
+
+ public var data: [PincodeDataResponse]?
+
+ public var error: PincodeErrorSchemaResponse
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case error = "error"
+
+ }
+
+ public init(data: [PincodeDataResponse]? = nil, error: PincodeErrorSchemaResponse, success: Bool) {
+
+ self.success = success
+
+ self.data = data
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ data = try container.decode([PincodeDataResponse].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ error = try container.decode(PincodeErrorSchemaResponse.self, forKey: .error)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/PincodeDataResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeDataResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..de2628f1a1
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/PincodeDataResponseLogisticAppModel.swift
@@ -0,0 +1,222 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: PincodeDataResponse
+ Used By: Logistic
+ */
+ class PincodeDataResponse: Codable {
+
+ public var parents: [PincodeParentsResponse]?
+
+ public var meta: PincodeMetaResponse?
+
+ public var displayName: String?
+
+ public var error: PincodeErrorSchemaResponse
+
+ public var metaCode: CountryMetaResponse?
+
+ public var latLong: PincodeLatLongData?
+
+ public var subType: String?
+
+ public var name: String?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case parents = "parents"
+
+ case meta = "meta"
+
+ case displayName = "display_name"
+
+ case error = "error"
+
+ case metaCode = "meta_code"
+
+ case latLong = "lat_long"
+
+ case subType = "sub_type"
+
+ case name = "name"
+
+ case uid = "uid"
+
+ }
+
+ public init(displayName: String? = nil, error: PincodeErrorSchemaResponse, latLong: PincodeLatLongData? = nil, meta: PincodeMetaResponse? = nil, metaCode: CountryMetaResponse? = nil, name: String? = nil, parents: [PincodeParentsResponse]? = nil, subType: String? = nil, uid: String? = nil) {
+
+ self.parents = parents
+
+ self.meta = meta
+
+ self.displayName = displayName
+
+ self.error = error
+
+ self.metaCode = metaCode
+
+ self.latLong = latLong
+
+ self.subType = subType
+
+ self.name = name
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ parents = try container.decode([PincodeParentsResponse].self, forKey: .parents)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(PincodeMetaResponse.self, forKey: .meta)
+
+ } 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 {
+
+ }
+
+
+
+ error = try container.decode(PincodeErrorSchemaResponse.self, forKey: .error)
+
+
+
+
+ do {
+ metaCode = try container.decode(CountryMetaResponse.self, forKey: .metaCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ latLong = try container.decode(PincodeLatLongData.self, forKey: .latLong)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ subType = try container.decode(String.self, forKey: .subType)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(parents, forKey: .parents)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(metaCode, forKey: .metaCode)
+
+
+
+ try? container.encodeIfPresent(latLong, forKey: .latLong)
+
+
+
+ try? container.encodeIfPresent(subType, forKey: .subType)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/PincodeDataResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeDataResultLogisticAppModel.swift
deleted file mode 100644
index cb03ec2e7f..0000000000
--- a/Sources/code/application/Models/Logistic/PincodeDataResultLogisticAppModel.swift
+++ /dev/null
@@ -1,222 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: PincodeDataResult
- Used By: Logistic
- */
- class PincodeDataResult: Codable {
-
- public var parents: [PincodeParentsResult]?
-
- public var meta: PincodeMetaResult?
-
- public var displayName: String?
-
- public var error: PincodeErrorSchemaResult
-
- public var metaCode: CountryMetaResult?
-
- public var latLong: PincodeLatLongData?
-
- public var subType: String?
-
- public var name: String?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case parents = "parents"
-
- case meta = "meta"
-
- case displayName = "display_name"
-
- case error = "error"
-
- case metaCode = "meta_code"
-
- case latLong = "lat_long"
-
- case subType = "sub_type"
-
- case name = "name"
-
- case uid = "uid"
-
- }
-
- public init(displayName: String? = nil, error: PincodeErrorSchemaResult, latLong: PincodeLatLongData? = nil, meta: PincodeMetaResult? = nil, metaCode: CountryMetaResult? = nil, name: String? = nil, parents: [PincodeParentsResult]? = nil, subType: String? = nil, uid: String? = nil) {
-
- self.parents = parents
-
- self.meta = meta
-
- self.displayName = displayName
-
- self.error = error
-
- self.metaCode = metaCode
-
- self.latLong = latLong
-
- self.subType = subType
-
- self.name = name
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- parents = try container.decode([PincodeParentsResult].self, forKey: .parents)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(PincodeMetaResult.self, forKey: .meta)
-
- } 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 {
-
- }
-
-
-
- error = try container.decode(PincodeErrorSchemaResult.self, forKey: .error)
-
-
-
-
- do {
- metaCode = try container.decode(CountryMetaResult.self, forKey: .metaCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- latLong = try container.decode(PincodeLatLongData.self, forKey: .latLong)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- subType = try container.decode(String.self, forKey: .subType)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(parents, forKey: .parents)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(metaCode, forKey: .metaCode)
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
-
- try? container.encodeIfPresent(subType, forKey: .subType)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PincodeDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeDetailsLogisticAppModel.swift
deleted file mode 100644
index 9cf2c75f4b..0000000000
--- a/Sources/code/application/Models/Logistic/PincodeDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: PincodeDetails
- Used By: Logistic
- */
- class PincodeDetails: Codable {
-
- public var success: Bool
-
- public var data: [PincodeDataResult]?
-
- public var error: PincodeErrorSchemaResult
-
- public var requestUuid: String?
-
- public var stormbreakerUuid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- case error = "error"
-
- case requestUuid = "request_uuid"
-
- case stormbreakerUuid = "stormbreaker_uuid"
-
- }
-
- public init(data: [PincodeDataResult]? = nil, error: PincodeErrorSchemaResult, requestUuid: String? = nil, stormbreakerUuid: String? = nil, success: Bool) {
-
- self.success = success
-
- self.data = data
-
- self.error = error
-
- self.requestUuid = requestUuid
-
- self.stormbreakerUuid = stormbreakerUuid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- data = try container.decode([PincodeDataResult].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- error = try container.decode(PincodeErrorSchemaResult.self, forKey: .error)
-
-
-
-
- do {
- requestUuid = try container.decode(String.self, forKey: .requestUuid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stormbreakerUuid = try container.decode(String.self, forKey: .stormbreakerUuid)
-
- } 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)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(requestUuid, forKey: .requestUuid)
-
-
-
- try? container.encodeIfPresent(stormbreakerUuid, forKey: .stormbreakerUuid)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PincodeErrorSchemaResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeErrorSchemaResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..39952a5af8
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/PincodeErrorSchemaResponseLogisticAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: PincodeErrorSchemaResponse
+ Used By: Logistic
+ */
+ class PincodeErrorSchemaResponse: Codable {
+
+ public var message: String?
+
+ public var value: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case value = "value"
+
+ case type = "type"
+
+ }
+
+ public init(message: String? = nil, type: String? = nil, value: String? = nil) {
+
+ self.message = message
+
+ self.value = value
+
+ self.type = type
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/PincodeErrorSchemaResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeErrorSchemaResultLogisticAppModel.swift
deleted file mode 100644
index e757e2588f..0000000000
--- a/Sources/code/application/Models/Logistic/PincodeErrorSchemaResultLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: PincodeErrorSchemaResult
- Used By: Logistic
- */
- class PincodeErrorSchemaResult: Codable {
-
- public var message: String?
-
- public var value: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case value = "value"
-
- case type = "type"
-
- }
-
- public init(message: String? = nil, type: String? = nil, value: String? = nil) {
-
- self.message = message
-
- self.value = value
-
- self.type = type
-
- }
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PincodeMetaResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeMetaResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..9d65502394
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/PincodeMetaResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: PincodeMetaResponse
+ Used By: Logistic
+ */
+ class PincodeMetaResponse: Codable {
+
+ public var zone: String?
+
+ public var internalZoneId: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case zone = "zone"
+
+ case internalZoneId = "internal_zone_id"
+
+ }
+
+ public init(internalZoneId: Int? = nil, zone: String? = nil) {
+
+ self.zone = zone
+
+ self.internalZoneId = internalZoneId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ zone = try container.decode(String.self, forKey: .zone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ internalZoneId = try container.decode(Int.self, forKey: .internalZoneId)
+
+ } 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(zone, forKey: .zone)
+
+
+
+ try? container.encodeIfPresent(internalZoneId, forKey: .internalZoneId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/PincodeMetaResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeMetaResultLogisticAppModel.swift
deleted file mode 100644
index ade6accd71..0000000000
--- a/Sources/code/application/Models/Logistic/PincodeMetaResultLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: PincodeMetaResult
- Used By: Logistic
- */
- class PincodeMetaResult: Codable {
-
- public var zone: String?
-
- public var internalZoneId: Int?
-
- public var deliverables: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case zone = "zone"
-
- case internalZoneId = "internal_zone_id"
-
- case deliverables = "deliverables"
-
- }
-
- public init(deliverables: [String]? = nil, internalZoneId: Int? = nil, zone: String? = nil) {
-
- self.zone = zone
-
- self.internalZoneId = internalZoneId
-
- self.deliverables = deliverables
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- zone = try container.decode(String.self, forKey: .zone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- internalZoneId = try container.decode(Int.self, forKey: .internalZoneId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliverables = try container.decode([String].self, forKey: .deliverables)
-
- } 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(zone, forKey: .zone)
-
-
-
- try? container.encodeIfPresent(internalZoneId, forKey: .internalZoneId)
-
-
-
- try? container.encodeIfPresent(deliverables, forKey: .deliverables)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PincodeParentsResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeParentsResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..4c9ce091db
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/PincodeParentsResponseLogisticAppModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: PincodeParentsResponse
+ Used By: Logistic
+ */
+ class PincodeParentsResponse: Codable {
+
+ public var subType: String?
+
+ public var displayName: String?
+
+ public var name: String?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subType = "sub_type"
+
+ case displayName = "display_name"
+
+ case name = "name"
+
+ case uid = "uid"
+
+ }
+
+ public init(displayName: String? = nil, name: String? = nil, subType: String? = nil, uid: String? = nil) {
+
+ self.subType = subType
+
+ self.displayName = displayName
+
+ self.name = name
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subType = try container.decode(String.self, forKey: .subType)
+
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(subType, forKey: .subType)
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/PincodeParentsResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PincodeParentsResultLogisticAppModel.swift
deleted file mode 100644
index ed995b7056..0000000000
--- a/Sources/code/application/Models/Logistic/PincodeParentsResultLogisticAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: PincodeParentsResult
- Used By: Logistic
- */
- class PincodeParentsResult: Codable {
-
- public var subType: String?
-
- public var displayName: String?
-
- public var name: String?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subType = "sub_type"
-
- case displayName = "display_name"
-
- case name = "name"
-
- case uid = "uid"
-
- }
-
- public init(displayName: String? = nil, name: String? = nil, subType: String? = nil, uid: String? = nil) {
-
- self.subType = subType
-
- self.displayName = displayName
-
- self.name = name
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- subType = try container.decode(String.self, forKey: .subType)
-
- } 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(subType, forKey: .subType)
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/PromiseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/PromiseLogisticAppModel.swift
deleted file mode 100644
index 25feb69412..0000000000
--- a/Sources/code/application/Models/Logistic/PromiseLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: Promise
- Used By: Logistic
- */
- class Promise: Codable {
-
- public var min: String?
-
- public var max: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: String? = nil, min: String? = nil) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- min = try container.decode(String.self, forKey: .min)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- max = try container.decode(String.self, forKey: .max)
-
- } 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(max, forKey: .max)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ReAssignStoreDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ReAssignStoreDetailsLogisticAppModel.swift
deleted file mode 100644
index fc3a56a1d7..0000000000
--- a/Sources/code/application/Models/Logistic/ReAssignStoreDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ReAssignStoreDetails
- Used By: Logistic
- */
- class ReAssignStoreDetails: Codable {
-
- public var configuration: [String: Any]
-
- public var toPincode: String
-
- public var ignoredLocations: [Int]
-
- public var identifier: String
-
- public var articles: [[String: Any]]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case configuration = "configuration"
-
- case toPincode = "to_pincode"
-
- case ignoredLocations = "ignored_locations"
-
- case identifier = "identifier"
-
- case articles = "articles"
-
- }
-
- public init(articles: [[String: Any]], configuration: [String: Any], identifier: String, ignoredLocations: [Int], toPincode: String) {
-
- self.configuration = configuration
-
- self.toPincode = toPincode
-
- self.ignoredLocations = ignoredLocations
-
- self.identifier = identifier
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- configuration = try container.decode([String: Any].self, forKey: .configuration)
-
-
-
-
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
-
-
-
- ignoredLocations = try container.decode([Int].self, forKey: .ignoredLocations)
-
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- articles = try container.decode([[String: Any]].self, forKey: .articles)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
-
- try? container.encodeIfPresent(toPincode, forKey: .toPincode)
-
-
-
- try? container.encodeIfPresent(ignoredLocations, forKey: .ignoredLocations)
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ReAssignStoreRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ReAssignStoreRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..db9d854f13
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/ReAssignStoreRequestLogisticAppModel.swift
@@ -0,0 +1,106 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: ReAssignStoreRequest
+ Used By: Logistic
+ */
+ class ReAssignStoreRequest: Codable {
+
+ public var configuration: [String: Any]
+
+ public var toPincode: String
+
+ public var ignoredLocations: [Int]
+
+ public var identifier: String
+
+ public var articles: [[String: Any]]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case configuration = "configuration"
+
+ case toPincode = "to_pincode"
+
+ case ignoredLocations = "ignored_locations"
+
+ case identifier = "identifier"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [[String: Any]], configuration: [String: Any], identifier: String, ignoredLocations: [Int], toPincode: String) {
+
+ self.configuration = configuration
+
+ self.toPincode = toPincode
+
+ self.ignoredLocations = ignoredLocations
+
+ self.identifier = identifier
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ configuration = try container.decode([String: Any].self, forKey: .configuration)
+
+
+
+
+ toPincode = try container.decode(String.self, forKey: .toPincode)
+
+
+
+
+ ignoredLocations = try container.decode([Int].self, forKey: .ignoredLocations)
+
+
+
+
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+
+
+
+ articles = try container.decode([[String: Any]].self, forKey: .articles)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+
+ try? container.encodeIfPresent(toPincode, forKey: .toPincode)
+
+
+
+ try? container.encodeIfPresent(ignoredLocations, forKey: .ignoredLocations)
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/ReAssignStoreResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ReAssignStoreResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..dec4333797
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/ReAssignStoreResponseLogisticAppModel.swift
@@ -0,0 +1,113 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: ReAssignStoreResponse
+ Used By: Logistic
+ */
+ class ReAssignStoreResponse: Codable {
+
+ public var toPincode: String
+
+ public var pystormbreakerUuid: String
+
+ public var success: Bool
+
+ public var error: [String: Any]
+
+ public var assignedStores: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case toPincode = "to_pincode"
+
+ case pystormbreakerUuid = "pystormbreaker_uuid"
+
+ case success = "success"
+
+ case error = "error"
+
+ case assignedStores = "assigned_stores"
+
+ }
+
+ public init(assignedStores: [[String: Any]]? = nil, error: [String: Any], pystormbreakerUuid: String, success: Bool, toPincode: String) {
+
+ self.toPincode = toPincode
+
+ self.pystormbreakerUuid = pystormbreakerUuid
+
+ self.success = success
+
+ self.error = error
+
+ self.assignedStores = assignedStores
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ toPincode = try container.decode(String.self, forKey: .toPincode)
+
+
+
+
+ pystormbreakerUuid = try container.decode(String.self, forKey: .pystormbreakerUuid)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ error = try container.decode([String: Any].self, forKey: .error)
+
+
+
+
+ do {
+ assignedStores = try container.decode([[String: Any]].self, forKey: .assignedStores)
+
+ } 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(toPincode, forKey: .toPincode)
+
+
+
+ try? container.encodeIfPresent(pystormbreakerUuid, forKey: .pystormbreakerUuid)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(assignedStores, forKey: .assignedStores)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/ReAssignStoreResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ReAssignStoreResultLogisticAppModel.swift
deleted file mode 100644
index 23799d5855..0000000000
--- a/Sources/code/application/Models/Logistic/ReAssignStoreResultLogisticAppModel.swift
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ReAssignStoreResult
- Used By: Logistic
- */
- class ReAssignStoreResult: Codable {
-
- public var toPincode: String
-
- public var pystormbreakerUuid: String
-
- public var success: Bool
-
- public var error: [String: Any]
-
- public var assignedStores: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case toPincode = "to_pincode"
-
- case pystormbreakerUuid = "pystormbreaker_uuid"
-
- case success = "success"
-
- case error = "error"
-
- case assignedStores = "assigned_stores"
-
- }
-
- public init(assignedStores: [[String: Any]]? = nil, error: [String: Any], pystormbreakerUuid: String, success: Bool, toPincode: String) {
-
- self.toPincode = toPincode
-
- self.pystormbreakerUuid = pystormbreakerUuid
-
- self.success = success
-
- self.error = error
-
- self.assignedStores = assignedStores
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
-
-
-
- pystormbreakerUuid = try container.decode(String.self, forKey: .pystormbreakerUuid)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- error = try container.decode([String: Any].self, forKey: .error)
-
-
-
-
- do {
- assignedStores = try container.decode([[String: Any]].self, forKey: .assignedStores)
-
- } 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(toPincode, forKey: .toPincode)
-
-
-
- try? container.encodeIfPresent(pystormbreakerUuid, forKey: .pystormbreakerUuid)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(assignedStores, forKey: .assignedStores)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ServiceabilityLocationLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ServiceabilityLocationLogisticAppModel.swift
deleted file mode 100644
index 97d35999dc..0000000000
--- a/Sources/code/application/Models/Logistic/ServiceabilityLocationLogisticAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ServiceabilityLocation
- Used By: Logistic
- */
- class ServiceabilityLocation: Codable {
-
- public var longitude: String
-
- public var latitude: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case longitude = "longitude"
-
- case latitude = "latitude"
-
- }
-
- public init(latitude: String, longitude: String) {
-
- self.longitude = longitude
-
- self.latitude = latitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- longitude = try container.decode(String.self, forKey: .longitude)
-
-
-
-
- latitude = try container.decode(String.self, forKey: .latitude)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ServiceabilityModelLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ServiceabilityModelLogisticAppModel.swift
deleted file mode 100644
index 3872551b90..0000000000
--- a/Sources/code/application/Models/Logistic/ServiceabilityModelLogisticAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ServiceabilityModel
- Used By: Logistic
- */
- class ServiceabilityModel: Codable {
-
- public var lmCodLimit: Int?
-
- public var isQc: Bool?
-
- public var pickupCutoff: String?
-
- public var routeCode: String?
-
- public var isFirstMile: Bool?
-
- public var isReturn: Bool?
-
- public var isInstallation: Bool?
-
- public var isLastMile: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case lmCodLimit = "lm_cod_limit"
-
- case isQc = "is_qc"
-
- case pickupCutoff = "pickup_cutoff"
-
- case routeCode = "route_code"
-
- case isFirstMile = "is_first_mile"
-
- case isReturn = "is_return"
-
- case isInstallation = "is_installation"
-
- case isLastMile = "is_last_mile"
-
- }
-
- public init(isFirstMile: Bool? = nil, isInstallation: Bool? = nil, isLastMile: Bool? = nil, isQc: Bool? = nil, isReturn: Bool? = nil, lmCodLimit: Int? = nil, pickupCutoff: String? = nil, routeCode: String? = nil) {
-
- self.lmCodLimit = lmCodLimit
-
- self.isQc = isQc
-
- self.pickupCutoff = pickupCutoff
-
- self.routeCode = routeCode
-
- self.isFirstMile = isFirstMile
-
- self.isReturn = isReturn
-
- self.isInstallation = isInstallation
-
- self.isLastMile = isLastMile
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- lmCodLimit = try container.decode(Int.self, forKey: .lmCodLimit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isQc = try container.decode(Bool.self, forKey: .isQc)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pickupCutoff = try container.decode(String.self, forKey: .pickupCutoff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- routeCode = try container.decode(String.self, forKey: .routeCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isFirstMile = try container.decode(Bool.self, forKey: .isFirstMile)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isReturn = try container.decode(Bool.self, forKey: .isReturn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isInstallation = try container.decode(Bool.self, forKey: .isInstallation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isLastMile = try container.decode(Bool.self, forKey: .isLastMile)
-
- } 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(lmCodLimit, forKey: .lmCodLimit)
-
-
-
- try? container.encodeIfPresent(isQc, forKey: .isQc)
-
-
-
- try? container.encodeIfPresent(pickupCutoff, forKey: .pickupCutoff)
-
-
-
- try? container.encodeIfPresent(routeCode, forKey: .routeCode)
-
-
-
- try? container.encodeIfPresent(isFirstMile, forKey: .isFirstMile)
-
-
-
- try? container.encodeIfPresent(isReturn, forKey: .isReturn)
-
-
-
- try? container.encodeIfPresent(isInstallation, forKey: .isInstallation)
-
-
-
- try? container.encodeIfPresent(isLastMile, forKey: .isLastMile)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentCourierPartnerDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentCourierPartnerDetailsLogisticAppModel.swift
deleted file mode 100644
index 0a15b2fbbb..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentCourierPartnerDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentCourierPartnerDetails
- Used By: Logistic
- */
- class ShipmentCourierPartnerDetails: Codable {
-
- public var fromLocation: ShipmentsCourierPartnersServiceability
-
- public var toLocation: ShipmentsCourierPartnersServiceability
-
- public var shipments: [Shipments]?
-
- public var journey: String?
-
- public var paymentMode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fromLocation = "from_location"
-
- case toLocation = "to_location"
-
- case shipments = "shipments"
-
- case journey = "journey"
-
- case paymentMode = "payment_mode"
-
- }
-
- public init(fromLocation: ShipmentsCourierPartnersServiceability, journey: String? = nil, paymentMode: String? = nil, shipments: [Shipments]? = nil, toLocation: ShipmentsCourierPartnersServiceability) {
-
- self.fromLocation = fromLocation
-
- self.toLocation = toLocation
-
- self.shipments = shipments
-
- self.journey = journey
-
- self.paymentMode = paymentMode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fromLocation = try container.decode(ShipmentsCourierPartnersServiceability.self, forKey: .fromLocation)
-
-
-
-
- toLocation = try container.decode(ShipmentsCourierPartnersServiceability.self, forKey: .toLocation)
-
-
-
-
- do {
- shipments = try container.decode([Shipments].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- journey = try container.decode(String.self, forKey: .journey)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
- } 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(fromLocation, forKey: .fromLocation)
-
-
-
- try? container.encodeIfPresent(toLocation, forKey: .toLocation)
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
- try? container.encodeIfPresent(journey, forKey: .journey)
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentCourierPartnerResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentCourierPartnerResultLogisticAppModel.swift
deleted file mode 100644
index 197a1601c7..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentCourierPartnerResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentCourierPartnerResult
- Used By: Logistic
- */
- class ShipmentCourierPartnerResult: Codable {
-
- public var courierPartners: [CourierPartners]?
-
- public var shipments: [ShipmentCourierPartners]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case courierPartners = "courier_partners"
-
- case shipments = "shipments"
-
- }
-
- public init(courierPartners: [CourierPartners]? = nil, shipments: [ShipmentCourierPartners]? = nil) {
-
- self.courierPartners = courierPartners
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- courierPartners = try container.decode([CourierPartners].self, forKey: .courierPartners)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipments = try container.decode([ShipmentCourierPartners].self, forKey: .shipments)
-
- } 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(courierPartners, forKey: .courierPartners)
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentCourierPartnersLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentCourierPartnersLogisticAppModel.swift
deleted file mode 100644
index 3e0adfa8ee..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentCourierPartnersLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentCourierPartners
- Used By: Logistic
- */
- class ShipmentCourierPartners: Codable {
-
- public var id: String?
-
- public var courierPartners: [CourierPartners]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case courierPartners = "courier_partners"
-
- }
-
- public init(courierPartners: [CourierPartners]? = nil, id: String? = nil) {
-
- self.id = id
-
- self.courierPartners = courierPartners
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- courierPartners = try container.decode([CourierPartners].self, forKey: .courierPartners)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(courierPartners, forKey: .courierPartners)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentDimensionLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentDimensionLogisticAppModel.swift
deleted file mode 100644
index 5a64db1a27..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentDimensionLogisticAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentDimension
- Used By: Logistic
- */
- class ShipmentDimension: Codable {
-
- public var height: Double
-
- public var length: Double
-
- public var width: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case height = "height"
-
- case length = "length"
-
- case width = "width"
-
- }
-
- public init(height: Double, length: Double, width: Double) {
-
- self.height = height
-
- self.length = length
-
- self.width = width
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- height = try container.decode(Double.self, forKey: .height)
-
-
-
-
- length = try container.decode(Double.self, forKey: .length)
-
-
-
-
- width = try container.decode(Double.self, forKey: .width)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(height, forKey: .height)
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentsArticlesLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentsArticlesLogisticAppModel.swift
deleted file mode 100644
index 09e0f3fe2c..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentsArticlesLogisticAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentsArticles
- Used By: Logistic
- */
- class ShipmentsArticles: Codable {
-
- public var itemId: Int?
-
- public var categoryId: Int?
-
- public var brandId: Int?
-
- public var departmentId: Int?
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemId = "item_id"
-
- case categoryId = "category_id"
-
- case brandId = "brand_id"
-
- case departmentId = "department_id"
-
- case tags = "tags"
-
- }
-
- public init(brandId: Int? = nil, categoryId: Int? = nil, departmentId: Int? = nil, itemId: Int? = nil, tags: [String]? = nil) {
-
- self.itemId = itemId
-
- self.categoryId = categoryId
-
- self.brandId = brandId
-
- self.departmentId = departmentId
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- categoryId = try container.decode(Int.self, forKey: .categoryId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- departmentId = try container.decode(Int.self, forKey: .departmentId)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
- try? container.encodeIfPresent(categoryId, forKey: .categoryId)
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
- try? container.encodeIfPresent(departmentId, forKey: .departmentId)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentsCourierPartnersServiceabilityLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentsCourierPartnersServiceabilityLogisticAppModel.swift
deleted file mode 100644
index a8f4f9f5a5..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentsCourierPartnersServiceabilityLogisticAppModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ShipmentsCourierPartnersServiceability
- Used By: Logistic
- */
- class ShipmentsCourierPartnersServiceability: Codable {
-
- public var pincode: String?
-
- public var sectorCode: String?
-
- public var stateCode: String?
-
- public var cityCode: String?
-
- public var countryCode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pincode = "pincode"
-
- case sectorCode = "sector_code"
-
- case stateCode = "state_code"
-
- case cityCode = "city_code"
-
- case countryCode = "country_code"
-
- }
-
- public init(cityCode: String? = nil, countryCode: String, pincode: String? = nil, sectorCode: String? = nil, stateCode: String? = nil) {
-
- self.pincode = pincode
-
- self.sectorCode = sectorCode
-
- self.stateCode = stateCode
-
- self.cityCode = cityCode
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sectorCode = try container.decode(String.self, forKey: .sectorCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cityCode = try container.decode(String.self, forKey: .cityCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
- try? container.encodeIfPresent(sectorCode, forKey: .sectorCode)
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
- try? container.encodeIfPresent(cityCode, forKey: .cityCode)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ShipmentsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ShipmentsLogisticAppModel.swift
deleted file mode 100644
index 44c20559a2..0000000000
--- a/Sources/code/application/Models/Logistic/ShipmentsLogisticAppModel.swift
+++ /dev/null
@@ -1,229 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: Shipments
- Used By: Logistic
- */
- class Shipments: Codable {
-
- public var id: String?
-
- public var locationId: Double?
-
- public var locationTags: [String]?
-
- public var shipmentWeight: Double?
-
- public var shipmentVolumetricWeight: Double?
-
- public var shipmentCost: Double?
-
- public var shipmentDimension: ShipmentDimension?
-
- public var courierPartnerSchemes: [String]?
-
- public var articles: [ShipmentsArticles]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case locationId = "location_id"
-
- case locationTags = "location_tags"
-
- case shipmentWeight = "shipment_weight"
-
- case shipmentVolumetricWeight = "shipment_volumetric_weight"
-
- case shipmentCost = "shipment_cost"
-
- case shipmentDimension = "shipment_dimension"
-
- case courierPartnerSchemes = "courier_partner_schemes"
-
- case articles = "articles"
-
- }
-
- public init(articles: [ShipmentsArticles]? = nil, courierPartnerSchemes: [String]? = nil, id: String? = nil, locationId: Double? = nil, locationTags: [String]? = nil, shipmentCost: Double? = nil, shipmentDimension: ShipmentDimension? = nil, shipmentVolumetricWeight: Double? = nil, shipmentWeight: Double? = nil) {
-
- self.id = id
-
- self.locationId = locationId
-
- self.locationTags = locationTags
-
- self.shipmentWeight = shipmentWeight
-
- self.shipmentVolumetricWeight = shipmentVolumetricWeight
-
- self.shipmentCost = shipmentCost
-
- self.shipmentDimension = shipmentDimension
-
- self.courierPartnerSchemes = courierPartnerSchemes
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- locationId = try container.decode(Double.self, forKey: .locationId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- locationTags = try container.decode([String].self, forKey: .locationTags)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentWeight = try container.decode(Double.self, forKey: .shipmentWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentVolumetricWeight = try container.decode(Double.self, forKey: .shipmentVolumetricWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentCost = try container.decode(Double.self, forKey: .shipmentCost)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentDimension = try container.decode(ShipmentDimension.self, forKey: .shipmentDimension)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- courierPartnerSchemes = try container.decode([String].self, forKey: .courierPartnerSchemes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articles = try container.decode([ShipmentsArticles].self, forKey: .articles)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(locationId, forKey: .locationId)
-
-
-
- try? container.encodeIfPresent(locationTags, forKey: .locationTags)
-
-
-
- try? container.encodeIfPresent(shipmentWeight, forKey: .shipmentWeight)
-
-
-
- try? container.encodeIfPresent(shipmentVolumetricWeight, forKey: .shipmentVolumetricWeight)
-
-
-
- try? container.encodeIfPresent(shipmentCost, forKey: .shipmentCost)
-
-
-
- try? container.encodeIfPresent(shipmentDimension, forKey: .shipmentDimension)
-
-
-
- try? container.encodeIfPresent(courierPartnerSchemes, forKey: .courierPartnerSchemes)
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/StandardErrorLogisticAppModel.swift b/Sources/code/application/Models/Logistic/StandardErrorLogisticAppModel.swift
deleted file mode 100644
index 968ad92e1f..0000000000
--- a/Sources/code/application/Models/Logistic/StandardErrorLogisticAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: StandardError
- Used By: Logistic
- */
- class StandardError: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/StoreItemResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/StoreItemResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..f60412990d
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/StoreItemResponseLogisticAppModel.swift
@@ -0,0 +1,207 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: StoreItemResponse
+ Used By: Logistic
+ */
+ class StoreItemResponse: Codable {
+
+ public var id: Int?
+
+ public var storeType: String?
+
+ public var fulfillmentType: String?
+
+ public var processingTime: Int?
+
+ public var tags: [String]?
+
+ public var companyId: Int?
+
+ public var latitude: Double?
+
+ public var longitude: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case storeType = "store_type"
+
+ case fulfillmentType = "fulfillment_type"
+
+ case processingTime = "processing_time"
+
+ case tags = "tags"
+
+ case companyId = "company_id"
+
+ case latitude = "latitude"
+
+ case longitude = "longitude"
+
+ }
+
+ public init(companyId: Int? = nil, fulfillmentType: String? = nil, id: Int? = nil, latitude: Double? = nil, longitude: Double? = nil, processingTime: Int? = nil, storeType: String? = nil, tags: [String]? = nil) {
+
+ self.id = id
+
+ self.storeType = storeType
+
+ self.fulfillmentType = fulfillmentType
+
+ self.processingTime = processingTime
+
+ self.tags = tags
+
+ self.companyId = companyId
+
+ self.latitude = latitude
+
+ self.longitude = longitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ id = try container.decode(Int.self, forKey: .id)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ processingTime = try container.decode(Int.self, forKey: .processingTime)
+
+ } 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 {
+ 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 {
+ 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)
+
+ } 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(id, forKey: .id)
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+ try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
+
+
+
+ try? container.encodeIfPresent(processingTime, forKey: .processingTime)
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/StoreItemResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/StoreItemResultLogisticAppModel.swift
deleted file mode 100644
index 416ccb5aa7..0000000000
--- a/Sources/code/application/Models/Logistic/StoreItemResultLogisticAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: StoreItemResult
- Used By: Logistic
- */
- class StoreItemResult: Codable {
-
- public var id: Int?
-
- public var storeType: String?
-
- public var fulfillmentType: String?
-
- public var processingTime: Int?
-
- public var tags: [String]?
-
- public var companyId: Int?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case storeType = "store_type"
-
- case fulfillmentType = "fulfillment_type"
-
- case processingTime = "processing_time"
-
- case tags = "tags"
-
- case companyId = "company_id"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- }
-
- public init(companyId: Int? = nil, fulfillmentType: String? = nil, id: Int? = nil, latitude: Double? = nil, longitude: Double? = nil, processingTime: Int? = nil, storeType: String? = nil, tags: [String]? = nil) {
-
- self.id = id
-
- self.storeType = storeType
-
- self.fulfillmentType = fulfillmentType
-
- self.processingTime = processingTime
-
- self.tags = tags
-
- self.companyId = companyId
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } 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 {
-
- }
-
-
-
- do {
- fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- processingTime = try container.decode(Int.self, forKey: .processingTime)
-
- } 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 {
- 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 {
- 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)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
- try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
-
-
-
- try? container.encodeIfPresent(processingTime, forKey: .processingTime)
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/StorePromiseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/StorePromiseLogisticAppModel.swift
deleted file mode 100644
index 1bd17990d2..0000000000
--- a/Sources/code/application/Models/Logistic/StorePromiseLogisticAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: StorePromise
- Used By: Logistic
- */
- class StorePromise: Codable {
-
- public var uid: Int?
-
- public var code: String?
-
- public var name: String?
-
- public var deliveryPromise: Promise?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case code = "code"
-
- case name = "name"
-
- case deliveryPromise = "delivery_promise"
-
- }
-
- public init(code: String? = nil, deliveryPromise: Promise? = nil, name: String? = nil, uid: Int? = nil) {
-
- self.uid = uid
-
- self.code = code
-
- self.name = name
-
- self.deliveryPromise = deliveryPromise
-
- }
-
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(Promise.self, forKey: .deliveryPromise)
-
- } 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(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATArticlesDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATArticlesDetailsLogisticAppModel.swift
deleted file mode 100644
index 343d5bde80..0000000000
--- a/Sources/code/application/Models/Logistic/TATArticlesDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATArticlesDetails
- Used By: Logistic
- */
- class TATArticlesDetails: Codable {
-
- public var category: TATCategoryDetails?
-
- public var manufacturingTimeUnit: String?
-
- public var manufacturingTime: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case category = "category"
-
- case manufacturingTimeUnit = "manufacturing_time_unit"
-
- case manufacturingTime = "manufacturing_time"
-
- }
-
- public init(category: TATCategoryDetails? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
-
- self.category = category
-
- self.manufacturingTimeUnit = manufacturingTimeUnit
-
- self.manufacturingTime = manufacturingTime
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- category = try container.decode(TATCategoryDetails.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
- try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
-
-
-
- try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATArticlesRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATArticlesRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..5078609765
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATArticlesRequestLogisticAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATArticlesRequest
+ Used By: Logistic
+ */
+ class TATArticlesRequest: Codable {
+
+ public var category: TATCategoryRequest?
+
+ public var manufacturingTimeUnit: String?
+
+ public var manufacturingTime: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case category = "category"
+
+ case manufacturingTimeUnit = "manufacturing_time_unit"
+
+ case manufacturingTime = "manufacturing_time"
+
+ }
+
+ public init(category: TATCategoryRequest? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
+
+ self.category = category
+
+ self.manufacturingTimeUnit = manufacturingTimeUnit
+
+ self.manufacturingTime = manufacturingTime
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ category = try container.decode(TATCategoryRequest.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+ try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
+
+
+
+ try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATArticlesResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATArticlesResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..f3a7480c8d
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATArticlesResponseLogisticAppModel.swift
@@ -0,0 +1,185 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATArticlesResponse
+ Used By: Logistic
+ */
+ class TATArticlesResponse: Codable {
+
+ public var manufacturingTimeUnit: String?
+
+ public var error: TATErrorSchemaResponse?
+
+ public var isCodAvailable: Bool?
+
+ public var promise: TATPromiseResponse?
+
+ public var manufacturingTime: Int?
+
+ public var category: TATCategoryRequest?
+
+ public var manufacturingTimeSeconds: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case manufacturingTimeUnit = "manufacturing_time_unit"
+
+ case error = "error"
+
+ case isCodAvailable = "is_cod_available"
+
+ case promise = "promise"
+
+ case manufacturingTime = "manufacturing_time"
+
+ case category = "category"
+
+ case manufacturingTimeSeconds = "_manufacturing_time_seconds"
+
+ }
+
+ public init(category: TATCategoryRequest? = nil, error: TATErrorSchemaResponse? = nil, isCodAvailable: Bool? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil, promise: TATPromiseResponse? = nil, manufacturingTimeSeconds: Int? = nil) {
+
+ self.manufacturingTimeUnit = manufacturingTimeUnit
+
+ self.error = error
+
+ self.isCodAvailable = isCodAvailable
+
+ self.promise = promise
+
+ self.manufacturingTime = manufacturingTime
+
+ self.category = category
+
+ self.manufacturingTimeSeconds = manufacturingTimeSeconds
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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 {
+ error = try container.decode(TATErrorSchemaResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCodAvailable = try container.decode(Bool.self, forKey: .isCodAvailable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ promise = try container.decode(TATPromiseResponse.self, forKey: .promise)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ category = try container.decode(TATCategoryRequest.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ manufacturingTimeSeconds = try container.decode(Int.self, forKey: .manufacturingTimeSeconds)
+
+ } 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(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(isCodAvailable, forKey: .isCodAvailable)
+
+
+
+ try? container.encodeIfPresent(promise, forKey: .promise)
+
+
+
+ try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
+
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+ try? container.encodeIfPresent(manufacturingTimeSeconds, forKey: .manufacturingTimeSeconds)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATArticlesResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATArticlesResultLogisticAppModel.swift
deleted file mode 100644
index 593a277667..0000000000
--- a/Sources/code/application/Models/Logistic/TATArticlesResultLogisticAppModel.swift
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATArticlesResult
- Used By: Logistic
- */
- class TATArticlesResult: Codable {
-
- public var manufacturingTimeUnit: String?
-
- public var error: TATErrorSchemaResult?
-
- public var isCodAvailable: Bool?
-
- public var promise: TATPromiseResult?
-
- public var manufacturingTime: Int?
-
- public var category: TATCategoryDetails?
-
- public var manufacturingTimeSeconds: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case manufacturingTimeUnit = "manufacturing_time_unit"
-
- case error = "error"
-
- case isCodAvailable = "is_cod_available"
-
- case promise = "promise"
-
- case manufacturingTime = "manufacturing_time"
-
- case category = "category"
-
- case manufacturingTimeSeconds = "_manufacturing_time_seconds"
-
- }
-
- public init(category: TATCategoryDetails? = nil, error: TATErrorSchemaResult? = nil, isCodAvailable: Bool? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil, promise: TATPromiseResult? = nil, manufacturingTimeSeconds: Int? = nil) {
-
- self.manufacturingTimeUnit = manufacturingTimeUnit
-
- self.error = error
-
- self.isCodAvailable = isCodAvailable
-
- self.promise = promise
-
- self.manufacturingTime = manufacturingTime
-
- self.category = category
-
- self.manufacturingTimeSeconds = manufacturingTimeSeconds
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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 {
- error = try container.decode(TATErrorSchemaResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCodAvailable = try container.decode(Bool.self, forKey: .isCodAvailable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- promise = try container.decode(TATPromiseResult.self, forKey: .promise)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- category = try container.decode(TATCategoryDetails.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- manufacturingTimeSeconds = try container.decode(Int.self, forKey: .manufacturingTimeSeconds)
-
- } 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(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(isCodAvailable, forKey: .isCodAvailable)
-
-
-
- try? container.encodeIfPresent(promise, forKey: .promise)
-
-
-
- try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
- try? container.encodeIfPresent(manufacturingTimeSeconds, forKey: .manufacturingTimeSeconds)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATCategoryDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATCategoryDetailsLogisticAppModel.swift
deleted file mode 100644
index 7d4158b226..0000000000
--- a/Sources/code/application/Models/Logistic/TATCategoryDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATCategoryDetails
- Used By: Logistic
- */
- class TATCategoryDetails: Codable {
-
- public var level: String?
-
- public var id: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case level = "level"
-
- case id = "id"
-
- }
-
- public init(id: Int? = nil, level: String? = nil) {
-
- self.level = level
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- level = try container.decode(String.self, forKey: .level)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } 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(id, forKey: .id)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATCategoryRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATCategoryRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..6cdbd51f13
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATCategoryRequestLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATCategoryRequest
+ Used By: Logistic
+ */
+ class TATCategoryRequest: Codable {
+
+ public var level: String?
+
+ public var id: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case level = "level"
+
+ case id = "id"
+
+ }
+
+ public init(id: Int? = nil, level: String? = nil) {
+
+ self.level = level
+
+ self.id = id
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ level = try container.decode(String.self, forKey: .level)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ id = try container.decode(Int.self, forKey: .id)
+
+ } 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(id, forKey: .id)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATErrorSchemaResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATErrorSchemaResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..c0e5dbebf0
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATErrorSchemaResponseLogisticAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATErrorSchemaResponse
+ Used By: Logistic
+ */
+ class TATErrorSchemaResponse: Codable {
+
+ public var message: String?
+
+ public var value: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case value = "value"
+
+ case type = "type"
+
+ }
+
+ public init(message: String? = nil, type: String? = nil, value: String? = nil) {
+
+ self.message = message
+
+ self.value = value
+
+ self.type = type
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATErrorSchemaResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATErrorSchemaResultLogisticAppModel.swift
deleted file mode 100644
index 7b09a8cdc8..0000000000
--- a/Sources/code/application/Models/Logistic/TATErrorSchemaResultLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATErrorSchemaResult
- Used By: Logistic
- */
- class TATErrorSchemaResult: Codable {
-
- public var message: String?
-
- public var value: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case value = "value"
-
- case type = "type"
-
- }
-
- public init(message: String? = nil, type: String? = nil, value: String? = nil) {
-
- self.message = message
-
- self.value = value
-
- self.type = type
-
- }
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATFormattedResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATFormattedResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..b9a5c7bce5
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATFormattedResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATFormattedResponse
+ Used By: Logistic
+ */
+ class TATFormattedResponse: Codable {
+
+ public var min: String?
+
+ public var max: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case min = "min"
+
+ case max = "max"
+
+ }
+
+ public init(max: String? = nil, min: String? = nil) {
+
+ self.min = min
+
+ self.max = max
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ min = try container.decode(String.self, forKey: .min)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ max = try container.decode(String.self, forKey: .max)
+
+ } 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(max, forKey: .max)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATFormattedResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATFormattedResultLogisticAppModel.swift
deleted file mode 100644
index 2c5a60a5ad..0000000000
--- a/Sources/code/application/Models/Logistic/TATFormattedResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATFormattedResult
- Used By: Logistic
- */
- class TATFormattedResult: Codable {
-
- public var min: String?
-
- public var max: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: String? = nil, min: String? = nil) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- min = try container.decode(String.self, forKey: .min)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- max = try container.decode(String.self, forKey: .max)
-
- } 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(max, forKey: .max)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATLocationDetailsDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATLocationDetailsDetailsLogisticAppModel.swift
deleted file mode 100644
index 339003eb32..0000000000
--- a/Sources/code/application/Models/Logistic/TATLocationDetailsDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATLocationDetailsDetails
- Used By: Logistic
- */
- class TATLocationDetailsDetails: Codable {
-
- public var fulfillmentId: Int?
-
- public var fromPincode: String?
-
- public var articles: [TATArticlesDetails]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfillmentId = "fulfillment_id"
-
- case fromPincode = "from_pincode"
-
- case articles = "articles"
-
- }
-
- public init(articles: [TATArticlesDetails]? = nil, fromPincode: String? = nil, fulfillmentId: Int? = nil) {
-
- self.fulfillmentId = fulfillmentId
-
- self.fromPincode = fromPincode
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromPincode = try container.decode(String.self, forKey: .fromPincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articles = try container.decode([TATArticlesDetails].self, forKey: .articles)
-
- } 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(fulfillmentId, forKey: .fulfillmentId)
-
-
-
- try? container.encodeIfPresent(fromPincode, forKey: .fromPincode)
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATLocationDetailsRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATLocationDetailsRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..6a8495c33f
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATLocationDetailsRequestLogisticAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATLocationDetailsRequest
+ Used By: Logistic
+ */
+ class TATLocationDetailsRequest: Codable {
+
+ public var fulfillmentId: Int?
+
+ public var fromPincode: String?
+
+ public var articles: [TATArticlesRequest]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fulfillmentId = "fulfillment_id"
+
+ case fromPincode = "from_pincode"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [TATArticlesRequest]? = nil, fromPincode: String? = nil, fulfillmentId: Int? = nil) {
+
+ self.fulfillmentId = fulfillmentId
+
+ self.fromPincode = fromPincode
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fromPincode = try container.decode(String.self, forKey: .fromPincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ articles = try container.decode([TATArticlesRequest].self, forKey: .articles)
+
+ } 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(fulfillmentId, forKey: .fulfillmentId)
+
+
+
+ try? container.encodeIfPresent(fromPincode, forKey: .fromPincode)
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATLocationDetailsResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATLocationDetailsResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..dc95bd81c3
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATLocationDetailsResponseLogisticAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATLocationDetailsResponse
+ Used By: Logistic
+ */
+ class TATLocationDetailsResponse: Codable {
+
+ public var fulfillmentId: Int?
+
+ public var fromPincode: String?
+
+ public var articles: [TATArticlesResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fulfillmentId = "fulfillment_id"
+
+ case fromPincode = "from_pincode"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [TATArticlesResponse]? = nil, fromPincode: String? = nil, fulfillmentId: Int? = nil) {
+
+ self.fulfillmentId = fulfillmentId
+
+ self.fromPincode = fromPincode
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fromPincode = try container.decode(String.self, forKey: .fromPincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ articles = try container.decode([TATArticlesResponse].self, forKey: .articles)
+
+ } 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(fulfillmentId, forKey: .fulfillmentId)
+
+
+
+ try? container.encodeIfPresent(fromPincode, forKey: .fromPincode)
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATLocationDetailsResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATLocationDetailsResultLogisticAppModel.swift
deleted file mode 100644
index 3624444ffe..0000000000
--- a/Sources/code/application/Models/Logistic/TATLocationDetailsResultLogisticAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATLocationDetailsResult
- Used By: Logistic
- */
- class TATLocationDetailsResult: Codable {
-
- public var fulfillmentId: Int?
-
- public var fromPincode: String?
-
- public var articles: [TATArticlesResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfillmentId = "fulfillment_id"
-
- case fromPincode = "from_pincode"
-
- case articles = "articles"
-
- }
-
- public init(articles: [TATArticlesResult]? = nil, fromPincode: String? = nil, fulfillmentId: Int? = nil) {
-
- self.fulfillmentId = fulfillmentId
-
- self.fromPincode = fromPincode
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromPincode = try container.decode(String.self, forKey: .fromPincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articles = try container.decode([TATArticlesResult].self, forKey: .articles)
-
- } 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(fulfillmentId, forKey: .fulfillmentId)
-
-
-
- try? container.encodeIfPresent(fromPincode, forKey: .fromPincode)
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATPromiseResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATPromiseResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..c7aadcbc66
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATPromiseResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATPromiseResponse
+ Used By: Logistic
+ */
+ class TATPromiseResponse: Codable {
+
+ public var timestamp: TATTimestampResponse?
+
+ public var formatted: TATFormattedResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case timestamp = "timestamp"
+
+ case formatted = "formatted"
+
+ }
+
+ public init(formatted: TATFormattedResponse? = nil, timestamp: TATTimestampResponse? = nil) {
+
+ self.timestamp = timestamp
+
+ self.formatted = formatted
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ timestamp = try container.decode(TATTimestampResponse.self, forKey: .timestamp)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ formatted = try container.decode(TATFormattedResponse.self, forKey: .formatted)
+
+ } 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(timestamp, forKey: .timestamp)
+
+
+
+ try? container.encodeIfPresent(formatted, forKey: .formatted)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATPromiseResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATPromiseResultLogisticAppModel.swift
deleted file mode 100644
index 762270111d..0000000000
--- a/Sources/code/application/Models/Logistic/TATPromiseResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATPromiseResult
- Used By: Logistic
- */
- class TATPromiseResult: Codable {
-
- public var timestamp: TATTimestampResult?
-
- public var formatted: TATFormattedResult?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case timestamp = "timestamp"
-
- case formatted = "formatted"
-
- }
-
- public init(formatted: TATFormattedResult? = nil, timestamp: TATTimestampResult? = nil) {
-
- self.timestamp = timestamp
-
- self.formatted = formatted
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- timestamp = try container.decode(TATTimestampResult.self, forKey: .timestamp)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- formatted = try container.decode(TATFormattedResult.self, forKey: .formatted)
-
- } 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(timestamp, forKey: .timestamp)
-
-
-
- try? container.encodeIfPresent(formatted, forKey: .formatted)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATTimestampResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATTimestampResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..caeb8854e3
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATTimestampResponseLogisticAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATTimestampResponse
+ Used By: Logistic
+ */
+ class TATTimestampResponse: Codable {
+
+ public var min: Int?
+
+ public var max: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case min = "min"
+
+ case max = "max"
+
+ }
+
+ public init(max: Int? = nil, min: Int? = nil) {
+
+ self.min = min
+
+ self.max = max
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(min, forKey: .min)
+
+
+
+ try? container.encodeIfPresent(max, forKey: .max)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATTimestampResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATTimestampResultLogisticAppModel.swift
deleted file mode 100644
index 39f211081c..0000000000
--- a/Sources/code/application/Models/Logistic/TATTimestampResultLogisticAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATTimestampResult
- Used By: Logistic
- */
- class TATTimestampResult: Codable {
-
- public var min: Int?
-
- public var max: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: Int? = nil, min: Int? = nil) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATViewDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATViewDetailsLogisticAppModel.swift
deleted file mode 100644
index 2334831e64..0000000000
--- a/Sources/code/application/Models/Logistic/TATViewDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATViewDetails
- Used By: Logistic
- */
- class TATViewDetails: Codable {
-
- public var toPincode: String?
-
- public var source: String?
-
- public var action: String?
-
- public var identifier: String?
-
- public var locationDetails: [TATLocationDetailsDetails]?
-
- public var journey: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case toPincode = "to_pincode"
-
- case source = "source"
-
- case action = "action"
-
- case identifier = "identifier"
-
- case locationDetails = "location_details"
-
- case journey = "journey"
-
- }
-
- public init(action: String? = nil, identifier: String? = nil, journey: String? = nil, locationDetails: [TATLocationDetailsDetails]? = nil, source: String? = nil, toPincode: String? = nil) {
-
- self.toPincode = toPincode
-
- self.source = source
-
- self.action = action
-
- self.identifier = identifier
-
- self.locationDetails = locationDetails
-
- self.journey = journey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifier = try container.decode(String.self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- locationDetails = try container.decode([TATLocationDetailsDetails].self, forKey: .locationDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- journey = try container.decode(String.self, forKey: .journey)
-
- } 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(toPincode, forKey: .toPincode)
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
- try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
-
-
-
- try? container.encodeIfPresent(journey, forKey: .journey)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/TATViewRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATViewRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..1f6681c55c
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATViewRequestLogisticAppModel.swift
@@ -0,0 +1,163 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATViewRequest
+ Used By: Logistic
+ */
+ class TATViewRequest: Codable {
+
+ public var toPincode: String?
+
+ public var source: String?
+
+ public var action: String?
+
+ public var identifier: String?
+
+ public var locationDetails: [TATLocationDetailsRequest]?
+
+ public var journey: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case toPincode = "to_pincode"
+
+ case source = "source"
+
+ case action = "action"
+
+ case identifier = "identifier"
+
+ case locationDetails = "location_details"
+
+ case journey = "journey"
+
+ }
+
+ public init(action: String? = nil, identifier: String? = nil, journey: String? = nil, locationDetails: [TATLocationDetailsRequest]? = nil, source: String? = nil, toPincode: String? = nil) {
+
+ self.toPincode = toPincode
+
+ self.source = source
+
+ self.action = action
+
+ self.identifier = identifier
+
+ self.locationDetails = locationDetails
+
+ self.journey = journey
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ toPincode = try container.decode(String.self, forKey: .toPincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ source = try container.decode(String.self, forKey: .source)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode(String.self, forKey: .action)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ locationDetails = try container.decode([TATLocationDetailsRequest].self, forKey: .locationDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ journey = try container.decode(String.self, forKey: .journey)
+
+ } 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(toPincode, forKey: .toPincode)
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+ try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
+
+
+
+ try? container.encodeIfPresent(journey, forKey: .journey)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATViewResponseLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATViewResponseLogisticAppModel.swift
new file mode 100644
index 0000000000..c1570046e5
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/TATViewResponseLogisticAppModel.swift
@@ -0,0 +1,317 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: TATViewResponse
+ Used By: Logistic
+ */
+ class TATViewResponse: Codable {
+
+ public var toPincode: String?
+
+ public var requestUuid: String?
+
+ public var paymentMode: String?
+
+ public var success: Bool?
+
+ public var error: TATErrorSchemaResponse?
+
+ public var isCodAvailable: Bool?
+
+ public var source: String?
+
+ public var action: String?
+
+ public var stormbreakerUuid: String?
+
+ public var toCity: String?
+
+ public var identifier: String?
+
+ public var locationDetails: [TATLocationDetailsResponse]?
+
+ public var journey: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case toPincode = "to_pincode"
+
+ case requestUuid = "request_uuid"
+
+ case paymentMode = "payment_mode"
+
+ case success = "success"
+
+ case error = "error"
+
+ case isCodAvailable = "is_cod_available"
+
+ case source = "source"
+
+ case action = "action"
+
+ case stormbreakerUuid = "stormbreaker_uuid"
+
+ case toCity = "to_city"
+
+ case identifier = "identifier"
+
+ case locationDetails = "location_details"
+
+ case journey = "journey"
+
+ }
+
+ public init(action: String? = nil, error: TATErrorSchemaResponse? = nil, identifier: String? = nil, isCodAvailable: Bool? = nil, journey: String? = nil, locationDetails: [TATLocationDetailsResponse]? = nil, paymentMode: String? = nil, requestUuid: String? = nil, source: String? = nil, stormbreakerUuid: String? = nil, success: Bool? = nil, toCity: String? = nil, toPincode: String? = nil) {
+
+ self.toPincode = toPincode
+
+ self.requestUuid = requestUuid
+
+ self.paymentMode = paymentMode
+
+ self.success = success
+
+ self.error = error
+
+ self.isCodAvailable = isCodAvailable
+
+ self.source = source
+
+ self.action = action
+
+ self.stormbreakerUuid = stormbreakerUuid
+
+ self.toCity = toCity
+
+ self.identifier = identifier
+
+ self.locationDetails = locationDetails
+
+ self.journey = journey
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ toPincode = try container.decode(String.self, forKey: .toPincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ requestUuid = try container.decode(String.self, forKey: .requestUuid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ error = try container.decode(TATErrorSchemaResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCodAvailable = try container.decode(Bool.self, forKey: .isCodAvailable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ source = try container.decode(String.self, forKey: .source)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode(String.self, forKey: .action)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stormbreakerUuid = try container.decode(String.self, forKey: .stormbreakerUuid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ toCity = try container.decode(String.self, forKey: .toCity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ locationDetails = try container.decode([TATLocationDetailsResponse].self, forKey: .locationDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ journey = try container.decode(String.self, forKey: .journey)
+
+ } 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(toPincode, forKey: .toPincode)
+
+
+
+ try? container.encodeIfPresent(requestUuid, forKey: .requestUuid)
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(isCodAvailable, forKey: .isCodAvailable)
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+ try? container.encodeIfPresent(stormbreakerUuid, forKey: .stormbreakerUuid)
+
+
+
+ try? container.encodeIfPresent(toCity, forKey: .toCity)
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+ try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
+
+
+
+ try? container.encodeIfPresent(journey, forKey: .journey)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/TATViewResultLogisticAppModel.swift b/Sources/code/application/Models/Logistic/TATViewResultLogisticAppModel.swift
deleted file mode 100644
index 0fa6c74f98..0000000000
--- a/Sources/code/application/Models/Logistic/TATViewResultLogisticAppModel.swift
+++ /dev/null
@@ -1,317 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: TATViewResult
- Used By: Logistic
- */
- class TATViewResult: Codable {
-
- public var toPincode: String?
-
- public var requestUuid: String?
-
- public var paymentMode: String?
-
- public var success: Bool?
-
- public var error: TATErrorSchemaResult?
-
- public var isCodAvailable: Bool?
-
- public var source: String?
-
- public var action: String?
-
- public var stormbreakerUuid: String?
-
- public var toCity: String?
-
- public var identifier: String?
-
- public var locationDetails: [TATLocationDetailsResult]?
-
- public var journey: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case toPincode = "to_pincode"
-
- case requestUuid = "request_uuid"
-
- case paymentMode = "payment_mode"
-
- case success = "success"
-
- case error = "error"
-
- case isCodAvailable = "is_cod_available"
-
- case source = "source"
-
- case action = "action"
-
- case stormbreakerUuid = "stormbreaker_uuid"
-
- case toCity = "to_city"
-
- case identifier = "identifier"
-
- case locationDetails = "location_details"
-
- case journey = "journey"
-
- }
-
- public init(action: String? = nil, error: TATErrorSchemaResult? = nil, identifier: String? = nil, isCodAvailable: Bool? = nil, journey: String? = nil, locationDetails: [TATLocationDetailsResult]? = nil, paymentMode: String? = nil, requestUuid: String? = nil, source: String? = nil, stormbreakerUuid: String? = nil, success: Bool? = nil, toCity: String? = nil, toPincode: String? = nil) {
-
- self.toPincode = toPincode
-
- self.requestUuid = requestUuid
-
- self.paymentMode = paymentMode
-
- self.success = success
-
- self.error = error
-
- self.isCodAvailable = isCodAvailable
-
- self.source = source
-
- self.action = action
-
- self.stormbreakerUuid = stormbreakerUuid
-
- self.toCity = toCity
-
- self.identifier = identifier
-
- self.locationDetails = locationDetails
-
- self.journey = journey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- requestUuid = try container.decode(String.self, forKey: .requestUuid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
- } 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 {
-
- }
-
-
-
- do {
- error = try container.decode(TATErrorSchemaResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCodAvailable = try container.decode(Bool.self, forKey: .isCodAvailable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stormbreakerUuid = try container.decode(String.self, forKey: .stormbreakerUuid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- toCity = try container.decode(String.self, forKey: .toCity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifier = try container.decode(String.self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- locationDetails = try container.decode([TATLocationDetailsResult].self, forKey: .locationDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- journey = try container.decode(String.self, forKey: .journey)
-
- } 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(toPincode, forKey: .toPincode)
-
-
-
- try? container.encodeIfPresent(requestUuid, forKey: .requestUuid)
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(isCodAvailable, forKey: .isCodAvailable)
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
- try? container.encodeIfPresent(stormbreakerUuid, forKey: .stormbreakerUuid)
-
-
-
- try? container.encodeIfPresent(toCity, forKey: .toCity)
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
- try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
-
-
-
- try? container.encodeIfPresent(journey, forKey: .journey)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ValidateAddressDetailsLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ValidateAddressDetailsLogisticAppModel.swift
deleted file mode 100644
index 3fb4bb4c72..0000000000
--- a/Sources/code/application/Models/Logistic/ValidateAddressDetailsLogisticAppModel.swift
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ValidateAddressDetails
- Used By: Logistic
- */
- class ValidateAddressDetails: Codable {
-
- public var address: String?
-
- public var address1: String?
-
- public var address2: String?
-
- public var area: String?
-
- public var landmark: String?
-
- public var pincode: String?
-
- public var sector: String?
-
- public var city: String?
-
- public var state: String?
-
- public var name: String?
-
- public var phone: String?
-
- public var email: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case address1 = "address1"
-
- case address2 = "address2"
-
- case area = "area"
-
- case landmark = "landmark"
-
- case pincode = "pincode"
-
- case sector = "sector"
-
- case city = "city"
-
- case state = "state"
-
- case name = "name"
-
- case phone = "phone"
-
- case email = "email"
-
- }
-
- public init(address: String? = nil, address1: String? = nil, address2: String? = nil, area: String? = nil, city: String? = nil, email: String? = nil, landmark: String? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, sector: String? = nil, state: String? = nil) {
-
- self.address = address
-
- self.address1 = address1
-
- self.address2 = address2
-
- self.area = area
-
- self.landmark = landmark
-
- self.pincode = pincode
-
- self.sector = sector
-
- self.city = city
-
- self.state = state
-
- self.name = name
-
- self.phone = phone
-
- self.email = email
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sector = try container.decode(String.self, forKey: .sector)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- phone = try container.decode(String.self, forKey: .phone)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
- try? container.encodeIfPresent(sector, forKey: .sector)
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(phone, forKey: .phone)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Logistic/ValidateAddressRequestLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ValidateAddressRequestLogisticAppModel.swift
new file mode 100644
index 0000000000..355903acdc
--- /dev/null
+++ b/Sources/code/application/Models/Logistic/ValidateAddressRequestLogisticAppModel.swift
@@ -0,0 +1,295 @@
+
+
+import Foundation
+public extension ApplicationClient.Logistic {
+ /*
+ Model: ValidateAddressRequest
+ Used By: Logistic
+ */
+ class ValidateAddressRequest: Codable {
+
+ public var address: String?
+
+ public var address1: String?
+
+ public var address2: String?
+
+ public var area: String?
+
+ public var landmark: String?
+
+ public var pincode: String?
+
+ public var sector: String?
+
+ public var city: String?
+
+ public var state: String?
+
+ public var name: String?
+
+ public var phone: String?
+
+ public var email: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case address1 = "address1"
+
+ case address2 = "address2"
+
+ case area = "area"
+
+ case landmark = "landmark"
+
+ case pincode = "pincode"
+
+ case sector = "sector"
+
+ case city = "city"
+
+ case state = "state"
+
+ case name = "name"
+
+ case phone = "phone"
+
+ case email = "email"
+
+ }
+
+ public init(address: String? = nil, address1: String? = nil, address2: String? = nil, area: String? = nil, city: String? = nil, email: String? = nil, landmark: String? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, sector: String? = nil, state: String? = nil) {
+
+ self.address = address
+
+ self.address1 = address1
+
+ self.address2 = address2
+
+ self.area = area
+
+ self.landmark = landmark
+
+ self.pincode = pincode
+
+ self.sector = sector
+
+ self.city = city
+
+ self.state = state
+
+ self.name = name
+
+ self.phone = phone
+
+ self.email = email
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode(String.self, forKey: .address)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ area = try container.decode(String.self, forKey: .area)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sector = try container.decode(String.self, forKey: .sector)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ phone = try container.decode(String.self, forKey: .phone)
+
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+ try? container.encodeIfPresent(area, forKey: .area)
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+ try? container.encodeIfPresent(sector, forKey: .sector)
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(phone, forKey: .phone)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Logistic/ValidationErrorLogisticAppModel.swift b/Sources/code/application/Models/Logistic/ValidationErrorLogisticAppModel.swift
deleted file mode 100644
index b982e39332..0000000000
--- a/Sources/code/application/Models/Logistic/ValidationErrorLogisticAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Logistic {
- /*
- Model: ValidationError
- Used By: Logistic
- */
- class ValidationError: Codable {
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/BagsOrderAppModel.swift b/Sources/code/application/Models/Order/BagsOrderAppModel.swift
index 9bb96d276b..ba272eee1d 100644
--- a/Sources/code/application/Models/Order/BagsOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/BagsOrderAppModel.swift
@@ -44,8 +44,6 @@ public extension ApplicationClient.Order {
public var article: Article?
- public var charges: [PriceAdjustmentCharge]?
-
public enum CodingKeys: String, CodingKey {
@@ -85,11 +83,9 @@ public extension ApplicationClient.Order {
case article = "article"
- case charges = "charges"
-
}
- public init(appliedPromos: [AppliedPromos]? = nil, article: Article? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, currencyCode: String? = nil, currencySymbol: String? = nil, currentStatus: CurrentStatus? = nil, deliveryDate: String? = nil, financialBreakup: [FinancialBreakup]? = nil, id: Int? = nil, item: Item? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, parentPromoBags: [String: Any]? = nil, prices: Prices? = nil, quantity: Int? = nil, returnableDate: String? = nil, sellerIdentifier: String? = nil) {
+ public init(appliedPromos: [AppliedPromos]? = nil, article: Article? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currencyCode: String? = nil, currencySymbol: String? = nil, currentStatus: CurrentStatus? = nil, deliveryDate: String? = nil, financialBreakup: [FinancialBreakup]? = nil, id: Int? = nil, item: Item? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, parentPromoBags: [String: Any]? = nil, prices: Prices? = nil, quantity: Int? = nil, returnableDate: String? = nil, sellerIdentifier: String? = nil) {
self.deliveryDate = deliveryDate
@@ -127,8 +123,6 @@ public extension ApplicationClient.Order {
self.article = article
- self.charges = charges
-
}
required public init(from decoder: Decoder) throws {
@@ -350,18 +344,6 @@ public extension ApplicationClient.Order {
}
-
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } 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 {
@@ -439,10 +421,6 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(article, forKey: .article)
-
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/ChargeAmountCurrencyOrderAppModel.swift b/Sources/code/application/Models/Order/ChargeAmountCurrencyOrderAppModel.swift
deleted file mode 100644
index 448834809d..0000000000
--- a/Sources/code/application/Models/Order/ChargeAmountCurrencyOrderAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ChargeAmountCurrency
- Used By: Order
- */
- class ChargeAmountCurrency: Codable {
-
- public var value: Double
-
- public var currency: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case currency = "currency"
-
- }
-
- public init(currency: String, value: Double) {
-
- self.value = value
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(Double.self, forKey: .value)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ChargeAmountOrderAppModel.swift b/Sources/code/application/Models/Order/ChargeAmountOrderAppModel.swift
deleted file mode 100644
index c0ab643e67..0000000000
--- a/Sources/code/application/Models/Order/ChargeAmountOrderAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ChargeAmount
- Used By: Order
- */
- class ChargeAmount: Codable {
-
- public var baseCurrency: ChargeAmountCurrency
-
- public var orderingCurrency: ChargeAmountCurrency
-
-
- public enum CodingKeys: String, CodingKey {
-
- case baseCurrency = "base_currency"
-
- case orderingCurrency = "ordering_currency"
-
- }
-
- public init(baseCurrency: ChargeAmountCurrency, orderingCurrency: ChargeAmountCurrency) {
-
- self.baseCurrency = baseCurrency
-
- self.orderingCurrency = orderingCurrency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- baseCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .baseCurrency)
-
-
-
-
- orderingCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .orderingCurrency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(baseCurrency, forKey: .baseCurrency)
-
-
-
- try? container.encodeIfPresent(orderingCurrency, forKey: .orderingCurrency)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ChargeDistributionLogicOrderAppModel.swift b/Sources/code/application/Models/Order/ChargeDistributionLogicOrderAppModel.swift
deleted file mode 100644
index 51e708a233..0000000000
--- a/Sources/code/application/Models/Order/ChargeDistributionLogicOrderAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ChargeDistributionLogic
- Used By: Order
- */
- class ChargeDistributionLogic: Codable {
-
- public var distribution: ChargeDistributionSchema
-
- public var distributionLevel: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case distribution = "distribution"
-
- case distributionLevel = "distribution_level"
-
- }
-
- public init(distribution: ChargeDistributionSchema, distributionLevel: String) {
-
- self.distribution = distribution
-
- self.distributionLevel = distributionLevel
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- distribution = try container.decode(ChargeDistributionSchema.self, forKey: .distribution)
-
-
-
-
- distributionLevel = try container.decode(String.self, forKey: .distributionLevel)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(distribution, forKey: .distribution)
-
-
-
- try? container.encodeIfPresent(distributionLevel, forKey: .distributionLevel)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ChargeDistributionSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/ChargeDistributionSchemaOrderAppModel.swift
deleted file mode 100644
index d56e59436a..0000000000
--- a/Sources/code/application/Models/Order/ChargeDistributionSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ChargeDistributionSchema
- Used By: Order
- */
- class ChargeDistributionSchema: Codable {
-
- public var type: String
-
- public var logic: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case logic = "logic"
-
- }
-
- public init(logic: String, type: String) {
-
- self.type = type
-
- self.logic = logic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- logic = try container.decode(String.self, forKey: .logic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(logic, forKey: .logic)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/CurrencySchemaOrderAppModel.swift b/Sources/code/application/Models/Order/CurrencySchemaOrderAppModel.swift
deleted file mode 100644
index 49c6a1a855..0000000000
--- a/Sources/code/application/Models/Order/CurrencySchemaOrderAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: CurrencySchema
- Used By: Order
- */
- class CurrencySchema: Codable {
-
- public var currencyCode: String?
-
- public var currencySymbol: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case currencySymbol = "currency_symbol"
-
- }
-
- public init(currencyCode: String? = nil, currencySymbol: String? = nil) {
-
- self.currencyCode = currencyCode
-
- self.currencySymbol = currencySymbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
- try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/CustomerDetailsResponseOrderAppModel.swift b/Sources/code/application/Models/Order/CustomerDetailsResponseOrderAppModel.swift
new file mode 100644
index 0000000000..dbabbfe79e
--- /dev/null
+++ b/Sources/code/application/Models/Order/CustomerDetailsResponseOrderAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: CustomerDetailsResponse
+ Used By: Order
+ */
+ class CustomerDetailsResponse: Codable {
+
+ public var phone: String?
+
+ public var shipmentId: String?
+
+ public var name: String?
+
+ public var orderId: String?
+
+ public var country: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case phone = "phone"
+
+ case shipmentId = "shipment_id"
+
+ case name = "name"
+
+ case orderId = "order_id"
+
+ case country = "country"
+
+ }
+
+ public init(country: String? = nil, name: String? = nil, orderId: String? = nil, phone: String? = nil, shipmentId: String? = nil) {
+
+ self.phone = phone
+
+ self.shipmentId = shipmentId
+
+ self.name = name
+
+ self.orderId = orderId
+
+ self.country = country
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ phone = try container.decode(String.self, forKey: .phone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } 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)
+
+ } 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(phone, forKey: .phone)
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/CustomerDetailsResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/CustomerDetailsResponseSchemaOrderAppModel.swift
deleted file mode 100644
index ce7bdb310b..0000000000
--- a/Sources/code/application/Models/Order/CustomerDetailsResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: CustomerDetailsResponseSchema
- Used By: Order
- */
- class CustomerDetailsResponseSchema: Codable {
-
- public var phone: String?
-
- public var shipmentId: String?
-
- public var name: String?
-
- public var orderId: String?
-
- public var country: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phone = "phone"
-
- case shipmentId = "shipment_id"
-
- case name = "name"
-
- case orderId = "order_id"
-
- case country = "country"
-
- }
-
- public init(country: String? = nil, name: String? = nil, orderId: String? = nil, phone: String? = nil, shipmentId: String? = nil) {
-
- self.phone = phone
-
- self.shipmentId = shipmentId
-
- self.name = name
-
- self.orderId = orderId
-
- self.country = country
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- phone = try container.decode(String.self, forKey: .phone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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 {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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)
-
- } 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(phone, forKey: .phone)
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ErrorResponseOrderAppModel.swift b/Sources/code/application/Models/Order/ErrorResponseOrderAppModel.swift
new file mode 100644
index 0000000000..d82859ce1d
--- /dev/null
+++ b/Sources/code/application/Models/Order/ErrorResponseOrderAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: ErrorResponse
+ Used By: Order
+ */
+ class ErrorResponse: Codable {
+
+ public var code: String?
+
+ public var message: String?
+
+ public var status: Int?
+
+ public var exception: String?
+
+ public var stackTrace: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case message = "message"
+
+ case status = "status"
+
+ case exception = "exception"
+
+ case stackTrace = "stack_trace"
+
+ }
+
+ public init(code: String? = nil, exception: String? = nil, message: String? = nil, stackTrace: String? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.message = message
+
+ self.status = status
+
+ self.exception = exception
+
+ self.stackTrace = stackTrace
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } 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(code, forKey: .code)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/ErrorResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/ErrorResponseSchemaOrderAppModel.swift
deleted file mode 100644
index 35bab883bc..0000000000
--- a/Sources/code/application/Models/Order/ErrorResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ErrorResponseSchema
- Used By: Order
- */
- class ErrorResponseSchema: Codable {
-
- public var code: String?
-
- public var message: String?
-
- public var status: Int?
-
- public var exception: String?
-
- public var stackTrace: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case message = "message"
-
- case status = "status"
-
- case exception = "exception"
-
- case stackTrace = "stack_trace"
-
- }
-
- public init(code: String? = nil, exception: String? = nil, message: String? = nil, stackTrace: String? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.message = message
-
- self.status = status
-
- self.exception = exception
-
- self.stackTrace = stackTrace
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } 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(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/OrderGlobalFilterOptionOrderAppModel.swift b/Sources/code/application/Models/Order/OrderGlobalFilterOptionOrderAppModel.swift
deleted file mode 100644
index 998abe03be..0000000000
--- a/Sources/code/application/Models/Order/OrderGlobalFilterOptionOrderAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: OrderGlobalFilterOption
- Used By: Order
- */
- class OrderGlobalFilterOption: Codable {
-
- public var displayText: String?
-
- public var value: String?
-
- public var isSelected: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case displayText = "display_text"
-
- case value = "value"
-
- case isSelected = "is_selected"
-
- }
-
- public init(displayText: String? = nil, isSelected: Bool? = nil, value: String? = nil) {
-
- self.displayText = displayText
-
- self.value = value
-
- self.isSelected = isSelected
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- displayText = try container.decode(String.self, forKey: .displayText)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(displayText, forKey: .displayText)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/OrderGlobalFilterOrderAppModel.swift b/Sources/code/application/Models/Order/OrderGlobalFilterOrderAppModel.swift
deleted file mode 100644
index 3f463908d4..0000000000
--- a/Sources/code/application/Models/Order/OrderGlobalFilterOrderAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: OrderGlobalFilter
- Used By: Order
- */
- class OrderGlobalFilter: Codable {
-
- public var displayTest: String?
-
- public var value: String?
-
- public var options: [OrderGlobalFilterOption]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case displayTest = "display_test"
-
- case value = "value"
-
- case options = "options"
-
- }
-
- public init(displayTest: String? = nil, options: [OrderGlobalFilterOption]? = nil, value: String? = nil) {
-
- self.displayTest = displayTest
-
- self.value = value
-
- self.options = options
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- displayTest = try container.decode(String.self, forKey: .displayTest)
-
- } 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 {
-
- }
-
-
-
- do {
- options = try container.decode([OrderGlobalFilterOption].self, forKey: .options)
-
- } 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(displayTest, forKey: .displayTest)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
- try? container.encodeIfPresent(options, forKey: .options)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/OrderRequestOrderAppModel.swift b/Sources/code/application/Models/Order/OrderRequestOrderAppModel.swift
new file mode 100644
index 0000000000..794cafdf2d
--- /dev/null
+++ b/Sources/code/application/Models/Order/OrderRequestOrderAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: OrderRequest
+ Used By: Order
+ */
+ class OrderRequest: Codable {
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ }
+
+ public init(meta: [String: Any]? = nil) {
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/OrderRequestSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/OrderRequestSchemaOrderAppModel.swift
deleted file mode 100644
index 9427fc7498..0000000000
--- a/Sources/code/application/Models/Order/OrderRequestSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: OrderRequestSchema
- Used By: Order
- */
- class OrderRequestSchema: Codable {
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- }
-
- public init(meta: [String: Any]? = nil) {
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/OrderSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/OrderSchemaOrderAppModel.swift
index b8de5607f7..5d95107e07 100644
--- a/Sources/code/application/Models/Order/OrderSchemaOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/OrderSchemaOrderAppModel.swift
@@ -26,12 +26,8 @@ public extension ApplicationClient.Order {
public var bagsForReorder: [BagsForReorder]?
- public var charges: [PriceAdjustmentCharge]?
-
public var meta: [String: Any]?
- public var currency: CurrencySchema?
-
public enum CodingKeys: String, CodingKey {
@@ -53,15 +49,11 @@ public extension ApplicationClient.Order {
case bagsForReorder = "bags_for_reorder"
- case charges = "charges"
-
case meta = "meta"
- case currency = "currency"
-
}
- public init(bagsForReorder: [BagsForReorder]? = nil, breakupValues: [BreakupValues]? = nil, charges: [PriceAdjustmentCharge]? = nil, currency: CurrencySchema? = nil, gstinCode: String? = nil, meta: [String: Any]? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, shipments: [Shipments]? = nil, totalShipmentsInOrder: Int? = nil, userInfo: UserInfo? = nil) {
+ public init(bagsForReorder: [BagsForReorder]? = nil, breakupValues: [BreakupValues]? = nil, gstinCode: String? = nil, meta: [String: Any]? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, shipments: [Shipments]? = nil, totalShipmentsInOrder: Int? = nil, userInfo: UserInfo? = nil) {
self.totalShipmentsInOrder = totalShipmentsInOrder
@@ -81,12 +73,8 @@ public extension ApplicationClient.Order {
self.bagsForReorder = bagsForReorder
- self.charges = charges
-
self.meta = meta
- self.currency = currency
-
}
required public init(from decoder: Decoder) throws {
@@ -201,18 +189,6 @@ public extension ApplicationClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } 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)
@@ -224,18 +200,6 @@ public extension ApplicationClient.Order {
}
-
- do {
- currency = try container.decode(CurrencySchema.self, forKey: .currency)
-
- } 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 {
@@ -278,17 +242,9 @@ public extension ApplicationClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
try? container.encodeIfPresent(meta, forKey: .meta)
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/PriceAdjustmentChargeOrderAppModel.swift b/Sources/code/application/Models/Order/PriceAdjustmentChargeOrderAppModel.swift
deleted file mode 100644
index fd7cc118d5..0000000000
--- a/Sources/code/application/Models/Order/PriceAdjustmentChargeOrderAppModel.swift
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: PriceAdjustmentCharge
- Used By: Order
- */
- class PriceAdjustmentCharge: Codable {
-
- public var code: String?
-
- public var name: String
-
- public var type: String?
-
- public var amount: ChargeAmount
-
- public var distributionLogic: ChargeDistributionLogic
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case name = "name"
-
- case type = "type"
-
- case amount = "amount"
-
- case distributionLogic = "distribution_logic"
-
- }
-
- public init(amount: ChargeAmount, code: String? = nil, distributionLogic: ChargeDistributionLogic, name: String, type: String? = nil) {
-
- self.code = code
-
- self.name = name
-
- self.type = type
-
- self.amount = amount
-
- self.distributionLogic = distributionLogic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
-
- }
-
-
-
- amount = try container.decode(ChargeAmount.self, forKey: .amount)
-
-
-
-
- distributionLogic = try container.decode(ChargeDistributionLogic.self, forKey: .distributionLogic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ProductsDataUpdatesFiltersOrderAppModel.swift b/Sources/code/application/Models/Order/ProductsDataUpdatesFiltersOrderAppModel.swift
index 43003092ff..bfe61c7c26 100644
--- a/Sources/code/application/Models/Order/ProductsDataUpdatesFiltersOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/ProductsDataUpdatesFiltersOrderAppModel.swift
@@ -12,8 +12,6 @@ public extension ApplicationClient.Order {
public var identifier: String?
- public var quantity: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -21,18 +19,14 @@ public extension ApplicationClient.Order {
case identifier = "identifier"
- case quantity = "quantity"
-
}
- public init(identifier: String? = nil, lineNumber: Int? = nil, quantity: Int? = nil) {
+ public init(identifier: String? = nil, lineNumber: Int? = nil) {
self.lineNumber = lineNumber
self.identifier = identifier
- self.quantity = quantity
-
}
required public init(from decoder: Decoder) throws {
@@ -62,18 +56,6 @@ public extension ApplicationClient.Order {
}
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -87,10 +69,6 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(identifier, forKey: .identifier)
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/SendOtpToCustomerResponseOrderAppModel.swift b/Sources/code/application/Models/Order/SendOtpToCustomerResponseOrderAppModel.swift
new file mode 100644
index 0000000000..06c5fed6ea
--- /dev/null
+++ b/Sources/code/application/Models/Order/SendOtpToCustomerResponseOrderAppModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: SendOtpToCustomerResponse
+ Used By: Order
+ */
+ class SendOtpToCustomerResponse: Codable {
+
+ public var requestId: String?
+
+ public var message: String?
+
+ public var success: Bool?
+
+ public var resendTimer: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case requestId = "request_id"
+
+ case message = "message"
+
+ case success = "success"
+
+ case resendTimer = "resend_timer"
+
+ }
+
+ public init(message: String? = nil, requestId: String? = nil, resendTimer: Int? = nil, success: Bool? = nil) {
+
+ self.requestId = requestId
+
+ self.message = message
+
+ self.success = success
+
+ self.resendTimer = resendTimer
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ resendTimer = try container.decode(Int.self, forKey: .resendTimer)
+
+ } 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(requestId, forKey: .requestId)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(resendTimer, forKey: .resendTimer)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/SendOtpToCustomerResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/SendOtpToCustomerResponseSchemaOrderAppModel.swift
deleted file mode 100644
index b5994107d6..0000000000
--- a/Sources/code/application/Models/Order/SendOtpToCustomerResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: SendOtpToCustomerResponseSchema
- Used By: Order
- */
- class SendOtpToCustomerResponseSchema: Codable {
-
- public var requestId: String?
-
- public var message: String?
-
- public var success: Bool?
-
- public var resendTimer: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case requestId = "request_id"
-
- case message = "message"
-
- case success = "success"
-
- case resendTimer = "resend_timer"
-
- }
-
- public init(message: String? = nil, requestId: String? = nil, resendTimer: Int? = nil, success: Bool? = nil) {
-
- self.requestId = requestId
-
- self.message = message
-
- self.success = success
-
- self.resendTimer = resendTimer
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- do {
- resendTimer = try container.decode(Int.self, forKey: .resendTimer)
-
- } 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(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(resendTimer, forKey: .resendTimer)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseOrderAppModel.swift
new file mode 100644
index 0000000000..a9a1d4fc22
--- /dev/null
+++ b/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseOrderAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: ShipmentApplicationStatusResponse
+ Used By: Order
+ */
+ class ShipmentApplicationStatusResponse: Codable {
+
+ public var statuses: [StatusesBodyResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statuses = "statuses"
+
+ }
+
+ public init(statuses: [StatusesBodyResponse]? = nil) {
+
+ self.statuses = statuses
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statuses = try container.decode([StatusesBodyResponse].self, forKey: .statuses)
+
+ } 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(statuses, forKey: .statuses)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseSchemaOrderAppModel.swift
deleted file mode 100644
index cf74d6997f..0000000000
--- a/Sources/code/application/Models/Order/ShipmentApplicationStatusResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ShipmentApplicationStatusResponseSchema
- Used By: Order
- */
- class ShipmentApplicationStatusResponseSchema: Codable {
-
- public var statuses: [StatusesBodyResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statuses = "statuses"
-
- }
-
- public init(statuses: [StatusesBodyResponseSchema]? = nil) {
-
- self.statuses = statuses
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statuses = try container.decode([StatusesBodyResponseSchema].self, forKey: .statuses)
-
- } 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(statuses, forKey: .statuses)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/ShipmentBagReasonsOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentBagReasonsOrderAppModel.swift
index 4e8640d69d..870cd1066a 100644
--- a/Sources/code/application/Models/Order/ShipmentBagReasonsOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/ShipmentBagReasonsOrderAppModel.swift
@@ -12,8 +12,6 @@ public extension ApplicationClient.Order {
public var success: Bool?
- public var ruleId: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -21,18 +19,14 @@ public extension ApplicationClient.Order {
case success = "success"
- case ruleId = "rule_id"
-
}
- public init(reasons: [BagReasons]? = nil, ruleId: Int? = nil, success: Bool? = nil) {
+ public init(reasons: [BagReasons]? = nil, success: Bool? = nil) {
self.reasons = reasons
self.success = success
- self.ruleId = ruleId
-
}
required public init(from decoder: Decoder) throws {
@@ -62,18 +56,6 @@ public extension ApplicationClient.Order {
}
-
- do {
- ruleId = try container.decode(Int.self, forKey: .ruleId)
-
- } 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 {
@@ -87,10 +69,6 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(success, forKey: .success)
-
- try? container.encodeIfPresent(ruleId, forKey: .ruleId)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/ShipmentsOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentsOrderAppModel.swift
index 914f303869..48178a3c01 100644
--- a/Sources/code/application/Models/Order/ShipmentsOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/ShipmentsOrderAppModel.swift
@@ -88,9 +88,7 @@ public extension ApplicationClient.Order {
public var deliveryDate: String?
- public var order: OrderRequestSchema?
-
- public var charges: [PriceAdjustmentCharge]?
+ public var order: OrderRequest?
public enum CodingKeys: String, CodingKey {
@@ -177,11 +175,9 @@ public extension ApplicationClient.Order {
case order = "order"
- case charges = "charges"
-
}
- public init(awbNo: String? = nil, bags: [Bags]? = nil, beneficiaryDetails: Bool? = nil, billingAddress: Address? = nil, breakupValues: [BreakupValues]? = nil, canBreak: [String: Any]? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, comment: String? = nil, customMeta: [[String: Any]]? = nil, deliveryAddress: Address? = nil, deliveryDate: String? = nil, dpName: String? = nil, fulfillingCompany: FulfillingCompany? = nil, fulfillingStore: FulfillingStore? = nil, gstinCode: String? = nil, invoice: Invoice? = nil, needHelpUrl: String? = nil, order: OrderRequestSchema? = nil, orderId: String? = nil, orderType: String? = nil, payment: ShipmentPayment? = nil, paymentInfo: [ShipmentPaymentInfo]? = nil, prices: Prices? = nil, promise: Promise? = nil, refundDetails: [String: Any]? = nil, returnableDate: String? = nil, returnMeta: [String: Any]? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, showDownloadInvoice: Bool? = nil, showTrackLink: Bool? = nil, sizeInfo: [String: Any]? = nil, totalBags: Int? = nil, totalDetails: ShipmentTotalDetails? = nil, trackingDetails: [TrackingDetails]? = nil, trackUrl: String? = nil, trakingNo: String? = nil, userInfo: ShipmentUserInfo? = nil) {
+ public init(awbNo: String? = nil, bags: [Bags]? = nil, beneficiaryDetails: Bool? = nil, billingAddress: Address? = nil, breakupValues: [BreakupValues]? = nil, canBreak: [String: Any]? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, comment: String? = nil, customMeta: [[String: Any]]? = nil, deliveryAddress: Address? = nil, deliveryDate: String? = nil, dpName: String? = nil, fulfillingCompany: FulfillingCompany? = nil, fulfillingStore: FulfillingStore? = nil, gstinCode: String? = nil, invoice: Invoice? = nil, needHelpUrl: String? = nil, order: OrderRequest? = nil, orderId: String? = nil, orderType: String? = nil, payment: ShipmentPayment? = nil, paymentInfo: [ShipmentPaymentInfo]? = nil, prices: Prices? = nil, promise: Promise? = nil, refundDetails: [String: Any]? = nil, returnableDate: String? = nil, returnMeta: [String: Any]? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, showDownloadInvoice: Bool? = nil, showTrackLink: Bool? = nil, sizeInfo: [String: Any]? = nil, totalBags: Int? = nil, totalDetails: ShipmentTotalDetails? = nil, trackingDetails: [TrackingDetails]? = nil, trackUrl: String? = nil, trakingNo: String? = nil, userInfo: ShipmentUserInfo? = nil) {
self.payment = payment
@@ -265,8 +261,6 @@ public extension ApplicationClient.Order {
self.order = order
- self.charges = charges
-
}
required public init(from decoder: Decoder) throws {
@@ -754,19 +748,7 @@ public extension ApplicationClient.Order {
do {
- order = try container.decode(OrderRequestSchema.self, forKey: .order)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
+ order = try container.decode(OrderRequest.self, forKey: .order)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -945,10 +927,6 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(order, forKey: .order)
-
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/ShipmentsRequestOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentsRequestOrderAppModel.swift
new file mode 100644
index 0000000000..bd3114f77b
--- /dev/null
+++ b/Sources/code/application/Models/Order/ShipmentsRequestOrderAppModel.swift
@@ -0,0 +1,112 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: ShipmentsRequest
+ Used By: Order
+ */
+ class ShipmentsRequest: Codable {
+
+ public var reasons: ReasonsData?
+
+ public var products: [Products]?
+
+ public var dataUpdates: DataUpdates?
+
+ public var identifier: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasons = "reasons"
+
+ case products = "products"
+
+ case dataUpdates = "data_updates"
+
+ case identifier = "identifier"
+
+ }
+
+ public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
+
+ self.reasons = reasons
+
+ self.products = products
+
+ self.dataUpdates = dataUpdates
+
+ self.identifier = identifier
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reasons = try container.decode(ReasonsData.self, forKey: .reasons)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ products = try container.decode([Products].self, forKey: .products)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(reasons, forKey: .reasons)
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+ try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/ShipmentsRequestSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/ShipmentsRequestSchemaOrderAppModel.swift
deleted file mode 100644
index cbb715588b..0000000000
--- a/Sources/code/application/Models/Order/ShipmentsRequestSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: ShipmentsRequestSchema
- Used By: Order
- */
- class ShipmentsRequestSchema: Codable {
-
- public var reasons: ReasonsData?
-
- public var products: [Products]?
-
- public var dataUpdates: DataUpdates?
-
- public var identifier: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- case products = "products"
-
- case dataUpdates = "data_updates"
-
- case identifier = "identifier"
-
- }
-
- public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
-
- self.reasons = reasons
-
- self.products = products
-
- self.dataUpdates = dataUpdates
-
- self.identifier = identifier
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- reasons = try container.decode(ReasonsData.self, forKey: .reasons)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- products = try container.decode([Products].self, forKey: .products)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
- try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/StatuesRequestOrderAppModel.swift b/Sources/code/application/Models/Order/StatuesRequestOrderAppModel.swift
new file mode 100644
index 0000000000..6ea61b9e26
--- /dev/null
+++ b/Sources/code/application/Models/Order/StatuesRequestOrderAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: StatuesRequest
+ Used By: Order
+ */
+ class StatuesRequest: Codable {
+
+ public var shipments: [ShipmentsRequest]?
+
+ public var excludeBagsNextState: String?
+
+ public var status: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ case excludeBagsNextState = "exclude_bags_next_state"
+
+ case status = "status"
+
+ }
+
+ public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequest]? = nil, status: String? = nil) {
+
+ self.shipments = shipments
+
+ self.excludeBagsNextState = excludeBagsNextState
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode([ShipmentsRequest].self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+
+ try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/StatuesRequestSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/StatuesRequestSchemaOrderAppModel.swift
deleted file mode 100644
index ed8c700218..0000000000
--- a/Sources/code/application/Models/Order/StatuesRequestSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: StatuesRequestSchema
- Used By: Order
- */
- class StatuesRequestSchema: Codable {
-
- public var shipments: [ShipmentsRequestSchema]?
-
- public var excludeBagsNextState: String?
-
- public var status: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- case excludeBagsNextState = "exclude_bags_next_state"
-
- case status = "status"
-
- }
-
- public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequestSchema]? = nil, status: String? = nil) {
-
- self.shipments = shipments
-
- self.excludeBagsNextState = excludeBagsNextState
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode([ShipmentsRequestSchema].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
- try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/StatusesBodyResponseOrderAppModel.swift b/Sources/code/application/Models/Order/StatusesBodyResponseOrderAppModel.swift
new file mode 100644
index 0000000000..9958e283aa
--- /dev/null
+++ b/Sources/code/application/Models/Order/StatusesBodyResponseOrderAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: StatusesBodyResponse
+ Used By: Order
+ */
+ class StatusesBodyResponse: Codable {
+
+ public var shipments: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ }
+
+ public init(shipments: [[String: Any]]? = nil) {
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode([[String: Any]].self, forKey: .shipments)
+
+ } 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(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/StatusesBodyResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/StatusesBodyResponseSchemaOrderAppModel.swift
deleted file mode 100644
index ff0bd6008e..0000000000
--- a/Sources/code/application/Models/Order/StatusesBodyResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: StatusesBodyResponseSchema
- Used By: Order
- */
- class StatusesBodyResponseSchema: Codable {
-
- public var shipments: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- }
-
- public init(shipments: [[String: Any]]? = nil) {
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode([[String: Any]].self, forKey: .shipments)
-
- } 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(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/TrackOrderAppModel.swift b/Sources/code/application/Models/Order/TrackOrderAppModel.swift
index c25e98bcef..2b14a29b3a 100644
--- a/Sources/code/application/Models/Order/TrackOrderAppModel.swift
+++ b/Sources/code/application/Models/Order/TrackOrderAppModel.swift
@@ -24,8 +24,6 @@ public extension ApplicationClient.Order {
public var awb: String?
- public var meta: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -45,11 +43,9 @@ public extension ApplicationClient.Order {
case awb = "awb"
- case meta = "meta"
-
}
- public init(accountName: String? = nil, awb: String? = nil, lastLocationRecievedAt: String? = nil, meta: [String: Any]? = nil, reason: String? = nil, shipmentType: String? = nil, status: String? = nil, updatedAt: String? = nil, updatedTime: String? = nil) {
+ public init(accountName: String? = nil, awb: String? = nil, lastLocationRecievedAt: String? = nil, reason: String? = nil, shipmentType: String? = nil, status: String? = nil, updatedAt: String? = nil, updatedTime: String? = nil) {
self.accountName = accountName
@@ -67,8 +63,6 @@ public extension ApplicationClient.Order {
self.awb = awb
- self.meta = meta
-
}
required public init(from decoder: Decoder) throws {
@@ -170,18 +164,6 @@ public extension ApplicationClient.Order {
}
-
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -219,10 +201,6 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(awb, forKey: .awb)
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
}
}
diff --git a/Sources/code/application/Models/Order/UpdateShipmentStatusRequestOrderAppModel.swift b/Sources/code/application/Models/Order/UpdateShipmentStatusRequestOrderAppModel.swift
new file mode 100644
index 0000000000..1d10fe4509
--- /dev/null
+++ b/Sources/code/application/Models/Order/UpdateShipmentStatusRequestOrderAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: UpdateShipmentStatusRequest
+ Used By: Order
+ */
+ class UpdateShipmentStatusRequest: Codable {
+
+ public var statuses: [StatuesRequest]?
+
+ public var task: Bool?
+
+ public var lockAfterTransition: Bool?
+
+ public var forceTransition: Bool?
+
+ public var unlockBeforeTransition: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statuses = "statuses"
+
+ case task = "task"
+
+ case lockAfterTransition = "lock_after_transition"
+
+ case forceTransition = "force_transition"
+
+ case unlockBeforeTransition = "unlock_before_transition"
+
+ }
+
+ public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, statuses: [StatuesRequest]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
+
+ self.statuses = statuses
+
+ self.task = task
+
+ self.lockAfterTransition = lockAfterTransition
+
+ self.forceTransition = forceTransition
+
+ self.unlockBeforeTransition = unlockBeforeTransition
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statuses = try container.decode([StatuesRequest].self, forKey: .statuses)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ task = try container.decode(Bool.self, forKey: .task)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lockAfterTransition = try container.decode(Bool.self, forKey: .lockAfterTransition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ forceTransition = try container.decode(Bool.self, forKey: .forceTransition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ unlockBeforeTransition = try container.decode(Bool.self, forKey: .unlockBeforeTransition)
+
+ } 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(statuses, forKey: .statuses)
+
+
+
+ try? container.encodeIfPresent(task, forKey: .task)
+
+
+
+ try? container.encodeIfPresent(lockAfterTransition, forKey: .lockAfterTransition)
+
+
+
+ try? container.encodeIfPresent(forceTransition, forKey: .forceTransition)
+
+
+
+ try? container.encodeIfPresent(unlockBeforeTransition, forKey: .unlockBeforeTransition)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/UpdateShipmentStatusRequestSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/UpdateShipmentStatusRequestSchemaOrderAppModel.swift
deleted file mode 100644
index 763a7f203c..0000000000
--- a/Sources/code/application/Models/Order/UpdateShipmentStatusRequestSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: UpdateShipmentStatusRequestSchema
- Used By: Order
- */
- class UpdateShipmentStatusRequestSchema: Codable {
-
- public var statuses: [StatuesRequestSchema]?
-
- public var task: Bool?
-
- public var lockAfterTransition: Bool?
-
- public var forceTransition: Bool?
-
- public var unlockBeforeTransition: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statuses = "statuses"
-
- case task = "task"
-
- case lockAfterTransition = "lock_after_transition"
-
- case forceTransition = "force_transition"
-
- case unlockBeforeTransition = "unlock_before_transition"
-
- }
-
- public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, statuses: [StatuesRequestSchema]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
-
- self.statuses = statuses
-
- self.task = task
-
- self.lockAfterTransition = lockAfterTransition
-
- self.forceTransition = forceTransition
-
- self.unlockBeforeTransition = unlockBeforeTransition
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statuses = try container.decode([StatuesRequestSchema].self, forKey: .statuses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- task = try container.decode(Bool.self, forKey: .task)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lockAfterTransition = try container.decode(Bool.self, forKey: .lockAfterTransition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- forceTransition = try container.decode(Bool.self, forKey: .forceTransition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- unlockBeforeTransition = try container.decode(Bool.self, forKey: .unlockBeforeTransition)
-
- } 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(statuses, forKey: .statuses)
-
-
-
- try? container.encodeIfPresent(task, forKey: .task)
-
-
-
- try? container.encodeIfPresent(lockAfterTransition, forKey: .lockAfterTransition)
-
-
-
- try? container.encodeIfPresent(forceTransition, forKey: .forceTransition)
-
-
-
- try? container.encodeIfPresent(unlockBeforeTransition, forKey: .unlockBeforeTransition)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Order/VerifyOtpResponseOrderAppModel.swift b/Sources/code/application/Models/Order/VerifyOtpResponseOrderAppModel.swift
new file mode 100644
index 0000000000..d96c173dc8
--- /dev/null
+++ b/Sources/code/application/Models/Order/VerifyOtpResponseOrderAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Order {
+ /*
+ Model: VerifyOtpResponse
+ Used By: Order
+ */
+ class VerifyOtpResponse: Codable {
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Order/VerifyOtpResponseSchemaOrderAppModel.swift b/Sources/code/application/Models/Order/VerifyOtpResponseSchemaOrderAppModel.swift
deleted file mode 100644
index 57d6e6f12c..0000000000
--- a/Sources/code/application/Models/Order/VerifyOtpResponseSchemaOrderAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Order {
- /*
- Model: VerifyOtpResponseSchema
- Used By: Order
- */
- class VerifyOtpResponseSchema: Codable {
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayDetailsPaymentAppModel.swift
deleted file mode 100644
index 2e377b0e94..0000000000
--- a/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ActiveCardPaymentGatewayDetails
- Used By: Payment
- */
- class ActiveCardPaymentGatewayDetails: Codable {
-
- public var cards: CardPaymentGateway
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cards = "cards"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(cards: CardPaymentGateway, message: String, success: Bool) {
-
- self.cards = cards
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- cards = try container.decode(CardPaymentGateway.self, forKey: .cards)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(cards, forKey: .cards)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..6cce929bdd
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ActiveCardPaymentGatewayResponsePaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ActiveCardPaymentGatewayResponse
+ Used By: Payment
+ */
+ class ActiveCardPaymentGatewayResponse: Codable {
+
+ public var cards: CardPaymentGateway
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cards = "cards"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(cards: CardPaymentGateway, message: String, success: Bool) {
+
+ self.cards = cards
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ cards = try container.decode(CardPaymentGateway.self, forKey: .cards)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(cards, forKey: .cards)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPPaymentAppModel.swift
deleted file mode 100644
index f192a342d6..0000000000
--- a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AddBeneficiaryDetailsOTP
- Used By: Payment
- */
- class AddBeneficiaryDetailsOTP: Codable {
-
- public var orderId: String
-
- public var details: BankDetailsForOTP
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case details = "details"
-
- }
-
- public init(details: BankDetailsForOTP, orderId: String) {
-
- self.orderId = orderId
-
- self.details = details
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- details = try container.decode(BankDetailsForOTP.self, forKey: .details)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..b390c62fd9
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AddBeneficiaryDetailsOTPRequest
+ Used By: Payment
+ */
+ class AddBeneficiaryDetailsOTPRequest: Codable {
+
+ public var orderId: String
+
+ public var details: BankDetailsForOTP
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case details = "details"
+
+ }
+
+ public init(details: BankDetailsForOTP, orderId: String) {
+
+ self.orderId = orderId
+
+ self.details = details
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ details = try container.decode(BankDetailsForOTP.self, forKey: .details)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsPaymentAppModel.swift
deleted file mode 100644
index 2413e8bf33..0000000000
--- a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AddBeneficiaryDetails
- Used By: Payment
- */
- class AddBeneficiaryDetails: Codable {
-
- public var delights: Bool
-
- public var shipmentId: String
-
- public var details: BeneficiaryModeDetails
-
- public var otp: String?
-
- public var orderId: String
-
- public var transferMode: String
-
- public var requestId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case delights = "delights"
-
- case shipmentId = "shipment_id"
-
- case details = "details"
-
- case otp = "otp"
-
- case orderId = "order_id"
-
- case transferMode = "transfer_mode"
-
- case requestId = "request_id"
-
- }
-
- public init(delights: Bool, details: BeneficiaryModeDetails, orderId: String, otp: String? = nil, requestId: String? = nil, shipmentId: String, transferMode: String) {
-
- self.delights = delights
-
- self.shipmentId = shipmentId
-
- self.details = details
-
- self.otp = otp
-
- self.orderId = orderId
-
- self.transferMode = transferMode
-
- self.requestId = requestId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- delights = try container.decode(Bool.self, forKey: .delights)
-
-
-
-
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
-
-
-
- details = try container.decode(BeneficiaryModeDetails.self, forKey: .details)
-
-
-
-
- do {
- otp = try container.decode(String.self, forKey: .otp)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- transferMode = try container.decode(String.self, forKey: .transferMode)
-
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } 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(delights, forKey: .delights)
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
-
- try? container.encodeIfPresent(otp, forKey: .otp)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(transferMode, forKey: .transferMode)
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryDetailsRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..b4b95e9a08
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AddBeneficiaryDetailsRequestPaymentAppModel.swift
@@ -0,0 +1,150 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AddBeneficiaryDetailsRequest
+ Used By: Payment
+ */
+ class AddBeneficiaryDetailsRequest: Codable {
+
+ public var delights: Bool
+
+ public var shipmentId: String
+
+ public var details: BeneficiaryModeDetails
+
+ public var otp: String?
+
+ public var orderId: String
+
+ public var transferMode: String
+
+ public var requestId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case delights = "delights"
+
+ case shipmentId = "shipment_id"
+
+ case details = "details"
+
+ case otp = "otp"
+
+ case orderId = "order_id"
+
+ case transferMode = "transfer_mode"
+
+ case requestId = "request_id"
+
+ }
+
+ public init(delights: Bool, details: BeneficiaryModeDetails, orderId: String, otp: String? = nil, requestId: String? = nil, shipmentId: String, transferMode: String) {
+
+ self.delights = delights
+
+ self.shipmentId = shipmentId
+
+ self.details = details
+
+ self.otp = otp
+
+ self.orderId = orderId
+
+ self.transferMode = transferMode
+
+ self.requestId = requestId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ delights = try container.decode(Bool.self, forKey: .delights)
+
+
+
+
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+
+
+
+ details = try container.decode(BeneficiaryModeDetails.self, forKey: .details)
+
+
+
+
+ do {
+ otp = try container.decode(String.self, forKey: .otp)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ transferMode = try container.decode(String.self, forKey: .transferMode)
+
+
+
+
+ do {
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+ } 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(delights, forKey: .delights)
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+
+ try? container.encodeIfPresent(otp, forKey: .otp)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(transferMode, forKey: .transferMode)
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationDetailsPaymentAppModel.swift
deleted file mode 100644
index 279128991b..0000000000
--- a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AddBeneficiaryViaOtpVerificationDetails
- Used By: Payment
- */
- class AddBeneficiaryViaOtpVerificationDetails: Codable {
-
- public var success: Bool?
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationPaymentAppModel.swift
deleted file mode 100644
index 008037a3ef..0000000000
--- a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationPaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AddBeneficiaryViaOtpVerification
- Used By: Payment
- */
- class AddBeneficiaryViaOtpVerification: Codable {
-
- public var requestId: String
-
- public var hashKey: String
-
- public var otp: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case requestId = "request_id"
-
- case hashKey = "hash_key"
-
- case otp = "otp"
-
- }
-
- public init(hashKey: String, otp: String, requestId: String) {
-
- self.requestId = requestId
-
- self.hashKey = hashKey
-
- self.otp = otp
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- requestId = try container.decode(String.self, forKey: .requestId)
-
-
-
-
- hashKey = try container.decode(String.self, forKey: .hashKey)
-
-
-
-
- otp = try container.decode(String.self, forKey: .otp)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(hashKey, forKey: .hashKey)
-
-
-
- try? container.encodeIfPresent(otp, forKey: .otp)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..45ce48c1f5
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationRequestPaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AddBeneficiaryViaOtpVerificationRequest
+ Used By: Payment
+ */
+ class AddBeneficiaryViaOtpVerificationRequest: Codable {
+
+ public var requestId: String
+
+ public var hashKey: String
+
+ public var otp: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case requestId = "request_id"
+
+ case hashKey = "hash_key"
+
+ case otp = "otp"
+
+ }
+
+ public init(hashKey: String, otp: String, requestId: String) {
+
+ self.requestId = requestId
+
+ self.hashKey = hashKey
+
+ self.otp = otp
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+
+
+
+ hashKey = try container.decode(String.self, forKey: .hashKey)
+
+
+
+
+ otp = try container.decode(String.self, forKey: .otp)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+ try? container.encodeIfPresent(hashKey, forKey: .hashKey)
+
+
+
+ try? container.encodeIfPresent(otp, forKey: .otp)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..9e583d74b4
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AddBeneficiaryViaOtpVerificationResponsePaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AddBeneficiaryViaOtpVerificationResponse
+ Used By: Payment
+ */
+ class AddBeneficiaryViaOtpVerificationResponse: Codable {
+
+ public var success: Bool?
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AggregatorsConfigDetailPaymentAppModel.swift b/Sources/code/application/Models/Payment/AggregatorsConfigDetailPaymentAppModel.swift
deleted file mode 100644
index 9c56e82c72..0000000000
--- a/Sources/code/application/Models/Payment/AggregatorsConfigDetailPaymentAppModel.swift
+++ /dev/null
@@ -1,237 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AggregatorsConfigDetail
- Used By: Payment
- */
- class AggregatorsConfigDetail: Codable {
-
- public var success: Bool
-
- public var razorpay: AggregatorConfigDetail?
-
- public var juspay: AggregatorConfigDetail?
-
- public var simpl: AggregatorConfigDetail?
-
- public var payumoney: AggregatorConfigDetail?
-
- public var rupifi: AggregatorConfigDetail?
-
- public var mswipe: AggregatorConfigDetail?
-
- public var stripe: AggregatorConfigDetail?
-
- public var ccavenue: AggregatorConfigDetail?
-
- public var env: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case razorpay = "razorpay"
-
- case juspay = "juspay"
-
- case simpl = "simpl"
-
- case payumoney = "payumoney"
-
- case rupifi = "rupifi"
-
- case mswipe = "mswipe"
-
- case stripe = "stripe"
-
- case ccavenue = "ccavenue"
-
- case env = "env"
-
- }
-
- public init(ccavenue: AggregatorConfigDetail? = nil, env: String, juspay: AggregatorConfigDetail? = nil, mswipe: AggregatorConfigDetail? = nil, payumoney: AggregatorConfigDetail? = nil, razorpay: AggregatorConfigDetail? = nil, rupifi: AggregatorConfigDetail? = nil, simpl: AggregatorConfigDetail? = nil, stripe: AggregatorConfigDetail? = nil, success: Bool) {
-
- self.success = success
-
- self.razorpay = razorpay
-
- self.juspay = juspay
-
- self.simpl = simpl
-
- self.payumoney = payumoney
-
- self.rupifi = rupifi
-
- self.mswipe = mswipe
-
- self.stripe = stripe
-
- self.ccavenue = ccavenue
-
- self.env = env
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- razorpay = try container.decode(AggregatorConfigDetail.self, forKey: .razorpay)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- juspay = try container.decode(AggregatorConfigDetail.self, forKey: .juspay)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- simpl = try container.decode(AggregatorConfigDetail.self, forKey: .simpl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payumoney = try container.decode(AggregatorConfigDetail.self, forKey: .payumoney)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rupifi = try container.decode(AggregatorConfigDetail.self, forKey: .rupifi)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mswipe = try container.decode(AggregatorConfigDetail.self, forKey: .mswipe)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stripe = try container.decode(AggregatorConfigDetail.self, forKey: .stripe)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- ccavenue = try container.decode(AggregatorConfigDetail.self, forKey: .ccavenue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- env = try container.decode(String.self, forKey: .env)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(razorpay, forKey: .razorpay)
-
-
-
- try? container.encodeIfPresent(juspay, forKey: .juspay)
-
-
-
- try? container.encodeIfPresent(simpl, forKey: .simpl)
-
-
-
- try? container.encodeIfPresent(payumoney, forKey: .payumoney)
-
-
-
- try? container.encodeIfPresent(rupifi, forKey: .rupifi)
-
-
-
- try? container.encodeIfPresent(mswipe, forKey: .mswipe)
-
-
-
- try? container.encodeIfPresent(stripe, forKey: .stripe)
-
-
-
- try? container.encodeIfPresent(ccavenue, forKey: .ccavenue)
-
-
-
- try? container.encodeIfPresent(env, forKey: .env)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AggregatorsConfigDetailResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/AggregatorsConfigDetailResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..aefcb6712e
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AggregatorsConfigDetailResponsePaymentAppModel.swift
@@ -0,0 +1,237 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AggregatorsConfigDetailResponse
+ Used By: Payment
+ */
+ class AggregatorsConfigDetailResponse: Codable {
+
+ public var success: Bool
+
+ public var razorpay: AggregatorConfigDetail?
+
+ public var juspay: AggregatorConfigDetail?
+
+ public var simpl: AggregatorConfigDetail?
+
+ public var payumoney: AggregatorConfigDetail?
+
+ public var rupifi: AggregatorConfigDetail?
+
+ public var mswipe: AggregatorConfigDetail?
+
+ public var stripe: AggregatorConfigDetail?
+
+ public var ccavenue: AggregatorConfigDetail?
+
+ public var env: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case razorpay = "razorpay"
+
+ case juspay = "juspay"
+
+ case simpl = "simpl"
+
+ case payumoney = "payumoney"
+
+ case rupifi = "rupifi"
+
+ case mswipe = "mswipe"
+
+ case stripe = "stripe"
+
+ case ccavenue = "ccavenue"
+
+ case env = "env"
+
+ }
+
+ public init(ccavenue: AggregatorConfigDetail? = nil, env: String, juspay: AggregatorConfigDetail? = nil, mswipe: AggregatorConfigDetail? = nil, payumoney: AggregatorConfigDetail? = nil, razorpay: AggregatorConfigDetail? = nil, rupifi: AggregatorConfigDetail? = nil, simpl: AggregatorConfigDetail? = nil, stripe: AggregatorConfigDetail? = nil, success: Bool) {
+
+ self.success = success
+
+ self.razorpay = razorpay
+
+ self.juspay = juspay
+
+ self.simpl = simpl
+
+ self.payumoney = payumoney
+
+ self.rupifi = rupifi
+
+ self.mswipe = mswipe
+
+ self.stripe = stripe
+
+ self.ccavenue = ccavenue
+
+ self.env = env
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ razorpay = try container.decode(AggregatorConfigDetail.self, forKey: .razorpay)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ juspay = try container.decode(AggregatorConfigDetail.self, forKey: .juspay)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ simpl = try container.decode(AggregatorConfigDetail.self, forKey: .simpl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ payumoney = try container.decode(AggregatorConfigDetail.self, forKey: .payumoney)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ rupifi = try container.decode(AggregatorConfigDetail.self, forKey: .rupifi)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mswipe = try container.decode(AggregatorConfigDetail.self, forKey: .mswipe)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stripe = try container.decode(AggregatorConfigDetail.self, forKey: .stripe)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ ccavenue = try container.decode(AggregatorConfigDetail.self, forKey: .ccavenue)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ env = try container.decode(String.self, forKey: .env)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(razorpay, forKey: .razorpay)
+
+
+
+ try? container.encodeIfPresent(juspay, forKey: .juspay)
+
+
+
+ try? container.encodeIfPresent(simpl, forKey: .simpl)
+
+
+
+ try? container.encodeIfPresent(payumoney, forKey: .payumoney)
+
+
+
+ try? container.encodeIfPresent(rupifi, forKey: .rupifi)
+
+
+
+ try? container.encodeIfPresent(mswipe, forKey: .mswipe)
+
+
+
+ try? container.encodeIfPresent(stripe, forKey: .stripe)
+
+
+
+ try? container.encodeIfPresent(ccavenue, forKey: .ccavenue)
+
+
+
+ try? container.encodeIfPresent(env, forKey: .env)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AttachCardPaymentAppModel.swift b/Sources/code/application/Models/Payment/AttachCardPaymentAppModel.swift
deleted file mode 100644
index a9461f4c72..0000000000
--- a/Sources/code/application/Models/Payment/AttachCardPaymentAppModel.swift
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AttachCard
- Used By: Payment
- */
- class AttachCard: Codable {
-
- public var nickname: String?
-
- public var refresh: Bool?
-
- public var cardId: String
-
- public var nameOnCard: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case nickname = "nickname"
-
- case refresh = "refresh"
-
- case cardId = "card_id"
-
- case nameOnCard = "name_on_card"
-
- }
-
- public init(cardId: String, nameOnCard: String? = nil, nickname: String? = nil, refresh: Bool? = nil) {
-
- self.nickname = nickname
-
- self.refresh = refresh
-
- self.cardId = cardId
-
- self.nameOnCard = nameOnCard
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- nickname = try container.decode(String.self, forKey: .nickname)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refresh = try container.decode(Bool.self, forKey: .refresh)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- cardId = try container.decode(String.self, forKey: .cardId)
-
-
-
-
- do {
- nameOnCard = try container.decode(String.self, forKey: .nameOnCard)
-
- } 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(nickname, forKey: .nickname)
-
-
-
- try? container.encodeIfPresent(refresh, forKey: .refresh)
-
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
-
- try? container.encodeIfPresent(nameOnCard, forKey: .nameOnCard)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AttachCardRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/AttachCardRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..9773749579
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AttachCardRequestPaymentAppModel.swift
@@ -0,0 +1,112 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AttachCardRequest
+ Used By: Payment
+ */
+ class AttachCardRequest: Codable {
+
+ public var nickname: String?
+
+ public var refresh: Bool?
+
+ public var cardId: String
+
+ public var nameOnCard: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case nickname = "nickname"
+
+ case refresh = "refresh"
+
+ case cardId = "card_id"
+
+ case nameOnCard = "name_on_card"
+
+ }
+
+ public init(cardId: String, nameOnCard: String? = nil, nickname: String? = nil, refresh: Bool? = nil) {
+
+ self.nickname = nickname
+
+ self.refresh = refresh
+
+ self.cardId = cardId
+
+ self.nameOnCard = nameOnCard
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ nickname = try container.decode(String.self, forKey: .nickname)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ refresh = try container.decode(Bool.self, forKey: .refresh)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ cardId = try container.decode(String.self, forKey: .cardId)
+
+
+
+
+ do {
+ nameOnCard = try container.decode(String.self, forKey: .nameOnCard)
+
+ } 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(nickname, forKey: .nickname)
+
+
+
+ try? container.encodeIfPresent(refresh, forKey: .refresh)
+
+
+
+ try? container.encodeIfPresent(cardId, forKey: .cardId)
+
+
+
+ try? container.encodeIfPresent(nameOnCard, forKey: .nameOnCard)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/AttachCardsDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/AttachCardsDetailsPaymentAppModel.swift
deleted file mode 100644
index 665014fb76..0000000000
--- a/Sources/code/application/Models/Payment/AttachCardsDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: AttachCardsDetails
- Used By: Payment
- */
- class AttachCardsDetails: Codable {
-
- public var data: [String: Any]
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [String: Any], message: String? = nil, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/AttachCardsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/AttachCardsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..062b65e728
--- /dev/null
+++ b/Sources/code/application/Models/Payment/AttachCardsResponsePaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: AttachCardsResponse
+ Used By: Payment
+ */
+ class AttachCardsResponse: Codable {
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [String: Any], message: String? = nil, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkPaymentAppModel.swift b/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkPaymentAppModel.swift
deleted file mode 100644
index 6f8be452e0..0000000000
--- a/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkPaymentAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CancelOrResendPaymentLink
- Used By: Payment
- */
- class CancelOrResendPaymentLink: Codable {
-
- public var paymentLinkId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(paymentLinkId: String) {
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..06d30f465a
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CancelOrResendPaymentLinkRequestPaymentAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CancelOrResendPaymentLinkRequest
+ Used By: Payment
+ */
+ class CancelOrResendPaymentLinkRequest: Codable {
+
+ public var paymentLinkId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(paymentLinkId: String) {
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CancelPaymentLinkDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CancelPaymentLinkDetailsPaymentAppModel.swift
deleted file mode 100644
index 18af862f3b..0000000000
--- a/Sources/code/application/Models/Payment/CancelPaymentLinkDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CancelPaymentLinkDetails
- Used By: Payment
- */
- class CancelPaymentLinkDetails: Codable {
-
- public var statusCode: Int
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CancelPaymentLinkResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CancelPaymentLinkResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..55a6213e92
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CancelPaymentLinkResponsePaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CancelPaymentLinkResponse
+ Used By: Payment
+ */
+ class CancelPaymentLinkResponse: Codable {
+
+ public var statusCode: Int
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CardDetailsFetchedDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CardDetailsFetchedDetailsPaymentAppModel.swift
deleted file mode 100644
index db32708d1e..0000000000
--- a/Sources/code/application/Models/Payment/CardDetailsFetchedDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CardDetailsFetchedDetails
- Used By: Payment
- */
- class CardDetailsFetchedDetails: Codable {
-
- public var data: CardDetails
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: CardDetails, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(CardDetails.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CardDetailsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CardDetailsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..96465296cd
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CardDetailsResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CardDetailsResponse
+ Used By: Payment
+ */
+ class CardDetailsResponse: Codable {
+
+ public var data: CardDetails
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: CardDetails, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(CardDetails.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ChargeCustomerDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ChargeCustomerDetailsPaymentAppModel.swift
deleted file mode 100644
index a5ce37bec7..0000000000
--- a/Sources/code/application/Models/Payment/ChargeCustomerDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ChargeCustomerDetails
- Used By: Payment
- */
- class ChargeCustomerDetails: Codable {
-
- public var status: String
-
- public var cartId: String?
-
- public var success: Bool
-
- public var aggregator: String
-
- public var message: String
-
- public var orderId: String
-
- public var deliveryAddressId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case cartId = "cart_id"
-
- case success = "success"
-
- case aggregator = "aggregator"
-
- case message = "message"
-
- case orderId = "order_id"
-
- case deliveryAddressId = "delivery_address_id"
-
- }
-
- public init(aggregator: String, cartId: String? = nil, deliveryAddressId: String? = nil, message: String, orderId: String, status: String, success: Bool) {
-
- self.status = status
-
- self.cartId = cartId
-
- self.success = success
-
- self.aggregator = aggregator
-
- self.message = message
-
- self.orderId = orderId
-
- self.deliveryAddressId = deliveryAddressId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- cartId = try container.decode(String.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- deliveryAddressId = try container.decode(String.self, forKey: .deliveryAddressId)
-
- } 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(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(deliveryAddressId, forKey: .deliveryAddressId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ChargeCustomerPaymentAppModel.swift b/Sources/code/application/Models/Payment/ChargeCustomerPaymentAppModel.swift
deleted file mode 100644
index 05d8d48fa6..0000000000
--- a/Sources/code/application/Models/Payment/ChargeCustomerPaymentAppModel.swift
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ChargeCustomer
- Used By: Payment
- */
- class ChargeCustomer: Codable {
-
- public var verified: Bool?
-
- public var aggregator: String
-
- public var orderId: String
-
- public var transactionToken: String?
-
- public var amount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case verified = "verified"
-
- case aggregator = "aggregator"
-
- case orderId = "order_id"
-
- case transactionToken = "transaction_token"
-
- case amount = "amount"
-
- }
-
- public init(aggregator: String, amount: Int, orderId: String, transactionToken: String? = nil, verified: Bool? = nil) {
-
- self.verified = verified
-
- self.aggregator = aggregator
-
- self.orderId = orderId
-
- self.transactionToken = transactionToken
-
- self.amount = amount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- transactionToken = try container.decode(String.self, forKey: .transactionToken)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(verified, forKey: .verified)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(transactionToken, forKey: .transactionToken)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ChargeCustomerRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ChargeCustomerRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..6b0eec18f0
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ChargeCustomerRequestPaymentAppModel.swift
@@ -0,0 +1,120 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ChargeCustomerRequest
+ Used By: Payment
+ */
+ class ChargeCustomerRequest: Codable {
+
+ public var verified: Bool?
+
+ public var aggregator: String
+
+ public var orderId: String
+
+ public var transactionToken: String?
+
+ public var amount: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case verified = "verified"
+
+ case aggregator = "aggregator"
+
+ case orderId = "order_id"
+
+ case transactionToken = "transaction_token"
+
+ case amount = "amount"
+
+ }
+
+ public init(aggregator: String, amount: Int, orderId: String, transactionToken: String? = nil, verified: Bool? = nil) {
+
+ self.verified = verified
+
+ self.aggregator = aggregator
+
+ self.orderId = orderId
+
+ self.transactionToken = transactionToken
+
+ self.amount = amount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ transactionToken = try container.decode(String.self, forKey: .transactionToken)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(verified, forKey: .verified)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(transactionToken, forKey: .transactionToken)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ChargeCustomerResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ChargeCustomerResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..06c70f9072
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ChargeCustomerResponsePaymentAppModel.swift
@@ -0,0 +1,150 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ChargeCustomerResponse
+ Used By: Payment
+ */
+ class ChargeCustomerResponse: Codable {
+
+ public var status: String
+
+ public var cartId: String?
+
+ public var success: Bool
+
+ public var aggregator: String
+
+ public var message: String
+
+ public var orderId: String
+
+ public var deliveryAddressId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case cartId = "cart_id"
+
+ case success = "success"
+
+ case aggregator = "aggregator"
+
+ case message = "message"
+
+ case orderId = "order_id"
+
+ case deliveryAddressId = "delivery_address_id"
+
+ }
+
+ public init(aggregator: String, cartId: String? = nil, deliveryAddressId: String? = nil, message: String, orderId: String, status: String, success: Bool) {
+
+ self.status = status
+
+ self.cartId = cartId
+
+ self.success = success
+
+ self.aggregator = aggregator
+
+ self.message = message
+
+ self.orderId = orderId
+
+ self.deliveryAddressId = deliveryAddressId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ cartId = try container.decode(String.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ deliveryAddressId = try container.decode(String.self, forKey: .deliveryAddressId)
+
+ } 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(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(cartId, forKey: .cartId)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(deliveryAddressId, forKey: .deliveryAddressId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CheckCreditDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CheckCreditDetailsPaymentAppModel.swift
deleted file mode 100644
index 09cc110da8..0000000000
--- a/Sources/code/application/Models/Payment/CheckCreditDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CheckCreditDetails
- Used By: Payment
- */
- class CheckCreditDetails: Codable {
-
- public var data: CreditDetail
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: CreditDetail, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(CreditDetail.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CheckCreditResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CheckCreditResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..af97a6d2ec
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CheckCreditResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CheckCreditResponse
+ Used By: Payment
+ */
+ class CheckCreditResponse: Codable {
+
+ public var data: CreditDetail
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: CreditDetail, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(CreditDetail.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CreateOrderUserDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreateOrderUserDetailsPaymentAppModel.swift
deleted file mode 100644
index 021f31afec..0000000000
--- a/Sources/code/application/Models/Payment/CreateOrderUserDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CreateOrderUserDetails
- Used By: Payment
- */
- class CreateOrderUserDetails: Codable {
-
- public var statusCode: Int?
-
- public var success: Bool
-
- public var data: CreateOrderUserData?
-
- public var message: String
-
- public var orderId: String?
-
- public var callbackUrl: String?
-
- public var paymentConfirmUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case success = "success"
-
- case data = "data"
-
- case message = "message"
-
- case orderId = "order_id"
-
- case callbackUrl = "callback_url"
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- }
-
- public init(callbackUrl: String? = nil, data: CreateOrderUserData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int? = nil, success: Bool) {
-
- self.statusCode = statusCode
-
- self.success = success
-
- self.data = data
-
- self.message = message
-
- self.orderId = orderId
-
- self.callbackUrl = callbackUrl
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- data = try container.decode(CreateOrderUserData.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CreateOrderUserPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreateOrderUserPaymentAppModel.swift
deleted file mode 100644
index dbc8b037f0..0000000000
--- a/Sources/code/application/Models/Payment/CreateOrderUserPaymentAppModel.swift
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CreateOrderUser
- Used By: Payment
- */
- class CreateOrderUser: Codable {
-
- public var currency: String
-
- public var paymentLinkId: String
-
- public var paymentMethods: CreateOrderUserPaymentMethods
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currency = "currency"
-
- case paymentLinkId = "payment_link_id"
-
- case paymentMethods = "payment_methods"
-
- case meta = "meta"
-
- }
-
- public init(currency: String, meta: [String: Any]? = nil, paymentLinkId: String, paymentMethods: CreateOrderUserPaymentMethods) {
-
- self.currency = currency
-
- self.paymentLinkId = paymentLinkId
-
- self.paymentMethods = paymentMethods
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
-
-
-
- paymentMethods = try container.decode(CreateOrderUserPaymentMethods.self, forKey: .paymentMethods)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CreateOrderUserRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreateOrderUserRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..6e3380d71a
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CreateOrderUserRequestPaymentAppModel.swift
@@ -0,0 +1,128 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CreateOrderUserRequest
+ Used By: Payment
+ */
+ class CreateOrderUserRequest: Codable {
+
+ public var failureCallbackUrl: String
+
+ public var currency: String
+
+ public var paymentLinkId: String
+
+ public var paymentMethods: CreateOrderUserPaymentMethods
+
+ public var successCallbackUrl: String
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case failureCallbackUrl = "failure_callback_url"
+
+ case currency = "currency"
+
+ case paymentLinkId = "payment_link_id"
+
+ case paymentMethods = "payment_methods"
+
+ case successCallbackUrl = "success_callback_url"
+
+ case meta = "meta"
+
+ }
+
+ public init(currency: String, failureCallbackUrl: String, meta: [String: Any]? = nil, paymentLinkId: String, paymentMethods: CreateOrderUserPaymentMethods, successCallbackUrl: String) {
+
+ self.failureCallbackUrl = failureCallbackUrl
+
+ self.currency = currency
+
+ self.paymentLinkId = paymentLinkId
+
+ self.paymentMethods = paymentMethods
+
+ self.successCallbackUrl = successCallbackUrl
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ failureCallbackUrl = try container.decode(String.self, forKey: .failureCallbackUrl)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+
+
+
+ paymentMethods = try container.decode(CreateOrderUserPaymentMethods.self, forKey: .paymentMethods)
+
+
+
+
+ successCallbackUrl = try container.decode(String.self, forKey: .successCallbackUrl)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(failureCallbackUrl, forKey: .failureCallbackUrl)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+
+ try? container.encodeIfPresent(successCallbackUrl, forKey: .successCallbackUrl)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CreateOrderUserResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CreateOrderUserResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..c714ef02d1
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CreateOrderUserResponsePaymentAppModel.swift
@@ -0,0 +1,164 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CreateOrderUserResponse
+ Used By: Payment
+ */
+ class CreateOrderUserResponse: Codable {
+
+ public var statusCode: Int
+
+ public var success: Bool
+
+ public var data: CreateOrderUserData?
+
+ public var message: String
+
+ public var orderId: String?
+
+ public var callbackUrl: String?
+
+ public var paymentConfirmUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case success = "success"
+
+ case data = "data"
+
+ case message = "message"
+
+ case orderId = "order_id"
+
+ case callbackUrl = "callback_url"
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ }
+
+ public init(callbackUrl: String? = nil, data: CreateOrderUserData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.success = success
+
+ self.data = data
+
+ self.message = message
+
+ self.orderId = orderId
+
+ self.callbackUrl = callbackUrl
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ data = try container.decode(CreateOrderUserData.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+ try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CreatePaymentLinkDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreatePaymentLinkDetailsPaymentAppModel.swift
deleted file mode 100644
index 80859ae792..0000000000
--- a/Sources/code/application/Models/Payment/CreatePaymentLinkDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CreatePaymentLinkDetails
- Used By: Payment
- */
- class CreatePaymentLinkDetails: Codable {
-
- public var statusCode: Int
-
- public var success: Bool
-
- public var pollingTimeout: Int?
-
- public var paymentLinkUrl: String?
-
- public var message: String
-
- public var paymentLinkId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case success = "success"
-
- case pollingTimeout = "polling_timeout"
-
- case paymentLinkUrl = "payment_link_url"
-
- case message = "message"
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.success = success
-
- self.pollingTimeout = pollingTimeout
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.message = message
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CreatePaymentLinkPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreatePaymentLinkPaymentAppModel.swift
deleted file mode 100644
index bcba8bec72..0000000000
--- a/Sources/code/application/Models/Payment/CreatePaymentLinkPaymentAppModel.swift
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CreatePaymentLink
- Used By: Payment
- */
- class CreatePaymentLink: Codable {
-
- public var description: String?
-
- public var externalOrderId: String
-
- public var mobileNumber: String
-
- public var amount: Double
-
- public var meta: CreatePaymentLinkMeta
-
- public var email: String
-
- public var successRedirectionUrl: String?
-
- public var failureRedirectionUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case description = "description"
-
- case externalOrderId = "external_order_id"
-
- case mobileNumber = "mobile_number"
-
- case amount = "amount"
-
- case meta = "meta"
-
- case email = "email"
-
- case successRedirectionUrl = "success_redirection_url"
-
- case failureRedirectionUrl = "failure_redirection_url"
-
- }
-
- public init(amount: Double, description: String? = nil, email: String, externalOrderId: String, failureRedirectionUrl: String? = nil, meta: CreatePaymentLinkMeta, mobileNumber: String, successRedirectionUrl: String? = nil) {
-
- self.description = description
-
- self.externalOrderId = externalOrderId
-
- self.mobileNumber = mobileNumber
-
- self.amount = amount
-
- self.meta = meta
-
- self.email = email
-
- self.successRedirectionUrl = successRedirectionUrl
-
- self.failureRedirectionUrl = failureRedirectionUrl
-
- }
-
- 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 {
-
- }
-
-
-
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
-
-
-
- mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
-
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- do {
- successRedirectionUrl = try container.decode(String.self, forKey: .successRedirectionUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failureRedirectionUrl = try container.decode(String.self, forKey: .failureRedirectionUrl)
-
- } 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(description, forKey: .description)
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
- try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
- try? container.encodeIfPresent(successRedirectionUrl, forKey: .successRedirectionUrl)
-
-
-
- try? container.encodeIfPresent(failureRedirectionUrl, forKey: .failureRedirectionUrl)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CreatePaymentLinkRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreatePaymentLinkRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..9fd5b1e337
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CreatePaymentLinkRequestPaymentAppModel.swift
@@ -0,0 +1,128 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CreatePaymentLinkRequest
+ Used By: Payment
+ */
+ class CreatePaymentLinkRequest: Codable {
+
+ public var description: String?
+
+ public var externalOrderId: String
+
+ public var mobileNumber: String
+
+ public var amount: Double
+
+ public var meta: CreatePaymentLinkMeta
+
+ public var email: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case description = "description"
+
+ case externalOrderId = "external_order_id"
+
+ case mobileNumber = "mobile_number"
+
+ case amount = "amount"
+
+ case meta = "meta"
+
+ case email = "email"
+
+ }
+
+ public init(amount: Double, description: String? = nil, email: String, externalOrderId: String, meta: CreatePaymentLinkMeta, mobileNumber: String) {
+
+ self.description = description
+
+ self.externalOrderId = externalOrderId
+
+ self.mobileNumber = mobileNumber
+
+ self.amount = amount
+
+ self.meta = meta
+
+ self.email = email
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+
+
+
+ mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
+
+
+
+
+ amount = try container.decode(Double.self, forKey: .amount)
+
+
+
+
+ meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
+
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+
+ try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CreatePaymentLinkResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CreatePaymentLinkResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..41df903c2a
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CreatePaymentLinkResponsePaymentAppModel.swift
@@ -0,0 +1,142 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CreatePaymentLinkResponse
+ Used By: Payment
+ */
+ class CreatePaymentLinkResponse: Codable {
+
+ public var statusCode: Int
+
+ public var success: Bool
+
+ public var pollingTimeout: Int?
+
+ public var paymentLinkUrl: String?
+
+ public var message: String
+
+ public var paymentLinkId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case success = "success"
+
+ case pollingTimeout = "polling_timeout"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case message = "message"
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.success = success
+
+ self.pollingTimeout = pollingTimeout
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.message = message
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CreditDetailPaymentAppModel.swift b/Sources/code/application/Models/Payment/CreditDetailPaymentAppModel.swift
index 462fc3bb43..d75d809512 100644
--- a/Sources/code/application/Models/Payment/CreditDetailPaymentAppModel.swift
+++ b/Sources/code/application/Models/Payment/CreditDetailPaymentAppModel.swift
@@ -12,9 +12,7 @@ public extension ApplicationClient.Payment {
public var isRegistered: Bool
- public var signupUrl: String?
-
- public var availableCredit: Double?
+ public var signupUrl: String
public enum CodingKeys: String, CodingKey {
@@ -25,11 +23,9 @@ public extension ApplicationClient.Payment {
case signupUrl = "signup_url"
- case availableCredit = "available_credit"
-
}
- public init(availableCredit: Double? = nil, isRegistered: Bool, signupUrl: String? = nil, status: Bool) {
+ public init(isRegistered: Bool, signupUrl: String, status: Bool) {
self.status = status
@@ -37,8 +33,6 @@ public extension ApplicationClient.Payment {
self.signupUrl = signupUrl
- self.availableCredit = availableCredit
-
}
required public init(from decoder: Decoder) throws {
@@ -55,28 +49,9 @@ public extension ApplicationClient.Payment {
- do {
- signupUrl = try container.decode(String.self, forKey: .signupUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
+ signupUrl = try container.decode(String.self, forKey: .signupUrl)
- do {
- availableCredit = try container.decode(Double.self, forKey: .availableCredit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
}
@@ -95,10 +70,6 @@ public extension ApplicationClient.Payment {
try? container.encodeIfPresent(signupUrl, forKey: .signupUrl)
-
- try? container.encodeIfPresent(availableCredit, forKey: .availableCredit)
-
-
}
}
diff --git a/Sources/code/application/Models/Payment/CustomerCreditSummaryDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerCreditSummaryDetailsPaymentAppModel.swift
deleted file mode 100644
index cbc14b4d69..0000000000
--- a/Sources/code/application/Models/Payment/CustomerCreditSummaryDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CustomerCreditSummaryDetails
- Used By: Payment
- */
- class CustomerCreditSummaryDetails: Codable {
-
- public var data: CreditSummary?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: CreditSummary? = nil, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(CreditSummary.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CustomerCreditSummaryResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerCreditSummaryResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..84db373e07
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CustomerCreditSummaryResponsePaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CustomerCreditSummaryResponse
+ Used By: Payment
+ */
+ class CustomerCreditSummaryResponse: Codable {
+
+ public var data: CreditSummary?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: CreditSummary? = nil, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CreditSummary.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CustomerOnboardingDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerOnboardingDetailsPaymentAppModel.swift
deleted file mode 100644
index 809f05842d..0000000000
--- a/Sources/code/application/Models/Payment/CustomerOnboardingDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CustomerOnboardingDetails
- Used By: Payment
- */
- class CustomerOnboardingDetails: Codable {
-
- public var data: OnboardSummary
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: OnboardSummary, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(OnboardSummary.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CustomerOnboardingPaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerOnboardingPaymentAppModel.swift
deleted file mode 100644
index 8c0800fb60..0000000000
--- a/Sources/code/application/Models/Payment/CustomerOnboardingPaymentAppModel.swift
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: CustomerOnboarding
- Used By: Payment
- */
- class CustomerOnboarding: Codable {
-
- public var personalInfo: UserPersonalInfoInDetails?
-
- public var mcc: String?
-
- public var aggregator: String
-
- public var marketplaceInfo: MarketplaceInfo?
-
- public var source: String
-
- public var businessInfo: BusinessDetails?
-
- public var device: DeviceDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case personalInfo = "personal_info"
-
- case mcc = "mcc"
-
- case aggregator = "aggregator"
-
- case marketplaceInfo = "marketplace_info"
-
- case source = "source"
-
- case businessInfo = "business_info"
-
- case device = "device"
-
- }
-
- public init(aggregator: String, businessInfo: BusinessDetails? = nil, device: DeviceDetails? = nil, marketplaceInfo: MarketplaceInfo? = nil, mcc: String? = nil, personalInfo: UserPersonalInfoInDetails? = nil, source: String) {
-
- self.personalInfo = personalInfo
-
- self.mcc = mcc
-
- self.aggregator = aggregator
-
- self.marketplaceInfo = marketplaceInfo
-
- self.source = source
-
- self.businessInfo = businessInfo
-
- self.device = device
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- personalInfo = try container.decode(UserPersonalInfoInDetails.self, forKey: .personalInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mcc = try container.decode(String.self, forKey: .mcc)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- marketplaceInfo = try container.decode(MarketplaceInfo.self, forKey: .marketplaceInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- source = try container.decode(String.self, forKey: .source)
-
-
-
-
- do {
- businessInfo = try container.decode(BusinessDetails.self, forKey: .businessInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- device = try container.decode(DeviceDetails.self, forKey: .device)
-
- } 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(personalInfo, forKey: .personalInfo)
-
-
-
- try? container.encodeIfPresent(mcc, forKey: .mcc)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(marketplaceInfo, forKey: .marketplaceInfo)
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
- try? container.encodeIfPresent(businessInfo, forKey: .businessInfo)
-
-
-
- try? container.encodeIfPresent(device, forKey: .device)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/CustomerOnboardingRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerOnboardingRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..e6103b22fb
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CustomerOnboardingRequestPaymentAppModel.swift
@@ -0,0 +1,171 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CustomerOnboardingRequest
+ Used By: Payment
+ */
+ class CustomerOnboardingRequest: Codable {
+
+ public var personalInfo: UserPersonalInfoInDetails?
+
+ public var mcc: String?
+
+ public var aggregator: String
+
+ public var marketplaceInfo: MarketplaceInfo?
+
+ public var source: String
+
+ public var businessInfo: BusinessDetails?
+
+ public var device: DeviceDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case personalInfo = "personal_info"
+
+ case mcc = "mcc"
+
+ case aggregator = "aggregator"
+
+ case marketplaceInfo = "marketplace_info"
+
+ case source = "source"
+
+ case businessInfo = "business_info"
+
+ case device = "device"
+
+ }
+
+ public init(aggregator: String, businessInfo: BusinessDetails? = nil, device: DeviceDetails? = nil, marketplaceInfo: MarketplaceInfo? = nil, mcc: String? = nil, personalInfo: UserPersonalInfoInDetails? = nil, source: String) {
+
+ self.personalInfo = personalInfo
+
+ self.mcc = mcc
+
+ self.aggregator = aggregator
+
+ self.marketplaceInfo = marketplaceInfo
+
+ self.source = source
+
+ self.businessInfo = businessInfo
+
+ self.device = device
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ personalInfo = try container.decode(UserPersonalInfoInDetails.self, forKey: .personalInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mcc = try container.decode(String.self, forKey: .mcc)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ marketplaceInfo = try container.decode(MarketplaceInfo.self, forKey: .marketplaceInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ source = try container.decode(String.self, forKey: .source)
+
+
+
+
+ do {
+ businessInfo = try container.decode(BusinessDetails.self, forKey: .businessInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ device = try container.decode(DeviceDetails.self, forKey: .device)
+
+ } 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(personalInfo, forKey: .personalInfo)
+
+
+
+ try? container.encodeIfPresent(mcc, forKey: .mcc)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(marketplaceInfo, forKey: .marketplaceInfo)
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+
+ try? container.encodeIfPresent(businessInfo, forKey: .businessInfo)
+
+
+
+ try? container.encodeIfPresent(device, forKey: .device)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/CustomerOnboardingResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/CustomerOnboardingResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..359c7ce28d
--- /dev/null
+++ b/Sources/code/application/Models/Payment/CustomerOnboardingResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: CustomerOnboardingResponse
+ Used By: Payment
+ */
+ class CustomerOnboardingResponse: Codable {
+
+ public var data: OnboardSummary
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: OnboardSummary, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(OnboardSummary.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/DeleteCardPaymentAppModel.swift b/Sources/code/application/Models/Payment/DeleteCardPaymentAppModel.swift
deleted file mode 100644
index 9ae784e94b..0000000000
--- a/Sources/code/application/Models/Payment/DeleteCardPaymentAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: DeleteCard
- Used By: Payment
- */
- class DeleteCard: Codable {
-
- public var cardId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cardId = "card_id"
-
- }
-
- public init(cardId: String) {
-
- self.cardId = cardId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- cardId = try container.decode(String.self, forKey: .cardId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/DeleteCardsDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/DeleteCardsDetailsPaymentAppModel.swift
deleted file mode 100644
index 933b2d1ec5..0000000000
--- a/Sources/code/application/Models/Payment/DeleteCardsDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: DeleteCardsDetails
- Used By: Payment
- */
- class DeleteCardsDetails: Codable {
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/DeleteCardsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/DeleteCardsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..c8a0930dc9
--- /dev/null
+++ b/Sources/code/application/Models/Payment/DeleteCardsResponsePaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: DeleteCardsResponse
+ Used By: Payment
+ */
+ class DeleteCardsResponse: Codable {
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/DeleteRefundAccountDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/DeleteRefundAccountDetailsPaymentAppModel.swift
deleted file mode 100644
index ee478290fe..0000000000
--- a/Sources/code/application/Models/Payment/DeleteRefundAccountDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: DeleteRefundAccountDetails
- Used By: Payment
- */
- class DeleteRefundAccountDetails: Codable {
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, success: Bool) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/DeleteRefundAccountResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/DeleteRefundAccountResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..99e7c3610a
--- /dev/null
+++ b/Sources/code/application/Models/Payment/DeleteRefundAccountResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: DeleteRefundAccountResponse
+ Used By: Payment
+ */
+ class DeleteRefundAccountResponse: Codable {
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String, success: Bool) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/DeletehCardRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/DeletehCardRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..1cb4fb2843
--- /dev/null
+++ b/Sources/code/application/Models/Payment/DeletehCardRequestPaymentAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: DeletehCardRequest
+ Used By: Payment
+ */
+ class DeletehCardRequest: Codable {
+
+ public var cardId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cardId = "card_id"
+
+ }
+
+ public init(cardId: String) {
+
+ self.cardId = cardId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ cardId = try container.decode(String.self, forKey: .cardId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(cardId, forKey: .cardId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/EpaylaterBannerDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/EpaylaterBannerDetailsPaymentAppModel.swift
deleted file mode 100644
index 1c80c0a332..0000000000
--- a/Sources/code/application/Models/Payment/EpaylaterBannerDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: EpaylaterBannerDetails
- Used By: Payment
- */
- class EpaylaterBannerDetails: Codable {
-
- public var data: EpaylaterBannerData
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: EpaylaterBannerData, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(EpaylaterBannerData.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/EpaylaterBannerResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/EpaylaterBannerResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..af70ab99f8
--- /dev/null
+++ b/Sources/code/application/Models/Payment/EpaylaterBannerResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: EpaylaterBannerResponse
+ Used By: Payment
+ */
+ class EpaylaterBannerResponse: Codable {
+
+ public var data: EpaylaterBannerData
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: EpaylaterBannerData, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(EpaylaterBannerData.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ErrorDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ErrorDetailsPaymentAppModel.swift
deleted file mode 100644
index a09e47ea96..0000000000
--- a/Sources/code/application/Models/Payment/ErrorDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ErrorDetails
- Used By: Payment
- */
- class ErrorDetails: Codable {
-
- public var statusCode: Int
-
- public var error: ErrorDescription?
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case error = "error"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.error = error
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- error = try container.decode(ErrorDescription.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ErrorResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ErrorResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..e3e8f45381
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ErrorResponsePaymentAppModel.swift
@@ -0,0 +1,98 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ErrorResponse
+ Used By: Payment
+ */
+ class ErrorResponse: Codable {
+
+ public var statusCode: Int
+
+ public var error: ErrorDescription?
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case error = "error"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.error = error
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ error = try container.decode(ErrorDescription.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/GetPaymentLinkDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/GetPaymentLinkDetailsPaymentAppModel.swift
deleted file mode 100644
index 86c218db39..0000000000
--- a/Sources/code/application/Models/Payment/GetPaymentLinkDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: GetPaymentLinkDetails
- Used By: Payment
- */
- class GetPaymentLinkDetails: Codable {
-
- public var statusCode: Int
-
- public var paymentLinkCurrentStatus: String?
-
- public var success: Bool
-
- public var pollingTimeout: Int?
-
- public var paymentLinkUrl: String?
-
- public var externalOrderId: String?
-
- public var message: String
-
- public var merchantName: String?
-
- public var amount: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case paymentLinkCurrentStatus = "payment_link_current_status"
-
- case success = "success"
-
- case pollingTimeout = "polling_timeout"
-
- case paymentLinkUrl = "payment_link_url"
-
- case externalOrderId = "external_order_id"
-
- case message = "message"
-
- case merchantName = "merchant_name"
-
- case amount = "amount"
-
- }
-
- public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
-
- self.success = success
-
- self.pollingTimeout = pollingTimeout
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.externalOrderId = externalOrderId
-
- self.message = message
-
- self.merchantName = merchantName
-
- self.amount = amount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- merchantName = try container.decode(String.self, forKey: .merchantName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(merchantName, forKey: .merchantName)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/GetPaymentLinkResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/GetPaymentLinkResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..5fad931fae
--- /dev/null
+++ b/Sources/code/application/Models/Payment/GetPaymentLinkResponsePaymentAppModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: GetPaymentLinkResponse
+ Used By: Payment
+ */
+ class GetPaymentLinkResponse: Codable {
+
+ public var statusCode: Int
+
+ public var paymentLinkCurrentStatus: String?
+
+ public var success: Bool
+
+ public var pollingTimeout: Int?
+
+ public var paymentLinkUrl: String?
+
+ public var externalOrderId: String?
+
+ public var message: String
+
+ public var merchantName: String?
+
+ public var amount: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case paymentLinkCurrentStatus = "payment_link_current_status"
+
+ case success = "success"
+
+ case pollingTimeout = "polling_timeout"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case externalOrderId = "external_order_id"
+
+ case message = "message"
+
+ case merchantName = "merchant_name"
+
+ case amount = "amount"
+
+ }
+
+ public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
+
+ self.success = success
+
+ self.pollingTimeout = pollingTimeout
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.externalOrderId = externalOrderId
+
+ self.message = message
+
+ self.merchantName = merchantName
+
+ self.amount = amount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ merchantName = try container.decode(String.self, forKey: .merchantName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(merchantName, forKey: .merchantName)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/HttpErrorCodeAndResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/HttpErrorCodeAndResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..f4230fa9c8
--- /dev/null
+++ b/Sources/code/application/Models/Payment/HttpErrorCodeAndResponsePaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: HttpErrorCodeAndResponse
+ Used By: Payment
+ */
+ class HttpErrorCodeAndResponse: Codable {
+
+ public var error: ErrorCodeAndDescription?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorCodeAndDescription? = nil, success: Bool) {
+
+ self.error = error
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/HttpErrorCodeDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/HttpErrorCodeDetailsPaymentAppModel.swift
deleted file mode 100644
index 820853caca..0000000000
--- a/Sources/code/application/Models/Payment/HttpErrorCodeDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: HttpErrorCodeDetails
- Used By: Payment
- */
- class HttpErrorCodeDetails: Codable {
-
- public var error: ErrorCodeAndDescription?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case success = "success"
-
- }
-
- public init(error: ErrorCodeAndDescription? = nil, success: Bool) {
-
- self.error = error
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/IfscCodeDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/IfscCodeDetailsPaymentAppModel.swift
deleted file mode 100644
index db9cd4fab4..0000000000
--- a/Sources/code/application/Models/Payment/IfscCodeDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: IfscCodeDetails
- Used By: Payment
- */
- class IfscCodeDetails: Codable {
-
- public var branchName: String
-
- public var success: Bool?
-
- public var bankName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case branchName = "branch_name"
-
- case success = "success"
-
- case bankName = "bank_name"
-
- }
-
- public init(bankName: String, branchName: String, success: Bool? = nil) {
-
- self.branchName = branchName
-
- self.success = success
-
- self.bankName = bankName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- branchName = try container.decode(String.self, forKey: .branchName)
-
-
-
-
- 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 {
-
- }
-
-
-
- bankName = try container.decode(String.self, forKey: .bankName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(branchName, forKey: .branchName)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(bankName, forKey: .bankName)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/IfscCodeResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/IfscCodeResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..768f8e6f33
--- /dev/null
+++ b/Sources/code/application/Models/Payment/IfscCodeResponsePaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: IfscCodeResponse
+ Used By: Payment
+ */
+ class IfscCodeResponse: Codable {
+
+ public var branchName: String
+
+ public var success: Bool?
+
+ public var bankName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case branchName = "branch_name"
+
+ case success = "success"
+
+ case bankName = "bank_name"
+
+ }
+
+ public init(bankName: String, branchName: String, success: Bool? = nil) {
+
+ self.branchName = branchName
+
+ self.success = success
+
+ self.bankName = bankName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ branchName = try container.decode(String.self, forKey: .branchName)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ bankName = try container.decode(String.self, forKey: .bankName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(branchName, forKey: .branchName)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(bankName, forKey: .bankName)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ListCardsDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ListCardsDetailsPaymentAppModel.swift
deleted file mode 100644
index 4c334cce47..0000000000
--- a/Sources/code/application/Models/Payment/ListCardsDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ListCardsDetails
- Used By: Payment
- */
- class ListCardsDetails: Codable {
-
- public var data: [Card]?
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [Card]? = nil, message: String, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([Card].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ListCardsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ListCardsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..f7d88ead9c
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ListCardsResponsePaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ListCardsResponse
+ Used By: Payment
+ */
+ class ListCardsResponse: Codable {
+
+ public var data: [Card]?
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [Card]? = nil, message: String, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([Card].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/OrderBeneficiaryDetailsSchemaV2PaymentAppModel.swift b/Sources/code/application/Models/Payment/OrderBeneficiaryDetailsSchemaV2PaymentAppModel.swift
deleted file mode 100644
index 7cb015f140..0000000000
--- a/Sources/code/application/Models/Payment/OrderBeneficiaryDetailsSchemaV2PaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: OrderBeneficiaryDetailsSchemaV2
- Used By: Payment
- */
- class OrderBeneficiaryDetailsSchemaV2: Codable {
-
- public var showBeneficiaryDetails: Bool
-
- public var data: BeneficiaryRefundOptions
-
- public var limit: [String: Any]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case showBeneficiaryDetails = "show_beneficiary_details"
-
- case data = "data"
-
- case limit = "limit"
-
- }
-
- public init(data: BeneficiaryRefundOptions, limit: [String: Any], showBeneficiaryDetails: Bool) {
-
- self.showBeneficiaryDetails = showBeneficiaryDetails
-
- self.data = data
-
- self.limit = limit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
-
-
-
-
- data = try container.decode(BeneficiaryRefundOptions.self, forKey: .data)
-
-
-
-
- limit = try container.decode([String: Any].self, forKey: .limit)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(limit, forKey: .limit)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/OrderBeneficiaryFetchDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/OrderBeneficiaryFetchDetailsPaymentAppModel.swift
deleted file mode 100644
index 470439f92d..0000000000
--- a/Sources/code/application/Models/Payment/OrderBeneficiaryFetchDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: OrderBeneficiaryFetchDetails
- Used By: Payment
- */
- class OrderBeneficiaryFetchDetails: Codable {
-
- public var showBeneficiaryDetails: Bool?
-
- public var beneficiaries: [OrderBeneficiaryDetails]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case showBeneficiaryDetails = "show_beneficiary_details"
-
- case beneficiaries = "beneficiaries"
-
- }
-
- public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
-
- self.showBeneficiaryDetails = showBeneficiaryDetails
-
- self.beneficiaries = beneficiaries
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
-
- } 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(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
-
-
-
- try? container.encodeIfPresent(beneficiaries, forKey: .beneficiaries)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/OrderBeneficiaryResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/OrderBeneficiaryResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..617892c634
--- /dev/null
+++ b/Sources/code/application/Models/Payment/OrderBeneficiaryResponsePaymentAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: OrderBeneficiaryResponse
+ Used By: Payment
+ */
+ class OrderBeneficiaryResponse: Codable {
+
+ public var showBeneficiaryDetails: Bool?
+
+ public var beneficiaries: [OrderBeneficiaryDetails]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case showBeneficiaryDetails = "show_beneficiary_details"
+
+ case beneficiaries = "beneficiaries"
+
+ }
+
+ public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
+
+ self.showBeneficiaryDetails = showBeneficiaryDetails
+
+ self.beneficiaries = beneficiaries
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
+
+ } 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(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
+
+
+
+ try? container.encodeIfPresent(beneficiaries, forKey: .beneficiaries)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/OrderBeneficiaryResponseSchemaV2PaymentAppModel.swift b/Sources/code/application/Models/Payment/OrderBeneficiaryResponseSchemaV2PaymentAppModel.swift
new file mode 100644
index 0000000000..c34bbbf9c2
--- /dev/null
+++ b/Sources/code/application/Models/Payment/OrderBeneficiaryResponseSchemaV2PaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: OrderBeneficiaryResponseSchemaV2
+ Used By: Payment
+ */
+ class OrderBeneficiaryResponseSchemaV2: Codable {
+
+ public var showBeneficiaryDetails: Bool
+
+ public var data: BeneficiaryRefundOptions
+
+ public var limit: [String: Any]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case showBeneficiaryDetails = "show_beneficiary_details"
+
+ case data = "data"
+
+ case limit = "limit"
+
+ }
+
+ public init(data: BeneficiaryRefundOptions, limit: [String: Any], showBeneficiaryDetails: Bool) {
+
+ self.showBeneficiaryDetails = showBeneficiaryDetails
+
+ self.data = data
+
+ self.limit = limit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
+
+
+
+
+ data = try container.decode(BeneficiaryRefundOptions.self, forKey: .data)
+
+
+
+
+ limit = try container.decode([String: Any].self, forKey: .limit)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(limit, forKey: .limit)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/OutstandingOrderDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/OutstandingOrderDetailsPaymentAppModel.swift
deleted file mode 100644
index c7a2678b21..0000000000
--- a/Sources/code/application/Models/Payment/OutstandingOrderDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: OutstandingOrderDetails
- Used By: Payment
- */
- class OutstandingOrderDetails: Codable {
-
- public var statusCode: Int
-
- public var data: [[String: Any]]?
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [[String: Any]]? = nil, message: String? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- data = try container.decode([[String: Any]].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/OutstandingOrderDetailsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/OutstandingOrderDetailsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..6111f65491
--- /dev/null
+++ b/Sources/code/application/Models/Payment/OutstandingOrderDetailsResponsePaymentAppModel.swift
@@ -0,0 +1,105 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: OutstandingOrderDetailsResponse
+ Used By: Payment
+ */
+ class OutstandingOrderDetailsResponse: Codable {
+
+ public var statusCode: Int
+
+ public var data: [[String: Any]]?
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [[String: Any]]? = nil, message: String? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaidOrderDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaidOrderDetailsPaymentAppModel.swift
deleted file mode 100644
index e7ad0b4954..0000000000
--- a/Sources/code/application/Models/Payment/PaidOrderDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaidOrderDetails
- Used By: Payment
- */
- class PaidOrderDetails: Codable {
-
- public var statusCode: Int
-
- public var data: [[String: Any]]?
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [[String: Any]]? = nil, message: String? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- data = try container.decode([[String: Any]].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaidOrderDetailsResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaidOrderDetailsResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..ab6d8b7d13
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaidOrderDetailsResponsePaymentAppModel.swift
@@ -0,0 +1,105 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaidOrderDetailsResponse
+ Used By: Payment
+ */
+ class PaidOrderDetailsResponse: Codable {
+
+ public var statusCode: Int
+
+ public var data: [[String: Any]]?
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [[String: Any]]? = nil, message: String? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentInitializationDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentInitializationDetailsPaymentAppModel.swift
deleted file mode 100644
index 2d47b5c24d..0000000000
--- a/Sources/code/application/Models/Payment/PaymentInitializationDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentInitializationDetails
- Used By: Payment
- */
- class PaymentInitializationDetails: Codable {
-
- public var status: String?
-
- public var razorpayPaymentId: String?
-
- public var aggregatorOrderId: String?
-
- public var method: String
-
- public var success: Bool
-
- public var upiPollUrl: String?
-
- public var virtualId: String?
-
- public var deviceId: String?
-
- public var pollingUrl: String
-
- public var aggregator: String
-
- public var merchantOrderId: String
-
- public var customerId: String?
-
- public var vpa: String?
-
- public var currency: String?
-
- public var timeout: Int?
-
- public var amount: Int?
-
- public var bqrImage: String?
-
- public var statusCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case aggregatorOrderId = "aggregator_order_id"
-
- case method = "method"
-
- case success = "success"
-
- case upiPollUrl = "upi_poll_url"
-
- case virtualId = "virtual_id"
-
- case deviceId = "device_id"
-
- case pollingUrl = "polling_url"
-
- case aggregator = "aggregator"
-
- case merchantOrderId = "merchant_order_id"
-
- case customerId = "customer_id"
-
- case vpa = "vpa"
-
- case currency = "currency"
-
- case timeout = "timeout"
-
- case amount = "amount"
-
- case bqrImage = "bqr_image"
-
- case statusCode = "status_code"
-
- }
-
- public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, statusCode: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
-
- self.status = status
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.aggregatorOrderId = aggregatorOrderId
-
- self.method = method
-
- self.success = success
-
- self.upiPollUrl = upiPollUrl
-
- self.virtualId = virtualId
-
- self.deviceId = deviceId
-
- self.pollingUrl = pollingUrl
-
- self.aggregator = aggregator
-
- self.merchantOrderId = merchantOrderId
-
- self.customerId = customerId
-
- self.vpa = vpa
-
- self.currency = currency
-
- self.timeout = timeout
-
- self.amount = amount
-
- self.bqrImage = bqrImage
-
- self.statusCode = statusCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- virtualId = try container.decode(String.self, forKey: .virtualId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- do {
- customerId = try container.decode(String.self, forKey: .customerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Int.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bqrImage = try container.decode(String.self, forKey: .bqrImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- statusCode = try container.decode(String.self, forKey: .statusCode)
-
- } 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(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
- try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
-
-
-
- try? container.encodeIfPresent(virtualId, forKey: .virtualId)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
- try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentInitializationPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentInitializationPaymentAppModel.swift
deleted file mode 100644
index 4eeb9af749..0000000000
--- a/Sources/code/application/Models/Payment/PaymentInitializationPaymentAppModel.swift
+++ /dev/null
@@ -1,268 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentInitialization
- Used By: Payment
- */
- class PaymentInitialization: Codable {
-
- public var razorpayPaymentId: String?
-
- public var method: String
-
- public var deviceId: String?
-
- public var aggregator: String
-
- public var customerId: String?
-
- public var contact: String
-
- public var merchantOrderId: String
-
- public var vpa: String?
-
- public var orderId: String
-
- public var currency: String?
-
- public var timeout: Int?
-
- public var amount: Int
-
- public var email: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case method = "method"
-
- case deviceId = "device_id"
-
- case aggregator = "aggregator"
-
- case customerId = "customer_id"
-
- case contact = "contact"
-
- case merchantOrderId = "merchant_order_id"
-
- case vpa = "vpa"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case timeout = "timeout"
-
- case amount = "amount"
-
- case email = "email"
-
- }
-
- public init(aggregator: String, amount: Int, contact: String, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.method = method
-
- self.deviceId = deviceId
-
- self.aggregator = aggregator
-
- self.customerId = customerId
-
- self.contact = contact
-
- self.merchantOrderId = merchantOrderId
-
- self.vpa = vpa
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.timeout = timeout
-
- self.amount = amount
-
- self.email = email
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- customerId = try container.decode(String.self, forKey: .customerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- contact = try container.decode(String.self, forKey: .contact)
-
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentInitializationRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentInitializationRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..f78d01977b
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentInitializationRequestPaymentAppModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentInitializationRequest
+ Used By: Payment
+ */
+ class PaymentInitializationRequest: Codable {
+
+ public var razorpayPaymentId: String?
+
+ public var method: String
+
+ public var deviceId: String?
+
+ public var aggregator: String
+
+ public var customerId: String
+
+ public var contact: String
+
+ public var merchantOrderId: String
+
+ public var vpa: String?
+
+ public var orderId: String
+
+ public var currency: String
+
+ public var timeout: Int?
+
+ public var amount: Int
+
+ public var email: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case method = "method"
+
+ case deviceId = "device_id"
+
+ case aggregator = "aggregator"
+
+ case customerId = "customer_id"
+
+ case contact = "contact"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case vpa = "vpa"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case timeout = "timeout"
+
+ case amount = "amount"
+
+ case email = "email"
+
+ }
+
+ public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.method = method
+
+ self.deviceId = deviceId
+
+ self.aggregator = aggregator
+
+ self.customerId = customerId
+
+ self.contact = contact
+
+ self.merchantOrderId = merchantOrderId
+
+ self.vpa = vpa
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.timeout = timeout
+
+ self.amount = amount
+
+ self.email = email
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+
+
+
+ contact = try container.decode(String.self, forKey: .contact)
+
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentInitializationResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentInitializationResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..07c5ac3d54
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentInitializationResponsePaymentAppModel.swift
@@ -0,0 +1,370 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentInitializationResponse
+ Used By: Payment
+ */
+ class PaymentInitializationResponse: Codable {
+
+ public var status: String?
+
+ public var razorpayPaymentId: String?
+
+ public var aggregatorOrderId: String?
+
+ public var method: String
+
+ public var success: Bool
+
+ public var upiPollUrl: String?
+
+ public var virtualId: String?
+
+ public var deviceId: String?
+
+ public var pollingUrl: String
+
+ public var aggregator: String
+
+ public var merchantOrderId: String
+
+ public var customerId: String?
+
+ public var vpa: String?
+
+ public var currency: String?
+
+ public var timeout: Int?
+
+ public var amount: Int?
+
+ public var bqrImage: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case aggregatorOrderId = "aggregator_order_id"
+
+ case method = "method"
+
+ case success = "success"
+
+ case upiPollUrl = "upi_poll_url"
+
+ case virtualId = "virtual_id"
+
+ case deviceId = "device_id"
+
+ case pollingUrl = "polling_url"
+
+ case aggregator = "aggregator"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case customerId = "customer_id"
+
+ case vpa = "vpa"
+
+ case currency = "currency"
+
+ case timeout = "timeout"
+
+ case amount = "amount"
+
+ case bqrImage = "bqr_image"
+
+ }
+
+ public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
+
+ self.status = status
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.aggregatorOrderId = aggregatorOrderId
+
+ self.method = method
+
+ self.success = success
+
+ self.upiPollUrl = upiPollUrl
+
+ self.virtualId = virtualId
+
+ self.deviceId = deviceId
+
+ self.pollingUrl = pollingUrl
+
+ self.aggregator = aggregator
+
+ self.merchantOrderId = merchantOrderId
+
+ self.customerId = customerId
+
+ self.vpa = vpa
+
+ self.currency = currency
+
+ self.timeout = timeout
+
+ self.amount = amount
+
+ self.bqrImage = bqrImage
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ virtualId = try container.decode(String.self, forKey: .virtualId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ do {
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Int.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bqrImage = try container.decode(String.self, forKey: .bqrImage)
+
+ } 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(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+ try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
+
+
+
+ try? container.encodeIfPresent(virtualId, forKey: .virtualId)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+ try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+ try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentModeRouteDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentModeRouteDetailsPaymentAppModel.swift
deleted file mode 100644
index 0873fad8e9..0000000000
--- a/Sources/code/application/Models/Payment/PaymentModeRouteDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentModeRouteDetails
- Used By: Payment
- */
- class PaymentModeRouteDetails: Codable {
-
- public var paymentOptions: PaymentOptionAndFlow
-
- public var success: Bool
-
- public var paymentBreakup: [String: Any]?
-
- public var advancePayment: [AdvancePaymentObject]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentOptions = "payment_options"
-
- case success = "success"
-
- case paymentBreakup = "payment_breakup"
-
- case advancePayment = "advance_payment"
-
- }
-
- public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
-
- self.paymentOptions = paymentOptions
-
- self.success = success
-
- self.paymentBreakup = paymentBreakup
-
- self.advancePayment = advancePayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
-
- } 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(paymentOptions, forKey: .paymentOptions)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
-
-
-
- try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentModeRouteResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentModeRouteResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..b1da570162
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentModeRouteResponsePaymentAppModel.swift
@@ -0,0 +1,105 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentModeRouteResponse
+ Used By: Payment
+ */
+ class PaymentModeRouteResponse: Codable {
+
+ public var paymentOptions: PaymentOptionAndFlow
+
+ public var success: Bool
+
+ public var paymentBreakup: [String: Any]?
+
+ public var advancePayment: [AdvancePaymentObject]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentOptions = "payment_options"
+
+ case success = "success"
+
+ case paymentBreakup = "payment_breakup"
+
+ case advancePayment = "advance_payment"
+
+ }
+
+ public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
+
+ self.paymentOptions = paymentOptions
+
+ self.success = success
+
+ self.paymentBreakup = paymentBreakup
+
+ self.advancePayment = advancePayment
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
+
+ } 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(paymentOptions, forKey: .paymentOptions)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
+
+
+
+ try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentOrderDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentOrderDetailsPaymentAppModel.swift
deleted file mode 100644
index e82711bab1..0000000000
--- a/Sources/code/application/Models/Payment/PaymentOrderDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentOrderDetails
- Used By: Payment
- */
- class PaymentOrderDetails: Codable {
-
- public var paymentConfirmUrl: String?
-
- public var callbackUrl: String?
-
- public var orderId: String?
-
- public var success: Bool?
-
- public var statusCode: Int
-
- public var data: PaymentOrderData?
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case callbackUrl = "callback_url"
-
- case orderId = "order_id"
-
- case success = "success"
-
- case statusCode = "status_code"
-
- case data = "data"
-
- case message = "message"
-
- }
-
- public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool? = nil) {
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.callbackUrl = callbackUrl
-
- self.orderId = orderId
-
- self.success = success
-
- self.statusCode = statusCode
-
- self.data = data
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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 {
-
- }
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- data = try container.decode(PaymentOrderData.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentOrderPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentOrderPaymentAppModel.swift
deleted file mode 100644
index d98ba9f806..0000000000
--- a/Sources/code/application/Models/Payment/PaymentOrderPaymentAppModel.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentOrder
- Used By: Payment
- */
- class PaymentOrder: Codable {
-
- public var paymentMethods: [PaymentOrderMethods]?
-
- public var orderId: String
-
- public var shipmentId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentMethods = "payment_methods"
-
- case orderId = "order_id"
-
- case shipmentId = "shipment_id"
-
- }
-
- public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
-
- self.paymentMethods = paymentMethods
-
- self.orderId = orderId
-
- self.shipmentId = shipmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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(paymentMethods, forKey: .paymentMethods)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentOrderRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentOrderRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..c24aed1db9
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentOrderRequestPaymentAppModel.swift
@@ -0,0 +1,90 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentOrderRequest
+ Used By: Payment
+ */
+ class PaymentOrderRequest: Codable {
+
+ public var paymentMethods: [PaymentOrderMethods]?
+
+ public var orderId: String
+
+ public var shipmentId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentMethods = "payment_methods"
+
+ case orderId = "order_id"
+
+ case shipmentId = "shipment_id"
+
+ }
+
+ public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
+
+ self.paymentMethods = paymentMethods
+
+ self.orderId = orderId
+
+ self.shipmentId = shipmentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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(paymentMethods, forKey: .paymentMethods)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentOrderResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentOrderResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..a65a508d27
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentOrderResponsePaymentAppModel.swift
@@ -0,0 +1,171 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentOrderResponse
+ Used By: Payment
+ */
+ class PaymentOrderResponse: Codable {
+
+ public var paymentConfirmUrl: String?
+
+ public var callbackUrl: String?
+
+ public var orderId: String?
+
+ public var success: Bool?
+
+ public var statusCode: Int
+
+ public var data: PaymentOrderData?
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ case callbackUrl = "callback_url"
+
+ case orderId = "order_id"
+
+ case success = "success"
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ case message = "message"
+
+ }
+
+ public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool? = nil) {
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ self.callbackUrl = callbackUrl
+
+ self.orderId = orderId
+
+ self.success = success
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } 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 {
+
+ }
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ data = try container.decode(PaymentOrderData.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentStatusUpdateDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentStatusUpdateDetailsPaymentAppModel.swift
deleted file mode 100644
index eed9f4827c..0000000000
--- a/Sources/code/application/Models/Payment/PaymentStatusUpdateDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentStatusUpdateDetails
- Used By: Payment
- */
- class PaymentStatusUpdateDetails: Codable {
-
- public var status: String
-
- public var success: Bool?
-
- public var retry: Bool
-
- public var redirectUrl: String?
-
- public var aggregatorName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case success = "success"
-
- case retry = "retry"
-
- case redirectUrl = "redirect_url"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
-
- self.status = status
-
- self.success = success
-
- self.retry = retry
-
- self.redirectUrl = redirectUrl
-
- self.aggregatorName = aggregatorName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- 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 {
-
- }
-
-
-
- retry = try container.decode(Bool.self, forKey: .retry)
-
-
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(retry, forKey: .retry)
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentStatusUpdatePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentStatusUpdatePaymentAppModel.swift
deleted file mode 100644
index 19c896fbc0..0000000000
--- a/Sources/code/application/Models/Payment/PaymentStatusUpdatePaymentAppModel.swift
+++ /dev/null
@@ -1,326 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PaymentStatusUpdate
- Used By: Payment
- */
- class PaymentStatusUpdate: Codable {
-
- public var status: String
-
- public var merchantTransactionId: String?
-
- public var method: String
-
- public var deviceId: String?
-
- public var aggregator: String
-
- public var customerId: String?
-
- public var contact: String?
-
- public var merchantOrderId: String
-
- public var vpa: String?
-
- public var orderId: String
-
- public var currency: String?
-
- public var amount: Int?
-
- public var email: String?
-
- public var razorpayPaymentId: String?
-
- public var merchantUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case merchantTransactionId = "merchant_transaction_id"
-
- case method = "method"
-
- case deviceId = "device_id"
-
- case aggregator = "aggregator"
-
- case customerId = "customer_id"
-
- case contact = "contact"
-
- case merchantOrderId = "merchant_order_id"
-
- case vpa = "vpa"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case amount = "amount"
-
- case email = "email"
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case merchantUrl = "merchant_url"
-
- }
-
- public init(aggregator: String, amount: Int? = nil, contact: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, email: String? = nil, merchantOrderId: String, merchantTransactionId: String? = nil, merchantUrl: String? = nil, method: String, orderId: String, razorpayPaymentId: String? = nil, status: String, vpa: String? = nil) {
-
- self.status = status
-
- self.merchantTransactionId = merchantTransactionId
-
- self.method = method
-
- self.deviceId = deviceId
-
- self.aggregator = aggregator
-
- self.customerId = customerId
-
- self.contact = contact
-
- self.merchantOrderId = merchantOrderId
-
- self.vpa = vpa
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.amount = amount
-
- self.email = email
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.merchantUrl = merchantUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- customerId = try container.decode(String.self, forKey: .customerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Int.self, forKey: .amount)
-
- } 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 {
-
- }
-
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantUrl = try container.decode(String.self, forKey: .merchantUrl)
-
- } 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(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
- try? container.encodeIfPresent(merchantUrl, forKey: .merchantUrl)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PaymentStatusUpdateRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentStatusUpdateRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..680a074119
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentStatusUpdateRequestPaymentAppModel.swift
@@ -0,0 +1,296 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusUpdateRequest
+ Used By: Payment
+ */
+ class PaymentStatusUpdateRequest: Codable {
+
+ public var status: String?
+
+ public var merchantTransactionId: String?
+
+ public var method: String
+
+ public var deviceId: String?
+
+ public var aggregator: String
+
+ public var customerId: String?
+
+ public var contact: String?
+
+ public var merchantOrderId: String
+
+ public var vpa: String?
+
+ public var orderId: String?
+
+ public var currency: String?
+
+ public var amount: Int?
+
+ public var email: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case merchantTransactionId = "merchant_transaction_id"
+
+ case method = "method"
+
+ case deviceId = "device_id"
+
+ case aggregator = "aggregator"
+
+ case customerId = "customer_id"
+
+ case contact = "contact"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case vpa = "vpa"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case amount = "amount"
+
+ case email = "email"
+
+ }
+
+ public init(aggregator: String, amount: Int? = nil, contact: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, email: String? = nil, merchantOrderId: String, merchantTransactionId: String? = nil, method: String, orderId: String? = nil, status: String? = nil, vpa: String? = nil) {
+
+ self.status = status
+
+ self.merchantTransactionId = merchantTransactionId
+
+ self.method = method
+
+ self.deviceId = deviceId
+
+ self.aggregator = aggregator
+
+ self.customerId = customerId
+
+ self.contact = contact
+
+ self.merchantOrderId = merchantOrderId
+
+ self.vpa = vpa
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.amount = amount
+
+ self.email = email
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Int.self, forKey: .amount)
+
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PaymentStatusUpdateResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PaymentStatusUpdateResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..e46812c8f8
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PaymentStatusUpdateResponsePaymentAppModel.swift
@@ -0,0 +1,120 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusUpdateResponse
+ Used By: Payment
+ */
+ class PaymentStatusUpdateResponse: Codable {
+
+ public var status: String
+
+ public var success: Bool?
+
+ public var retry: Bool
+
+ public var redirectUrl: String?
+
+ public var aggregatorName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case success = "success"
+
+ case retry = "retry"
+
+ case redirectUrl = "redirect_url"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
+
+ self.status = status
+
+ self.success = success
+
+ self.retry = retry
+
+ self.redirectUrl = redirectUrl
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ retry = try container.decode(Bool.self, forKey: .retry)
+
+
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(retry, forKey: .retry)
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/PollingPaymentLinkDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/PollingPaymentLinkDetailsPaymentAppModel.swift
deleted file mode 100644
index 044dc5a123..0000000000
--- a/Sources/code/application/Models/Payment/PollingPaymentLinkDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,251 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: PollingPaymentLinkDetails
- Used By: Payment
- */
- class PollingPaymentLinkDetails: Codable {
-
- public var status: String?
-
- public var statusCode: Int?
-
- public var success: Bool?
-
- public var httpStatus: Int?
-
- public var message: String?
-
- public var orderId: String?
-
- public var redirectUrl: String?
-
- public var paymentLinkId: String?
-
- public var aggregatorName: String?
-
- public var amount: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case statusCode = "status_code"
-
- case success = "success"
-
- case httpStatus = "http_status"
-
- case message = "message"
-
- case orderId = "order_id"
-
- case redirectUrl = "redirect_url"
-
- case paymentLinkId = "payment_link_id"
-
- case aggregatorName = "aggregator_name"
-
- case amount = "amount"
-
- }
-
- public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.statusCode = statusCode
-
- self.success = success
-
- self.httpStatus = httpStatus
-
- self.message = message
-
- self.orderId = orderId
-
- self.redirectUrl = redirectUrl
-
- self.paymentLinkId = paymentLinkId
-
- self.aggregatorName = aggregatorName
-
- self.amount = amount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } 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 {
-
- }
-
-
-
- do {
- httpStatus = try container.decode(Int.self, forKey: .httpStatus)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } 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(status, forKey: .status)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/PollingPaymentLinkResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/PollingPaymentLinkResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..db73931974
--- /dev/null
+++ b/Sources/code/application/Models/Payment/PollingPaymentLinkResponsePaymentAppModel.swift
@@ -0,0 +1,251 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: PollingPaymentLinkResponse
+ Used By: Payment
+ */
+ class PollingPaymentLinkResponse: Codable {
+
+ public var status: String?
+
+ public var statusCode: Int?
+
+ public var success: Bool?
+
+ public var httpStatus: Int?
+
+ public var message: String?
+
+ public var orderId: String?
+
+ public var redirectUrl: String?
+
+ public var paymentLinkId: String?
+
+ public var aggregatorName: String?
+
+ public var amount: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case statusCode = "status_code"
+
+ case success = "success"
+
+ case httpStatus = "http_status"
+
+ case message = "message"
+
+ case orderId = "order_id"
+
+ case redirectUrl = "redirect_url"
+
+ case paymentLinkId = "payment_link_id"
+
+ case aggregatorName = "aggregator_name"
+
+ case amount = "amount"
+
+ }
+
+ public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.statusCode = statusCode
+
+ self.success = success
+
+ self.httpStatus = httpStatus
+
+ self.message = message
+
+ self.orderId = orderId
+
+ self.redirectUrl = redirectUrl
+
+ self.paymentLinkId = paymentLinkId
+
+ self.aggregatorName = aggregatorName
+
+ self.amount = amount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ httpStatus = try container.decode(Int.self, forKey: .httpStatus)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } 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(status, forKey: .status)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/RedirectToAggregatorDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RedirectToAggregatorDetailsPaymentAppModel.swift
deleted file mode 100644
index be68e24d98..0000000000
--- a/Sources/code/application/Models/Payment/RedirectToAggregatorDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RedirectToAggregatorDetails
- Used By: Payment
- */
- class RedirectToAggregatorDetails: Codable {
-
- public var data: RedirectURL
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: RedirectURL, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(RedirectURL.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RedirectToAggregatorResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/RedirectToAggregatorResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..bc2231af16
--- /dev/null
+++ b/Sources/code/application/Models/Payment/RedirectToAggregatorResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: RedirectToAggregatorResponse
+ Used By: Payment
+ */
+ class RedirectToAggregatorResponse: Codable {
+
+ public var data: RedirectURL
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: RedirectURL, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(RedirectURL.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/RedirectURLPaymentAppModel.swift b/Sources/code/application/Models/Payment/RedirectURLPaymentAppModel.swift
index 879aee073d..1c8977c6ae 100644
--- a/Sources/code/application/Models/Payment/RedirectURLPaymentAppModel.swift
+++ b/Sources/code/application/Models/Payment/RedirectURLPaymentAppModel.swift
@@ -10,28 +10,22 @@ public extension ApplicationClient.Payment {
public var status: Bool
- public var redirectUrl: String
-
- public var extra: String?
+ public var signupUrl: String
public enum CodingKeys: String, CodingKey {
case status = "status"
- case redirectUrl = "redirect_url"
-
- case extra = "extra"
+ case signupUrl = "signup_url"
}
- public init(extra: String? = nil, redirectUrl: String, status: Bool) {
+ public init(signupUrl: String, status: Bool) {
self.status = status
- self.redirectUrl = redirectUrl
-
- self.extra = extra
+ self.signupUrl = signupUrl
}
@@ -44,21 +38,9 @@ public extension ApplicationClient.Payment {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
-
+ signupUrl = try container.decode(String.self, forKey: .signupUrl)
- do {
- extra = try container.decode(String.self, forKey: .extra)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
}
@@ -70,11 +52,7 @@ public extension ApplicationClient.Payment {
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
- try? container.encodeIfPresent(extra, forKey: .extra)
+ try? container.encodeIfPresent(signupUrl, forKey: .signupUrl)
}
diff --git a/Sources/code/application/Models/Payment/RefundAccountDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RefundAccountDetailsPaymentAppModel.swift
deleted file mode 100644
index 68c5a7ea3a..0000000000
--- a/Sources/code/application/Models/Payment/RefundAccountDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RefundAccountDetails
- Used By: Payment
- */
- class RefundAccountDetails: Codable {
-
- public var isVerifiedFlag: Bool?
-
- public var data: [String: Any]?
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isVerifiedFlag = "is_verified_flag"
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [String: Any]? = nil, isVerifiedFlag: Bool? = nil, message: String, success: Bool) {
-
- self.isVerifiedFlag = isVerifiedFlag
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RefundAccountResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/RefundAccountResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..c34c06a78e
--- /dev/null
+++ b/Sources/code/application/Models/Payment/RefundAccountResponsePaymentAppModel.swift
@@ -0,0 +1,105 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: RefundAccountResponse
+ Used By: Payment
+ */
+ class RefundAccountResponse: Codable {
+
+ public var isVerifiedFlag: Bool?
+
+ public var data: [String: Any]?
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isVerifiedFlag = "is_verified_flag"
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [String: Any]? = nil, isVerifiedFlag: Bool? = nil, message: String, success: Bool) {
+
+ self.isVerifiedFlag = isVerifiedFlag
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/RefundOptionDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RefundOptionDetailsPaymentAppModel.swift
deleted file mode 100644
index 7be9f81ca2..0000000000
--- a/Sources/code/application/Models/Payment/RefundOptionDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RefundOptionDetails
- Used By: Payment
- */
- class RefundOptionDetails: Codable {
-
- public var offlineRefundOptions: OfflineRefundOptions
-
- public var success: Bool
-
- public var refundOptions: RefundOptions
-
-
- public enum CodingKeys: String, CodingKey {
-
- case offlineRefundOptions = "offline_refund_options"
-
- case success = "success"
-
- case refundOptions = "refund_options"
-
- }
-
- public init(offlineRefundOptions: OfflineRefundOptions, refundOptions: RefundOptions, success: Bool) {
-
- self.offlineRefundOptions = offlineRefundOptions
-
- self.success = success
-
- self.refundOptions = refundOptions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- offlineRefundOptions = try container.decode(OfflineRefundOptions.self, forKey: .offlineRefundOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- refundOptions = try container.decode(RefundOptions.self, forKey: .refundOptions)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(offlineRefundOptions, forKey: .offlineRefundOptions)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(refundOptions, forKey: .refundOptions)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RefundOptionResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/RefundOptionResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..b9677fe6f5
--- /dev/null
+++ b/Sources/code/application/Models/Payment/RefundOptionResponsePaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: RefundOptionResponse
+ Used By: Payment
+ */
+ class RefundOptionResponse: Codable {
+
+ public var offlineRefundOptions: OfflineRefundOptions
+
+ public var success: Bool
+
+ public var refundOptions: RefundOptions
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case offlineRefundOptions = "offline_refund_options"
+
+ case success = "success"
+
+ case refundOptions = "refund_options"
+
+ }
+
+ public init(offlineRefundOptions: OfflineRefundOptions, refundOptions: RefundOptions, success: Bool) {
+
+ self.offlineRefundOptions = offlineRefundOptions
+
+ self.success = success
+
+ self.refundOptions = refundOptions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ offlineRefundOptions = try container.decode(OfflineRefundOptions.self, forKey: .offlineRefundOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ refundOptions = try container.decode(RefundOptions.self, forKey: .refundOptions)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(offlineRefundOptions, forKey: .offlineRefundOptions)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(refundOptions, forKey: .refundOptions)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/RefundTransferModeUpdateDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RefundTransferModeUpdateDetailsPaymentAppModel.swift
deleted file mode 100644
index ed744f8d12..0000000000
--- a/Sources/code/application/Models/Payment/RefundTransferModeUpdateDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RefundTransferModeUpdateDetails
- Used By: Payment
- */
- class RefundTransferModeUpdateDetails: Codable {
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RenderHTMLDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RenderHTMLDetailsPaymentAppModel.swift
deleted file mode 100644
index 8f2ef3504c..0000000000
--- a/Sources/code/application/Models/Payment/RenderHTMLDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RenderHTMLDetails
- Used By: Payment
- */
- class RenderHTMLDetails: Codable {
-
- public var html: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case html = "html"
-
- }
-
- public init(html: String) {
-
- self.html = html
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- html = try container.decode(String.self, forKey: .html)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(html, forKey: .html)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RenderHTMLPaymentAppModel.swift b/Sources/code/application/Models/Payment/RenderHTMLPaymentAppModel.swift
deleted file mode 100644
index f49a035918..0000000000
--- a/Sources/code/application/Models/Payment/RenderHTMLPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RenderHTML
- Used By: Payment
- */
- class RenderHTML: Codable {
-
- public var returntype: String?
-
- public var base64Html: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returntype = "returntype"
-
- case base64Html = "base64_html"
-
- }
-
- public init(base64Html: String, returntype: String? = nil) {
-
- self.returntype = returntype
-
- self.base64Html = base64Html
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- returntype = try container.decode(String.self, forKey: .returntype)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- base64Html = try container.decode(String.self, forKey: .base64Html)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(returntype, forKey: .returntype)
-
-
-
- try? container.encodeIfPresent(base64Html, forKey: .base64Html)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ResendOrCancelPaymentDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendOrCancelPaymentDetailsPaymentAppModel.swift
deleted file mode 100644
index 67cc227c33..0000000000
--- a/Sources/code/application/Models/Payment/ResendOrCancelPaymentDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ResendOrCancelPaymentDetails
- Used By: Payment
- */
- class ResendOrCancelPaymentDetails: Codable {
-
- public var data: LinkStatus
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: LinkStatus, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(LinkStatus.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ResendOrCancelPaymentPaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendOrCancelPaymentPaymentAppModel.swift
deleted file mode 100644
index 7b141d8162..0000000000
--- a/Sources/code/application/Models/Payment/ResendOrCancelPaymentPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ResendOrCancelPayment
- Used By: Payment
- */
- class ResendOrCancelPayment: Codable {
-
- public var orderId: String
-
- public var deviceId: String?
-
- public var requestType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case deviceId = "device_id"
-
- case requestType = "request_type"
-
- }
-
- public init(deviceId: String? = nil, orderId: String, requestType: String) {
-
- self.orderId = orderId
-
- self.deviceId = deviceId
-
- self.requestType = requestType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- requestType = try container.decode(String.self, forKey: .requestType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
- try? container.encodeIfPresent(requestType, forKey: .requestType)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ResendOrCancelPaymentRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendOrCancelPaymentRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..956e1ec6fc
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ResendOrCancelPaymentRequestPaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentRequest
+ Used By: Payment
+ */
+ class ResendOrCancelPaymentRequest: Codable {
+
+ public var orderId: String
+
+ public var deviceId: String?
+
+ public var requestType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case deviceId = "device_id"
+
+ case requestType = "request_type"
+
+ }
+
+ public init(deviceId: String? = nil, orderId: String, requestType: String) {
+
+ self.orderId = orderId
+
+ self.deviceId = deviceId
+
+ self.requestType = requestType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ requestType = try container.decode(String.self, forKey: .requestType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+ try? container.encodeIfPresent(requestType, forKey: .requestType)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ResendOrCancelPaymentResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendOrCancelPaymentResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..8913c07d9a
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ResendOrCancelPaymentResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentResponse
+ Used By: Payment
+ */
+ class ResendOrCancelPaymentResponse: Codable {
+
+ public var data: LinkStatus
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: LinkStatus, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(LinkStatus.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ResendPaymentLinkDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendPaymentLinkDetailsPaymentAppModel.swift
deleted file mode 100644
index 8008924ade..0000000000
--- a/Sources/code/application/Models/Payment/ResendPaymentLinkDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ResendPaymentLinkDetails
- Used By: Payment
- */
- class ResendPaymentLinkDetails: Codable {
-
- public var statusCode: Int
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ResendPaymentLinkResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ResendPaymentLinkResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..b49f63be6c
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ResendPaymentLinkResponsePaymentAppModel.swift
@@ -0,0 +1,98 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ResendPaymentLinkResponse
+ Used By: Payment
+ */
+ class ResendPaymentLinkResponse: Codable {
+
+ public var statusCode: Int
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/RupifiBannerDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/RupifiBannerDetailsPaymentAppModel.swift
deleted file mode 100644
index 48da83b03c..0000000000
--- a/Sources/code/application/Models/Payment/RupifiBannerDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: RupifiBannerDetails
- Used By: Payment
- */
- class RupifiBannerDetails: Codable {
-
- public var data: RupifiBannerData
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: RupifiBannerData, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(RupifiBannerData.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/RupifiBannerResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/RupifiBannerResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..4cf5bfcd7f
--- /dev/null
+++ b/Sources/code/application/Models/Payment/RupifiBannerResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: RupifiBannerResponse
+ Used By: Payment
+ */
+ class RupifiBannerResponse: Codable {
+
+ public var data: RupifiBannerData
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: RupifiBannerData, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(RupifiBannerData.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/SelectedRefundOptionDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/SelectedRefundOptionDetailsPaymentAppModel.swift
deleted file mode 100644
index f0eaae55a9..0000000000
--- a/Sources/code/application/Models/Payment/SelectedRefundOptionDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: SelectedRefundOptionDetails
- Used By: Payment
- */
- class SelectedRefundOptionDetails: Codable {
-
- public var transferMode: [String: Any]
-
- public var shipmentId: String
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case transferMode = "transfer_mode"
-
- case shipmentId = "shipment_id"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, shipmentId: String, success: Bool, transferMode: [String: Any]) {
-
- self.transferMode = transferMode
-
- self.shipmentId = shipmentId
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- transferMode = try container.decode([String: Any].self, forKey: .transferMode)
-
-
-
-
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(transferMode, forKey: .transferMode)
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/SelectedRefundOptionResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/SelectedRefundOptionResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..f75d0c30da
--- /dev/null
+++ b/Sources/code/application/Models/Payment/SelectedRefundOptionResponsePaymentAppModel.swift
@@ -0,0 +1,91 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: SelectedRefundOptionResponse
+ Used By: Payment
+ */
+ class SelectedRefundOptionResponse: Codable {
+
+ public var transferMode: [String: Any]
+
+ public var shipmentId: String
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case transferMode = "transfer_mode"
+
+ case shipmentId = "shipment_id"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, shipmentId: String, success: Bool, transferMode: [String: Any]) {
+
+ self.transferMode = transferMode
+
+ self.shipmentId = shipmentId
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ transferMode = try container.decode([String: Any].self, forKey: .transferMode)
+
+
+
+
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(transferMode, forKey: .transferMode)
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryDetailsPaymentAppModel.swift
deleted file mode 100644
index 35d6c2d778..0000000000
--- a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: SetDefaultBeneficiaryDetails
- Used By: Payment
- */
- class SetDefaultBeneficiaryDetails: Codable {
-
- public var isBeneficiarySet: Bool
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isBeneficiarySet = "is_beneficiary_set"
-
- case success = "success"
-
- }
-
- public init(isBeneficiarySet: Bool, success: Bool? = nil) {
-
- self.isBeneficiarySet = isBeneficiarySet
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isBeneficiarySet = try container.decode(Bool.self, forKey: .isBeneficiarySet)
-
-
-
-
- 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(isBeneficiarySet, forKey: .isBeneficiarySet)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryPaymentAppModel.swift b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryPaymentAppModel.swift
deleted file mode 100644
index 5db468799c..0000000000
--- a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: SetDefaultBeneficiary
- Used By: Payment
- */
- class SetDefaultBeneficiary: Codable {
-
- public var orderId: String
-
- public var beneficiaryId: String
-
- public var shipmentId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case beneficiaryId = "beneficiary_id"
-
- case shipmentId = "shipment_id"
-
- }
-
- public init(beneficiaryId: String, orderId: String, shipmentId: String? = nil) {
-
- self.orderId = orderId
-
- self.beneficiaryId = beneficiaryId
-
- self.shipmentId = shipmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- beneficiaryId = try container.decode(String.self, forKey: .beneficiaryId)
-
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(beneficiaryId, forKey: .beneficiaryId)
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..ee738d8151
--- /dev/null
+++ b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryRequestPaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: SetDefaultBeneficiaryRequest
+ Used By: Payment
+ */
+ class SetDefaultBeneficiaryRequest: Codable {
+
+ public var orderId: String
+
+ public var beneficiaryId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case beneficiaryId = "beneficiary_id"
+
+ }
+
+ public init(beneficiaryId: String, orderId: String) {
+
+ self.orderId = orderId
+
+ self.beneficiaryId = beneficiaryId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ beneficiaryId = try container.decode(String.self, forKey: .beneficiaryId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(beneficiaryId, forKey: .beneficiaryId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/SetDefaultBeneficiaryResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..31227f8f52
--- /dev/null
+++ b/Sources/code/application/Models/Payment/SetDefaultBeneficiaryResponsePaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: SetDefaultBeneficiaryResponse
+ Used By: Payment
+ */
+ class SetDefaultBeneficiaryResponse: Codable {
+
+ public var isBeneficiarySet: Bool
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isBeneficiarySet = "is_beneficiary_set"
+
+ case success = "success"
+
+ }
+
+ public init(isBeneficiarySet: Bool, success: Bool? = nil) {
+
+ self.isBeneficiarySet = isBeneficiarySet
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isBeneficiarySet = try container.decode(Bool.self, forKey: .isBeneficiarySet)
+
+
+
+
+ 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(isBeneficiarySet, forKey: .isBeneficiarySet)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ShipmentRefundDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ShipmentRefundDetailsPaymentAppModel.swift
deleted file mode 100644
index 835b0de362..0000000000
--- a/Sources/code/application/Models/Payment/ShipmentRefundDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ShipmentRefundDetails
- Used By: Payment
- */
- class ShipmentRefundDetails: Codable {
-
- public var data: ShipmentRefundDetail
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: ShipmentRefundDetail, message: String, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(ShipmentRefundDetail.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ShipmentRefundPaymentAppModel.swift b/Sources/code/application/Models/Payment/ShipmentRefundPaymentAppModel.swift
deleted file mode 100644
index 6a1c2ee5cf..0000000000
--- a/Sources/code/application/Models/Payment/ShipmentRefundPaymentAppModel.swift
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ShipmentRefund
- Used By: Payment
- */
- class ShipmentRefund: Codable {
-
- public var shipmentId: String
-
- public var orderId: String
-
- public var transferMode: String
-
- public var beneficiaryId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case orderId = "order_id"
-
- case transferMode = "transfer_mode"
-
- case beneficiaryId = "beneficiary_id"
-
- }
-
- public init(beneficiaryId: String? = nil, orderId: String, shipmentId: String, transferMode: String) {
-
- self.shipmentId = shipmentId
-
- self.orderId = orderId
-
- self.transferMode = transferMode
-
- self.beneficiaryId = beneficiaryId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- transferMode = try container.decode(String.self, forKey: .transferMode)
-
-
-
-
- do {
- beneficiaryId = try container.decode(String.self, forKey: .beneficiaryId)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
- try? container.encodeIfPresent(transferMode, forKey: .transferMode)
-
-
-
- try? container.encodeIfPresent(beneficiaryId, forKey: .beneficiaryId)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ShipmentRefundRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ShipmentRefundRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..28bd85da37
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ShipmentRefundRequestPaymentAppModel.swift
@@ -0,0 +1,98 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ShipmentRefundRequest
+ Used By: Payment
+ */
+ class ShipmentRefundRequest: Codable {
+
+ public var shipmentId: String
+
+ public var orderId: String
+
+ public var transferMode: String
+
+ public var beneficiaryId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipmentId = "shipment_id"
+
+ case orderId = "order_id"
+
+ case transferMode = "transfer_mode"
+
+ case beneficiaryId = "beneficiary_id"
+
+ }
+
+ public init(beneficiaryId: String? = nil, orderId: String, shipmentId: String, transferMode: String) {
+
+ self.shipmentId = shipmentId
+
+ self.orderId = orderId
+
+ self.transferMode = transferMode
+
+ self.beneficiaryId = beneficiaryId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ transferMode = try container.decode(String.self, forKey: .transferMode)
+
+
+
+
+ do {
+ beneficiaryId = try container.decode(String.self, forKey: .beneficiaryId)
+
+ } 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(shipmentId, forKey: .shipmentId)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+ try? container.encodeIfPresent(transferMode, forKey: .transferMode)
+
+
+
+ try? container.encodeIfPresent(beneficiaryId, forKey: .beneficiaryId)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ShipmentRefundResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ShipmentRefundResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..b4fa2f7a7b
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ShipmentRefundResponsePaymentAppModel.swift
@@ -0,0 +1,76 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ShipmentRefundResponse
+ Used By: Payment
+ */
+ class ShipmentRefundResponse: Codable {
+
+ public var data: ShipmentRefundDetail
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: ShipmentRefundDetail, message: String, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(ShipmentRefundDetail.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/TransferModeDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/TransferModeDetailsPaymentAppModel.swift
index b2613dca09..2e8bb1d043 100644
--- a/Sources/code/application/Models/Payment/TransferModeDetailsPaymentAppModel.swift
+++ b/Sources/code/application/Models/Payment/TransferModeDetailsPaymentAppModel.swift
@@ -8,7 +8,7 @@ public extension ApplicationClient.Payment {
*/
class TransferModeDetails: Codable {
- public var items: [TransferItemsDetails]
+ public var items: [TransferItemsDetails]?
public var displayName: String
@@ -21,7 +21,7 @@ public extension ApplicationClient.Payment {
}
- public init(displayName: String, items: [TransferItemsDetails]) {
+ public init(displayName: String, items: [TransferItemsDetails]? = nil) {
self.items = items
@@ -33,8 +33,15 @@ public extension ApplicationClient.Payment {
let container = try decoder.container(keyedBy: CodingKeys.self)
- items = try container.decode([TransferItemsDetails].self, forKey: .items)
+ do {
+ items = try container.decode([TransferItemsDetails].self, forKey: .items)
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
diff --git a/Sources/code/application/Models/Payment/TransferModeFetchDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/TransferModeFetchDetailsPaymentAppModel.swift
deleted file mode 100644
index 67d948a36f..0000000000
--- a/Sources/code/application/Models/Payment/TransferModeFetchDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: TransferModeFetchDetails
- Used By: Payment
- */
- class TransferModeFetchDetails: Codable {
-
- public var data: [TransferModeDetails]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [TransferModeDetails]) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([TransferModeDetails].self, forKey: .data)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/TransferModeResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/TransferModeResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..e243ea137f
--- /dev/null
+++ b/Sources/code/application/Models/Payment/TransferModeResponsePaymentAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: TransferModeResponse
+ Used By: Payment
+ */
+ class TransferModeResponse: Codable {
+
+ public var data: [TransferModeDetails]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [TransferModeDetails]) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([TransferModeDetails].self, forKey: .data)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/UpdateRefundTransferModePaymentAppModel.swift b/Sources/code/application/Models/Payment/UpdateRefundTransferModePaymentAppModel.swift
deleted file mode 100644
index 6bbeb6c502..0000000000
--- a/Sources/code/application/Models/Payment/UpdateRefundTransferModePaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: UpdateRefundTransferMode
- Used By: Payment
- */
- class UpdateRefundTransferMode: Codable {
-
- public var enable: Bool
-
- public var transferMode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enable = "enable"
-
- case transferMode = "transfer_mode"
-
- }
-
- public init(enable: Bool, transferMode: String) {
-
- self.enable = enable
-
- self.transferMode = transferMode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- enable = try container.decode(Bool.self, forKey: .enable)
-
-
-
-
- transferMode = try container.decode(String.self, forKey: .transferMode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(enable, forKey: .enable)
-
-
-
- try? container.encodeIfPresent(transferMode, forKey: .transferMode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/UpdateRefundTransferModeRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/UpdateRefundTransferModeRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..00dd3b0d6b
--- /dev/null
+++ b/Sources/code/application/Models/Payment/UpdateRefundTransferModeRequestPaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: UpdateRefundTransferModeRequest
+ Used By: Payment
+ */
+ class UpdateRefundTransferModeRequest: Codable {
+
+ public var enable: Bool
+
+ public var transferMode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enable = "enable"
+
+ case transferMode = "transfer_mode"
+
+ }
+
+ public init(enable: Bool, transferMode: String) {
+
+ self.enable = enable
+
+ self.transferMode = transferMode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ enable = try container.decode(Bool.self, forKey: .enable)
+
+
+
+
+ transferMode = try container.decode(String.self, forKey: .transferMode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(enable, forKey: .enable)
+
+
+
+ try? container.encodeIfPresent(transferMode, forKey: .transferMode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/UpdateRefundTransferModeResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/UpdateRefundTransferModeResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..bc21fdc967
--- /dev/null
+++ b/Sources/code/application/Models/Payment/UpdateRefundTransferModeResponsePaymentAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: UpdateRefundTransferModeResponse
+ Used By: Payment
+ */
+ class UpdateRefundTransferModeResponse: Codable {
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateCustomerDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateCustomerDetailsPaymentAppModel.swift
deleted file mode 100644
index d4511b705b..0000000000
--- a/Sources/code/application/Models/Payment/ValidateCustomerDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateCustomerDetails
- Used By: Payment
- */
- class ValidateCustomerDetails: Codable {
-
- public var data: [String: Any]?
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(data: [String: Any]? = nil, message: String, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateCustomerPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateCustomerPaymentAppModel.swift
deleted file mode 100644
index 265cfdc3e7..0000000000
--- a/Sources/code/application/Models/Payment/ValidateCustomerPaymentAppModel.swift
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateCustomer
- Used By: Payment
- */
- class ValidateCustomer: Codable {
-
- public var aggregator: String
-
- public var transactionAmountInPaise: Int
-
- public var phoneNumber: String
-
- public var billingAddress: [String: Any]?
-
- public var orderItems: [[String: Any]]?
-
- public var payload: String?
-
- public var merchantParams: [String: Any]?
-
- public var deliveryAddress: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregator = "aggregator"
-
- case transactionAmountInPaise = "transaction_amount_in_paise"
-
- case phoneNumber = "phone_number"
-
- case billingAddress = "billing_address"
-
- case orderItems = "order_items"
-
- case payload = "payload"
-
- case merchantParams = "merchant_params"
-
- case deliveryAddress = "delivery_address"
-
- }
-
- public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
-
- self.aggregator = aggregator
-
- self.transactionAmountInPaise = transactionAmountInPaise
-
- self.phoneNumber = phoneNumber
-
- self.billingAddress = billingAddress
-
- self.orderItems = orderItems
-
- self.payload = payload
-
- self.merchantParams = merchantParams
-
- self.deliveryAddress = deliveryAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
-
-
-
-
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payload = try container.decode(String.self, forKey: .payload)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } 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(aggregator, forKey: .aggregator)
-
-
-
- try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
-
-
-
- try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
- try? container.encodeIfPresent(orderItems, forKey: .orderItems)
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
- try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateCustomerRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateCustomerRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..a97438d6ef
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateCustomerRequestPaymentAppModel.swift
@@ -0,0 +1,186 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateCustomerRequest
+ Used By: Payment
+ */
+ class ValidateCustomerRequest: Codable {
+
+ public var aggregator: String
+
+ public var transactionAmountInPaise: Int
+
+ public var phoneNumber: String
+
+ public var billingAddress: [String: Any]?
+
+ public var orderItems: [[String: Any]]?
+
+ public var payload: String?
+
+ public var merchantParams: [String: Any]?
+
+ public var deliveryAddress: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregator = "aggregator"
+
+ case transactionAmountInPaise = "transaction_amount_in_paise"
+
+ case phoneNumber = "phone_number"
+
+ case billingAddress = "billing_address"
+
+ case orderItems = "order_items"
+
+ case payload = "payload"
+
+ case merchantParams = "merchant_params"
+
+ case deliveryAddress = "delivery_address"
+
+ }
+
+ public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
+
+ self.aggregator = aggregator
+
+ self.transactionAmountInPaise = transactionAmountInPaise
+
+ self.phoneNumber = phoneNumber
+
+ self.billingAddress = billingAddress
+
+ self.orderItems = orderItems
+
+ self.payload = payload
+
+ self.merchantParams = merchantParams
+
+ self.deliveryAddress = deliveryAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
+
+
+
+
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+
+
+
+ do {
+ billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ payload = try container.decode(String.self, forKey: .payload)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
+
+ } 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(aggregator, forKey: .aggregator)
+
+
+
+ try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
+
+
+
+ try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
+
+
+
+ try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
+
+
+
+ try? container.encodeIfPresent(orderItems, forKey: .orderItems)
+
+
+
+ try? container.encodeIfPresent(payload, forKey: .payload)
+
+
+
+ try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
+
+
+
+ try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateCustomerResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateCustomerResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..91d7d72dfd
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateCustomerResponsePaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateCustomerResponse
+ Used By: Payment
+ */
+ class ValidateCustomerResponse: Codable {
+
+ public var data: [String: Any]?
+
+ public var success: Bool
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateVPADetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateVPADetailsPaymentAppModel.swift
deleted file mode 100644
index d87a331bed..0000000000
--- a/Sources/code/application/Models/Payment/ValidateVPADetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateVPADetails
- Used By: Payment
- */
- class ValidateVPADetails: Codable {
-
- public var data: ValidateUPI
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ValidateUPI, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(ValidateUPI.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateVPAPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateVPAPaymentAppModel.swift
deleted file mode 100644
index 5be2ea0b46..0000000000
--- a/Sources/code/application/Models/Payment/ValidateVPAPaymentAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateVPA
- Used By: Payment
- */
- class ValidateVPA: Codable {
-
- public var upiVpa: String
-
- public var aggregator: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case upiVpa = "upi_vpa"
-
- case aggregator = "aggregator"
-
- }
-
- public init(aggregator: String? = nil, upiVpa: String) {
-
- self.upiVpa = upiVpa
-
- self.aggregator = aggregator
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- upiVpa = try container.decode(String.self, forKey: .upiVpa)
-
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } 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(upiVpa, forKey: .upiVpa)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateVPARequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateVPARequestPaymentAppModel.swift
new file mode 100644
index 0000000000..e80791c4a0
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateVPARequestPaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateVPARequest
+ Used By: Payment
+ */
+ class ValidateVPARequest: Codable {
+
+ public var upiVpa: String
+
+ public var aggregator: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case upiVpa = "upi_vpa"
+
+ case aggregator = "aggregator"
+
+ }
+
+ public init(aggregator: String? = nil, upiVpa: String) {
+
+ self.upiVpa = upiVpa
+
+ self.aggregator = aggregator
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ upiVpa = try container.decode(String.self, forKey: .upiVpa)
+
+
+
+
+ do {
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+ } 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(upiVpa, forKey: .upiVpa)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateVPAResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateVPAResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..fbcd82ec5f
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateVPAResponsePaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateVPAResponse
+ Used By: Payment
+ */
+ class ValidateVPAResponse: Codable {
+
+ public var data: ValidateUPI
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ValidateUPI, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(ValidateUPI.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateValidateAddressDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateValidateAddressDetailsPaymentAppModel.swift
deleted file mode 100644
index c0f745917f..0000000000
--- a/Sources/code/application/Models/Payment/ValidateValidateAddressDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateValidateAddressDetails
- Used By: Payment
- */
- class ValidateValidateAddressDetails: Codable {
-
- public var upi: VPADetails?
-
- public var success: Bool
-
- public var ifsc: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case upi = "upi"
-
- case success = "success"
-
- case ifsc = "ifsc"
-
- }
-
- public init(ifsc: [String: Any]? = nil, success: Bool, upi: VPADetails? = nil) {
-
- self.upi = upi
-
- self.success = success
-
- self.ifsc = ifsc
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- upi = try container.decode(VPADetails.self, forKey: .upi)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- ifsc = try container.decode([String: Any].self, forKey: .ifsc)
-
- } 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(upi, forKey: .upi)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(ifsc, forKey: .ifsc)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateValidateAddressPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateValidateAddressPaymentAppModel.swift
deleted file mode 100644
index 33046d9715..0000000000
--- a/Sources/code/application/Models/Payment/ValidateValidateAddressPaymentAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: ValidateValidateAddress
- Used By: Payment
- */
- class ValidateValidateAddress: Codable {
-
- public var ifscCode: String?
-
- public var upiVpa: String?
-
- public var aggregator: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case ifscCode = "ifsc_code"
-
- case upiVpa = "upi_vpa"
-
- case aggregator = "aggregator"
-
- }
-
- public init(aggregator: String? = nil, ifscCode: String? = nil, upiVpa: String? = nil) {
-
- self.ifscCode = ifscCode
-
- self.upiVpa = upiVpa
-
- self.aggregator = aggregator
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- ifscCode = try container.decode(String.self, forKey: .ifscCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upiVpa = try container.decode(String.self, forKey: .upiVpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } 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(ifscCode, forKey: .ifscCode)
-
-
-
- try? container.encodeIfPresent(upiVpa, forKey: .upiVpa)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/ValidateValidateAddressRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateValidateAddressRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..63446763a7
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateValidateAddressRequestPaymentAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateValidateAddressRequest
+ Used By: Payment
+ */
+ class ValidateValidateAddressRequest: Codable {
+
+ public var ifscCode: String?
+
+ public var upiVpa: String?
+
+ public var aggregator: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case ifscCode = "ifsc_code"
+
+ case upiVpa = "upi_vpa"
+
+ case aggregator = "aggregator"
+
+ }
+
+ public init(aggregator: String? = nil, ifscCode: String? = nil, upiVpa: String? = nil) {
+
+ self.ifscCode = ifscCode
+
+ self.upiVpa = upiVpa
+
+ self.aggregator = aggregator
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ ifscCode = try container.decode(String.self, forKey: .ifscCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ upiVpa = try container.decode(String.self, forKey: .upiVpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+ } 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(ifscCode, forKey: .ifscCode)
+
+
+
+ try? container.encodeIfPresent(upiVpa, forKey: .upiVpa)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/ValidateValidateAddressResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/ValidateValidateAddressResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..acd0fea8fa
--- /dev/null
+++ b/Sources/code/application/Models/Payment/ValidateValidateAddressResponsePaymentAppModel.swift
@@ -0,0 +1,90 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: ValidateValidateAddressResponse
+ Used By: Payment
+ */
+ class ValidateValidateAddressResponse: Codable {
+
+ public var upi: VPADetails?
+
+ public var success: Bool
+
+ public var ifsc: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case upi = "upi"
+
+ case success = "success"
+
+ case ifsc = "ifsc"
+
+ }
+
+ public init(ifsc: [String: Any]? = nil, success: Bool, upi: VPADetails? = nil) {
+
+ self.upi = upi
+
+ self.success = success
+
+ self.ifsc = ifsc
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ upi = try container.decode(VPADetails.self, forKey: .upi)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ ifsc = try container.decode([String: Any].self, forKey: .ifsc)
+
+ } 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(upi, forKey: .upi)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(ifsc, forKey: .ifsc)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/WalletOtpDetailsPaymentAppModel.swift b/Sources/code/application/Models/Payment/WalletOtpDetailsPaymentAppModel.swift
deleted file mode 100644
index ad0cdf3400..0000000000
--- a/Sources/code/application/Models/Payment/WalletOtpDetailsPaymentAppModel.swift
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: WalletOtpDetails
- Used By: Payment
- */
- class WalletOtpDetails: Codable {
-
- public var requestId: String
-
- public var isVerifiedFlag: String
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case requestId = "request_id"
-
- case isVerifiedFlag = "is_verified_flag"
-
- case success = "success"
-
- }
-
- public init(isVerifiedFlag: String, requestId: String, success: Bool? = nil) {
-
- self.requestId = requestId
-
- self.isVerifiedFlag = isVerifiedFlag
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- requestId = try container.decode(String.self, forKey: .requestId)
-
-
-
-
- isVerifiedFlag = try container.decode(String.self, forKey: .isVerifiedFlag)
-
-
-
-
- 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(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/WalletOtpPaymentAppModel.swift b/Sources/code/application/Models/Payment/WalletOtpPaymentAppModel.swift
deleted file mode 100644
index 41df99f1e4..0000000000
--- a/Sources/code/application/Models/Payment/WalletOtpPaymentAppModel.swift
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Payment {
- /*
- Model: WalletOtp
- Used By: Payment
- */
- class WalletOtp: Codable {
-
- public var countryCode: String
-
- public var mobile: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case countryCode = "country_code"
-
- case mobile = "mobile"
-
- }
-
- public init(countryCode: String, mobile: String) {
-
- self.countryCode = countryCode
-
- self.mobile = mobile
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- mobile = try container.decode(String.self, forKey: .mobile)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Payment/WalletOtpRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/WalletOtpRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..8877276fb7
--- /dev/null
+++ b/Sources/code/application/Models/Payment/WalletOtpRequestPaymentAppModel.swift
@@ -0,0 +1,61 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: WalletOtpRequest
+ Used By: Payment
+ */
+ class WalletOtpRequest: Codable {
+
+ public var countryCode: String
+
+ public var mobile: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case countryCode = "country_code"
+
+ case mobile = "mobile"
+
+ }
+
+ public init(countryCode: String, mobile: String) {
+
+ self.countryCode = countryCode
+
+ self.mobile = mobile
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ countryCode = try container.decode(String.self, forKey: .countryCode)
+
+
+
+
+ mobile = try container.decode(String.self, forKey: .mobile)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+ try? container.encodeIfPresent(mobile, forKey: .mobile)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/WalletOtpResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/WalletOtpResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..b3d66f3f9e
--- /dev/null
+++ b/Sources/code/application/Models/Payment/WalletOtpResponsePaymentAppModel.swift
@@ -0,0 +1,83 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: WalletOtpResponse
+ Used By: Payment
+ */
+ class WalletOtpResponse: Codable {
+
+ public var requestId: String
+
+ public var isVerifiedFlag: String
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case requestId = "request_id"
+
+ case isVerifiedFlag = "is_verified_flag"
+
+ case success = "success"
+
+ }
+
+ public init(isVerifiedFlag: String, requestId: String, success: Bool? = nil) {
+
+ self.requestId = requestId
+
+ self.isVerifiedFlag = isVerifiedFlag
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+
+
+
+ isVerifiedFlag = try container.decode(String.self, forKey: .isVerifiedFlag)
+
+
+
+
+ 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(requestId, forKey: .requestId)
+
+
+
+ try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/renderHTMLRequestPaymentAppModel.swift b/Sources/code/application/Models/Payment/renderHTMLRequestPaymentAppModel.swift
new file mode 100644
index 0000000000..7a19a1608c
--- /dev/null
+++ b/Sources/code/application/Models/Payment/renderHTMLRequestPaymentAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: renderHTMLRequest
+ Used By: Payment
+ */
+ class renderHTMLRequest: Codable {
+
+ public var returntype: String?
+
+ public var base64Html: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returntype = "returntype"
+
+ case base64Html = "base64_html"
+
+ }
+
+ public init(base64Html: String, returntype: String? = nil) {
+
+ self.returntype = returntype
+
+ self.base64Html = base64Html
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ returntype = try container.decode(String.self, forKey: .returntype)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ base64Html = try container.decode(String.self, forKey: .base64Html)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(returntype, forKey: .returntype)
+
+
+
+ try? container.encodeIfPresent(base64Html, forKey: .base64Html)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Payment/renderHTMLResponsePaymentAppModel.swift b/Sources/code/application/Models/Payment/renderHTMLResponsePaymentAppModel.swift
new file mode 100644
index 0000000000..61e87c4a78
--- /dev/null
+++ b/Sources/code/application/Models/Payment/renderHTMLResponsePaymentAppModel.swift
@@ -0,0 +1,46 @@
+
+
+import Foundation
+public extension ApplicationClient.Payment {
+ /*
+ Model: renderHTMLResponse
+ Used By: Payment
+ */
+ class renderHTMLResponse: Codable {
+
+ public var html: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case html = "html"
+
+ }
+
+ public init(html: String) {
+
+ self.html = html
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ html = try container.decode(String.self, forKey: .html)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(html, forKey: .html)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/CatalogueOrderCreationRewardsAppModel.swift b/Sources/code/application/Models/Rewards/CatalogueOrderCreationRewardsAppModel.swift
deleted file mode 100644
index 20c95373df..0000000000
--- a/Sources/code/application/Models/Rewards/CatalogueOrderCreationRewardsAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: CatalogueOrderCreation
- Used By: Rewards
- */
- class CatalogueOrderCreation: Codable {
-
- public var articles: [RewardsArticle]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articles = "articles"
-
- }
-
- public init(articles: [RewardsArticle]? = nil) {
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articles = try container.decode([RewardsArticle].self, forKey: .articles)
-
- } 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(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/CatalogueOrderDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/CatalogueOrderDetailsRewardsAppModel.swift
deleted file mode 100644
index b7c57dcf25..0000000000
--- a/Sources/code/application/Models/Rewards/CatalogueOrderDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: CatalogueOrderDetails
- Used By: Rewards
- */
- class CatalogueOrderDetails: Codable {
-
- public var articles: [RewardsArticle]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articles = "articles"
-
- }
-
- public init(articles: [RewardsArticle]? = nil) {
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articles = try container.decode([RewardsArticle].self, forKey: .articles)
-
- } 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(articles, forKey: .articles)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/CatalogueOrderRequestRewardsAppModel.swift b/Sources/code/application/Models/Rewards/CatalogueOrderRequestRewardsAppModel.swift
new file mode 100644
index 0000000000..2b50ddaa1b
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/CatalogueOrderRequestRewardsAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: CatalogueOrderRequest
+ Used By: Rewards
+ */
+ class CatalogueOrderRequest: Codable {
+
+ public var articles: [RewardsArticle]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [RewardsArticle]? = nil) {
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ articles = try container.decode([RewardsArticle].self, forKey: .articles)
+
+ } 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(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/CatalogueOrderResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/CatalogueOrderResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..1d1071a123
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/CatalogueOrderResponseRewardsAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: CatalogueOrderResponse
+ Used By: Rewards
+ */
+ class CatalogueOrderResponse: Codable {
+
+ public var articles: [RewardsArticle]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [RewardsArticle]? = nil) {
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ articles = try container.decode([RewardsArticle].self, forKey: .articles)
+
+ } 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(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/OrderDiscountDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/OrderDiscountDetailsRewardsAppModel.swift
deleted file mode 100644
index d36dd062de..0000000000
--- a/Sources/code/application/Models/Rewards/OrderDiscountDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: OrderDiscountDetails
- Used By: Rewards
- */
- class OrderDiscountDetails: Codable {
-
- public var orderAmount: Double?
-
- public var points: Double?
-
- public var discount: DiscountProperties?
-
- public var baseDiscount: DiscountProperties?
-
- public var appliedRuleBucket: OrderDiscountRuleBucket?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderAmount = "order_amount"
-
- case points = "points"
-
- case discount = "discount"
-
- case baseDiscount = "base_discount"
-
- case appliedRuleBucket = "applied_rule_bucket"
-
- }
-
- public init(appliedRuleBucket: OrderDiscountRuleBucket? = nil, baseDiscount: DiscountProperties? = nil, discount: DiscountProperties? = nil, orderAmount: Double? = nil, points: Double? = nil) {
-
- self.orderAmount = orderAmount
-
- self.points = points
-
- self.discount = discount
-
- self.baseDiscount = baseDiscount
-
- self.appliedRuleBucket = appliedRuleBucket
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- orderAmount = try container.decode(Double.self, forKey: .orderAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- points = try container.decode(Double.self, forKey: .points)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discount = try container.decode(DiscountProperties.self, forKey: .discount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- baseDiscount = try container.decode(DiscountProperties.self, forKey: .baseDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appliedRuleBucket = try container.decode(OrderDiscountRuleBucket.self, forKey: .appliedRuleBucket)
-
- } 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(orderAmount, forKey: .orderAmount)
-
-
-
- try? container.encodeIfPresent(points, forKey: .points)
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
- try? container.encodeIfPresent(baseDiscount, forKey: .baseDiscount)
-
-
-
- try? container.encodeIfPresent(appliedRuleBucket, forKey: .appliedRuleBucket)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/OrderDiscountRequestRewardsAppModel.swift b/Sources/code/application/Models/Rewards/OrderDiscountRequestRewardsAppModel.swift
new file mode 100644
index 0000000000..83d4704423
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/OrderDiscountRequestRewardsAppModel.swift
@@ -0,0 +1,68 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: OrderDiscountRequest
+ Used By: Rewards
+ */
+ class OrderDiscountRequest: Codable {
+
+ public var orderAmount: Double
+
+ public var currency: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderAmount = "order_amount"
+
+ case currency = "currency"
+
+ }
+
+ public init(currency: String? = nil, orderAmount: Double) {
+
+ self.orderAmount = orderAmount
+
+ self.currency = currency
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderAmount = try container.decode(Double.self, forKey: .orderAmount)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(orderAmount, forKey: .orderAmount)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/OrderDiscountResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/OrderDiscountResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..d53d173c70
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/OrderDiscountResponseRewardsAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: OrderDiscountResponse
+ Used By: Rewards
+ */
+ class OrderDiscountResponse: Codable {
+
+ public var orderAmount: Double?
+
+ public var points: Double?
+
+ public var discount: DiscountProperties?
+
+ public var baseDiscount: DiscountProperties?
+
+ public var appliedRuleBucket: OrderDiscountRuleBucket?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderAmount = "order_amount"
+
+ case points = "points"
+
+ case discount = "discount"
+
+ case baseDiscount = "base_discount"
+
+ case appliedRuleBucket = "applied_rule_bucket"
+
+ }
+
+ public init(appliedRuleBucket: OrderDiscountRuleBucket? = nil, baseDiscount: DiscountProperties? = nil, discount: DiscountProperties? = nil, orderAmount: Double? = nil, points: Double? = nil) {
+
+ self.orderAmount = orderAmount
+
+ self.points = points
+
+ self.discount = discount
+
+ self.baseDiscount = baseDiscount
+
+ self.appliedRuleBucket = appliedRuleBucket
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ orderAmount = try container.decode(Double.self, forKey: .orderAmount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ points = try container.decode(Double.self, forKey: .points)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ discount = try container.decode(DiscountProperties.self, forKey: .discount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ baseDiscount = try container.decode(DiscountProperties.self, forKey: .baseDiscount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appliedRuleBucket = try container.decode(OrderDiscountRuleBucket.self, forKey: .appliedRuleBucket)
+
+ } 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(orderAmount, forKey: .orderAmount)
+
+
+
+ try? container.encodeIfPresent(points, forKey: .points)
+
+
+
+ try? container.encodeIfPresent(discount, forKey: .discount)
+
+
+
+ try? container.encodeIfPresent(baseDiscount, forKey: .baseDiscount)
+
+
+
+ try? container.encodeIfPresent(appliedRuleBucket, forKey: .appliedRuleBucket)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/PointsDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/PointsDetailsRewardsAppModel.swift
deleted file mode 100644
index 5ebbe3e6c4..0000000000
--- a/Sources/code/application/Models/Rewards/PointsDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: PointsDetails
- Used By: Rewards
- */
- class PointsDetails: Codable {
-
- public var points: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case points = "points"
-
- }
-
- public init(points: Double? = nil) {
-
- self.points = points
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- points = try container.decode(Double.self, forKey: .points)
-
- } 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(points, forKey: .points)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/PointsHistoryDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/PointsHistoryDetailsRewardsAppModel.swift
deleted file mode 100644
index 352c78b66b..0000000000
--- a/Sources/code/application/Models/Rewards/PointsHistoryDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: PointsHistoryDetails
- Used By: Rewards
- */
- class PointsHistoryDetails: Codable {
-
- public var items: [PointsHistory]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PointsHistory]? = nil, page: Page? = nil) {
-
- 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([PointsHistory].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)
-
- } 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)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/PointsHistoryResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/PointsHistoryResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..7c51a0e2d8
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/PointsHistoryResponseRewardsAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: PointsHistoryResponse
+ Used By: Rewards
+ */
+ class PointsHistoryResponse: Codable {
+
+ public var items: [PointsHistory]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PointsHistory]? = nil, page: Page? = nil) {
+
+ 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([PointsHistory].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/PointsResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/PointsResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..b287bf11ce
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/PointsResponseRewardsAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: PointsResponse
+ Used By: Rewards
+ */
+ class PointsResponse: Codable {
+
+ public var points: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case points = "points"
+
+ }
+
+ public init(points: Double? = nil) {
+
+ self.points = points
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ points = try container.decode(Double.self, forKey: .points)
+
+ } 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(points, forKey: .points)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/RedeemReferralCodeDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/RedeemReferralCodeDetailsRewardsAppModel.swift
deleted file mode 100644
index e087b93a7c..0000000000
--- a/Sources/code/application/Models/Rewards/RedeemReferralCodeDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: RedeemReferralCodeDetails
- Used By: Rewards
- */
- class RedeemReferralCodeDetails: Codable {
-
- public var redeemed: Bool?
-
- public var message: String?
-
- public var referrerInfo: String?
-
- public var referrerId: String?
-
- public var points: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case redeemed = "redeemed"
-
- case message = "message"
-
- case referrerInfo = "referrer_info"
-
- case referrerId = "referrer_id"
-
- case points = "points"
-
- }
-
- public init(message: String? = nil, points: Double? = nil, redeemed: Bool? = nil, referrerId: String? = nil, referrerInfo: String? = nil) {
-
- self.redeemed = redeemed
-
- self.message = message
-
- self.referrerInfo = referrerInfo
-
- self.referrerId = referrerId
-
- self.points = points
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- redeemed = try container.decode(Bool.self, forKey: .redeemed)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- referrerInfo = try container.decode(String.self, forKey: .referrerInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- referrerId = try container.decode(String.self, forKey: .referrerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- points = try container.decode(Double.self, forKey: .points)
-
- } 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(redeemed, forKey: .redeemed)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(referrerInfo, forKey: .referrerInfo)
-
-
-
- try? container.encodeIfPresent(referrerId, forKey: .referrerId)
-
-
-
- try? container.encodeIfPresent(points, forKey: .points)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/RedeemReferralCodeRequestRewardsAppModel.swift b/Sources/code/application/Models/Rewards/RedeemReferralCodeRequestRewardsAppModel.swift
new file mode 100644
index 0000000000..ec7c560893
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/RedeemReferralCodeRequestRewardsAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: RedeemReferralCodeRequest
+ Used By: Rewards
+ */
+ class RedeemReferralCodeRequest: Codable {
+
+ public var deviceId: String?
+
+ public var referralCode: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case deviceId = "device_id"
+
+ case referralCode = "referral_code"
+
+ }
+
+ public init(deviceId: String? = nil, referralCode: String? = nil) {
+
+ self.deviceId = deviceId
+
+ self.referralCode = referralCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+ try? container.encodeIfPresent(referralCode, forKey: .referralCode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/RedeemReferralCodeResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/RedeemReferralCodeResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..b8fb90d083
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/RedeemReferralCodeResponseRewardsAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: RedeemReferralCodeResponse
+ Used By: Rewards
+ */
+ class RedeemReferralCodeResponse: Codable {
+
+ public var redeemed: Bool?
+
+ public var message: String?
+
+ public var referrerInfo: String?
+
+ public var referrerId: String?
+
+ public var points: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case redeemed = "redeemed"
+
+ case message = "message"
+
+ case referrerInfo = "referrer_info"
+
+ case referrerId = "referrer_id"
+
+ case points = "points"
+
+ }
+
+ public init(message: String? = nil, points: Double? = nil, redeemed: Bool? = nil, referrerId: String? = nil, referrerInfo: String? = nil) {
+
+ self.redeemed = redeemed
+
+ self.message = message
+
+ self.referrerInfo = referrerInfo
+
+ self.referrerId = referrerId
+
+ self.points = points
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ redeemed = try container.decode(Bool.self, forKey: .redeemed)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ referrerInfo = try container.decode(String.self, forKey: .referrerInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ referrerId = try container.decode(String.self, forKey: .referrerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ points = try container.decode(Double.self, forKey: .points)
+
+ } 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(redeemed, forKey: .redeemed)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(referrerInfo, forKey: .referrerInfo)
+
+
+
+ try? container.encodeIfPresent(referrerId, forKey: .referrerId)
+
+
+
+ try? container.encodeIfPresent(points, forKey: .points)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/RedeemReferralCodeRewardsAppModel.swift b/Sources/code/application/Models/Rewards/RedeemReferralCodeRewardsAppModel.swift
deleted file mode 100644
index 00bbfe40bc..0000000000
--- a/Sources/code/application/Models/Rewards/RedeemReferralCodeRewardsAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: RedeemReferralCode
- Used By: Rewards
- */
- class RedeemReferralCode: Codable {
-
- public var deviceId: String?
-
- public var referralCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case deviceId = "device_id"
-
- case referralCode = "referral_code"
-
- }
-
- public init(deviceId: String? = nil, referralCode: String? = nil) {
-
- self.deviceId = deviceId
-
- self.referralCode = referralCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
- try? container.encodeIfPresent(referralCode, forKey: .referralCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/ReferralDetailsResponseRewardsAppModel.swift b/Sources/code/application/Models/Rewards/ReferralDetailsResponseRewardsAppModel.swift
new file mode 100644
index 0000000000..47c6265802
--- /dev/null
+++ b/Sources/code/application/Models/Rewards/ReferralDetailsResponseRewardsAppModel.swift
@@ -0,0 +1,141 @@
+
+
+import Foundation
+public extension ApplicationClient.Rewards {
+ /*
+ Model: ReferralDetailsResponse
+ Used By: Rewards
+ */
+ class ReferralDetailsResponse: Codable {
+
+ public var referral: Offer?
+
+ public var share: ShareMessages?
+
+ public var user: ReferralDetailsUser?
+
+ public var referrerInfo: String?
+
+ public var termsConditionsLink: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case referral = "referral"
+
+ case share = "share"
+
+ case user = "user"
+
+ case referrerInfo = "referrer_info"
+
+ case termsConditionsLink = "terms_conditions_link"
+
+ }
+
+ public init(referral: Offer? = nil, referrerInfo: String? = nil, share: ShareMessages? = nil, termsConditionsLink: String? = nil, user: ReferralDetailsUser? = nil) {
+
+ self.referral = referral
+
+ self.share = share
+
+ self.user = user
+
+ self.referrerInfo = referrerInfo
+
+ self.termsConditionsLink = termsConditionsLink
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ referral = try container.decode(Offer.self, forKey: .referral)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ share = try container.decode(ShareMessages.self, forKey: .share)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ user = try container.decode(ReferralDetailsUser.self, forKey: .user)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ referrerInfo = try container.decode(String.self, forKey: .referrerInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ termsConditionsLink = try container.decode(String.self, forKey: .termsConditionsLink)
+
+ } 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(referral, forKey: .referral)
+
+
+
+ try? container.encodeIfPresent(share, forKey: .share)
+
+
+
+ try? container.encodeIfPresent(user, forKey: .user)
+
+
+
+ try? container.encodeIfPresent(referrerInfo, forKey: .referrerInfo)
+
+
+
+ try? container.encodeIfPresent(termsConditionsLink, forKey: .termsConditionsLink)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Rewards/ReferralDetailsRewardsAppModel.swift b/Sources/code/application/Models/Rewards/ReferralDetailsRewardsAppModel.swift
deleted file mode 100644
index 54d95cbb8f..0000000000
--- a/Sources/code/application/Models/Rewards/ReferralDetailsRewardsAppModel.swift
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: ReferralDetails
- Used By: Rewards
- */
- class ReferralDetails: Codable {
-
- public var referral: Offer?
-
- public var share: ShareMessages?
-
- public var user: ReferralDetailsUser?
-
- public var referrerInfo: String?
-
- public var termsConditionsLink: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case referral = "referral"
-
- case share = "share"
-
- case user = "user"
-
- case referrerInfo = "referrer_info"
-
- case termsConditionsLink = "terms_conditions_link"
-
- }
-
- public init(referral: Offer? = nil, referrerInfo: String? = nil, share: ShareMessages? = nil, termsConditionsLink: String? = nil, user: ReferralDetailsUser? = nil) {
-
- self.referral = referral
-
- self.share = share
-
- self.user = user
-
- self.referrerInfo = referrerInfo
-
- self.termsConditionsLink = termsConditionsLink
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- referral = try container.decode(Offer.self, forKey: .referral)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- share = try container.decode(ShareMessages.self, forKey: .share)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- user = try container.decode(ReferralDetailsUser.self, forKey: .user)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- referrerInfo = try container.decode(String.self, forKey: .referrerInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- termsConditionsLink = try container.decode(String.self, forKey: .termsConditionsLink)
-
- } 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(referral, forKey: .referral)
-
-
-
- try? container.encodeIfPresent(share, forKey: .share)
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
-
- try? container.encodeIfPresent(referrerInfo, forKey: .referrerInfo)
-
-
-
- try? container.encodeIfPresent(termsConditionsLink, forKey: .termsConditionsLink)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Rewards/RetrieveOrderDiscountRewardsAppModel.swift b/Sources/code/application/Models/Rewards/RetrieveOrderDiscountRewardsAppModel.swift
deleted file mode 100644
index 6cd72359e4..0000000000
--- a/Sources/code/application/Models/Rewards/RetrieveOrderDiscountRewardsAppModel.swift
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Rewards {
- /*
- Model: RetrieveOrderDiscount
- Used By: Rewards
- */
- class RetrieveOrderDiscount: Codable {
-
- public var orderAmount: Double
-
- public var currency: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderAmount = "order_amount"
-
- case currency = "currency"
-
- }
-
- public init(currency: String? = nil, orderAmount: Double) {
-
- self.orderAmount = orderAmount
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderAmount = try container.decode(Double.self, forKey: .orderAmount)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(orderAmount, forKey: .orderAmount)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Theme/AvailablePageSchemaSectionsThemeAppModel.swift b/Sources/code/application/Models/Theme/AvailablePageSchemaSectionsThemeAppModel.swift
index c21bd0bf88..d87056c377 100644
--- a/Sources/code/application/Models/Theme/AvailablePageSchemaSectionsThemeAppModel.swift
+++ b/Sources/code/application/Models/Theme/AvailablePageSchemaSectionsThemeAppModel.swift
@@ -12,6 +12,8 @@ public extension ApplicationClient.Theme {
public var label: String?
+ public var source: String?
+
public var props: [String: Any]?
public var blocks: [[String: Any]]?
@@ -20,10 +22,6 @@ public extension ApplicationClient.Theme {
public var predicate: AvailablePagePredicate?
- public var source: SectionSource?
-
- public var assets: SectionAssets?
-
public enum CodingKeys: String, CodingKey {
@@ -31,6 +29,8 @@ public extension ApplicationClient.Theme {
case label = "label"
+ case source = "source"
+
case props = "props"
case blocks = "blocks"
@@ -39,18 +39,16 @@ public extension ApplicationClient.Theme {
case predicate = "predicate"
- case source = "__source"
-
- case assets = "assets"
-
}
- public init(assets: SectionAssets? = nil, blocks: [[String: Any]]? = nil, label: String? = nil, name: String? = nil, predicate: AvailablePagePredicate? = nil, preset: [String: Any]? = nil, props: [String: Any]? = nil, source: SectionSource? = nil) {
+ public init(blocks: [[String: Any]]? = nil, label: String? = nil, name: String? = nil, predicate: AvailablePagePredicate? = nil, preset: [String: Any]? = nil, props: [String: Any]? = nil, source: String? = nil) {
self.name = name
self.label = label
+ self.source = source
+
self.props = props
self.blocks = blocks
@@ -59,10 +57,6 @@ public extension ApplicationClient.Theme {
self.predicate = predicate
- self.source = source
-
- self.assets = assets
-
}
required public init(from decoder: Decoder) throws {
@@ -94,7 +88,7 @@ public extension ApplicationClient.Theme {
do {
- props = try container.decode([String: Any].self, forKey: .props)
+ source = try container.decode(String.self, forKey: .source)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -106,19 +100,7 @@ public extension ApplicationClient.Theme {
do {
- blocks = try container.decode([[String: Any]].self, forKey: .blocks)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- preset = try container.decode([String: Any].self, forKey: .preset)
+ props = try container.decode([String: Any].self, forKey: .props)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -130,7 +112,7 @@ public extension ApplicationClient.Theme {
do {
- predicate = try container.decode(AvailablePagePredicate.self, forKey: .predicate)
+ blocks = try container.decode([[String: Any]].self, forKey: .blocks)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -142,7 +124,7 @@ public extension ApplicationClient.Theme {
do {
- source = try container.decode(SectionSource.self, forKey: .source)
+ preset = try container.decode([String: Any].self, forKey: .preset)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -154,7 +136,7 @@ public extension ApplicationClient.Theme {
do {
- assets = try container.decode(SectionAssets.self, forKey: .assets)
+ predicate = try container.decode(AvailablePagePredicate.self, forKey: .predicate)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -178,6 +160,10 @@ public extension ApplicationClient.Theme {
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+
try? container.encodeIfPresent(props, forKey: .props)
@@ -193,14 +179,6 @@ public extension ApplicationClient.Theme {
try? container.encodeIfPresent(predicate, forKey: .predicate)
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
- try? container.encodeIfPresent(assets, forKey: .assets)
-
-
}
}
diff --git a/Sources/code/application/Models/Theme/GlobalConfigThemeAppModel.swift b/Sources/code/application/Models/Theme/GlobalConfigThemeAppModel.swift
new file mode 100644
index 0000000000..41c312a136
--- /dev/null
+++ b/Sources/code/application/Models/Theme/GlobalConfigThemeAppModel.swift
@@ -0,0 +1,75 @@
+
+
+import Foundation
+public extension ApplicationClient.Theme {
+ /*
+ Model: GlobalConfig
+ Used By: Theme
+ */
+ class GlobalConfig: Codable {
+
+ public var statics: StaticConfig?
+
+ public var custom: CustomConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statics = "statics"
+
+ case custom = "custom"
+
+ }
+
+ public init(custom: CustomConfig? = nil, statics: StaticConfig? = nil) {
+
+ self.statics = statics
+
+ self.custom = custom
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statics = try container.decode(StaticConfig.self, forKey: .statics)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ custom = try container.decode(CustomConfig.self, forKey: .custom)
+
+ } 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(statics, forKey: .statics)
+
+
+
+ try? container.encodeIfPresent(custom, forKey: .custom)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Theme/SectionAssetsThemeAppModel.swift b/Sources/code/application/Models/Theme/SectionAssetsThemeAppModel.swift
deleted file mode 100644
index ca9a58fe17..0000000000
--- a/Sources/code/application/Models/Theme/SectionAssetsThemeAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Theme {
- /*
- Model: SectionAssets
- Used By: Theme
- */
- class SectionAssets: Codable {
-
- public var js: String?
-
- public var css: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case js = "js"
-
- case css = "css"
-
- }
-
- public init(css: String? = nil, js: String? = nil) {
-
- self.js = js
-
- self.css = css
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- js = try container.decode(String.self, forKey: .js)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- css = try container.decode(String.self, forKey: .css)
-
- } 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(js, forKey: .js)
-
-
-
- try? container.encodeIfPresent(css, forKey: .css)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Theme/SectionSourceThemeAppModel.swift b/Sources/code/application/Models/Theme/SectionSourceThemeAppModel.swift
deleted file mode 100644
index e8b9cab12d..0000000000
--- a/Sources/code/application/Models/Theme/SectionSourceThemeAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Theme {
- /*
- Model: SectionSource
- Used By: Theme
- */
- class SectionSource: Codable {
-
- public var id: String?
-
- public var bundleName: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case bundleName = "bundle_name"
-
- case type = "type"
-
- }
-
- public init(bundleName: String? = nil, id: String? = nil, type: String? = nil) {
-
- self.id = id
-
- self.bundleName = bundleName
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- bundleName = try container.decode(String.self, forKey: .bundleName)
-
- } 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(id, forKey: .id)
-
-
-
- try? container.encodeIfPresent(bundleName, forKey: .bundleName)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/User/OtpSuccessUserAppModel.swift b/Sources/code/application/Models/User/OtpSuccessUserAppModel.swift
new file mode 100644
index 0000000000..1134fff060
--- /dev/null
+++ b/Sources/code/application/Models/User/OtpSuccessUserAppModel.swift
@@ -0,0 +1,207 @@
+
+
+import Foundation
+public extension ApplicationClient.User {
+ /*
+ Model: OtpSuccess
+ Used By: User
+ */
+ class OtpSuccess: Codable {
+
+ public var resendTimer: Int?
+
+ public var resendToken: String?
+
+ public var registerToken: String?
+
+ public var success: Bool?
+
+ public var requestId: String?
+
+ public var message: String?
+
+ public var mobile: String?
+
+ public var countryCode: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case resendTimer = "resend_timer"
+
+ case resendToken = "resend_token"
+
+ case registerToken = "register_token"
+
+ case success = "success"
+
+ case requestId = "request_id"
+
+ case message = "message"
+
+ case mobile = "mobile"
+
+ case countryCode = "country_code"
+
+ }
+
+ public init(countryCode: String? = nil, message: String? = nil, mobile: String? = nil, registerToken: String? = nil, requestId: String? = nil, resendTimer: Int? = nil, resendToken: String? = nil, success: Bool? = nil) {
+
+ self.resendTimer = resendTimer
+
+ self.resendToken = resendToken
+
+ self.registerToken = registerToken
+
+ self.success = success
+
+ self.requestId = requestId
+
+ self.message = message
+
+ self.mobile = mobile
+
+ self.countryCode = countryCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ resendTimer = try container.decode(Int.self, forKey: .resendTimer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ resendToken = try container.decode(String.self, forKey: .resendToken)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ registerToken = try container.decode(String.self, forKey: .registerToken)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mobile = try container.decode(String.self, forKey: .mobile)
+
+ } 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(resendTimer, forKey: .resendTimer)
+
+
+
+ try? container.encodeIfPresent(resendToken, forKey: .resendToken)
+
+
+
+ try? container.encodeIfPresent(registerToken, forKey: .registerToken)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(mobile, forKey: .mobile)
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/User/SendOtpResponseUserAppModel.swift b/Sources/code/application/Models/User/SendOtpResponseUserAppModel.swift
new file mode 100644
index 0000000000..f9053aef79
--- /dev/null
+++ b/Sources/code/application/Models/User/SendOtpResponseUserAppModel.swift
@@ -0,0 +1,317 @@
+
+
+import Foundation
+public extension ApplicationClient.User {
+ /*
+ Model: SendOtpResponse
+ Used By: User
+ */
+ class SendOtpResponse: Codable {
+
+ public var resendTimer: Int?
+
+ public var resendToken: String?
+
+ public var success: Bool?
+
+ public var requestId: String?
+
+ public var message: String?
+
+ public var mobile: String?
+
+ public var countryCode: String?
+
+ public var email: String?
+
+ public var resendEmailToken: String?
+
+ public var registerToken: String?
+
+ public var verifyEmailOtp: Bool?
+
+ public var verifyMobileOtp: Bool?
+
+ public var userExists: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case resendTimer = "resend_timer"
+
+ case resendToken = "resend_token"
+
+ case success = "success"
+
+ case requestId = "request_id"
+
+ case message = "message"
+
+ case mobile = "mobile"
+
+ case countryCode = "country_code"
+
+ case email = "email"
+
+ case resendEmailToken = "resend_email_token"
+
+ case registerToken = "register_token"
+
+ case verifyEmailOtp = "verify_email_otp"
+
+ case verifyMobileOtp = "verify_mobile_otp"
+
+ case userExists = "user_exists"
+
+ }
+
+ public init(countryCode: String? = nil, email: String? = nil, message: String? = nil, mobile: String? = nil, registerToken: String? = nil, requestId: String? = nil, resendEmailToken: String? = nil, resendTimer: Int? = nil, resendToken: String? = nil, success: Bool? = nil, userExists: Bool? = nil, verifyEmailOtp: Bool? = nil, verifyMobileOtp: Bool? = nil) {
+
+ self.resendTimer = resendTimer
+
+ self.resendToken = resendToken
+
+ self.success = success
+
+ self.requestId = requestId
+
+ self.message = message
+
+ self.mobile = mobile
+
+ self.countryCode = countryCode
+
+ self.email = email
+
+ self.resendEmailToken = resendEmailToken
+
+ self.registerToken = registerToken
+
+ self.verifyEmailOtp = verifyEmailOtp
+
+ self.verifyMobileOtp = verifyMobileOtp
+
+ self.userExists = userExists
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ resendTimer = try container.decode(Int.self, forKey: .resendTimer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ resendToken = try container.decode(String.self, forKey: .resendToken)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mobile = try container.decode(String.self, forKey: .mobile)
+
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ resendEmailToken = try container.decode(String.self, forKey: .resendEmailToken)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ registerToken = try container.decode(String.self, forKey: .registerToken)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ verifyEmailOtp = try container.decode(Bool.self, forKey: .verifyEmailOtp)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ verifyMobileOtp = try container.decode(Bool.self, forKey: .verifyMobileOtp)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ userExists = try container.decode(Bool.self, forKey: .userExists)
+
+ } 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(resendTimer, forKey: .resendTimer)
+
+
+
+ try? container.encodeIfPresent(resendToken, forKey: .resendToken)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+ try? container.encodeIfPresent(mobile, forKey: .mobile)
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+ try? container.encodeIfPresent(resendEmailToken, forKey: .resendEmailToken)
+
+
+
+ try? container.encodeIfPresent(registerToken, forKey: .registerToken)
+
+
+
+ try? container.encodeIfPresent(verifyEmailOtp, forKey: .verifyEmailOtp)
+
+
+
+ try? container.encodeIfPresent(verifyMobileOtp, forKey: .verifyMobileOtp)
+
+
+
+ try? container.encodeIfPresent(userExists, forKey: .userExists)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/User/SendOtpSuccessUserAppModel.swift b/Sources/code/application/Models/User/SendOtpSuccessUserAppModel.swift
deleted file mode 100644
index b2103d2337..0000000000
--- a/Sources/code/application/Models/User/SendOtpSuccessUserAppModel.swift
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.User {
- /*
- Model: SendOtpSuccess
- Used By: User
- */
- class SendOtpSuccess: Codable {
-
- public var resendTimer: Int?
-
- public var resendToken: String?
-
- public var registerToken: String?
-
- public var success: Bool?
-
- public var requestId: String?
-
- public var message: String?
-
- public var mobile: String?
-
- public var countryCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case resendTimer = "resend_timer"
-
- case resendToken = "resend_token"
-
- case registerToken = "register_token"
-
- case success = "success"
-
- case requestId = "request_id"
-
- case message = "message"
-
- case mobile = "mobile"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String? = nil, message: String? = nil, mobile: String? = nil, registerToken: String? = nil, requestId: String? = nil, resendTimer: Int? = nil, resendToken: String? = nil, success: Bool? = nil) {
-
- self.resendTimer = resendTimer
-
- self.resendToken = resendToken
-
- self.registerToken = registerToken
-
- self.success = success
-
- self.requestId = requestId
-
- self.message = message
-
- self.mobile = mobile
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- resendTimer = try container.decode(Int.self, forKey: .resendTimer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- resendToken = try container.decode(String.self, forKey: .resendToken)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- registerToken = try container.decode(String.self, forKey: .registerToken)
-
- } 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 {
-
- }
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mobile = try container.decode(String.self, forKey: .mobile)
-
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(resendTimer, forKey: .resendTimer)
-
-
-
- try? container.encodeIfPresent(resendToken, forKey: .resendToken)
-
-
-
- try? container.encodeIfPresent(registerToken, forKey: .registerToken)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/User/SendOtpUserAppModel.swift b/Sources/code/application/Models/User/SendOtpUserAppModel.swift
deleted file mode 100644
index d6a5f8410e..0000000000
--- a/Sources/code/application/Models/User/SendOtpUserAppModel.swift
+++ /dev/null
@@ -1,317 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.User {
- /*
- Model: SendOtp
- Used By: User
- */
- class SendOtp: Codable {
-
- public var resendTimer: Int?
-
- public var resendToken: String?
-
- public var success: Bool?
-
- public var requestId: String?
-
- public var message: String?
-
- public var mobile: String?
-
- public var countryCode: String?
-
- public var email: String?
-
- public var resendEmailToken: String?
-
- public var registerToken: String?
-
- public var verifyEmailOtp: Bool?
-
- public var verifyMobileOtp: Bool?
-
- public var userExists: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case resendTimer = "resend_timer"
-
- case resendToken = "resend_token"
-
- case success = "success"
-
- case requestId = "request_id"
-
- case message = "message"
-
- case mobile = "mobile"
-
- case countryCode = "country_code"
-
- case email = "email"
-
- case resendEmailToken = "resend_email_token"
-
- case registerToken = "register_token"
-
- case verifyEmailOtp = "verify_email_otp"
-
- case verifyMobileOtp = "verify_mobile_otp"
-
- case userExists = "user_exists"
-
- }
-
- public init(countryCode: String? = nil, email: String? = nil, message: String? = nil, mobile: String? = nil, registerToken: String? = nil, requestId: String? = nil, resendEmailToken: String? = nil, resendTimer: Int? = nil, resendToken: String? = nil, success: Bool? = nil, userExists: Bool? = nil, verifyEmailOtp: Bool? = nil, verifyMobileOtp: Bool? = nil) {
-
- self.resendTimer = resendTimer
-
- self.resendToken = resendToken
-
- self.success = success
-
- self.requestId = requestId
-
- self.message = message
-
- self.mobile = mobile
-
- self.countryCode = countryCode
-
- self.email = email
-
- self.resendEmailToken = resendEmailToken
-
- self.registerToken = registerToken
-
- self.verifyEmailOtp = verifyEmailOtp
-
- self.verifyMobileOtp = verifyMobileOtp
-
- self.userExists = userExists
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- resendTimer = try container.decode(Int.self, forKey: .resendTimer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- resendToken = try container.decode(String.self, forKey: .resendToken)
-
- } 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 {
-
- }
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mobile = try container.decode(String.self, forKey: .mobile)
-
- } 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)
- } 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 {
-
- }
-
-
-
- do {
- resendEmailToken = try container.decode(String.self, forKey: .resendEmailToken)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- registerToken = try container.decode(String.self, forKey: .registerToken)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifyEmailOtp = try container.decode(Bool.self, forKey: .verifyEmailOtp)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifyMobileOtp = try container.decode(Bool.self, forKey: .verifyMobileOtp)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- userExists = try container.decode(Bool.self, forKey: .userExists)
-
- } 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(resendTimer, forKey: .resendTimer)
-
-
-
- try? container.encodeIfPresent(resendToken, forKey: .resendToken)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
- try? container.encodeIfPresent(resendEmailToken, forKey: .resendEmailToken)
-
-
-
- try? container.encodeIfPresent(registerToken, forKey: .registerToken)
-
-
-
- try? container.encodeIfPresent(verifyEmailOtp, forKey: .verifyEmailOtp)
-
-
-
- try? container.encodeIfPresent(verifyMobileOtp, forKey: .verifyMobileOtp)
-
-
-
- try? container.encodeIfPresent(userExists, forKey: .userExists)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/User/UpdateUserAttributesRequestUserAppModel.swift b/Sources/code/application/Models/User/UpdateUserAttributesRequestUserAppModel.swift
new file mode 100644
index 0000000000..4bb98348fa
--- /dev/null
+++ b/Sources/code/application/Models/User/UpdateUserAttributesRequestUserAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.User {
+ /*
+ Model: UpdateUserAttributesRequest
+ Used By: User
+ */
+ class UpdateUserAttributesRequest: Codable {
+
+ public var attributes: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case attributes = "attributes"
+
+ }
+
+ public init(attributes: [String: Any]? = nil) {
+
+ self.attributes = attributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+ try? container.encodeIfPresent(attributes, forKey: .attributes)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/User/UpdateUserAttributesUserAppModel.swift b/Sources/code/application/Models/User/UpdateUserAttributesUserAppModel.swift
deleted file mode 100644
index 416ccb36be..0000000000
--- a/Sources/code/application/Models/User/UpdateUserAttributesUserAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.User {
- /*
- Model: UpdateUserAttributes
- Used By: User
- */
- class UpdateUserAttributes: Codable {
-
- public var attributes: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case attributes = "attributes"
-
- }
-
- public init(attributes: [String: Any]? = nil) {
-
- self.attributes = attributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/User/UserExistsDetailsUserAppModel.swift b/Sources/code/application/Models/User/UserExistsDetailsUserAppModel.swift
deleted file mode 100644
index c28372f699..0000000000
--- a/Sources/code/application/Models/User/UserExistsDetailsUserAppModel.swift
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.User {
- /*
- Model: UserExistsDetails
- Used By: User
- */
- class UserExistsDetails: Codable {
-
- public var userExists: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userExists = "user_exists"
-
- }
-
- public init(userExists: Bool? = nil) {
-
- self.userExists = userExists
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- userExists = try container.decode(Bool.self, forKey: .userExists)
-
- } 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(userExists, forKey: .userExists)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/User/UserExistsResponseUserAppModel.swift b/Sources/code/application/Models/User/UserExistsResponseUserAppModel.swift
new file mode 100644
index 0000000000..55e5a023a8
--- /dev/null
+++ b/Sources/code/application/Models/User/UserExistsResponseUserAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.User {
+ /*
+ Model: UserExistsResponse
+ Used By: User
+ */
+ class UserExistsResponse: Codable {
+
+ public var userExists: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userExists = "user_exists"
+
+ }
+
+ public init(userExists: Bool? = nil) {
+
+ self.userExists = userExists
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ userExists = try container.decode(Bool.self, forKey: .userExists)
+
+ } 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(userExists, forKey: .userExists)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Webhook/ClickEventDetailsWebhookAppModel.swift b/Sources/code/application/Models/Webhook/ClickEventDetailsWebhookAppModel.swift
deleted file mode 100644
index f2472d03cd..0000000000
--- a/Sources/code/application/Models/Webhook/ClickEventDetailsWebhookAppModel.swift
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Webhook {
- /*
- Model: ClickEventDetails
- Used By: Webhook
- */
- class ClickEventDetails: Codable {
-
- public var successCount: Int?
-
- public var failedCount: Int?
-
- public var failedEvents: [ClickEventBatch]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case successCount = "success_count"
-
- case failedCount = "failed_count"
-
- case failedEvents = "failed_events"
-
- }
-
- public init(failedCount: Int? = nil, failedEvents: [ClickEventBatch]? = nil, successCount: Int? = nil) {
-
- self.successCount = successCount
-
- self.failedCount = failedCount
-
- self.failedEvents = failedEvents
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- successCount = try container.decode(Int.self, forKey: .successCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failedCount = try container.decode(Int.self, forKey: .failedCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failedEvents = try container.decode([ClickEventBatch].self, forKey: .failedEvents)
-
- } 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(successCount, forKey: .successCount)
-
-
-
- try? container.encodeIfPresent(failedCount, forKey: .failedCount)
-
-
-
- try? container.encodeIfPresent(failedEvents, forKey: .failedEvents)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Webhook/ClickEventPayloadWebhookAppModel.swift b/Sources/code/application/Models/Webhook/ClickEventPayloadWebhookAppModel.swift
deleted file mode 100644
index 9f9fbdd5c6..0000000000
--- a/Sources/code/application/Models/Webhook/ClickEventPayloadWebhookAppModel.swift
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-import Foundation
-public extension ApplicationClient.Webhook {
- /*
- Model: ClickEventPayload
- Used By: Webhook
- */
- class ClickEventPayload: Codable {
-
- public var batch: [ClickEventBatch]?
-
- public var sentAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batch = "batch"
-
- case sentAt = "sent_at"
-
- }
-
- public init(batch: [ClickEventBatch]? = nil, sentAt: String? = nil) {
-
- self.batch = batch
-
- self.sentAt = sentAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- batch = try container.decode([ClickEventBatch].self, forKey: .batch)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sentAt = try container.decode(String.self, forKey: .sentAt)
-
- } 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(batch, forKey: .batch)
-
-
-
- try? container.encodeIfPresent(sentAt, forKey: .sentAt)
-
-
- }
-
- }
-}
diff --git a/Sources/code/application/Models/Webhook/ClickEventRequestWebhookAppModel.swift b/Sources/code/application/Models/Webhook/ClickEventRequestWebhookAppModel.swift
new file mode 100644
index 0000000000..d3626f8d18
--- /dev/null
+++ b/Sources/code/application/Models/Webhook/ClickEventRequestWebhookAppModel.swift
@@ -0,0 +1,53 @@
+
+
+import Foundation
+public extension ApplicationClient.Webhook {
+ /*
+ Model: ClickEventRequest
+ Used By: Webhook
+ */
+ class ClickEventRequest: Codable {
+
+ public var batch: [ClickEventBatch]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batch = "batch"
+
+ }
+
+ public init(batch: [ClickEventBatch]? = nil) {
+
+ self.batch = batch
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ batch = try container.decode([ClickEventBatch].self, forKey: .batch)
+
+ } 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(batch, forKey: .batch)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/application/Models/Webhook/ClickEventResponseWebhookAppModel.swift b/Sources/code/application/Models/Webhook/ClickEventResponseWebhookAppModel.swift
new file mode 100644
index 0000000000..68eed62bd2
--- /dev/null
+++ b/Sources/code/application/Models/Webhook/ClickEventResponseWebhookAppModel.swift
@@ -0,0 +1,97 @@
+
+
+import Foundation
+public extension ApplicationClient.Webhook {
+ /*
+ Model: ClickEventResponse
+ Used By: Webhook
+ */
+ class ClickEventResponse: Codable {
+
+ public var successCount: Int?
+
+ public var failedCount: Int?
+
+ public var failedEvents: [ClickEventBatch]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case successCount = "success_count"
+
+ case failedCount = "failed_count"
+
+ case failedEvents = "failed_events"
+
+ }
+
+ public init(failedCount: Int? = nil, failedEvents: [ClickEventBatch]? = nil, successCount: Int? = nil) {
+
+ self.successCount = successCount
+
+ self.failedCount = failedCount
+
+ self.failedEvents = failedEvents
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ successCount = try container.decode(Int.self, forKey: .successCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ failedCount = try container.decode(Int.self, forKey: .failedCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ failedEvents = try container.decode([ClickEventBatch].self, forKey: .failedEvents)
+
+ } 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(successCount, forKey: .successCount)
+
+
+
+ try? container.encodeIfPresent(failedCount, forKey: .failedCount)
+
+
+
+ try? container.encodeIfPresent(failedEvents, forKey: .failedEvents)
+
+
+ }
+
+ }
+}
diff --git a/Sources/code/platform/Client/AuditTrailPlatformClient.swift b/Sources/code/platform/Client/AuditTrailPlatformClient.swift
index 03830c8d5a..e9f80c59c6 100644
--- a/Sources/code/platform/Client/AuditTrailPlatformClient.swift
+++ b/Sources/code/platform/Client/AuditTrailPlatformClient.swift
@@ -14,6 +14,68 @@ extension PlatformClient {
+ /**
+ *
+ * Summary: Get audit logs
+ * Description: Retrieve audit logs for system events and actions.
+ **/
+ public func getAuditLogs(
+ qs: String,
+ limit: Int?,
+ sort: [String: Any]?,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: LogSchemaResponse?, _ error: FDKError?) -> Void
+ ) {
+
+ var xQuery: [String: Any] = [:]
+ xQuery["qs"] = qs
+
+ if let value = limit {
+ xQuery["limit"] = value
+ }
+
+ if let value = sort {
+ xQuery["sort"] = value
+ }
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/audit-trail/v1.0/company/\(companyId)/logs",
+ query: xQuery,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(LogSchemaResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
/**
*
* Summary: Create an audit log
@@ -22,7 +84,7 @@ extension PlatformClient {
public func createAuditLog(
body: RequestBodyAuditLog,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateLogResp?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateLogResponse?, _ error: FDKError?) -> Void
) {
@@ -36,7 +98,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/webhook/v1.0/company/\(companyId)/audit/logs/create",
+ url: "/service/platform/audit-trail/v1.0/company/\(companyId)/logs",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -50,7 +112,108 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateLogResp.self, from: data)
+ let response = Utility.decode(CreateLogResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get an audit log
+ * Description: Retrieve a specific audit log entry.
+ **/
+ public func getAuditLog(
+ id: String,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: LogSchemaResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/audit-trail/v1.0/company/\(companyId)/logs/\(id)",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(LogSchemaResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: List entity types
+ * Description: List of entity types that can be audited within the platform.
+ **/
+ public func getEntityTypes(
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: EntityTypesResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/audit-trail/v1.0/company/\(companyId)/entity-types",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(EntityTypesResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/BillingPlatformClient.swift b/Sources/code/platform/Client/BillingPlatformClient.swift
index bf256dc832..f703c3329c 100644
--- a/Sources/code/platform/Client/BillingPlatformClient.swift
+++ b/Sources/code/platform/Client/BillingPlatformClient.swift
@@ -16,7 +16,7 @@ extension PlatformClient {
/**
*
- * Summary: Obtain charge details
+ * Summary: Obtain charge details.
* Description: Retrieve comprehensive details about a specific billing charge.
**/
public func getChargeDetails(
@@ -68,7 +68,7 @@ extension PlatformClient {
/**
*
- * Summary: Retrieve subscription charge details
+ * Summary: Retrieve subscription charge details.
* Description: Retrieve detailed information about subscription charges using this API.
**/
public func getSubscriptionCharge(
@@ -120,8 +120,8 @@ extension PlatformClient {
/**
*
- * Summary: Cancel the extension subscription
- * Description: Cancel an ongoing extension subscription for the company.
+ * Summary: Cancel a subscription charge.
+ * Description: Cancel an ongoing subscription charge for a customer.
**/
public func cancelSubscriptionCharge(
extensionId: String,
@@ -172,14 +172,14 @@ extension PlatformClient {
/**
*
- * Summary: Generate a one-time charge
+ * Summary: Generate a one-time charge.
* Description: Generate a one-time charge for specific services or products.
**/
public func createOneTimeCharge(
extensionId: String,
body: CreateOneTimeCharge,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateOneTimeChargeResponseSchemas?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateOneTimeChargeResponse?, _ error: FDKError?) -> Void
) {
@@ -207,7 +207,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateOneTimeChargeResponseSchemas.self, from: data)
+ let response = Utility.decode(CreateOneTimeChargeResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -224,13 +224,13 @@ extension PlatformClient {
/**
*
* Summary: Initiate subscription billing
- * Description: Initiates and registers a subscription charge for a specific extension for a given company.
+ * Description: Register a subscription charge for a seller using your extension.
**/
public func createSubscriptionCharge(
extensionId: String,
body: CreateSubscriptionCharge,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateSubscription?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateSubscriptionResponse?, _ error: FDKError?) -> Void
) {
@@ -258,7 +258,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateSubscription.self, from: data)
+ let response = Utility.decode(CreateSubscriptionResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/CatalogPlatformClient.swift b/Sources/code/platform/Client/CatalogPlatformClient.swift
index ae57efbaa6..d7dcbd0584 100644
--- a/Sources/code/platform/Client/CatalogPlatformClient.swift
+++ b/Sources/code/platform/Client/CatalogPlatformClient.swift
@@ -84,7 +84,7 @@ extension PlatformClient {
slug: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CategoryResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CategoryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -140,7 +140,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CategoryResponseSchema.self, from: data)
+ let response = Utility.decode(CategoryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -177,9 +177,9 @@ extension PlatformClient {
uids: [Int]?,
slug: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.listCategories(
level: level,
@@ -214,7 +214,7 @@ extension PlatformClient {
uid: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SingleCategoryResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SingleCategoryResponse?, _ error: FDKError?) -> Void
) {
@@ -242,7 +242,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SingleCategoryResponseSchema.self, from: data)
+ let response = Utility.decode(SingleCategoryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -265,7 +265,7 @@ extension PlatformClient {
sellerAppId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CrossSellingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CrossSellingResponse?, _ error: FDKError?) -> Void
) {
@@ -293,7 +293,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CrossSellingResponseSchema.self, from: data)
+ let response = Utility.decode(CrossSellingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -322,7 +322,7 @@ extension PlatformClient {
slug: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DepartmentsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DepartmentsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -378,7 +378,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DepartmentsResponseSchema.self, from: data)
+ let response = Utility.decode(DepartmentsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -415,9 +415,9 @@ extension PlatformClient {
isActive: Bool?,
slug: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.listDepartmentsData(
pageNo: paginator.pageNo,
@@ -452,7 +452,7 @@ extension PlatformClient {
uid: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DepartmentsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DepartmentsResponse?, _ error: FDKError?) -> Void
) {
@@ -480,7 +480,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DepartmentsResponseSchema.self, from: data)
+ let response = Utility.decode(DepartmentsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -564,7 +564,7 @@ extension PlatformClient {
public func bulkHsnCode(
body: BulkHsnUpsert,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkHsnResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkHsnResponse?, _ error: FDKError?) -> Void
) {
@@ -592,7 +592,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkHsnResponseSchema.self, from: data)
+ let response = Utility.decode(BulkHsnResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -733,7 +733,7 @@ extension PlatformClient {
sizeIdentifier: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetInventoriesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetInventoriesResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -829,7 +829,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetInventoriesResponseSchema.self, from: data)
+ let response = Utility.decode(GetInventoriesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -894,9 +894,9 @@ extension PlatformClient {
toDate: String?,
sizeIdentifier: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "cursor")
+ let paginator = Paginator(pageSize: pageSize, type: "cursor")
paginator.onPage = {
self.getInventories(
itemId: itemId,
@@ -1041,7 +1041,7 @@ extension PlatformClient {
public func createBulkInventoryJob(
body: BulkJob,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkResponse?, _ error: FDKError?) -> Void
) {
@@ -1069,7 +1069,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkResponseSchema.self, from: data)
+ let response = Utility.decode(BulkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1092,7 +1092,7 @@ extension PlatformClient {
batchId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -1120,7 +1120,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1141,9 +1141,9 @@ extension PlatformClient {
**/
public func createBulkInventory(
batchId: String,
- body: InventoryBulkRequestSchema,
+ body: InventoryBulkRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -1171,7 +1171,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1241,9 +1241,9 @@ extension PlatformClient {
* Description: Helps to create a Inventory export job.
**/
public func createInventoryExportJob(
- body: InventoryExportRequestSchema,
+ body: InventoryExportRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryExportResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryExportResponse?, _ error: FDKError?) -> Void
) {
@@ -1271,7 +1271,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryExportResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryExportResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1401,7 +1401,7 @@ extension PlatformClient {
itemType: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryValidationResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryValidationResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1430,7 +1430,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryValidationResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryValidationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1452,7 +1452,7 @@ extension PlatformClient {
public func getOptimalLocations(
body: AssignStore,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: StoreAssignResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StoreAssignResponse?, _ error: FDKError?) -> Void
) {
@@ -1480,7 +1480,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(StoreAssignResponseSchema.self, from: data)
+ let response = Utility.decode(StoreAssignResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1829,7 +1829,7 @@ extension PlatformClient {
filter: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductAttributesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductAttributesResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1862,7 +1862,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductAttributesResponseSchema.self, from: data)
+ let response = Utility.decode(ProductAttributesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1935,11 +1935,9 @@ extension PlatformClient {
public func getProductBundle(
q: String?,
slug: [String]?,
- pageNo: Int?,
- pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetProductBundleListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetProductBundleListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1952,14 +1950,6 @@ extension PlatformClient {
xQuery["slug"] = value
}
- if let value = pageNo {
- xQuery["page_no"] = value
- }
-
- if let value = pageSize {
- xQuery["page_size"] = value
- }
-
var xHeaders: [(key: String, value: String)] = []
@@ -1983,7 +1973,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetProductBundleListingResponseSchema.self, from: data)
+ let response = Utility.decode(GetProductBundleListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2003,9 +1993,9 @@ extension PlatformClient {
* Description: Create product bundle in the catalog associated to a specific company
**/
public func createProductBundle(
- body: ProductBundleRequestSchema,
+ body: ProductBundleRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetProductBundleCreateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetProductBundleCreateResponse?, _ error: FDKError?) -> Void
) {
@@ -2033,7 +2023,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetProductBundleCreateResponseSchema.self, from: data)
+ let response = Utility.decode(GetProductBundleCreateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2056,7 +2046,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetProductBundleResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetProductBundleResponse?, _ error: FDKError?) -> Void
) {
@@ -2084,7 +2074,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetProductBundleResponseSchema.self, from: data)
+ let response = Utility.decode(GetProductBundleResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2105,9 +2095,9 @@ extension PlatformClient {
**/
public func updateProductBundle(
id: String,
- body: ProductBundleUpdateRequestSchema,
+ body: ProductBundleUpdateRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetProductBundleCreateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetProductBundleCreateResponse?, _ error: FDKError?) -> Void
) {
@@ -2135,7 +2125,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetProductBundleCreateResponseSchema.self, from: data)
+ let response = Utility.decode(GetProductBundleCreateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2159,7 +2149,7 @@ extension PlatformClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkAssetResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkAssetResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2195,7 +2185,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkAssetResponseSchema.self, from: data)
+ let response = Utility.decode(BulkAssetResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2217,9 +2207,9 @@ extension PlatformClient {
public func getProductAssetsInBulkPaginator(
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getProductAssetsInBulk(
pageNo: paginator.pageNo,
@@ -2248,7 +2238,7 @@ extension PlatformClient {
public func createProductAssetsInBulk(
body: ProductBulkAssets,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -2276,7 +2266,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2398,7 +2388,7 @@ extension PlatformClient {
public func createBulkProductUploadJob(
body: BulkJob,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkResponse?, _ error: FDKError?) -> Void
) {
@@ -2426,7 +2416,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkResponseSchema.self, from: data)
+ let response = Utility.decode(BulkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2449,7 +2439,7 @@ extension PlatformClient {
batchId: Int,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -2477,7 +2467,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2498,9 +2488,9 @@ extension PlatformClient {
**/
public func createProductsInBulk(
batchId: String,
- body: BulkProductRequestSchema,
+ body: BulkProductRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -2528,7 +2518,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2550,7 +2540,7 @@ extension PlatformClient {
public func listProductTemplateExportDetails(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductDownloadsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductDownloadsResponse?, _ error: FDKError?) -> Void
) {
@@ -2578,7 +2568,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductDownloadsResponseSchema.self, from: data)
+ let response = Utility.decode(ProductDownloadsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2600,7 +2590,7 @@ extension PlatformClient {
public func listHSNCodes(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: HSNCodesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: HSNCodesResponse?, _ error: FDKError?) -> Void
) {
@@ -2628,7 +2618,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(HSNCodesResponseSchema.self, from: data)
+ let response = Utility.decode(HSNCodesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2650,7 +2640,7 @@ extension PlatformClient {
public func getProductTags(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductTagsViewResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductTagsViewResponse?, _ error: FDKError?) -> Void
) {
@@ -2678,7 +2668,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductTagsViewResponseSchema.self, from: data)
+ let response = Utility.decode(ProductTagsViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2701,7 +2691,7 @@ extension PlatformClient {
department: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TemplatesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: TemplatesResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2730,7 +2720,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(TemplatesResponseSchema.self, from: data)
+ let response = Utility.decode(TemplatesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2754,7 +2744,7 @@ extension PlatformClient {
itemType: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProdcutTemplateCategoriesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProdcutTemplateCategoriesResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2784,7 +2774,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProdcutTemplateCategoriesResponseSchema.self, from: data)
+ let response = Utility.decode(ProdcutTemplateCategoriesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2870,7 +2860,7 @@ extension PlatformClient {
bulk: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TemplatesValidationResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: TemplatesValidationResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2906,67 +2896,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(TemplatesValidationResponseSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Validate product template
- * Description: Allows you to list all product templates global validation values for all the fields present in the database for a specific company.
- **/
- public func validateProductGlobalTemplate(
- itemType: String?,
- bulk: Bool?,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TemplatesGlobalValidationResponseSchema?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
-
- if let value = itemType {
- xQuery["item_type"] = value
- }
-
- if let value = bulk {
- xQuery["bulk"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "GET",
- url: "/service/platform/catalog/v1.0/company/\(companyId)/products/templates/validation/schema/",
- query: xQuery,
- body: nil,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(TemplatesGlobalValidationResponseSchema.self, from: data)
+ let response = Utility.decode(TemplatesValidationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3161,7 +3091,7 @@ extension PlatformClient {
uid: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3201,7 +3131,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductListingResponseSchema.self, from: data)
+ let response = Utility.decode(ProductListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3225,7 +3155,7 @@ extension PlatformClient {
size: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductSizeDeleteResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductSizeDeleteResponse?, _ error: FDKError?) -> Void
) {
@@ -3253,7 +3183,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductSizeDeleteResponseSchema.self, from: data)
+ let response = Utility.decode(ProductSizeDeleteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3394,9 +3324,9 @@ extension PlatformClient {
public func addInventory(
itemId: Int,
size: String,
- body: InventoryRequestSchema,
+ body: InventoryRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -3424,7 +3354,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3450,7 +3380,7 @@ extension PlatformClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductVariantsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductVariantsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3486,7 +3416,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductVariantsResponseSchema.self, from: data)
+ let response = Utility.decode(ProductVariantsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3514,9 +3444,9 @@ extension PlatformClient {
variantType: String,
pageSize: Int?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getVariantsOfProducts(
itemId: itemId,
@@ -3627,7 +3557,7 @@ extension PlatformClient {
public func createSizeGuide(
body: ValidateSizeGuide,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -3655,7 +3585,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3678,7 +3608,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SizeGuideResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SizeGuideResponse?, _ error: FDKError?) -> Void
) {
@@ -3706,7 +3636,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SizeGuideResponseSchema.self, from: data)
+ let response = Utility.decode(SizeGuideResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3729,7 +3659,7 @@ extension PlatformClient {
id: String,
body: ValidateSizeGuide,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -3757,7 +3687,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3911,7 +3841,7 @@ extension PlatformClient {
public func updateInventories(
body: InventoryRequestSchemaV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryUpdateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryUpdateResponse?, _ error: FDKError?) -> Void
) {
@@ -3939,7 +3869,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryUpdateResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryUpdateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3967,7 +3897,7 @@ extension PlatformClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryExportJobListResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryExportJobListResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -4019,7 +3949,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryExportJobListResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryExportJobListResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4039,9 +3969,9 @@ extension PlatformClient {
* Description: creates export job for inventory data associated with a company
**/
public func createInventoryExport(
- body: InventoryCreateRequestSchema,
+ body: InventoryCreateRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryExportResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryExportResponse?, _ error: FDKError?) -> Void
) {
@@ -4069,7 +3999,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryExportResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryExportResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4350,7 +4280,7 @@ extension PlatformClient {
productType: String,
body: BulkProductJob,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -4380,7 +4310,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkResponseSchema.self, from: data)
+ let response = Utility.decode(BulkResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4408,7 +4338,7 @@ extension PlatformClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductDownloadsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductDownloadsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -4460,7 +4390,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductDownloadsResponseSchema.self, from: data)
+ let response = Utility.decode(ProductDownloadsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4482,7 +4412,7 @@ extension PlatformClient {
public func createProductExportJob(
body: ProductTemplateDownloadsExport,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProductDownloadsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProductDownloadsResponse?, _ error: FDKError?) -> Void
) {
@@ -4510,7 +4440,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProductDownloadsResponseSchema.self, from: data)
+ let response = Utility.decode(ProductDownloadsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4527,13 +4457,13 @@ extension PlatformClient {
/**
*
* Summary: Delete product
- * Description: Users can delete a product by providing the item_id and company_id.
+ * Description: Users can delete a product using this by providing the itemid.
**/
public func deleteProduct(
itemId: Int,
- body: DeleteProductRequestBody,
+
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -4549,7 +4479,7 @@ extension PlatformClient {
method: "DELETE",
url: "/service/platform/catalog/v2.0/company/\(companyId)/products/\(itemId)/",
query: nil,
- body: body.dictionary,
+ body: nil,
headers: xHeaders,
responseType: "application/json",
onResponse: { (responseData, error, responseCode) in
@@ -4561,7 +4491,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4586,7 +4516,7 @@ extension PlatformClient {
itemCode: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SingleProductResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SingleProductResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -4622,7 +4552,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SingleProductResponseSchema.self, from: data)
+ let response = Utility.decode(SingleProductResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4645,7 +4575,7 @@ extension PlatformClient {
itemId: Int,
body: ProductCreateUpdateSchemaV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -4673,7 +4603,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4748,7 +4678,7 @@ extension PlatformClient {
sellerIdentifier: String,
body: InventoryRequestSchemaV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryUpdateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryUpdateResponse?, _ error: FDKError?) -> Void
) {
@@ -4776,7 +4706,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryUpdateResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryUpdateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4800,7 +4730,7 @@ extension PlatformClient {
sellerIdentifier: String,
body: InventoryRequestSchemaV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InventoryUpdateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InventoryUpdateResponse?, _ error: FDKError?) -> Void
) {
@@ -4828,7 +4758,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InventoryUpdateResponseSchema.self, from: data)
+ let response = Utility.decode(InventoryUpdateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4899,9 +4829,9 @@ extension PlatformClient {
**/
public func updateMarketplaceOptin(
marketplaceSlug: String,
- body: UpdateMarketplaceOptinRequestSchema,
+ body: UpdateMarketplaceOptinRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdateMarketplaceOptinResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdateMarketplaceOptinResponse?, _ error: FDKError?) -> Void
) {
@@ -4929,7 +4859,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdateMarketplaceOptinResponseSchema.self, from: data)
+ let response = Utility.decode(UpdateMarketplaceOptinResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -4950,9 +4880,9 @@ extension PlatformClient {
**/
public func createMarketplaceOptin(
marketplaceSlug: String,
- body: OptInPostRequestSchema,
+ body: OptInPostRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateMarketplaceOptinResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateMarketplaceOptinResponse?, _ error: FDKError?) -> Void
) {
@@ -4980,7 +4910,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateMarketplaceOptinResponseSchema.self, from: data)
+ let response = Utility.decode(CreateMarketplaceOptinResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/CommonPlatformClient.swift b/Sources/code/platform/Client/CommonPlatformClient.swift
index 8cb289a8cf..bfc184ed74 100644
--- a/Sources/code/platform/Client/CommonPlatformClient.swift
+++ b/Sources/code/platform/Client/CommonPlatformClient.swift
@@ -24,7 +24,7 @@ extension PlatformClient {
query: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ApplicationResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ApplicationResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -60,7 +60,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ApplicationResponseSchema.self, from: data)
+ let response = Utility.decode(ApplicationResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/CompanyProfilePlatformClient.swift b/Sources/code/platform/Client/CompanyProfilePlatformClient.swift
index 6451fe807e..8b2182eaf4 100644
--- a/Sources/code/platform/Client/CompanyProfilePlatformClient.swift
+++ b/Sources/code/platform/Client/CompanyProfilePlatformClient.swift
@@ -22,7 +22,7 @@ extension PlatformClient {
public func cbsOnboardGet(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetCompanyProfileSerializerResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetCompanyProfileSerializerResponse?, _ error: FDKError?) -> Void
) {
@@ -50,7 +50,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetCompanyProfileSerializerResponseSchema.self, from: data)
+ let response = Utility.decode(GetCompanyProfileSerializerResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -72,7 +72,7 @@ extension PlatformClient {
public func updateCompany(
body: UpdateCompany,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -100,7 +100,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -122,7 +122,7 @@ extension PlatformClient {
public func getCompanyMetrics(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: MetricsSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: MetricsSerializer?, _ error: FDKError?) -> Void
) {
@@ -150,7 +150,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(MetricsSchema.self, from: data)
+ let response = Utility.decode(MetricsSerializer.self, from: data)
onResponse(response, nil)
} else {
@@ -173,7 +173,7 @@ extension PlatformClient {
brandId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetBrandResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetBrandResponseSerializer?, _ error: FDKError?) -> Void
) {
@@ -201,7 +201,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetBrandResponseSchema.self, from: data)
+ let response = Utility.decode(GetBrandResponseSerializer.self, from: data)
onResponse(response, nil)
} else {
@@ -222,9 +222,9 @@ extension PlatformClient {
**/
public func editBrand(
brandId: String,
- body: UpdateBrandRequestSchema,
+ body: UpdateBrandRequestSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -252,7 +252,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -272,9 +272,9 @@ extension PlatformClient {
* Description: Allows to create a brand associated to a company.
**/
public func createBrand(
- body: CreateBrandRequestSchema,
+ body: CreateBrandRequestSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -302,7 +302,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -327,7 +327,7 @@ extension PlatformClient {
q: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CompanyBrandListSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CompanyBrandListSerializer?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -367,7 +367,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CompanyBrandListSchema.self, from: data)
+ let response = Utility.decode(CompanyBrandListSerializer.self, from: data)
onResponse(response, nil)
} else {
@@ -392,9 +392,9 @@ extension PlatformClient {
pageSize: Int?,
q: String?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getBrands(
pageNo: paginator.pageNo,
@@ -422,9 +422,9 @@ extension PlatformClient {
* Description: Establish a mapping between a company and a brand.
**/
public func createCompanyBrandMapping(
- body: CompanyBrandPostRequestSchema,
+ body: CompanyBrandPostRequestSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -452,7 +452,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -482,7 +482,7 @@ extension PlatformClient {
tags: [String]?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: LocationListSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: LocationListSerializer?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -542,7 +542,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(LocationListSchema.self, from: data)
+ let response = Utility.decode(LocationListSerializer.self, from: data)
onResponse(response, nil)
} else {
@@ -582,9 +582,9 @@ extension PlatformClient {
types: [String]?,
tags: [String]?,
headers: [(key: String, value: String)]? = nil
- ) -> Paginator {
+ ) -> Paginator {
let pageSize = pageSize ?? 20
- let paginator = Paginator(pageSize: pageSize, type: "number")
+ let paginator = Paginator(pageSize: pageSize, type: "number")
paginator.onPage = {
self.getLocations(
storeType: storeType,
@@ -617,9 +617,9 @@ extension PlatformClient {
* Description: Create a new location associated to a company.
**/
public func createLocation(
- body: LocationSchema,
+ body: LocationSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -647,7 +647,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -670,7 +670,7 @@ extension PlatformClient {
locationId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetLocationSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetLocationSerializer?, _ error: FDKError?) -> Void
) {
@@ -698,7 +698,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetLocationSchema.self, from: data)
+ let response = Utility.decode(GetLocationSerializer.self, from: data)
onResponse(response, nil)
} else {
@@ -719,9 +719,9 @@ extension PlatformClient {
**/
public func updateLocation(
locationId: String,
- body: LocationSchema,
+ body: LocationSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -749,7 +749,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -769,9 +769,9 @@ extension PlatformClient {
* Description: Allows to create locations in bulk at once associated to a company
**/
public func createLocationBulk(
- body: BulkLocationSchema,
+ body: BulkLocationSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProfileSuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProfileSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -799,7 +799,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProfileSuccessResponseSchema.self, from: data)
+ let response = Utility.decode(ProfileSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/ConfigurationPlatformClient.swift b/Sources/code/platform/Client/ConfigurationPlatformClient.swift
index 93d0baaded..ae0aba7600 100644
--- a/Sources/code/platform/Client/ConfigurationPlatformClient.swift
+++ b/Sources/code/platform/Client/ConfigurationPlatformClient.swift
@@ -51,9 +51,9 @@ extension PlatformClient {
* Description: Generate and add a new sales channel. sales channels are sales channel websites which can be configured, personalized and customized. Use this API to create a new sales channel in the current company.
**/
public func createApplication(
- body: CreateApplicationRequestSchema,
+ body: CreateApplicationRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateAppResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateAppResponse?, _ error: FDKError?) -> Void
) {
@@ -81,7 +81,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateAppResponseSchema.self, from: data)
+ let response = Utility.decode(CreateAppResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -106,7 +106,7 @@ extension PlatformClient {
q: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ApplicationsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ApplicationsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -146,7 +146,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ApplicationsResponseSchema.self, from: data)
+ let response = Utility.decode(ApplicationsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -169,7 +169,7 @@ extension PlatformClient {
public func getCurrencies(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CurrenciesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CurrenciesResponse?, _ error: FDKError?) -> Void
) {
@@ -197,7 +197,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CurrenciesResponseSchema.self, from: data)
+ let response = Utility.decode(CurrenciesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -217,9 +217,9 @@ extension PlatformClient {
* Description: Check the availability of a specific domain. Use this API to check the domain availability before linking it to sales channel. Also sends domain suggestions that are similar to the queried domain. Note - Custom domain search is currently powered by GoDaddy provider.
**/
public func getDomainAvailibility(
- body: DomainSuggestionsRequestSchema,
+ body: DomainSuggestionsRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DomainSuggestionsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DomainSuggestionsResponse?, _ error: FDKError?) -> Void
) {
@@ -247,7 +247,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DomainSuggestionsResponseSchema.self, from: data)
+ let response = Utility.decode(DomainSuggestionsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -270,7 +270,7 @@ extension PlatformClient {
q: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BrandsByCompanyResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BrandsByCompanyResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -302,7 +302,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BrandsByCompanyResponseSchema.self, from: data)
+ let response = Utility.decode(BrandsByCompanyResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -324,9 +324,9 @@ extension PlatformClient {
public func getCompanyByBrands(
pageNo: Int?,
pageSize: Int?,
- body: CompanyByBrandsRequestSchema,
+ body: CompanyByBrandsRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CompanyByBrandsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CompanyByBrandsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -362,7 +362,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CompanyByBrandsResponseSchema.self, from: data)
+ let response = Utility.decode(CompanyByBrandsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -384,9 +384,9 @@ extension PlatformClient {
public func getStoreByBrands(
pageNo: Int?,
pageSize: Int?,
- body: StoreByBrandsRequestSchema,
+ body: StoreByBrandsRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: StoreByBrandsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StoreByBrandsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -422,7 +422,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(StoreByBrandsResponseSchema.self, from: data)
+ let response = Utility.decode(StoreByBrandsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -505,7 +505,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OptedApplicationResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OptedApplicationResponse?, _ error: FDKError?) -> Void
) {
@@ -533,7 +533,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OptedApplicationResponseSchema.self, from: data)
+ let response = Utility.decode(OptedApplicationResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -556,7 +556,7 @@ extension PlatformClient {
id: String,
body: OptOutInventory,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessMessageResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessMessageResponse?, _ error: FDKError?) -> Void
) {
@@ -584,72 +584,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessMessageResponseSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Get currency exchange rates
- * Description: Retrieve a list of currency exchange rates, relative to a provided currency.
- **/
- public func getCurrencyExchangeRates(
- currencyCode: String?,
- exchangeCurrencyCode: String?,
- exchangeCountryCode: String?,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CurrencyExchangeResponseV2?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
-
- if let value = currencyCode {
- xQuery["currency_code"] = value
- }
-
- if let value = exchangeCurrencyCode {
- xQuery["exchange_currency_code"] = value
- }
-
- if let value = exchangeCountryCode {
- xQuery["exchange_country_code"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "GET",
- url: "/service/platform/configuration/v2.0/company/\(companyId)/currency-exchange",
- query: xQuery,
- body: nil,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CurrencyExchangeResponseV2.self, from: data)
+ let response = Utility.decode(SuccessMessageResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/ContentPlatformClient.swift b/Sources/code/platform/Client/ContentPlatformClient.swift
index e2f4bb5c77..da807b5886 100644
--- a/Sources/code/platform/Client/ContentPlatformClient.swift
+++ b/Sources/code/platform/Client/ContentPlatformClient.swift
@@ -97,7 +97,7 @@ extension PlatformClient {
public func getCustomFieldTypes(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: MetafieldTypesSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectByIdSchema?, _ error: FDKError?) -> Void
) {
@@ -125,7 +125,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(MetafieldTypesSchema.self, from: data)
+ let response = Utility.decode(CustomObjectByIdSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -142,7 +142,7 @@ extension PlatformClient {
/**
*
* Summary: Get resources
- * Description: Use this API to retrieve the resources, such as products, collections, customers, selling locations, etc.
+ * Description: Each custom fields is assosiated with a resource such as product, promotion, coupon, selling location etc, This will gives list of supported resource list.
**/
public func getResources(
@@ -197,11 +197,9 @@ extension PlatformClient {
public func getCustomFieldDefinitions(
pageNo: String,
pageSize: String,
- resources: String?,
- types: String?,
+ resource: String?,
+ type: String?,
search: String?,
- slugs: String?,
- namespaces: String?,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomFieldDefinitionsSchema?, _ error: FDKError?) -> Void
@@ -211,26 +209,18 @@ extension PlatformClient {
xQuery["page_no"] = pageNo
xQuery["page_size"] = pageSize
- if let value = resources {
- xQuery["resources"] = value
+ if let value = resource {
+ xQuery["resource"] = value
}
- if let value = types {
- xQuery["types"] = value
+ if let value = type {
+ xQuery["type"] = value
}
if let value = search {
xQuery["search"] = value
}
- if let value = slugs {
- xQuery["slugs"] = value
- }
-
- if let value = namespaces {
- xQuery["namespaces"] = value
- }
-
var xHeaders: [(key: String, value: String)] = []
@@ -240,7 +230,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/definition",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/definitions",
query: xQuery,
body: nil,
headers: xHeaders,
@@ -270,86 +260,10 @@ extension PlatformClient {
/**
*
- * Summary: Get custom fields definitions for a given resource type
- * Description: Custom field definitions enable you to include data validation for custom fields, and enable sellers to add custom fields values for resources. With the help of this seller can retrive list of custom field definitions list.
- **/
- public func getCustomFieldDefinitionByResource(
- pageNo: String,
- pageSize: String,
- resource: String,
- types: String?,
- search: String?,
- slugs: String?,
- namespaces: String?,
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomFieldDefinitionsSchema?, _ error: FDKError?) -> Void
- ) {
-
- var xQuery: [String: Any] = [:]
- xQuery["page_no"] = pageNo
- xQuery["page_size"] = pageSize
-
- if let value = types {
- xQuery["types"] = value
- }
-
- if let value = search {
- xQuery["search"] = value
- }
-
- if let value = slugs {
- xQuery["slugs"] = value
- }
-
- if let value = namespaces {
- xQuery["namespaces"] = value
- }
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/definition",
- query: xQuery,
- body: nil,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CustomFieldDefinitionsSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Create custom field definition for a given resource type
+ * Summary: Create custom field definition
* Description: You can create custom fields definition to any resource so you can extend property of resource.
**/
public func createCustomFieldDefinition(
- resource: String,
body: CustomFieldDefinitionRequestSchema,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomFieldDefinitionDetailResSchema?, _ error: FDKError?) -> Void
@@ -366,7 +280,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/definition",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/definitions",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -396,16 +310,14 @@ extension PlatformClient {
/**
*
- * Summary: Get custom fields definition by resource, slug and namespace
- * Description: Custom field definitions can be retrived from this using its slug, namespace and resource
+ * Summary: Get custom fields definition
+ * Description: Custom field definitions can be fetch using definition id.
**/
- public func getCustomFieldDefinitionBySlug(
- slug: String,
- resource: String,
- namespace: String,
+ public func getCustomFieldDefinition(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: MetaFieldDefinitionDetailResSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomFieldDefinitionDetailResSchema?, _ error: FDKError?) -> Void
) {
@@ -419,7 +331,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/namespace/\(namespace)/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/definitions/\(definitionId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -433,7 +345,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(MetaFieldDefinitionDetailResSchema.self, from: data)
+ let response = Utility.decode(CustomFieldDefinitionDetailResSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -452,10 +364,8 @@ extension PlatformClient {
* Summary: Update custom field definition
* Description: Custom fields definition can be update using this api, You can update custom field definition name and description.
**/
- public func updateCustomFieldDefinitionBySlug(
- slug: String,
- resource: String,
- namespace: String,
+ public func updateCustomFieldDefinition(
+ definitionId: String,
body: CustomFieldDefinitionRequestSchema,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomFieldDefinitionDetailResSchema?, _ error: FDKError?) -> Void
@@ -472,7 +382,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "PUT",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/namespace/\(namespace)/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/definitions/\(definitionId)",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -505,10 +415,8 @@ extension PlatformClient {
* Summary: Delete custom fields definition
* Description: Custom field definition and its assosiated custom fields value can be deleted using this api on the basis of definition id.
**/
- public func deleteCustomFieldDefinitionBySlug(
- slug: String,
- resource: String,
- namespace: String,
+ public func deleteCustomFieldDefinition(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomDataDeleteSchema?, _ error: FDKError?) -> Void
@@ -525,7 +433,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "DELETE",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/namespace/\(namespace)/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/definitions/\(definitionId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -555,15 +463,14 @@ extension PlatformClient {
/**
*
- * Summary: Get list of custom fields of given resource and resource slug
- * Description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug.
+ * Summary: Get list of custom fields of given resource
+ * Description: Retrieves a list of custom fields attached to a particular resource by using the resource.
**/
- public func getCustomFieldsByResourceSlug(
+ public func getCustomFields(
resource: String,
- resourceSlug: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomFieldsResponseByResourceIdSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomFieldsResponseSchema?, _ error: FDKError?) -> Void
) {
@@ -577,7 +484,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/\(resourceSlug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/\(resource)",
query: nil,
body: nil,
headers: xHeaders,
@@ -591,7 +498,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomFieldsResponseByResourceIdSchema.self, from: data)
+ let response = Utility.decode(CustomFieldsResponseSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -607,13 +514,13 @@ extension PlatformClient {
/**
*
- * Summary: Update custom field entries for gives resource and resource slug
- * Description: You can add a custom field using this endpoint to any resource by providing the resource slug.
+ * Summary: Get list of custom fields of given resource and resource id
+ * Description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource id.
**/
- public func updateCustomFieldByResourceSlug(
+ public func getCustomFieldsByResourceId(
resource: String,
- resourceSlug: String,
- body: CustomFieldRequestSchema,
+ resourceId: String,
+
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomFieldsResponseByResourceIdSchema?, _ error: FDKError?) -> Void
) {
@@ -628,10 +535,10 @@ extension PlatformClient {
}
PlatformAPIClient.execute(
config: config,
- method: "PUT",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/\(resourceSlug)",
+ method: "GET",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/\(resource)/\(resourceId)",
query: nil,
- body: body.dictionary,
+ body: nil,
headers: xHeaders,
responseType: "application/json",
onResponse: { (responseData, error, responseCode) in
@@ -659,20 +566,18 @@ extension PlatformClient {
/**
*
- * Summary: delete custom fields of given resource and resource slug
- * Description: Use this API to delete the custom fields for given resource in param.
+ * Summary: Create custom field entries for gives resource and resource_id
+ * Description: You can add a custom field using this endpoint to any resource by providing the resource ID.
**/
- public func deleteCustomFieldsByResourceSlug(
+ public func createCustomFieldByResourceId(
resource: String,
- resourceSlug: String,
- ids: String,
-
+ resourceId: String,
+ body: CustomFieldRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomFieldsDeleteSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomFieldsResponseByResourceIdSchema?, _ error: FDKError?) -> Void
) {
- var xQuery: [String: Any] = [:]
- xQuery["ids"] = ids
+
var xHeaders: [(key: String, value: String)] = []
@@ -682,10 +587,10 @@ extension PlatformClient {
}
PlatformAPIClient.execute(
config: config,
- method: "DELETE",
- url: "/service/platform/content/v2.0/company/\(companyId)/customfields/resource/\(resource)/\(resourceSlug)",
- query: xQuery,
- body: nil,
+ method: "PUT",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metafields/\(resource)/\(resourceId)",
+ query: nil,
+ body: body.dictionary,
headers: xHeaders,
responseType: "application/json",
onResponse: { (responseData, error, responseCode) in
@@ -697,7 +602,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomFieldsDeleteSchema.self, from: data)
+ let response = Utility.decode(CustomFieldsResponseByResourceIdSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -719,7 +624,7 @@ extension PlatformClient {
public func createCustomObjectDefinition(
body: CustomObjectDefinitionRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectDefinitionSlugSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectDefinitionSchema?, _ error: FDKError?) -> Void
) {
@@ -733,7 +638,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/definitions",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -747,7 +652,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectDefinitionSlugSchema.self, from: data)
+ let response = Utility.decode(CustomObjectDefinitionSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -792,7 +697,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/definitions",
query: xQuery,
body: nil,
headers: xHeaders,
@@ -823,13 +728,13 @@ extension PlatformClient {
/**
*
* Summary: Get custom object definition
- * Description: Custom object definitions can be fetched using their custom object definition slug.
+ * Description: Custom object definitions can be fetched using their definition ID.
**/
- public func getCustomObjectDefinitionBySlug(
- slug: String,
+ public func getCustomObjectDefinition(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectDefinitionSlugSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectDefinitionSchema?, _ error: FDKError?) -> Void
) {
@@ -843,7 +748,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/definitions/\(definitionId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -857,7 +762,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectDefinitionSlugSchema.self, from: data)
+ let response = Utility.decode(CustomObjectDefinitionSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -876,11 +781,11 @@ extension PlatformClient {
* Summary: Update custom object definition
* Description: Custom object definitions can be updated using this endpoint. You can update the name and description of the custom object and add more custom field definitions to the existing custom object.
**/
- public func updateCustomObjectDefinitionBySlug(
- slug: String,
+ public func updateCustomObjectDefinition(
+ definitionId: String,
body: CustomObjectDefinitionUpdateRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectDefinitionSlugSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectDefinitionSchema?, _ error: FDKError?) -> Void
) {
@@ -894,7 +799,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "PUT",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/definitions/\(definitionId)",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -908,7 +813,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectDefinitionSlugSchema.self, from: data)
+ let response = Utility.decode(CustomObjectDefinitionSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -924,11 +829,11 @@ extension PlatformClient {
/**
*
- * Summary: Delete custom object definition
+ * Summary: delete custom object definition
* Description: Custom object definitions can be deleted using this endpoint by providing the definition ID.
**/
- public func deleteCustomObjectDefinitionBySlug(
- slug: String,
+ public func deleteCustomObjectDefinition(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomObjectDefinitionDeleteResponseSchema?, _ error: FDKError?) -> Void
@@ -945,7 +850,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "DELETE",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/definitions/\(definitionId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -975,19 +880,23 @@ extension PlatformClient {
/**
*
- * Summary: Get list of custom objects under a certain custom object definition
+ * Summary: Get list of custom objects
* Description: Custom object entries can fetch using this endpoint.
**/
- public func getCustomObjectsBySlug(
+ public func getCustomObjects(
+ definitionId: String?,
pageNo: String,
pageSize: String,
- definitionSlug: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomObjectsSchema?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
+
+ if let value = definitionId {
+ xQuery["definition_id"] = value
+ }
xQuery["page_no"] = pageNo
xQuery["page_size"] = pageSize
@@ -1000,7 +909,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(definitionSlug)/entries",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects",
query: xQuery,
body: nil,
headers: xHeaders,
@@ -1033,9 +942,8 @@ extension PlatformClient {
* Summary: Create custom object entries
* Description: Custom object entries against the custom object definition can be added using this API.
**/
- public func createCustomObjectBySlug(
- definitionSlug: String,
- body: CustomObjectRequestSchemaWithoutId,
+ public func createCustomObject(
+ body: CustomObjectRequestSchema,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomObjectSchema?, _ error: FDKError?) -> Void
) {
@@ -1051,7 +959,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(definitionSlug)/entries",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -1082,14 +990,13 @@ extension PlatformClient {
/**
*
* Summary: Get custom object details
- * Description: Details of a custom object entry can be obtained using this endpoint.
+ * Description: Details of custom objects, their field details, definitions, and references can be obtained using this endpoint.
**/
- public func getCustomObjectBySlug(
- definitionSlug: String,
- slug: String,
+ public func getCustomObject(
+ metaobjectId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectBySlugSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectByIdSchema?, _ error: FDKError?) -> Void
) {
@@ -1103,7 +1010,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(definitionSlug)/entries/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/\(metaobjectId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -1117,7 +1024,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectBySlugSchema.self, from: data)
+ let response = Utility.decode(CustomObjectByIdSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -1136,9 +1043,8 @@ extension PlatformClient {
* Summary: Delete custom object
* Description: Custom object entries can be deleted by providing the delete ID using this endpoint.
**/
- public func deleteCustomObjectBySlug(
- definitionSlug: String,
- slug: String,
+ public func deleteCustomObject(
+ metaobjectId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomDataDeleteSchema?, _ error: FDKError?) -> Void
@@ -1155,7 +1061,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "DELETE",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(definitionSlug)/entries/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/\(metaobjectId)",
query: nil,
body: nil,
headers: xHeaders,
@@ -1188,12 +1094,11 @@ extension PlatformClient {
* Summary: Update custom object details
* Description: Custom object entries can be updated using this endpoint.
**/
- public func updateCustomObjectBySlug(
- definitionSlug: String,
- slug: String,
- body: CustomObjectRequestSchemaWithoutId,
+ public func updateCustomObject(
+ metaobjectId: String,
+ body: CustomObjectRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectBySlugSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectByIdSchema?, _ error: FDKError?) -> Void
) {
@@ -1207,7 +1112,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "PUT",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(definitionSlug)/entries/\(slug)",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/\(metaobjectId)",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -1221,7 +1126,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectBySlugSchema.self, from: data)
+ let response = Utility.decode(CustomObjectByIdSchema.self, from: data)
onResponse(response, nil)
} else {
@@ -1296,11 +1201,11 @@ extension PlatformClient {
* Summary: Bulk custom object entries upload
* Description: Custom object bulk import of bulk entries can be performed using this endpoint.
**/
- public func importCustomObjectEntriesBySlug(
- slug: String,
+ public func importCustomObjectEntries(
+ definitionId: String,
body: CustomObjectBulkSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CustomObjectEntryBulkUploadDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CustomObjectEntryBulkUploadResponse?, _ error: FDKError?) -> Void
) {
@@ -1314,7 +1219,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)/bulk/upload",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/bulk/\(definitionId)/upload",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -1328,7 +1233,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CustomObjectEntryBulkUploadDetails.self, from: data)
+ let response = Utility.decode(CustomObjectEntryBulkUploadResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1347,8 +1252,8 @@ extension PlatformClient {
* Summary: Initiate download for bulk custom object entries
* Description: Custom object bulk export of bulk entries can be perform using this endpoint.
**/
- public func exportCustomObjectEntriesBySlug(
- slug: String,
+ public func exportCustomObjectEntries(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CustomObjectBulkEntryInitiateDownload?, _ error: FDKError?) -> Void
@@ -1365,7 +1270,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)/bulk/download",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/bulk/\(definitionId)/download",
query: nil,
body: nil,
headers: xHeaders,
@@ -1398,8 +1303,8 @@ extension PlatformClient {
* Summary: Download sample for custom object bulk entry
* Description: Sample files for custom object bulk import can be obtained from this endpoint.
**/
- public func sampleCustomObjectBulkEntryBySlug(
- slug: String,
+ public func sampleCustomObjectBulkEntry(
+ definitionId: String,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: String?, _ error: FDKError?) -> Void
@@ -1416,7 +1321,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "GET",
- url: "/service/platform/content/v2.0/company/\(companyId)/customobjects/definition/\(slug)/bulk/sample",
+ url: "/service/platform/content/v1.0/company/\(companyId)/metaobjects/bulk/\(definitionId)/sample",
query: nil,
body: nil,
headers: xHeaders,
diff --git a/Sources/code/platform/Client/DiscountPlatformClient.swift b/Sources/code/platform/Client/DiscountPlatformClient.swift
index a35f3991ca..db2b14b00a 100644
--- a/Sources/code/platform/Client/DiscountPlatformClient.swift
+++ b/Sources/code/platform/Client/DiscountPlatformClient.swift
@@ -319,9 +319,9 @@ extension PlatformClient {
**/
public func validateDiscountFile(
discount: String?,
- body: FileJobRequestSchema,
+ body: FileJobRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileJobResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -353,7 +353,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileJobResponseSchema.self, from: data)
+ let response = Utility.decode(FileJobResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -376,7 +376,7 @@ extension PlatformClient {
type: String,
body: DownloadFileJob,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileJobResponse?, _ error: FDKError?) -> Void
) {
@@ -404,7 +404,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileJobResponseSchema.self, from: data)
+ let response = Utility.decode(FileJobResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -427,7 +427,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileJobResponse?, _ error: FDKError?) -> Void
) {
@@ -455,7 +455,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileJobResponseSchema.self, from: data)
+ let response = Utility.decode(FileJobResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -478,7 +478,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CancelJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CancelJobResponse?, _ error: FDKError?) -> Void
) {
@@ -506,7 +506,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CancelJobResponseSchema.self, from: data)
+ let response = Utility.decode(CancelJobResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -529,7 +529,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileJobResponse?, _ error: FDKError?) -> Void
) {
@@ -557,7 +557,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileJobResponseSchema.self, from: data)
+ let response = Utility.decode(FileJobResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -580,7 +580,7 @@ extension PlatformClient {
id: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CancelJobResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CancelJobResponse?, _ error: FDKError?) -> Void
) {
@@ -608,7 +608,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CancelJobResponseSchema.self, from: data)
+ let response = Utility.decode(CancelJobResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/FileStoragePlatformClient.swift b/Sources/code/platform/Client/FileStoragePlatformClient.swift
index e16ee33ef2..a57d298c4e 100644
--- a/Sources/code/platform/Client/FileStoragePlatformClient.swift
+++ b/Sources/code/platform/Client/FileStoragePlatformClient.swift
@@ -16,14 +16,14 @@ extension PlatformClient {
/**
*
- * Summary: Start file upload.
- * Description: Inititates the process of uploading a file to storage location, and returns a storage link in response.
+ * Summary: Start file upload
+ * Description: Inititates the process of uploading a file to storage location, and returns a storage link in response at platform level. Please refer group description for more details.
**/
public func startUpload(
namespace: String,
- body: FileUploadStart,
+ body: StartRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileUpload?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StartResponse?, _ error: FDKError?) -> Void
) {
@@ -37,7 +37,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/assets/v2.0/company/\(companyId)/namespaces/\(namespace)/upload/start",
+ url: "/service/platform/assets/v1.0/company/\(companyId)/namespaces/\(namespace)/upload/start",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -51,7 +51,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileUpload.self, from: data)
+ let response = Utility.decode(StartResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -67,14 +67,14 @@ extension PlatformClient {
/**
*
- * Summary: Complete file upload.
- * Description: Starts the process of uploading a file to storage location, and returns a storage link in response.
+ * Summary: Complete file upload
+ * Description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database at platform level
**/
public func completeUpload(
namespace: String,
- body: FileUpload,
+ body: StartResponse,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileUploadComplete?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CompleteResponse?, _ error: FDKError?) -> Void
) {
@@ -88,7 +88,7 @@ extension PlatformClient {
PlatformAPIClient.execute(
config: config,
method: "POST",
- url: "/service/platform/assets/v2.0/company/\(companyId)/namespaces/\(namespace)/upload/complete",
+ url: "/service/platform/assets/v1.0/company/\(companyId)/namespaces/\(namespace)/upload/complete",
query: nil,
body: body.dictionary,
headers: xHeaders,
@@ -102,7 +102,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileUploadComplete.self, from: data)
+ let response = Utility.decode(CompleteResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -120,13 +120,13 @@ extension PlatformClient {
/**
*
- * Summary: Get signed URLs.
- * Description: Retrieve signed URLs for file access.
+ * Summary: Get signed URLs
+ * Description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored resources inside private bucket.
**/
public func getSignUrls(
- body: SignUrl,
+ body: SignUrlRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SignUrlResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SignUrlResponse?, _ error: FDKError?) -> Void
) {
@@ -154,7 +154,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SignUrlResult.self, from: data)
+ let response = Utility.decode(SignUrlResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -170,8 +170,8 @@ extension PlatformClient {
/**
*
- * Summary: Copy files.
- * Description: Duplicate files to another location.
+ * Summary: Copy files
+ * Description: Handle multiple file uploads, updating progress and providing detailed status reports.
**/
public func copyFiles(
sync: Bool?,
@@ -226,7 +226,7 @@ extension PlatformClient {
/**
*
- * Summary: Browse files.
+ * Summary: Browse files
* Description: View and navigate through available files.
**/
public func browse(
@@ -287,28 +287,16 @@ extension PlatformClient {
-
-
-
-
-
-
-
-
-
-
-
-
/**
*
- * Summary: Proxy file access.
- * Description: Access files through a proxy.
+ * Summary: Access files through a proxy
+ * Description: It enables the communication between two entities by directing client requests to the correct server and sending responses back to the client. Please refer group description for more details.
**/
public func proxy(
url: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ProxyFileAccess?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ProxyResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -337,7 +325,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ProxyFileAccess.self, from: data)
+ let response = Utility.decode(ProxyResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -348,5 +336,12 @@ extension PlatformClient {
}
});
}
+
+
+
+
+
+
+
}
}
\ No newline at end of file
diff --git a/Sources/code/platform/Client/FinancePlatformClient.swift b/Sources/code/platform/Client/FinancePlatformClient.swift
new file mode 100644
index 0000000000..d5d03db65c
--- /dev/null
+++ b/Sources/code/platform/Client/FinancePlatformClient.swift
@@ -0,0 +1,1476 @@
+import Foundation
+
+extension PlatformClient {
+
+ public class Finance {
+ var config: PlatformConfig
+ var companyId: String
+
+ init(config: PlatformConfig) {
+ self.config = config
+ self.companyId = config.companyId
+ }
+
+
+
+
+ /**
+ *
+ * Summary: Generate financial report
+ * Description: Create a financial report with relevant data.
+ **/
+ public func generateReport(
+ body: GenerateReportReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GenerateReportJson?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/generate-report",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GenerateReportJson.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Download financial report
+ * Description: Retrieve and save a financial report.
+ **/
+ public func downloadReport(
+ body: DownloadReport,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: DownloadReportList?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/download-report",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(DownloadReportList.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get financial data
+ * Description: Retrieve financial data for analysis.
+ **/
+ public func getData(
+ body: GetEngineReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetEngineResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-data",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetEngineResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get transaction reason
+ * Description: Retrieve the reason behind a transaction.
+ **/
+ public func getReason(
+ body: GetReasonReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetReasonResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-reason",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetReasonResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get report list
+ * Description: Retrieve a list of available financial reports.
+ **/
+ public func getReportList(
+ body: GetReportListReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetReportListResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-report-list",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetReportListResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get affiliate details
+ * Description: Retrieve information about an affiliate.
+ **/
+ public func getAffiliate(
+ body: GetAffiliate,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetAffiliateResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-affiliate-list",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetAffiliateResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Download credit/debit note
+ * Description: Retrieve and save credit/debit notes.
+ **/
+ public func downloadCreditDebitNote(
+ body: DownloadCreditDebitNoteReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: DownloadCreditDebitNoteResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/download-credit-debit-note",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(DownloadCreditDebitNoteResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Process payments
+ * Description: Initiate and manage payment processes.
+ **/
+ public func paymentProcess(
+ body: PaymentProcessReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: PaymentProcessResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/payment-process",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(PaymentProcessResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Access credit line data platform
+ * Description: Connect to the credit line data platform.
+ **/
+ public func creditlineDataplatform(
+ body: CreditlineDataPlatformReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: CreditlineDataPlatformResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/credit-line-data",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(CreditlineDataPlatformResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Check credit line platform status
+ * Description: Determine if the credit line platform is operational.
+ **/
+ public func isCreditlinePlatform(
+ body: IsCreditlinePlatformReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: IsCreditlinePlatformResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/creditline-opted",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(IsCreditlinePlatformResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get invoice types
+ * Description: Retrieve a list of available invoice types.
+ **/
+ public func invoiceType(
+ body: InvoiceTypeReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoiceTypeResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice-type",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoiceTypeResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: List invoices
+ * Description: Provides list of invoices generated for a company.
+ **/
+ public func invoiceListing(
+ body: InvoiceListingReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoiceListingResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice/listing",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoiceListingResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get invoice PDF
+ * Description: Retrieve the PDF version of an invoice.
+ **/
+ public func invoicePDF(
+ body: InvoicePdfReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoicePdfResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice/pdf-view",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoicePdfResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Check refund method
+ * Description: Verify the refund method for credit notes.
+ **/
+ public func isCnRefundMethod(
+ body: IsCnRefundMethodReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: IsCnRefundMethodResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/cn-as-refund-method",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(IsCnRefundMethodResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Create seller credit note config
+ * Description: Set up configuration for seller credit notes.
+ **/
+ public func createSellerCreditNoteConfig(
+ body: CreateSellerCreditNoteConfigReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: CreateSellerCreditNoteConfigResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/create-update-credit-note-config",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(CreateSellerCreditNoteConfigResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Deletes credit note config
+ * Description: Deletes credit note config.
+ **/
+ public func deleteConfig(
+ body: DeleteConfigReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: DeleteConfigResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/delete-seller-config",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(DeleteConfigResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get channel display name
+ * Description: Retrieve the display name for a channel.
+ **/
+ public func channelDisplayName(
+ filterKey: String,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: ChannelDisplayNameResponse?, _ error: FDKError?) -> Void
+ ) {
+
+ var xQuery: [String: Any] = [:]
+ xQuery["filter_key"] = filterKey
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/channel-display-names",
+ query: xQuery,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(ChannelDisplayNameResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get PDF URL view
+ * Description: Retrieve a URL to view a PDF document.
+ **/
+ public func getPdfUrlView(
+ body: GetPdfUrlViewReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetPdfUrlViewResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-cn-pdf-link",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetPdfUrlViewResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get credit note details
+ * Description: Retrieve detailed information about a credit note.
+ **/
+ public func creditNoteDetails(
+ body: CreditNoteDetailsReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: CreditNoteDetailsResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/credit-note-details",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(CreditNoteDetailsResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get customer credit balance
+ * Description: Retrieve the credit balance of a customer.
+ **/
+ public func getCustomerCreditBalance(
+ body: GetCustomerCreditBalanceReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetCustomerCreditBalanceResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/customer-credit-balance",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetCustomerCreditBalanceResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get credit note configuration
+ * Description: Retrieve configuration settings for credit notes.
+ **/
+ public func getCnConfig(
+ body: GetCnConfigReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetCnConfigResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/get-seller-cn-config",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetCnConfigResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Generate customer credit note report
+ * Description: Create a report specifically for customer credit notes.
+ **/
+ public func generateReportCustomerCn(
+ body: GenerateReportCustomerCnReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GenerateReportCustomerCnResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/generate-report-customer-cn",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GenerateReportCustomerCnResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Download customer credit note report
+ * Description: Retrieve and save a report for customer credit notes.
+ **/
+ public func downloadReportCustomerCn(
+ body: DownloadReportCustomerCnReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: DownloadReportCustomerCnResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/download-report-customer-cn",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(DownloadReportCustomerCnResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get reporting filters
+ * Description: Retrieve available filters for financial reporting.
+ **/
+ public func getReportingFilters(
+ filterKey: String,
+ affiliateId: String?,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: GetReportingFiltersResponse?, _ error: FDKError?) -> Void
+ ) {
+
+ var xQuery: [String: Any] = [:]
+ xQuery["filter_key"] = filterKey
+
+ if let value = affiliateId {
+ xQuery["affiliate_id"] = value
+ }
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/reporting-filters",
+ query: xQuery,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(GetReportingFiltersResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Display all payment options for invoice.
+ * Description: Display all payment options for invoice.
+ **/
+ public func invoicePaymentOptions(
+ body: InvoicePaymentOptionsReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoicePaymentOptionsResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice-payment-options",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoicePaymentOptionsResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Display payment details of an invoice
+ * Description: Display payment details of invoice.
+ **/
+ public func invoicePaymentDetails(
+ invoiceNumber: String,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoicePaymentDetailsResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice/\(invoiceNumber)/payment",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoicePaymentDetailsResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Display activity log details of an invoice
+ * Description: Display activity log details of invoice.
+ **/
+ public func invoiceActivityLogs(
+ invoiceNumber: String,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: InvoiceActivityLogsResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/invoice/\(invoiceNumber)/activity",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(InvoiceActivityLogsResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Unlock credit notes
+ * Description: Used to unlock all request credit notes.
+ **/
+ public func unlockCreditNote(
+ body: UnlockCreditNoteReq,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: UnlockCreditNoteResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/credit-notes/unlock",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(UnlockCreditNoteResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get status of oms freeze.
+ * Description: Used to get status of oms freeze.
+ **/
+ public func orderFreeze(
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: OrederFreezeResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/finance/v1.0/company/\(companyId)/order/freeze",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(OrederFreezeResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/Sources/code/platform/Client/LeadPlatformClient.swift b/Sources/code/platform/Client/LeadPlatformClient.swift
index 4c662d0e17..122d712ea0 100644
--- a/Sources/code/platform/Client/LeadPlatformClient.swift
+++ b/Sources/code/platform/Client/LeadPlatformClient.swift
@@ -478,7 +478,7 @@ extension PlatformClient {
public func getGeneralConfig(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GeneralConfigDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GeneralConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -506,7 +506,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GeneralConfigDetails.self, from: data)
+ let response = Utility.decode(GeneralConfigResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/OrderPlatformClient.swift b/Sources/code/platform/Client/OrderPlatformClient.swift
index 80646f2bfb..714956200f 100644
--- a/Sources/code/platform/Client/OrderPlatformClient.swift
+++ b/Sources/code/platform/Client/OrderPlatformClient.swift
@@ -22,7 +22,7 @@ extension PlatformClient {
public func invalidateShipmentCache(
body: InvalidateShipmentCachePayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: InvalidateShipmentCacheResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: InvalidateShipmentCacheResponse?, _ error: FDKError?) -> Void
) {
@@ -50,7 +50,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(InvalidateShipmentCacheResponseSchema.self, from: data)
+ let response = Utility.decode(InvalidateShipmentCacheResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -72,7 +72,7 @@ extension PlatformClient {
public func reassignLocation(
body: StoreReassign,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: StoreReassignResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: StoreReassignResponse?, _ error: FDKError?) -> Void
) {
@@ -100,7 +100,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(StoreReassignResponseSchema.self, from: data)
+ let response = Utility.decode(StoreReassignResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -122,7 +122,7 @@ extension PlatformClient {
public func updateShipmentLock(
body: UpdateShipmentLockPayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdateShipmentLockResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdateShipmentLockResponse?, _ error: FDKError?) -> Void
) {
@@ -150,7 +150,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdateShipmentLockResponseSchema.self, from: data)
+ let response = Utility.decode(UpdateShipmentLockResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -173,7 +173,7 @@ extension PlatformClient {
date: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AnnouncementsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AnnouncementsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -205,7 +205,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AnnouncementsResponseSchema.self, from: data)
+ let response = Utility.decode(AnnouncementsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -222,16 +222,69 @@ extension PlatformClient {
/**
*
* Summary: Update shipment address
- * Description: Update the address details of an existing shipment based on the provided address_category. This operation allows the modification of critical shipment details, potentially affecting delivery/billing accuracy and customer communication.
+ * Description: Modify the address details of an existing shipment
**/
public func updateAddress(
shipmentId: String,
- body: UpdateAddressRequestBody,
+ name: String?,
+ address: String?,
+ addressType: String?,
+ pincode: String?,
+ phone: String?,
+ email: String?,
+ landmark: String?,
+ addressCategory: String,
+ city: String?,
+ state: String?,
+ country: String?,
+
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BaseResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BaseResponse?, _ error: FDKError?) -> Void
) {
-
+ var xQuery: [String: Any] = [:]
+ xQuery["shipment_id"] = shipmentId
+
+ if let value = name {
+ xQuery["name"] = value
+ }
+
+ if let value = address {
+ xQuery["address"] = value
+ }
+
+ if let value = addressType {
+ xQuery["address_type"] = value
+ }
+
+ if let value = pincode {
+ xQuery["pincode"] = value
+ }
+
+ if let value = phone {
+ xQuery["phone"] = value
+ }
+
+ if let value = email {
+ xQuery["email"] = value
+ }
+
+ if let value = landmark {
+ xQuery["landmark"] = value
+ }
+ xQuery["address_category"] = addressCategory
+
+ if let value = city {
+ xQuery["city"] = value
+ }
+
+ if let value = state {
+ xQuery["state"] = value
+ }
+
+ if let value = country {
+ xQuery["country"] = value
+ }
var xHeaders: [(key: String, value: String)] = []
@@ -241,10 +294,10 @@ extension PlatformClient {
}
PlatformAPIClient.execute(
config: config,
- method: "PUT",
- url: "/service/platform/order-manage/v1.0/company/\(companyId)/shipment/\(shipmentId)/address",
- query: nil,
- body: body.dictionary,
+ method: "POST",
+ url: "/service/platform/order-manage/v1.0/company/\(companyId)/delight/update-address",
+ query: xQuery,
+ body: nil,
headers: xHeaders,
responseType: "application/json",
onResponse: { (responseData, error, responseCode) in
@@ -256,7 +309,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BaseResponseSchema.self, from: data)
+ let response = Utility.decode(BaseResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -328,7 +381,7 @@ extension PlatformClient {
public func getRoleBasedActions(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetActionsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetActionsResponse?, _ error: FDKError?) -> Void
) {
@@ -356,7 +409,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetActionsResponseSchema.self, from: data)
+ let response = Utility.decode(GetActionsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -380,7 +433,7 @@ extension PlatformClient {
bagId: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentHistoryResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ShipmentHistoryResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -416,7 +469,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ShipmentHistoryResponseSchema.self, from: data)
+ let response = Utility.decode(ShipmentHistoryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -438,7 +491,7 @@ extension PlatformClient {
public func postShipmentHistory(
body: PostShipmentHistory,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentHistoryResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ShipmentHistoryResponse?, _ error: FDKError?) -> Void
) {
@@ -466,7 +519,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ShipmentHistoryResponseSchema.self, from: data)
+ let response = Utility.decode(ShipmentHistoryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -488,7 +541,7 @@ extension PlatformClient {
public func sendSmsNinja(
body: SendSmsPayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BaseResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BaseResponse?, _ error: FDKError?) -> Void
) {
@@ -516,7 +569,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BaseResponseSchema.self, from: data)
+ let response = Utility.decode(BaseResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -538,7 +591,7 @@ extension PlatformClient {
public func updatePackagingDimensions(
body: UpdatePackagingDimensionsPayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdatePackagingDimensionsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdatePackagingDimensionsResponse?, _ error: FDKError?) -> Void
) {
@@ -566,7 +619,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdatePackagingDimensionsResponseSchema.self, from: data)
+ let response = Utility.decode(UpdatePackagingDimensionsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -588,7 +641,7 @@ extension PlatformClient {
public func createOrder(
body: CreateOrderAPI,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateOrderResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CreateOrderResponse?, _ error: FDKError?) -> Void
) {
@@ -616,107 +669,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CreateOrderResponseSchema.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Get channel configuration
- * Description: Retrieve configuration settings specific to orders for a channel
- **/
- public func getChannelConfig(
-
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateChannelConfigData?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "GET",
- url: "/service/platform/order-manage/v1.0/company/\(companyId)/order-config",
- query: nil,
- body: nil,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CreateChannelConfigData.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Create channel configuration
- * Description: Set up configuration for a channel specific to orders which has implications over how the order fulfilment happens in a channel
- **/
- public func createChannelConfig(
- body: CreateChannelConfigData,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CreateChannelConfigResponseSchema?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "POST",
- url: "/service/platform/order-manage/v1.0/company/\(companyId)/order-config",
- query: nil,
- body: body.dictionary,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(CreateChannelConfigResponseSchema.self, from: data)
+ let response = Utility.decode(CreateOrderResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -992,7 +945,7 @@ extension PlatformClient {
public func attachOrderUser(
body: AttachOrderUser,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AttachOrderUserResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AttachOrderUserResponse?, _ error: FDKError?) -> Void
) {
@@ -1020,7 +973,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AttachOrderUserResponseSchema.self, from: data)
+ let response = Utility.decode(AttachOrderUserResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1042,7 +995,7 @@ extension PlatformClient {
public func sendUserMobileOTP(
body: SendUserMobileOTP,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SendUserMobileOtpResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SendUserMobileOtpResponse?, _ error: FDKError?) -> Void
) {
@@ -1070,7 +1023,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SendUserMobileOtpResponseSchema.self, from: data)
+ let response = Utility.decode(SendUserMobileOtpResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1092,7 +1045,7 @@ extension PlatformClient {
public func verifyMobileOTP(
body: VerifyMobileOTP,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: VerifyOtpResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: VerifyOtpResponse?, _ error: FDKError?) -> Void
) {
@@ -1120,7 +1073,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(VerifyOtpResponseSchema.self, from: data)
+ let response = Utility.decode(VerifyOtpResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1140,9 +1093,9 @@ extension PlatformClient {
* Description: Downloads shipments/orders present in the provided lane
**/
public func downloadLanesReport(
- body: BulkReportsDownloadRequestSchema,
+ body: BulkReportsDownloadRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkReportsDownloadResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkReportsDownloadResponse?, _ error: FDKError?) -> Void
) {
@@ -1170,7 +1123,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkReportsDownloadResponseSchema.self, from: data)
+ let response = Utility.decode(BulkReportsDownloadResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1192,7 +1145,7 @@ extension PlatformClient {
public func bulkStateTransistion(
body: BulkStateTransistionRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkStateTransistionResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkStateTransistionResponse?, _ error: FDKError?) -> Void
) {
@@ -1220,7 +1173,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkStateTransistionResponseSchema.self, from: data)
+ let response = Utility.decode(BulkStateTransistionResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1249,7 +1202,7 @@ extension PlatformClient {
searchKey: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1293,7 +1246,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkListingResponseSchema.self, from: data)
+ let response = Utility.decode(BulkListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1316,7 +1269,7 @@ extension PlatformClient {
batchId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: JobDetailsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: JobDetailsResponse?, _ error: FDKError?) -> Void
) {
@@ -1344,7 +1297,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(JobDetailsResponseSchema.self, from: data)
+ let response = Utility.decode(JobDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1370,7 +1323,7 @@ extension PlatformClient {
reportType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: JobFailedResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: JobFailedResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1404,7 +1357,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(JobFailedResponseSchema.self, from: data)
+ let response = Utility.decode(JobFailedResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1607,9 +1560,9 @@ extension PlatformClient {
* Description: Endpoint to save and process order manifests.
**/
public func generateProcessManifest(
- body: ProcessManifestRequestSchema,
+ body: ProcessManifestRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ManifestResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ManifestResponse?, _ error: FDKError?) -> Void
) {
@@ -1637,7 +1590,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ManifestResponseSchema.self, from: data)
+ let response = Utility.decode(ManifestResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1736,7 +1689,7 @@ extension PlatformClient {
public func dispatchManifests(
body: DispatchManifest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -1764,7 +1717,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1786,7 +1739,7 @@ extension PlatformClient {
public func uploadConsents(
body: UploadManifestConsent,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SuccessResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -1814,7 +1767,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SuccessResponseSchema.self, from: data)
+ let response = Utility.decode(SuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1837,7 +1790,7 @@ extension PlatformClient {
view: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ManifestFiltersResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ManifestFiltersResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1866,7 +1819,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ManifestFiltersResponseSchema.self, from: data)
+ let response = Utility.decode(ManifestFiltersResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1888,7 +1841,7 @@ extension PlatformClient {
public func eInvoiceRetry(
body: EInvoiceRetry,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: EInvoiceRetryResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: EInvoiceRetryResponse?, _ error: FDKError?) -> Void
) {
@@ -1916,7 +1869,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(EInvoiceRetryResponseSchema.self, from: data)
+ let response = Utility.decode(EInvoiceRetryResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1942,7 +1895,7 @@ extension PlatformClient {
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CourierPartnerTrackingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CourierPartnerTrackingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -1986,7 +1939,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CourierPartnerTrackingResponseSchema.self, from: data)
+ let response = Utility.decode(CourierPartnerTrackingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2134,7 +2087,7 @@ extension PlatformClient {
invoiceType: String,
body: GenerateInvoiceIDRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GenerateInvoiceIDResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GenerateInvoiceIDResponse?, _ error: FDKError?) -> Void
) {
@@ -2162,7 +2115,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GenerateInvoiceIDResponseSchema.self, from: data)
+ let response = Utility.decode(GenerateInvoiceIDResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2235,7 +2188,7 @@ extension PlatformClient {
public func addStateManagerConfig(
body: TransitionConfigPayload,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ConfigUpdatedResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ConfigUpdatedResponse?, _ error: FDKError?) -> Void
) {
@@ -2263,7 +2216,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ConfigUpdatedResponseSchema.self, from: data)
+ let response = Utility.decode(ConfigUpdatedResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2345,57 +2298,6 @@ The ESM config stores order processing configuration. Each document in the ESM c
- /**
- *
- * Summary: Update payment details for an order, its shipments and its bags.
- * Description: Updates the payment mode for an order, its shipments and its bags. This endpoint allows for modifying payment methods, and associated details but not amount.
- **/
- public func updatePaymentInfo(
- body: UpdateShipmentPaymentMode,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: [String: Any]?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "PUT",
- url: "/service/platform/order-manage/v1.0/company/\(companyId)/payment/update",
- query: nil,
- body: body.dictionary,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = data.dictionary
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
-
/**
*
* Summary: List shipments
@@ -2433,11 +2335,10 @@ The ESM config stores order processing configuration. Each document in the ESM c
tags: String?,
customerId: String?,
orderType: String?,
- groupEntity: String?,
enforceDateFilter: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentInternalPlatformViewResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ShipmentInternalPlatformViewResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2566,10 +2467,6 @@ The ESM config stores order processing configuration. Each document in the ESM c
xQuery["order_type"] = value
}
- if let value = groupEntity {
- xQuery["group_entity"] = value
- }
-
if let value = enforceDateFilter {
xQuery["enforce_date_filter"] = value
}
@@ -2597,7 +2494,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ShipmentInternalPlatformViewResponseSchema.self, from: data)
+ let response = Utility.decode(ShipmentInternalPlatformViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2613,7 +2510,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
/**
*
- * Summary: Get shipment details
+ * Summary: Get shipment
* Description: Get detailed information about a specific shipment
**/
public func getShipmentById(
@@ -2623,7 +2520,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
allowInactive: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ShipmentInfoResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ShipmentInfoResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2667,7 +2564,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ShipmentInfoResponseSchema.self, from: data)
+ let response = Utility.decode(ShipmentInfoResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2692,7 +2589,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
allowInactive: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderDetailsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OrderDetailsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2729,7 +2626,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OrderDetailsResponseSchema.self, from: data)
+ let response = Utility.decode(OrderDetailsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2770,7 +2667,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
orderType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: LaneConfigResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: LaneConfigResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -2874,7 +2771,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(LaneConfigResponseSchema.self, from: data)
+ let response = Utility.decode(LaneConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -2891,7 +2788,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
/**
*
* Summary: List orders
- * Description: Get a list of orders based on the filters provided.
+ * Description: Get a list of orders based on the filters provided
**/
public func getOrders(
lane: String?,
@@ -2917,11 +2814,10 @@ The ESM config stores order processing configuration. Each document in the ESM c
customerId: String?,
orderType: String?,
allowInactive: Bool?,
- groupEntity: String?,
enforceDateFilter: Bool?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OrderListingResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OrderListingResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3018,10 +2914,6 @@ The ESM config stores order processing configuration. Each document in the ESM c
xQuery["allow_inactive"] = value
}
- if let value = groupEntity {
- xQuery["group_entity"] = value
- }
-
if let value = enforceDateFilter {
xQuery["enforce_date_filter"] = value
}
@@ -3049,7 +2941,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OrderListingResponseSchema.self, from: data)
+ let response = Utility.decode(OrderListingResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3075,7 +2967,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
groupEntity: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FiltersResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FiltersResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3108,7 +3000,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FiltersResponseSchema.self, from: data)
+ let response = Utility.decode(FiltersResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3142,7 +3034,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3218,7 +3110,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileResponseSchema.self, from: data)
+ let response = Utility.decode(FileResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3240,7 +3132,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
public func getBulkActionTemplate(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkActionTemplateResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkActionTemplateResponse?, _ error: FDKError?) -> Void
) {
@@ -3268,7 +3160,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkActionTemplateResponseSchema.self, from: data)
+ let response = Utility.decode(BulkActionTemplateResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3291,7 +3183,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
templateSlug: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: FileResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: FileResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3323,7 +3215,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(FileResponseSchema.self, from: data)
+ let response = Utility.decode(FileResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3348,7 +3240,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
state: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PlatformShipmentReasonsResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PlatformShipmentReasonsResponse?, _ error: FDKError?) -> Void
) {
@@ -3376,7 +3268,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PlatformShipmentReasonsResponseSchema.self, from: data)
+ let response = Utility.decode(PlatformShipmentReasonsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3402,7 +3294,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
channelId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BagDetailsPlatformResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BagDetailsPlatformResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3442,7 +3334,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BagDetailsPlatformResponseSchema.self, from: data)
+ let response = Utility.decode(BagDetailsPlatformResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3473,7 +3365,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
pageSize: Int?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetBagsPlatformResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetBagsPlatformResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3537,7 +3429,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetBagsPlatformResponseSchema.self, from: data)
+ let response = Utility.decode(GetBagsPlatformResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3562,7 +3454,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
documentType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GeneratePosOrderReceiptResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GeneratePosOrderReceiptResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -3598,7 +3490,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GeneratePosOrderReceiptResponseSchema.self, from: data)
+ let response = Utility.decode(GeneratePosOrderReceiptResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3620,7 +3512,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
public func getAllowedTemplatesForBulk(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: AllowedTemplatesResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: AllowedTemplatesResponse?, _ error: FDKError?) -> Void
) {
@@ -3648,7 +3540,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(AllowedTemplatesResponseSchema.self, from: data)
+ let response = Utility.decode(AllowedTemplatesResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -3671,7 +3563,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
templateName: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: TemplateDownloadResponseSchema?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: TemplateDownloadResponse?, _ error: FDKError?) -> Void
) {
@@ -3699,7 +3591,7 @@ The ESM config stores order processing configuration. Each document in the ESM c
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(TemplateDownloadResponseSchema.self, from: data)
+ let response = Utility.decode(TemplateDownloadResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/PaymentPlatformClient.swift b/Sources/code/platform/Client/PaymentPlatformClient.swift
index 730e62f74e..527caf5cfd 100644
--- a/Sources/code/platform/Client/PaymentPlatformClient.swift
+++ b/Sources/code/platform/Client/PaymentPlatformClient.swift
@@ -26,7 +26,7 @@ extension PlatformClient {
uniqueExternalId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PayoutsDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PayoutsResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -58,7 +58,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PayoutsDetails.self, from: data)
+ let response = Utility.decode(PayoutsResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -78,9 +78,9 @@ extension PlatformClient {
* Description: Store and process a payout transaction.
**/
public func savePayout(
- body: PayoutCreation,
+ body: PayoutRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PayoutDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PayoutResponse?, _ error: FDKError?) -> Void
) {
@@ -108,7 +108,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PayoutDetails.self, from: data)
+ let response = Utility.decode(PayoutResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -129,9 +129,9 @@ extension PlatformClient {
**/
public func updatePayout(
uniqueTransferNo: String,
- body: PayoutCreation,
+ body: PayoutRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdatePayoutDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdatePayoutResponse?, _ error: FDKError?) -> Void
) {
@@ -159,7 +159,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdatePayoutDetails.self, from: data)
+ let response = Utility.decode(UpdatePayoutResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -180,9 +180,9 @@ extension PlatformClient {
**/
public func activateAndDectivatePayout(
uniqueTransferNo: String,
- body: UpdatePayoutCreation,
+ body: UpdatePayoutRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpdatePayoutDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: UpdatePayoutResponse?, _ error: FDKError?) -> Void
) {
@@ -210,7 +210,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(UpdatePayoutDetails.self, from: data)
+ let response = Utility.decode(UpdatePayoutResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -233,7 +233,7 @@ extension PlatformClient {
uniqueTransferNo: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DeletePayoutDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DeletePayoutResponse?, _ error: FDKError?) -> Void
) {
@@ -261,7 +261,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DeletePayoutDetails.self, from: data)
+ let response = Utility.decode(DeletePayoutResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -284,7 +284,7 @@ extension PlatformClient {
uniqueExternalId: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriptionPaymentMethodDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriptionPaymentMethodResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -316,7 +316,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriptionPaymentMethodDetails.self, from: data)
+ let response = Utility.decode(SubscriptionPaymentMethodResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -340,7 +340,7 @@ extension PlatformClient {
paymentMethodId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: DeleteSubscriptionPaymentMethodDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: DeleteSubscriptionPaymentMethodResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -370,7 +370,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(DeleteSubscriptionPaymentMethodDetails.self, from: data)
+ let response = Utility.decode(DeleteSubscriptionPaymentMethodResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -392,7 +392,7 @@ extension PlatformClient {
public func getSubscriptionConfig(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriptionConfigDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriptionConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -420,7 +420,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriptionConfigDetails.self, from: data)
+ let response = Utility.decode(SubscriptionConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -440,9 +440,9 @@ extension PlatformClient {
* Description: Store and process setup intent for subscriptions.
**/
public func saveSubscriptionSetupIntent(
- body: SaveSubscriptionSetupIntentCreation,
+ body: SaveSubscriptionSetupIntentRequest,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SaveSubscriptionSetupIntentDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SaveSubscriptionSetupIntentResponse?, _ error: FDKError?) -> Void
) {
@@ -470,7 +470,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SaveSubscriptionSetupIntentDetails.self, from: data)
+ let response = Utility.decode(SaveSubscriptionSetupIntentResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -495,7 +495,7 @@ extension PlatformClient {
ifscCode: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: IfscCodeDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: IfscCodeResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -524,7 +524,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(IfscCodeDetails.self, from: data)
+ let response = Utility.decode(IfscCodeResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/ServiceabilityPlatformClient.swift b/Sources/code/platform/Client/ServiceabilityPlatformClient.swift
index 797fb125bc..02b77fe3ad 100644
--- a/Sources/code/platform/Client/ServiceabilityPlatformClient.swift
+++ b/Sources/code/platform/Client/ServiceabilityPlatformClient.swift
@@ -32,7 +32,7 @@ extension PlatformClient {
sector: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ListViewResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ListViewResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -100,7 +100,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ListViewResult.self, from: data)
+ let response = Utility.decode(ListViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -122,7 +122,7 @@ extension PlatformClient {
public func createZone(
body: CreateZoneData,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ZoneResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ZoneResponse?, _ error: FDKError?) -> Void
) {
@@ -150,7 +150,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ZoneResult.self, from: data)
+ let response = Utility.decode(ZoneResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -173,7 +173,7 @@ extension PlatformClient {
zoneId: String,
body: UpdateZoneData,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: ZoneSuccessResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: ZoneSuccessResponse?, _ error: FDKError?) -> Void
) {
@@ -201,7 +201,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(ZoneSuccessResult.self, from: data)
+ let response = Utility.decode(ZoneSuccessResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -274,7 +274,7 @@ extension PlatformClient {
public func getAllStores(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: GetStoresViewResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: GetStoresViewResponse?, _ error: FDKError?) -> Void
) {
@@ -302,7 +302,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(GetStoresViewResult.self, from: data)
+ let response = Utility.decode(GetStoresViewResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -326,7 +326,7 @@ extension PlatformClient {
* Description: Creates a courier partner account.
**/
public func createCourierPartnerAccount(
- body: CourierAccountDetailsBody,
+ body: CourierAccountRequestBody,
headers: [(key: String, value: String)]? = nil,
onResponse: @escaping (_ response: CourierAccount?, _ error: FDKError?) -> Void
) {
@@ -383,7 +383,7 @@ extension PlatformClient {
transportType: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CompanyCourierPartnerAccountListResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CompanyCourierPartnerAccountListResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -431,7 +431,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CompanyCourierPartnerAccountListResult.self, from: data)
+ let response = Utility.decode(CompanyCourierPartnerAccountListResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -452,9 +452,9 @@ extension PlatformClient {
**/
public func updateCourierPartnerAccount(
accountId: String,
- body: CourierAccountUpdateDetails,
+ body: CourierAccount,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CourierAccountResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CourierAccountResponse?, _ error: FDKError?) -> Void
) {
@@ -482,7 +482,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CourierAccountResult.self, from: data)
+ let response = Utility.decode(CourierAccountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -505,7 +505,7 @@ extension PlatformClient {
accountId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: CourierAccountResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: CourierAccountResponse?, _ error: FDKError?) -> Void
) {
@@ -533,7 +533,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(CourierAccountResult.self, from: data)
+ let response = Utility.decode(CourierAccountResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -551,7 +551,6 @@ extension PlatformClient {
-
/**
*
* Summary: Update delivery configuration
@@ -663,9 +662,9 @@ Export locality wise CSV files.
public func bulkTat(
extensionId: String,
schemeId: String,
- body: BulkRegionJobDetails,
+ body: BulkRegionJobSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkRegionResultItemData?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkRegionResponseItemData?, _ error: FDKError?) -> Void
) {
@@ -693,7 +692,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkRegionResultItemData.self, from: data)
+ let response = Utility.decode(BulkRegionResponseItemData.self, from: data)
onResponse(response, nil)
} else {
@@ -726,7 +725,7 @@ Export locality wise CSV files.
endDate: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkRegionResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkRegionResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -790,7 +789,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkRegionResult.self, from: data)
+ let response = Utility.decode(BulkRegionResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -821,9 +820,9 @@ Export locality wise CSV files.
public func bulkServiceability(
extensionId: String,
schemeId: String,
- body: BulkRegionJobDetails,
+ body: BulkRegionJobSerializer,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkRegionResultItemData?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkRegionResponseItemData?, _ error: FDKError?) -> Void
) {
@@ -851,7 +850,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkRegionResultItemData.self, from: data)
+ let response = Utility.decode(BulkRegionResponseItemData.self, from: data)
onResponse(response, nil)
} else {
@@ -884,7 +883,7 @@ Export locality wise CSV files.
endDate: String?,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: BulkRegionResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: BulkRegionResponse?, _ error: FDKError?) -> Void
) {
var xQuery: [String: Any] = [:]
@@ -948,7 +947,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(BulkRegionResult.self, from: data)
+ let response = Utility.decode(BulkRegionResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1076,7 +1075,7 @@ Export locality wise CSV files.
public func createPackageMaterial(
body: PackageMaterial,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageMaterialResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageMaterialResponse?, _ error: FDKError?) -> Void
) {
@@ -1104,7 +1103,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageMaterialResult.self, from: data)
+ let response = Utility.decode(PackageMaterialResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1201,7 +1200,7 @@ Export locality wise CSV files.
public func createPackageMaterialRule(
body: PackageRule,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageRuleResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageRuleResponse?, _ error: FDKError?) -> Void
) {
@@ -1229,7 +1228,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageRuleResult.self, from: data)
+ let response = Utility.decode(PackageRuleResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1317,7 +1316,7 @@ Export locality wise CSV files.
ruleId: String,
body: PackageRule,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageRuleResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageRuleResponse?, _ error: FDKError?) -> Void
) {
@@ -1345,7 +1344,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageRuleResult.self, from: data)
+ let response = Utility.decode(PackageRuleResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1368,7 +1367,7 @@ Export locality wise CSV files.
ruleId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageRuleResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageRuleResponse?, _ error: FDKError?) -> Void
) {
@@ -1396,7 +1395,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageRuleResult.self, from: data)
+ let response = Utility.decode(PackageRuleResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1419,7 +1418,7 @@ Export locality wise CSV files.
packageMaterialId: String,
body: PackageMaterial,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageMaterialResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageMaterialResponse?, _ error: FDKError?) -> Void
) {
@@ -1447,7 +1446,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageMaterialResult.self, from: data)
+ let response = Utility.decode(PackageMaterialResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1470,7 +1469,7 @@ Export locality wise CSV files.
packageMaterialId: String,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: PackageMaterialResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: PackageMaterialResponse?, _ error: FDKError?) -> Void
) {
@@ -1498,7 +1497,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(PackageMaterialResult.self, from: data)
+ let response = Utility.decode(PackageMaterialResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -1519,9 +1518,9 @@ Export locality wise CSV files.
* Description: Retrieves a list selling locations which are best suited to fullfil an order for a customer.
**/
public func getOptimalLocations(
- body: OptimlLocationsDetailsSchema,
+ body: OptimlLocationsRequestSchema,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: OptimalLocationsResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: OptimalLocationsResponse?, _ error: FDKError?) -> Void
) {
@@ -1549,7 +1548,7 @@ Export locality wise CSV files.
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(OptimalLocationsResult.self, from: data)
+ let response = Utility.decode(OptimalLocationsResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Client/WebhookPlatformClient.swift b/Sources/code/platform/Client/WebhookPlatformClient.swift
index 628b149007..3a478c7bb0 100644
--- a/Sources/code/platform/Client/WebhookPlatformClient.swift
+++ b/Sources/code/platform/Client/WebhookPlatformClient.swift
@@ -14,6 +14,308 @@ extension PlatformClient {
+ /**
+ *
+ * Summary: Download delivery report
+ * Description: Download detailed delivery reports for events.
+ **/
+ public func downloadDeliveryReport(
+ body: EventProcessRequest,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: DownloadReportResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/reports/download",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(DownloadReportResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Ping webhook
+ * Description: Send a test ping to a webhook for verification.
+ **/
+ public func pingWebhook(
+ body: PingWebhook,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: PingWebhookResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/subscriber/ping",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(PingWebhookResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get report filters
+ * Description: Retrieve filters used for generating reports.
+ **/
+ public func getReportFilters(
+ body: ReportFiltersPayload,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: [ReportFilterResponse]?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/filters",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode([ReportFilterResponse].self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get historical reports
+ * Description: Retrieve historical reports of webhook events.
+ **/
+ public func getHistoricalReports(
+ body: HistoryPayload,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: HistoryResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/reports/history",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(HistoryResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Cancel job by name
+ * Description: It will cancel export job triggerd by user in order to fetch
+historical delivery summery
+ **/
+ public func cancelJobByName(
+ filename: String,
+
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: CancelResponse?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "GET",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/reports/cancel/file/\(filename)",
+ query: nil,
+ body: nil,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(CancelResponse.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
+ /**
+ *
+ * Summary: Get delivery reports
+ * Description: Retrieve reports on the delivery status of events.
+ **/
+ public func getDeliveryReports(
+ body: EventProcessRequest,
+ headers: [(key: String, value: String)]? = nil,
+ onResponse: @escaping (_ response: EventProcessReports?, _ error: FDKError?) -> Void
+ ) {
+
+
+
+ var xHeaders: [(key: String, value: String)] = []
+
+
+ if let headers = headers {
+ xHeaders.append(contentsOf: headers)
+ }
+ PlatformAPIClient.execute(
+ config: config,
+ method: "POST",
+ url: "/service/platform/webhook/v1.0/company/\(companyId)/reports/event_processed",
+ query: nil,
+ body: body.dictionary,
+ headers: xHeaders,
+ responseType: "application/json",
+ onResponse: { (responseData, error, responseCode) in
+ if let _ = error, let data = responseData {
+ var err = Utility.decode(FDKError.self, from: data)
+ if err?.status == nil {
+ err?.status = responseCode
+ }
+ onResponse(nil, err)
+ } else if let data = responseData {
+
+ let response = Utility.decode(EventProcessReports.self, from: data)
+
+ onResponse(response, nil)
+ } else {
+ let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
+ NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
+ let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
+ onResponse(nil, err)
+ }
+ });
+ }
+
+
+
/**
*
* Summary: List event configurations
@@ -22,7 +324,7 @@ extension PlatformClient {
public func fetchAllEventConfigurations(
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: EventConfigResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: EventConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -50,7 +352,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(EventConfigResult.self, from: data)
+ let response = Utility.decode(EventConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -73,7 +375,7 @@ extension PlatformClient {
public func registerSubscriberToEventV2(
body: SubscriberConfigPostRequestV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriberConfigResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriberConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -101,7 +403,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriberConfigResult.self, from: data)
+ let response = Utility.decode(SubscriberConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -124,7 +426,7 @@ extension PlatformClient {
public func updateSubscriberV2(
body: SubscriberConfigUpdateRequestV2,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriberConfigResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriberConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -152,7 +454,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriberConfigResult.self, from: data)
+ let response = Utility.decode(SubscriberConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -174,7 +476,7 @@ extension PlatformClient {
public func registerSubscriberToEvent(
body: SubscriberConfigPost,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriberConfigResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriberConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -202,7 +504,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriberConfigResult.self, from: data)
+ let response = Utility.decode(SubscriberConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -289,7 +591,7 @@ extension PlatformClient {
public func updateSubscriberConfig(
body: SubscriberConfigUpdate,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriberConfigResult?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriberConfigResponse?, _ error: FDKError?) -> Void
) {
@@ -317,58 +619,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriberConfigResult.self, from: data)
-
- onResponse(response, nil)
- } else {
- let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") ,
- NSLocalizedFailureReasonErrorKey : NSLocalizedString("Unidentified", value: "Something went wrong", comment: "")]
- let err = FDKError(message: "Something went wrong", status: 502, code: "Unidentified", exception: nil, info: "Please try after sometime", requestID: nil, stackTrace: nil, meta: userInfo)
- onResponse(nil, err)
- }
- });
- }
-
-
-
- /**
- *
- * Summary: Register Subscriber.
- * Description: Register Subscriber.
-
- **/
- public func upsertSubscriberEvent(
- body: UpsertSubscriberConfig,
- headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: UpsertSubscriberConfigResult?, _ error: FDKError?) -> Void
- ) {
-
-
-
- var xHeaders: [(key: String, value: String)] = []
-
-
- if let headers = headers {
- xHeaders.append(contentsOf: headers)
- }
- PlatformAPIClient.execute(
- config: config,
- method: "PUT",
- url: "/service/platform/webhook/v3.0/company/\(companyId)/subscriber/",
- query: nil,
- body: body.dictionary,
- headers: xHeaders,
- responseType: "application/json",
- onResponse: { (responseData, error, responseCode) in
- if let _ = error, let data = responseData {
- var err = Utility.decode(FDKError.self, from: data)
- if err?.status == nil {
- err?.status = responseCode
- }
- onResponse(nil, err)
- } else if let data = responseData {
-
- let response = Utility.decode(UpsertSubscriberConfigResult.self, from: data)
+ let response = Utility.decode(SubscriberConfigResponse.self, from: data)
onResponse(response, nil)
} else {
@@ -391,7 +642,7 @@ extension PlatformClient {
subscriberId: Int,
headers: [(key: String, value: String)]? = nil,
- onResponse: @escaping (_ response: SubscriberDetails?, _ error: FDKError?) -> Void
+ onResponse: @escaping (_ response: SubscriberResponse?, _ error: FDKError?) -> Void
) {
@@ -419,7 +670,7 @@ extension PlatformClient {
onResponse(nil, err)
} else if let data = responseData {
- let response = Utility.decode(SubscriberDetails.self, from: data)
+ let response = Utility.decode(SubscriberResponse.self, from: data)
onResponse(response, nil)
} else {
diff --git a/Sources/code/platform/Models/Analytics/JobExecutionResultAnalyticsPlatformModel.swift b/Sources/code/platform/Models/Analytics/JobExecutionResultAnalyticsPlatformModel.swift
deleted file mode 100644
index ab9bed05b6..0000000000
--- a/Sources/code/platform/Models/Analytics/JobExecutionResultAnalyticsPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Analytics {
- /*
- Model: JobExecutionResult
- Used By: Analytics
- */
-
- class JobExecutionResult: Codable {
-
-
- public var rows: [[String: Any]]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case rows = "rows"
-
- case page = "page"
-
- }
-
- public init(page: Page? = nil, rows: [[String: Any]]? = nil) {
-
- self.rows = rows
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- rows = try container.decode([[String: Any]].self, forKey: .rows)
-
- } 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)
-
- } 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(rows, forKey: .rows)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Analytics/JobStatusAnalyticsPlatformModel.swift b/Sources/code/platform/Models/Analytics/JobStatusAnalyticsPlatformModel.swift
deleted file mode 100644
index 723c4d8f04..0000000000
--- a/Sources/code/platform/Models/Analytics/JobStatusAnalyticsPlatformModel.swift
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Analytics {
- /*
- Model: JobStatus
- Used By: Analytics
- */
-
- class JobStatus: Codable {
-
-
- public var startDate: String?
-
- public var endDate: String?
-
- public var status: String?
-
- public var message: String?
-
- public var fileMetadata: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case startDate = "start_date"
-
- case endDate = "end_date"
-
- case status = "status"
-
- case message = "message"
-
- case fileMetadata = "file_metadata"
-
- }
-
- public init(endDate: String? = nil, fileMetadata: [[String: Any]]? = nil, message: String? = nil, startDate: String? = nil, status: String? = nil) {
-
- self.startDate = startDate
-
- self.endDate = endDate
-
- self.status = status
-
- self.message = message
-
- self.fileMetadata = fileMetadata
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- startDate = try container.decode(String.self, forKey: .startDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- fileMetadata = try container.decode([[String: Any]].self, forKey: .fileMetadata)
-
- } 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(startDate, forKey: .startDate)
-
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(fileMetadata, forKey: .fileMetadata)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/AuditTrail/BadRequestAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/BadRequestAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..38f3333264
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/BadRequestAuditTrailPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: BadRequest
+ Used By: AuditTrail
+ */
+
+ class BadRequest: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/BadRequestSchemaAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/BadRequestSchemaAuditTrailPlatformModel.swift
deleted file mode 100644
index db59917c4a..0000000000
--- a/Sources/code/platform/Models/AuditTrail/BadRequestSchemaAuditTrailPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.AuditTrail {
- /*
- Model: BadRequestSchema
- Used By: AuditTrail
- */
-
- class BadRequestSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/AuditTrail/CreateLogRespAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/CreateLogRespAuditTrailPlatformModel.swift
deleted file mode 100644
index a277b21653..0000000000
--- a/Sources/code/platform/Models/AuditTrail/CreateLogRespAuditTrailPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.AuditTrail {
- /*
- Model: CreateLogResp
- Used By: AuditTrail
- */
-
- class CreateLogResp: Codable {
-
-
- public var message: String?
-
- public var internalMessage: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case internalMessage = "internal_message"
-
- }
-
- public init(internalMessage: String? = nil, message: String? = nil) {
-
- self.message = message
-
- self.internalMessage = internalMessage
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- internalMessage = try container.decode(String.self, forKey: .internalMessage)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(internalMessage, forKey: .internalMessage)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/AuditTrail/CreateLogResponseAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/CreateLogResponseAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..c5a070b5c5
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/CreateLogResponseAuditTrailPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: CreateLogResponse
+ Used By: AuditTrail
+ */
+
+ class CreateLogResponse: Codable {
+
+
+ public var message: String?
+
+ public var internalMessage: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case internalMessage = "internal_message"
+
+ }
+
+ public init(internalMessage: String? = nil, message: String? = nil) {
+
+ self.message = message
+
+ self.internalMessage = internalMessage
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ internalMessage = try container.decode(String.self, forKey: .internalMessage)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(internalMessage, forKey: .internalMessage)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/DeviceInfoAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/DeviceInfoAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..697b9f9cb0
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/DeviceInfoAuditTrailPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: DeviceInfo
+ Used By: AuditTrail
+ */
+
+ class DeviceInfo: Codable {
+
+
+ public var userAgent: String?
+
+ public var extraMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userAgent = "user_agent"
+
+ case extraMeta = "extra_meta"
+
+ }
+
+ public init(extraMeta: [String: Any]? = nil, userAgent: String? = nil) {
+
+ self.userAgent = userAgent
+
+ self.extraMeta = extraMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ userAgent = try container.decode(String.self, forKey: .userAgent)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
+
+ } 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(userAgent, forKey: .userAgent)
+
+
+
+
+ try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/EntityObjAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/EntityObjAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..ea6316c224
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/EntityObjAuditTrailPlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: EntityObj
+ Used By: AuditTrail
+ */
+
+ class EntityObj: Codable {
+
+
+ public var id: String?
+
+ public var type: String?
+
+ public var action: String?
+
+ public var entityDetails: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case type = "type"
+
+ case action = "action"
+
+ case entityDetails = "entity_details"
+
+ }
+
+ public init(action: String? = nil, entityDetails: [String: Any]? = nil, id: String? = nil, type: String? = nil) {
+
+ self.id = id
+
+ self.type = type
+
+ self.action = action
+
+ self.entityDetails = entityDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ action = try container.decode(String.self, forKey: .action)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ entityDetails = try container.decode([String: Any].self, forKey: .entityDetails)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(entityDetails, forKey: .entityDetails)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/EntityTypeObjAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/EntityTypeObjAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..a0d35d6313
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/EntityTypeObjAuditTrailPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: EntityTypeObj
+ Used By: AuditTrail
+ */
+
+ class EntityTypeObj: Codable {
+
+
+ public var entityValue: String?
+
+ public var displayName: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case entityValue = "entity_value"
+
+ case displayName = "display_name"
+
+ }
+
+ public init(displayName: String? = nil, entityValue: String? = nil) {
+
+ self.entityValue = entityValue
+
+ self.displayName = displayName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ entityValue = try container.decode(String.self, forKey: .entityValue)
+
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(entityValue, forKey: .entityValue)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/EntityTypesResponseAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/EntityTypesResponseAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..f8786daaa8
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/EntityTypesResponseAuditTrailPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: EntityTypesResponse
+ Used By: AuditTrail
+ */
+
+ class EntityTypesResponse: Codable {
+
+
+ public var items: [EntityTypeObj]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [EntityTypeObj]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([EntityTypeObj].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)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/InternalServerErrorAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/InternalServerErrorAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..e9c6408454
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/InternalServerErrorAuditTrailPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: InternalServerError
+ Used By: AuditTrail
+ */
+
+ class InternalServerError: Codable {
+
+
+ public var message: String?
+
+ public var code: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case code = "code"
+
+ }
+
+ public init(code: String? = nil, message: String? = nil) {
+
+ self.message = message
+
+ self.code = code
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/LocationAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/LocationAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..6d93b91a94
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/LocationAuditTrailPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: Location
+ Used By: AuditTrail
+ */
+
+ class Location: Codable {
+
+
+ public var extraMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case extraMeta = "extra_meta"
+
+ }
+
+ public init(extraMeta: [String: Any]? = nil) {
+
+ self.extraMeta = extraMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
+
+ } 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(extraMeta, forKey: .extraMeta)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/LogDocsAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/LogDocsAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..877fc8b507
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/LogDocsAuditTrailPlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: LogDocs
+ Used By: AuditTrail
+ */
+
+ class LogDocs: Codable {
+
+
+ public var entity: EntityObj?
+
+ public var modifier: Modifier?
+
+ public var deviceInfo: DeviceInfo?
+
+ public var location: Location?
+
+ public var id: String?
+
+ public var company: String?
+
+ public var application: String?
+
+ public var sessions: String?
+
+ public var date: String?
+
+ public var logs: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case entity = "entity"
+
+ case modifier = "modifier"
+
+ case deviceInfo = "device_info"
+
+ case location = "location"
+
+ case id = "_id"
+
+ case company = "company"
+
+ case application = "application"
+
+ case sessions = "sessions"
+
+ case date = "date"
+
+ case logs = "logs"
+
+ }
+
+ public init(application: String? = nil, company: String? = nil, date: String? = nil, deviceInfo: DeviceInfo? = nil, entity: EntityObj? = nil, location: Location? = nil, logs: [String: Any]? = nil, modifier: Modifier? = nil, sessions: String? = nil, id: String? = nil) {
+
+ self.entity = entity
+
+ self.modifier = modifier
+
+ self.deviceInfo = deviceInfo
+
+ self.location = location
+
+ self.id = id
+
+ self.company = company
+
+ self.application = application
+
+ self.sessions = sessions
+
+ self.date = date
+
+ self.logs = logs
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ entity = try container.decode(EntityObj.self, forKey: .entity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifier = try container.decode(Modifier.self, forKey: .modifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceInfo = try container.decode(DeviceInfo.self, forKey: .deviceInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ location = try container.decode(Location.self, forKey: .location)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sessions = try container.decode(String.self, forKey: .sessions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ date = try container.decode(String.self, forKey: .date)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ logs = try container.decode([String: Any].self, forKey: .logs)
+
+ } 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(entity, forKey: .entity)
+
+
+
+
+ try? container.encodeIfPresent(modifier, forKey: .modifier)
+
+
+
+
+ try? container.encodeIfPresent(deviceInfo, forKey: .deviceInfo)
+
+
+
+
+ try? container.encodeIfPresent(location, forKey: .location)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(sessions, forKey: .sessions)
+
+
+
+
+ try? container.encodeIfPresent(date, forKey: .date)
+
+
+
+
+ try? container.encodeIfPresent(logs, forKey: .logs)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/LogMetaObjAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/LogMetaObjAuditTrailPlatformModel.swift
index eced3e8025..4c32157c24 100644
--- a/Sources/code/platform/Models/AuditTrail/LogMetaObjAuditTrailPlatformModel.swift
+++ b/Sources/code/platform/Models/AuditTrail/LogMetaObjAuditTrailPlatformModel.swift
@@ -22,8 +22,6 @@ public extension PlatformClient.AuditTrail {
public var location: [String: Any]?
- public var sessions: String?
-
public enum CodingKeys: String, CodingKey {
@@ -37,11 +35,9 @@ public extension PlatformClient.AuditTrail {
case location = "location"
- case sessions = "sessions"
-
}
- public init(application: String? = nil, deviceInfo: [String: Any]? = nil, entity: EntityObject? = nil, location: [String: Any]? = nil, modifier: [String: Any]? = nil, sessions: String? = nil) {
+ public init(application: String? = nil, deviceInfo: [String: Any]? = nil, entity: EntityObject? = nil, location: [String: Any]? = nil, modifier: [String: Any]? = nil) {
self.modifier = modifier
@@ -53,8 +49,6 @@ public extension PlatformClient.AuditTrail {
self.location = location
- self.sessions = sessions
-
}
required public init(from decoder: Decoder) throws {
@@ -120,18 +114,6 @@ public extension PlatformClient.AuditTrail {
}
-
- do {
- sessions = try container.decode(String.self, forKey: .sessions)
-
- } 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 {
@@ -162,11 +144,6 @@ public extension PlatformClient.AuditTrail {
try? container.encodeIfPresent(location, forKey: .location)
-
-
- try? container.encodeIfPresent(sessions, forKey: .sessions)
-
-
}
}
diff --git a/Sources/code/platform/Models/AuditTrail/LogSchemaResponseAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/LogSchemaResponseAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..0d503fe209
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/LogSchemaResponseAuditTrailPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: LogSchemaResponse
+ Used By: AuditTrail
+ */
+
+ class LogSchemaResponse: Codable {
+
+
+ public var docs: [LogDocs]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case docs = "docs"
+
+ }
+
+ public init(docs: [LogDocs]? = nil) {
+
+ self.docs = docs
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ docs = try container.decode([LogDocs].self, forKey: .docs)
+
+ } 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(docs, forKey: .docs)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/AuditTrail/ModifierAuditTrailPlatformModel.swift b/Sources/code/platform/Models/AuditTrail/ModifierAuditTrailPlatformModel.swift
new file mode 100644
index 0000000000..db46872cda
--- /dev/null
+++ b/Sources/code/platform/Models/AuditTrail/ModifierAuditTrailPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.AuditTrail {
+ /*
+ Model: Modifier
+ Used By: AuditTrail
+ */
+
+ class Modifier: Codable {
+
+
+ public var userId: String?
+
+ public var asAdministrator: Bool?
+
+ public var userDetails: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userId = "user_id"
+
+ case asAdministrator = "as_administrator"
+
+ case userDetails = "user_details"
+
+ }
+
+ public init(asAdministrator: Bool? = nil, userDetails: [String: Any]? = nil, userId: String? = nil) {
+
+ self.userId = userId
+
+ self.asAdministrator = asAdministrator
+
+ self.userDetails = userDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ asAdministrator = try container.decode(Bool.self, forKey: .asAdministrator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ userDetails = try container.decode([String: Any].self, forKey: .userDetails)
+
+ } 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(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(asAdministrator, forKey: .asAdministrator)
+
+
+
+
+ try? container.encodeIfPresent(userDetails, forKey: .userDetails)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Billing/BadRequestBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/BadRequestBillingPlatformModel.swift
new file mode 100644
index 0000000000..507ba8433e
--- /dev/null
+++ b/Sources/code/platform/Models/Billing/BadRequestBillingPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Billing {
+ /*
+ Model: BadRequest
+ Used By: Billing
+ */
+
+ class BadRequest: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Billing/BadRequestSchemaBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/BadRequestSchemaBillingPlatformModel.swift
deleted file mode 100644
index 27f2ec85d1..0000000000
--- a/Sources/code/platform/Models/Billing/BadRequestSchemaBillingPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Billing {
- /*
- Model: BadRequestSchema
- Used By: Billing
- */
-
- class BadRequestSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Billing/ChargeLineItemBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/ChargeLineItemBillingPlatformModel.swift
index 094fce15fa..e70dc536dd 100644
--- a/Sources/code/platform/Models/Billing/ChargeLineItemBillingPlatformModel.swift
+++ b/Sources/code/platform/Models/Billing/ChargeLineItemBillingPlatformModel.swift
@@ -24,7 +24,7 @@ public extension PlatformClient.Billing {
public var cappedAmount: Double?
- public var trialDays: Double?
+ public var trialDays: Int?
public var isTest: Bool?
@@ -53,7 +53,7 @@ public extension PlatformClient.Billing {
}
- public init(cappedAmount: Double? = nil, isTest: Bool? = nil, metadata: [String: Any]? = nil, name: String, price: EntityChargePrice, pricingType: String, recurring: EntityChargeRecurring? = nil, term: String, trialDays: Double? = nil) {
+ public init(cappedAmount: Double? = nil, isTest: Bool? = nil, metadata: [String: Any]? = nil, name: String, price: EntityChargePrice, pricingType: String, recurring: EntityChargeRecurring? = nil, term: String, trialDays: Int? = nil) {
self.name = name
@@ -124,7 +124,7 @@ public extension PlatformClient.Billing {
do {
- trialDays = try container.decode(Double.self, forKey: .trialDays)
+ trialDays = try container.decode(Int.self, forKey: .trialDays)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseBillingPlatformModel.swift
new file mode 100644
index 0000000000..6062b7adf8
--- /dev/null
+++ b/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseBillingPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Billing {
+ /*
+ Model: CreateOneTimeChargeResponse
+ Used By: Billing
+ */
+
+ class CreateOneTimeChargeResponse: Codable {
+
+
+ public var charge: Charge?
+
+ public var confirmUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case charge = "charge"
+
+ case confirmUrl = "confirm_url"
+
+ }
+
+ public init(charge: Charge? = nil, confirmUrl: String? = nil) {
+
+ self.charge = charge
+
+ self.confirmUrl = confirmUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ charge = try container.decode(Charge.self, forKey: .charge)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ confirmUrl = try container.decode(String.self, forKey: .confirmUrl)
+
+ } 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(charge, forKey: .charge)
+
+
+
+
+ try? container.encodeIfPresent(confirmUrl, forKey: .confirmUrl)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseSchemasBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseSchemasBillingPlatformModel.swift
deleted file mode 100644
index af6b176877..0000000000
--- a/Sources/code/platform/Models/Billing/CreateOneTimeChargeResponseSchemasBillingPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Billing {
- /*
- Model: CreateOneTimeChargeResponseSchemas
- Used By: Billing
- */
-
- class CreateOneTimeChargeResponseSchemas: Codable {
-
-
- public var charge: Charge?
-
- public var confirmUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case charge = "charge"
-
- case confirmUrl = "confirm_url"
-
- }
-
- public init(charge: Charge? = nil, confirmUrl: String? = nil) {
-
- self.charge = charge
-
- self.confirmUrl = confirmUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- charge = try container.decode(Charge.self, forKey: .charge)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- confirmUrl = try container.decode(String.self, forKey: .confirmUrl)
-
- } 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(charge, forKey: .charge)
-
-
-
-
- try? container.encodeIfPresent(confirmUrl, forKey: .confirmUrl)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Billing/CreateSubscriptionBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/CreateSubscriptionBillingPlatformModel.swift
deleted file mode 100644
index 17ff631c35..0000000000
--- a/Sources/code/platform/Models/Billing/CreateSubscriptionBillingPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Billing {
- /*
- Model: CreateSubscription
- Used By: Billing
- */
-
- class CreateSubscription: Codable {
-
-
- public var subscription: EntitySubscription?
-
- public var confirmUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subscription = "subscription"
-
- case confirmUrl = "confirm_url"
-
- }
-
- public init(confirmUrl: String? = nil, subscription: EntitySubscription? = nil) {
-
- self.subscription = subscription
-
- self.confirmUrl = confirmUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- subscription = try container.decode(EntitySubscription.self, forKey: .subscription)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- confirmUrl = try container.decode(String.self, forKey: .confirmUrl)
-
- } 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(subscription, forKey: .subscription)
-
-
-
-
- try? container.encodeIfPresent(confirmUrl, forKey: .confirmUrl)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Billing/CreateSubscriptionChargeBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/CreateSubscriptionChargeBillingPlatformModel.swift
index f924d46763..18d75fa7ce 100644
--- a/Sources/code/platform/Models/Billing/CreateSubscriptionChargeBillingPlatformModel.swift
+++ b/Sources/code/platform/Models/Billing/CreateSubscriptionChargeBillingPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Billing {
public var name: String
- public var trialDays: Double?
+ public var trialDays: Int?
public var lineItems: [ChargeLineItem]
@@ -37,7 +37,7 @@ public extension PlatformClient.Billing {
}
- public init(isTest: Bool? = nil, lineItems: [ChargeLineItem], name: String, returnUrl: String, trialDays: Double? = nil) {
+ public init(isTest: Bool? = nil, lineItems: [ChargeLineItem], name: String, returnUrl: String, trialDays: Int? = nil) {
self.name = name
@@ -61,7 +61,7 @@ public extension PlatformClient.Billing {
do {
- trialDays = try container.decode(Double.self, forKey: .trialDays)
+ trialDays = try container.decode(Int.self, forKey: .trialDays)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Billing/CreateSubscriptionResponseBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/CreateSubscriptionResponseBillingPlatformModel.swift
new file mode 100644
index 0000000000..c9f0884918
--- /dev/null
+++ b/Sources/code/platform/Models/Billing/CreateSubscriptionResponseBillingPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Billing {
+ /*
+ Model: CreateSubscriptionResponse
+ Used By: Billing
+ */
+
+ class CreateSubscriptionResponse: Codable {
+
+
+ public var subscription: EntitySubscription?
+
+ public var confirmUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subscription = "subscription"
+
+ case confirmUrl = "confirm_url"
+
+ }
+
+ public init(confirmUrl: String? = nil, subscription: EntitySubscription? = nil) {
+
+ self.subscription = subscription
+
+ self.confirmUrl = confirmUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subscription = try container.decode(EntitySubscription.self, forKey: .subscription)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ confirmUrl = try container.decode(String.self, forKey: .confirmUrl)
+
+ } 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(subscription, forKey: .subscription)
+
+
+
+
+ try? container.encodeIfPresent(confirmUrl, forKey: .confirmUrl)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Billing/ResourceNotFoundBillingPlatformModel.swift b/Sources/code/platform/Models/Billing/ResourceNotFoundBillingPlatformModel.swift
index bdcc0d45a0..b96cee054f 100644
--- a/Sources/code/platform/Models/Billing/ResourceNotFoundBillingPlatformModel.swift
+++ b/Sources/code/platform/Models/Billing/ResourceNotFoundBillingPlatformModel.swift
@@ -14,9 +14,9 @@ public extension PlatformClient.Billing {
public var message: String?
- public var code: Int?
+ public var code: [String: Any]?
- public var success: Bool?
+ public var success: [String: Any]?
public enum CodingKeys: String, CodingKey {
@@ -29,7 +29,7 @@ public extension PlatformClient.Billing {
}
- public init(code: Int? = nil, message: String? = nil, success: Bool? = nil) {
+ public init(code: [String: Any]? = nil, message: String? = nil, success: [String: Any]? = nil) {
self.message = message
@@ -56,7 +56,7 @@ public extension PlatformClient.Billing {
do {
- code = try container.decode(Int.self, forKey: .code)
+ code = try container.decode([String: Any].self, forKey: .code)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -68,7 +68,7 @@ public extension PlatformClient.Billing {
do {
- success = try container.decode(Bool.self, forKey: .success)
+ success = try container.decode([String: Any].self, forKey: .success)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Cart/AbandonedCartResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AbandonedCartResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..ea5181450c
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/AbandonedCartResponseCartPlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: AbandonedCartResponse
+ Used By: Cart
+ */
+
+ class AbandonedCartResponse: Codable {
+
+
+ public var items: [AbandonedCart]?
+
+ public var result: [String: Any]?
+
+ public var page: Page?
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case result = "result"
+
+ case page = "page"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(items: [AbandonedCart]? = nil, message: String? = nil, page: Page? = nil, result: [String: Any]? = nil, success: Bool? = nil) {
+
+ self.items = items
+
+ self.result = result
+
+ self.page = page
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([AbandonedCart].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ result = try container.decode([String: Any].self, forKey: .result)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ 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(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(result, forKey: .result)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/AbandonedCartResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AbandonedCartResultCartPlatformModel.swift
deleted file mode 100644
index a7649c7ee7..0000000000
--- a/Sources/code/platform/Models/Cart/AbandonedCartResultCartPlatformModel.swift
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: AbandonedCartResult
- Used By: Cart
- */
-
- class AbandonedCartResult: Codable {
-
-
- public var items: [AbandonedCart]?
-
- public var result: [String: Any]?
-
- public var page: Page?
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case result = "result"
-
- case page = "page"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(items: [AbandonedCart]? = nil, message: String? = nil, page: Page? = nil, result: [String: Any]? = nil, success: Bool? = nil) {
-
- self.items = items
-
- self.result = result
-
- self.page = page
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([AbandonedCart].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- result = try container.decode([String: Any].self, forKey: .result)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- 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(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(result, forKey: .result)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ActivePromosResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ActivePromosResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..42168bf2a9
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/ActivePromosResponseCartPlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: ActivePromosResponse
+ Used By: Cart
+ */
+
+ class ActivePromosResponse: Codable {
+
+
+ public var entitySlug: String?
+
+ public var title: String?
+
+ public var modifiedOn: String?
+
+ public var example: String?
+
+ public var entityType: String?
+
+ public var createdOn: String?
+
+ public var isHidden: Bool?
+
+ public var type: String?
+
+ public var subtitle: String?
+
+ public var description: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case entitySlug = "entity_slug"
+
+ case title = "title"
+
+ case modifiedOn = "modified_on"
+
+ case example = "example"
+
+ case entityType = "entity_type"
+
+ case createdOn = "created_on"
+
+ case isHidden = "is_hidden"
+
+ case type = "type"
+
+ case subtitle = "subtitle"
+
+ case description = "description"
+
+ }
+
+ public init(createdOn: String? = nil, description: String? = nil, entitySlug: String? = nil, entityType: String? = nil, example: String? = nil, isHidden: Bool? = nil, modifiedOn: String? = nil, subtitle: String? = nil, title: String? = nil, type: String? = nil) {
+
+ self.entitySlug = entitySlug
+
+ self.title = title
+
+ self.modifiedOn = modifiedOn
+
+ self.example = example
+
+ self.entityType = entityType
+
+ self.createdOn = createdOn
+
+ self.isHidden = isHidden
+
+ self.type = type
+
+ self.subtitle = subtitle
+
+ self.description = description
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ entitySlug = try container.decode(String.self, forKey: .entitySlug)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ example = try container.decode(String.self, forKey: .example)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ entityType = try container.decode(String.self, forKey: .entityType)
+
+ } 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 {
+ isHidden = try container.decode(Bool.self, forKey: .isHidden)
+
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(entitySlug, forKey: .entitySlug)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(example, forKey: .example)
+
+
+
+
+ try? container.encodeIfPresent(entityType, forKey: .entityType)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isHidden, forKey: .isHidden)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(subtitle, forKey: .subtitle)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/ActivePromosResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ActivePromosResultCartPlatformModel.swift
deleted file mode 100644
index 8a469f33d4..0000000000
--- a/Sources/code/platform/Models/Cart/ActivePromosResultCartPlatformModel.swift
+++ /dev/null
@@ -1,269 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ActivePromosResult
- Used By: Cart
- */
-
- class ActivePromosResult: Codable {
-
-
- public var entitySlug: String?
-
- public var title: String?
-
- public var modifiedOn: String?
-
- public var example: String?
-
- public var entityType: String?
-
- public var createdOn: String?
-
- public var isHidden: Bool?
-
- public var type: String?
-
- public var subtitle: String?
-
- public var description: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case entitySlug = "entity_slug"
-
- case title = "title"
-
- case modifiedOn = "modified_on"
-
- case example = "example"
-
- case entityType = "entity_type"
-
- case createdOn = "created_on"
-
- case isHidden = "is_hidden"
-
- case type = "type"
-
- case subtitle = "subtitle"
-
- case description = "description"
-
- }
-
- public init(createdOn: String? = nil, description: String? = nil, entitySlug: String? = nil, entityType: String? = nil, example: String? = nil, isHidden: Bool? = nil, modifiedOn: String? = nil, subtitle: String? = nil, title: String? = nil, type: String? = nil) {
-
- self.entitySlug = entitySlug
-
- self.title = title
-
- self.modifiedOn = modifiedOn
-
- self.example = example
-
- self.entityType = entityType
-
- self.createdOn = createdOn
-
- self.isHidden = isHidden
-
- self.type = type
-
- self.subtitle = subtitle
-
- self.description = description
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- entitySlug = try container.decode(String.self, forKey: .entitySlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- example = try container.decode(String.self, forKey: .example)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- entityType = try container.decode(String.self, forKey: .entityType)
-
- } 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 {
- isHidden = try container.decode(Bool.self, forKey: .isHidden)
-
- } 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(entitySlug, forKey: .entitySlug)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(example, forKey: .example)
-
-
-
-
- try? container.encodeIfPresent(entityType, forKey: .entityType)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isHidden, forKey: .isHidden)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/AddCartCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AddCartCreationCartPlatformModel.swift
deleted file mode 100644
index 5bab2a8867..0000000000
--- a/Sources/code/platform/Models/Cart/AddCartCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: AddCartCreation
- Used By: Cart
- */
-
- class AddCartCreation: Codable {
-
-
- public var newCart: Bool?
-
- public var items: [AddProductCart]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case newCart = "new_cart"
-
- case items = "items"
-
- }
-
- public init(items: [AddProductCart]? = nil, newCart: Bool? = nil) {
-
- self.newCart = newCart
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- newCart = try container.decode(Bool.self, forKey: .newCart)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([AddProductCart].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(newCart, forKey: .newCart)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/AddCartDetailResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AddCartDetailResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..4443e2bf7d
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/AddCartDetailResponseCartPlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: AddCartDetailResponse
+ Used By: Cart
+ */
+
+ class AddCartDetailResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var cart: CartDetailResponse?
+
+ public var partial: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case cart = "cart"
+
+ case partial = "partial"
+
+ case message = "message"
+
+ }
+
+ public init(cart: CartDetailResponse? = nil, message: String? = nil, partial: Bool? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.cart = cart
+
+ self.partial = partial
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ cart = try container.decode(CartDetailResponse.self, forKey: .cart)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ partial = try container.decode(Bool.self, forKey: .partial)
+
+ } 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)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+
+ try? container.encodeIfPresent(partial, forKey: .partial)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/AddCartDetailResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AddCartDetailResultCartPlatformModel.swift
deleted file mode 100644
index 57d5fde04b..0000000000
--- a/Sources/code/platform/Models/Cart/AddCartDetailResultCartPlatformModel.swift
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: AddCartDetailResult
- Used By: Cart
- */
-
- class AddCartDetailResult: Codable {
-
-
- public var success: Bool?
-
- public var cart: CartDetailResult?
-
- public var partial: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case cart = "cart"
-
- case partial = "partial"
-
- case message = "message"
-
- }
-
- public init(cart: CartDetailResult? = nil, message: String? = nil, partial: Bool? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.cart = cart
-
- self.partial = partial
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- cart = try container.decode(CartDetailResult.self, forKey: .cart)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- partial = try container.decode(Bool.self, forKey: .partial)
-
- } 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)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(partial, forKey: .partial)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/AddCartRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/AddCartRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..8aa3e0ca7d
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/AddCartRequestCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: AddCartRequest
+ Used By: Cart
+ */
+
+ class AddCartRequest: Codable {
+
+
+ public var newCart: Bool?
+
+ public var items: [AddProductCart]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case newCart = "new_cart"
+
+ case items = "items"
+
+ }
+
+ public init(items: [AddProductCart]? = nil, newCart: Bool? = nil) {
+
+ self.newCart = newCart
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ newCart = try container.decode(Bool.self, forKey: .newCart)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([AddProductCart].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(newCart, forKey: .newCart)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/ApplyCouponDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ApplyCouponDetailsCartPlatformModel.swift
deleted file mode 100644
index 040b1b57e7..0000000000
--- a/Sources/code/platform/Models/Cart/ApplyCouponDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ApplyCouponDetails
- Used By: Cart
- */
-
- class ApplyCouponDetails: Codable {
-
-
- public var couponCode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case couponCode = "coupon_code"
-
- }
-
- public init(couponCode: String) {
-
- self.couponCode = couponCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- couponCode = try container.decode(String.self, forKey: .couponCode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(couponCode, forKey: .couponCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ApplyCouponRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ApplyCouponRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..b1c9e12515
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/ApplyCouponRequestCartPlatformModel.swift
@@ -0,0 +1,55 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: ApplyCouponRequest
+ Used By: Cart
+ */
+
+ class ApplyCouponRequest: Codable {
+
+
+ public var couponCode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case couponCode = "coupon_code"
+
+ }
+
+ public init(couponCode: String) {
+
+ self.couponCode = couponCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ couponCode = try container.decode(String.self, forKey: .couponCode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(couponCode, forKey: .couponCode)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/ArticlePriceDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ArticlePriceDetailsCartPlatformModel.swift
deleted file mode 100644
index 7b54c7839f..0000000000
--- a/Sources/code/platform/Models/Cart/ArticlePriceDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ArticlePriceDetails
- Used By: Cart
- */
-
- class ArticlePriceDetails: Codable {
-
-
- public var marked: Double?
-
- public var effective: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case marked = "marked"
-
- case effective = "effective"
-
- }
-
- public init(effective: Double? = nil, marked: Double? = nil) {
-
- self.marked = marked
-
- self.effective = effective
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- marked = try container.decode(Double.self, forKey: .marked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- effective = try container.decode(Double.self, forKey: .effective)
-
- } 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(marked, forKey: .marked)
-
-
-
-
- try? container.encodeIfPresent(effective, forKey: .effective)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartCheckoutCustomMetaCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartCheckoutCustomMetaCartPlatformModel.swift
deleted file mode 100644
index 244252c92b..0000000000
--- a/Sources/code/platform/Models/Cart/CartCheckoutCustomMetaCartPlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartCheckoutCustomMeta
- Used By: Cart
- */
-
- class CartCheckoutCustomMeta: Codable {
-
-
- public var key: String
-
- public var value: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case value = "value"
-
- }
-
- public init(key: String, value: String) {
-
- self.key = key
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(String.self, forKey: .key)
-
-
-
-
- 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(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartCheckoutDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartCheckoutDetailsCartPlatformModel.swift
deleted file mode 100644
index e7ff195e9b..0000000000
--- a/Sources/code/platform/Models/Cart/CartCheckoutDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,223 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartCheckoutDetails
- Used By: Cart
- */
-
- class CartCheckoutDetails: Codable {
-
-
- public var appInterceptUrl: String?
-
- public var data: [String: Any]?
-
- public var cart: CheckCart?
-
- public var success: Bool?
-
- public var callbackUrl: String?
-
- public var paymentConfirmUrl: String?
-
- public var orderId: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appInterceptUrl = "app_intercept_url"
-
- case data = "data"
-
- case cart = "cart"
-
- case success = "success"
-
- case callbackUrl = "callback_url"
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case orderId = "order_id"
-
- case message = "message"
-
- }
-
- public init(appInterceptUrl: String? = nil, callbackUrl: String? = nil, cart: CheckCart? = nil, data: [String: Any]? = nil, message: String? = nil, orderId: String? = nil, paymentConfirmUrl: String? = nil, success: Bool? = nil) {
-
- self.appInterceptUrl = appInterceptUrl
-
- self.data = data
-
- self.cart = cart
-
- self.success = success
-
- self.callbackUrl = callbackUrl
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.orderId = orderId
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- appInterceptUrl = try container.decode(String.self, forKey: .appInterceptUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cart = try container.decode(CheckCart.self, forKey: .cart)
-
- } 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 {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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)
-
- } 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(appInterceptUrl, forKey: .appInterceptUrl)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartCheckoutResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartCheckoutResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..0741945479
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartCheckoutResponseCartPlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartCheckoutResponse
+ Used By: Cart
+ */
+
+ class CartCheckoutResponse: Codable {
+
+
+ public var appInterceptUrl: String?
+
+ public var data: [String: Any]?
+
+ public var cart: CheckCart?
+
+ public var success: Bool?
+
+ public var callbackUrl: String?
+
+ public var paymentConfirmUrl: String?
+
+ public var orderId: String?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appInterceptUrl = "app_intercept_url"
+
+ case data = "data"
+
+ case cart = "cart"
+
+ case success = "success"
+
+ case callbackUrl = "callback_url"
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ case orderId = "order_id"
+
+ case message = "message"
+
+ }
+
+ public init(appInterceptUrl: String? = nil, callbackUrl: String? = nil, cart: CheckCart? = nil, data: [String: Any]? = nil, message: String? = nil, orderId: String? = nil, paymentConfirmUrl: String? = nil, success: Bool? = nil) {
+
+ self.appInterceptUrl = appInterceptUrl
+
+ self.data = data
+
+ self.cart = cart
+
+ self.success = success
+
+ self.callbackUrl = callbackUrl
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ self.orderId = orderId
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ appInterceptUrl = try container.decode(String.self, forKey: .appInterceptUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cart = try container.decode(CheckCart.self, forKey: .cart)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } 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)
+
+ } 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(appInterceptUrl, forKey: .appInterceptUrl)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+
+ try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartCheckoutResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartCheckoutResultCartPlatformModel.swift
deleted file mode 100644
index 329e5d40ef..0000000000
--- a/Sources/code/platform/Models/Cart/CartCheckoutResultCartPlatformModel.swift
+++ /dev/null
@@ -1,223 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartCheckoutResult
- Used By: Cart
- */
-
- class CartCheckoutResult: Codable {
-
-
- public var appInterceptUrl: String?
-
- public var data: [String: Any]?
-
- public var cart: CheckCart?
-
- public var success: Bool?
-
- public var callbackUrl: String?
-
- public var paymentConfirmUrl: String?
-
- public var orderId: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appInterceptUrl = "app_intercept_url"
-
- case data = "data"
-
- case cart = "cart"
-
- case success = "success"
-
- case callbackUrl = "callback_url"
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case orderId = "order_id"
-
- case message = "message"
-
- }
-
- public init(appInterceptUrl: String? = nil, callbackUrl: String? = nil, cart: CheckCart? = nil, data: [String: Any]? = nil, message: String? = nil, orderId: String? = nil, paymentConfirmUrl: String? = nil, success: Bool? = nil) {
-
- self.appInterceptUrl = appInterceptUrl
-
- self.data = data
-
- self.cart = cart
-
- self.success = success
-
- self.callbackUrl = callbackUrl
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.orderId = orderId
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- appInterceptUrl = try container.decode(String.self, forKey: .appInterceptUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cart = try container.decode(CheckCart.self, forKey: .cart)
-
- } 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 {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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)
-
- } 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(appInterceptUrl, forKey: .appInterceptUrl)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartDeliveryModesDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartDeliveryModesDetailsCartPlatformModel.swift
deleted file mode 100644
index f6a5c18765..0000000000
--- a/Sources/code/platform/Models/Cart/CartDeliveryModesDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartDeliveryModesDetails
- Used By: Cart
- */
-
- class CartDeliveryModesDetails: Codable {
-
-
- public var pickupStores: [Int]?
-
- public var availableModes: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pickupStores = "pickup_stores"
-
- case availableModes = "available_modes"
-
- }
-
- public init(availableModes: [String]? = nil, pickupStores: [Int]? = nil) {
-
- self.pickupStores = pickupStores
-
- self.availableModes = availableModes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pickupStores = try container.decode([Int].self, forKey: .pickupStores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- availableModes = try container.decode([String].self, forKey: .availableModes)
-
- } 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(pickupStores, forKey: .pickupStores)
-
-
-
-
- try? container.encodeIfPresent(availableModes, forKey: .availableModes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartDeliveryModesResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartDeliveryModesResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..0495253944
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartDeliveryModesResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartDeliveryModesResponse
+ Used By: Cart
+ */
+
+ class CartDeliveryModesResponse: Codable {
+
+
+ public var pickupStores: [Int]?
+
+ public var availableModes: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case pickupStores = "pickup_stores"
+
+ case availableModes = "available_modes"
+
+ }
+
+ public init(availableModes: [String]? = nil, pickupStores: [Int]? = nil) {
+
+ self.pickupStores = pickupStores
+
+ self.availableModes = availableModes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ pickupStores = try container.decode([Int].self, forKey: .pickupStores)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ availableModes = try container.decode([String].self, forKey: .availableModes)
+
+ } 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(pickupStores, forKey: .pickupStores)
+
+
+
+
+ try? container.encodeIfPresent(availableModes, forKey: .availableModes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartDetailResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartDetailResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..05604404da
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartDetailResponseCartPlatformModel.swift
@@ -0,0 +1,660 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartDetailResponse
+ Used By: Cart
+ */
+
+ class CartDetailResponse: Codable {
+
+
+ public var cartId: Int?
+
+ public var uid: String?
+
+ public var couponText: String?
+
+ public var id: String?
+
+ public var panConfig: [String: Any]?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var comment: String?
+
+ public var items: [CartProductInfo]?
+
+ public var paymentSelectionLock: PaymentSelectionLock?
+
+ public var deliveryChargeInfo: String?
+
+ public var commonConfig: CartCommonConfig?
+
+ public var coupon: CartDetailCoupon?
+
+ public var restrictCheckout: Bool?
+
+ public var message: String?
+
+ public var notification: [String: Any]?
+
+ public var staffUserId: String?
+
+ public var success: Bool?
+
+ public var breakupValues: CartBreakup?
+
+ public var isValid: Bool?
+
+ public var currency: CartCurrency?
+
+ public var checkoutMode: String?
+
+ public var lastModified: String?
+
+ public var buyNow: Bool?
+
+ public var gstin: String?
+
+ public var appliedPromoDetails: [AppliedPromotion]?
+
+ public var panNo: String?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartId = "cart_id"
+
+ case uid = "uid"
+
+ case couponText = "coupon_text"
+
+ case id = "id"
+
+ case panConfig = "pan_config"
+
+ case deliveryPromise = "delivery_promise"
+
+ case comment = "comment"
+
+ case items = "items"
+
+ case paymentSelectionLock = "payment_selection_lock"
+
+ case deliveryChargeInfo = "delivery_charge_info"
+
+ case commonConfig = "common_config"
+
+ case coupon = "coupon"
+
+ case restrictCheckout = "restrict_checkout"
+
+ case message = "message"
+
+ case notification = "notification"
+
+ case staffUserId = "staff_user_id"
+
+ case success = "success"
+
+ case breakupValues = "breakup_values"
+
+ case isValid = "is_valid"
+
+ case currency = "currency"
+
+ case checkoutMode = "checkout_mode"
+
+ case lastModified = "last_modified"
+
+ case buyNow = "buy_now"
+
+ case gstin = "gstin"
+
+ case appliedPromoDetails = "applied_promo_details"
+
+ case panNo = "pan_no"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, commonConfig: CartCommonConfig? = nil, coupon: CartDetailCoupon? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, notification: [String: Any]? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, staffUserId: String? = nil, success: Bool? = nil, uid: String? = nil) {
+
+ self.cartId = cartId
+
+ self.uid = uid
+
+ self.couponText = couponText
+
+ self.id = id
+
+ self.panConfig = panConfig
+
+ self.deliveryPromise = deliveryPromise
+
+ self.comment = comment
+
+ self.items = items
+
+ self.paymentSelectionLock = paymentSelectionLock
+
+ self.deliveryChargeInfo = deliveryChargeInfo
+
+ self.commonConfig = commonConfig
+
+ self.coupon = coupon
+
+ self.restrictCheckout = restrictCheckout
+
+ self.message = message
+
+ self.notification = notification
+
+ self.staffUserId = staffUserId
+
+ self.success = success
+
+ self.breakupValues = breakupValues
+
+ self.isValid = isValid
+
+ self.currency = currency
+
+ self.checkoutMode = checkoutMode
+
+ self.lastModified = lastModified
+
+ self.buyNow = buyNow
+
+ self.gstin = gstin
+
+ self.appliedPromoDetails = appliedPromoDetails
+
+ self.panNo = panNo
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cartId = try container.decode(Int.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ couponText = try container.decode(String.self, forKey: .couponText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ panConfig = try container.decode([String: Any].self, forKey: .panConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ commonConfig = try container.decode(CartCommonConfig.self, forKey: .commonConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ coupon = try container.decode(CartDetailCoupon.self, forKey: .coupon)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ notification = try container.decode([String: Any].self, forKey: .notification)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ staffUserId = try container.decode(String.self, forKey: .staffUserId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(CartCurrency.self, forKey: .currency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lastModified = try container.decode(String.self, forKey: .lastModified)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ buyNow = try container.decode(Bool.self, forKey: .buyNow)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panNo = try container.decode(String.self, forKey: .panNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(cartId, forKey: .cartId)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(couponText, forKey: .couponText)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(panConfig, forKey: .panConfig)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
+
+
+
+
+ try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
+
+
+
+
+ try? container.encodeIfPresent(commonConfig, forKey: .commonConfig)
+
+
+
+
+ try? container.encodeIfPresent(coupon, forKey: .coupon)
+
+
+
+
+ try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(notification, forKey: .notification)
+
+
+
+
+ try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(lastModified, forKey: .lastModified)
+
+
+
+
+ try? container.encodeIfPresent(buyNow, forKey: .buyNow)
+
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+
+ try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
+
+
+
+
+ try? container.encodeIfPresent(panNo, forKey: .panNo)
+
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartDetailResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartDetailResultCartPlatformModel.swift
deleted file mode 100644
index 114636bf9b..0000000000
--- a/Sources/code/platform/Models/Cart/CartDetailResultCartPlatformModel.swift
+++ /dev/null
@@ -1,660 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartDetailResult
- Used By: Cart
- */
-
- class CartDetailResult: Codable {
-
-
- public var cartId: Int?
-
- public var uid: String?
-
- public var couponText: String?
-
- public var id: String?
-
- public var panConfig: [String: Any]?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var comment: String?
-
- public var items: [CartProductInfo]?
-
- public var paymentSelectionLock: PaymentSelectionLock?
-
- public var deliveryChargeInfo: String?
-
- public var commonConfig: CartCommonConfig?
-
- public var coupon: CartDetailCoupon?
-
- public var restrictCheckout: Bool?
-
- public var message: String?
-
- public var notification: [String: Any]?
-
- public var staffUserId: String?
-
- public var success: Bool?
-
- public var breakupValues: CartBreakup?
-
- public var isValid: Bool?
-
- public var currency: CartCurrency?
-
- public var checkoutMode: String?
-
- public var lastModified: String?
-
- public var buyNow: Bool?
-
- public var gstin: String?
-
- public var appliedPromoDetails: [AppliedPromotion]?
-
- public var panNo: String?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartId = "cart_id"
-
- case uid = "uid"
-
- case couponText = "coupon_text"
-
- case id = "id"
-
- case panConfig = "pan_config"
-
- case deliveryPromise = "delivery_promise"
-
- case comment = "comment"
-
- case items = "items"
-
- case paymentSelectionLock = "payment_selection_lock"
-
- case deliveryChargeInfo = "delivery_charge_info"
-
- case commonConfig = "common_config"
-
- case coupon = "coupon"
-
- case restrictCheckout = "restrict_checkout"
-
- case message = "message"
-
- case notification = "notification"
-
- case staffUserId = "staff_user_id"
-
- case success = "success"
-
- case breakupValues = "breakup_values"
-
- case isValid = "is_valid"
-
- case currency = "currency"
-
- case checkoutMode = "checkout_mode"
-
- case lastModified = "last_modified"
-
- case buyNow = "buy_now"
-
- case gstin = "gstin"
-
- case appliedPromoDetails = "applied_promo_details"
-
- case panNo = "pan_no"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, cartId: Int? = nil, checkoutMode: String? = nil, comment: String? = nil, commonConfig: CartCommonConfig? = nil, coupon: CartDetailCoupon? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, notification: [String: Any]? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, staffUserId: String? = nil, success: Bool? = nil, uid: String? = nil) {
-
- self.cartId = cartId
-
- self.uid = uid
-
- self.couponText = couponText
-
- self.id = id
-
- self.panConfig = panConfig
-
- self.deliveryPromise = deliveryPromise
-
- self.comment = comment
-
- self.items = items
-
- self.paymentSelectionLock = paymentSelectionLock
-
- self.deliveryChargeInfo = deliveryChargeInfo
-
- self.commonConfig = commonConfig
-
- self.coupon = coupon
-
- self.restrictCheckout = restrictCheckout
-
- self.message = message
-
- self.notification = notification
-
- self.staffUserId = staffUserId
-
- self.success = success
-
- self.breakupValues = breakupValues
-
- self.isValid = isValid
-
- self.currency = currency
-
- self.checkoutMode = checkoutMode
-
- self.lastModified = lastModified
-
- self.buyNow = buyNow
-
- self.gstin = gstin
-
- self.appliedPromoDetails = appliedPromoDetails
-
- self.panNo = panNo
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cartId = try container.decode(Int.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- couponText = try container.decode(String.self, forKey: .couponText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- panConfig = try container.decode([String: Any].self, forKey: .panConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- commonConfig = try container.decode(CartCommonConfig.self, forKey: .commonConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- coupon = try container.decode(CartDetailCoupon.self, forKey: .coupon)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- notification = try container.decode([String: Any].self, forKey: .notification)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staffUserId = try container.decode(String.self, forKey: .staffUserId)
-
- } 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 {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CartCurrency.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastModified = try container.decode(String.self, forKey: .lastModified)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- buyNow = try container.decode(Bool.self, forKey: .buyNow)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panNo = try container.decode(String.self, forKey: .panNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(cartId, forKey: .cartId)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(couponText, forKey: .couponText)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(panConfig, forKey: .panConfig)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
-
-
-
-
- try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
-
-
-
-
- try? container.encodeIfPresent(commonConfig, forKey: .commonConfig)
-
-
-
-
- try? container.encodeIfPresent(coupon, forKey: .coupon)
-
-
-
-
- try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(notification, forKey: .notification)
-
-
-
-
- try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(lastModified, forKey: .lastModified)
-
-
-
-
- try? container.encodeIfPresent(buyNow, forKey: .buyNow)
-
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
-
- try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
-
-
-
-
- try? container.encodeIfPresent(panNo, forKey: .panNo)
-
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartItemCountResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartItemCountResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..81b633468c
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartItemCountResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartItemCountResponse
+ Used By: Cart
+ */
+
+ class CartItemCountResponse: Codable {
+
+
+ public var userCartItemsCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userCartItemsCount = "user_cart_items_count"
+
+ }
+
+ public init(userCartItemsCount: Int? = nil) {
+
+ self.userCartItemsCount = userCartItemsCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ userCartItemsCount = try container.decode(Int.self, forKey: .userCartItemsCount)
+
+ } 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(userCartItemsCount, forKey: .userCartItemsCount)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartItemCountResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartItemCountResultCartPlatformModel.swift
deleted file mode 100644
index 91818f63b4..0000000000
--- a/Sources/code/platform/Models/Cart/CartItemCountResultCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartItemCountResult
- Used By: Cart
- */
-
- class CartItemCountResult: Codable {
-
-
- public var userCartItemsCount: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userCartItemsCount = "user_cart_items_count"
-
- }
-
- public init(userCartItemsCount: Int? = nil) {
-
- self.userCartItemsCount = userCartItemsCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- userCartItemsCount = try container.decode(Int.self, forKey: .userCartItemsCount)
-
- } 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(userCartItemsCount, forKey: .userCartItemsCount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartMetaDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartMetaDetailsCartPlatformModel.swift
deleted file mode 100644
index 1c2119533d..0000000000
--- a/Sources/code/platform/Models/Cart/CartMetaDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartMetaDetails
- Used By: Cart
- */
-
- class CartMetaDetails: Codable {
-
-
- public var isValid: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isValid = "is_valid"
-
- case message = "message"
-
- }
-
- public init(isValid: Bool? = nil, message: String? = nil) {
-
- self.isValid = isValid
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } 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)
-
- } 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(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartMetaMissingDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartMetaMissingDetailsCartPlatformModel.swift
deleted file mode 100644
index 87a1839b7f..0000000000
--- a/Sources/code/platform/Models/Cart/CartMetaMissingDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartMetaMissingDetails
- Used By: Cart
- */
-
- class CartMetaMissingDetails: Codable {
-
-
- public var errors: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [String]? = nil) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- errors = try container.decode([String].self, forKey: .errors)
-
- } 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(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CartMetaMissingResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartMetaMissingResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..22e86faba5
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartMetaMissingResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartMetaMissingResponse
+ Used By: Cart
+ */
+
+ class CartMetaMissingResponse: Codable {
+
+
+ public var errors: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case errors = "errors"
+
+ }
+
+ public init(errors: [String]? = nil) {
+
+ self.errors = errors
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ errors = try container.decode([String].self, forKey: .errors)
+
+ } 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(errors, forKey: .errors)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartMetaResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartMetaResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..06bb8eb42c
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CartMetaResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CartMetaResponse
+ Used By: Cart
+ */
+
+ class CartMetaResponse: Codable {
+
+
+ public var isValid: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isValid = "is_valid"
+
+ case message = "message"
+
+ }
+
+ public init(isValid: Bool? = nil, message: String? = nil) {
+
+ self.isValid = isValid
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } 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)
+
+ } 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(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CartPaymentUpdateCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CartPaymentUpdateCartPlatformModel.swift
deleted file mode 100644
index 76272efa24..0000000000
--- a/Sources/code/platform/Models/Cart/CartPaymentUpdateCartPlatformModel.swift
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CartPaymentUpdate
- Used By: Cart
- */
-
- class CartPaymentUpdate: Codable {
-
-
- public var addressId: String?
-
- public var paymentMode: String?
-
- public var aggregatorName: String?
-
- public var merchantCode: String?
-
- public var paymentIdentifier: String?
-
- public var id: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addressId = "address_id"
-
- case paymentMode = "payment_mode"
-
- case aggregatorName = "aggregator_name"
-
- case merchantCode = "merchant_code"
-
- case paymentIdentifier = "payment_identifier"
-
- case id = "id"
-
- }
-
- public init(addressId: String? = nil, aggregatorName: String? = nil, id: String? = nil, merchantCode: String? = nil, paymentIdentifier: String? = nil, paymentMode: String? = nil) {
-
- self.addressId = addressId
-
- self.paymentMode = paymentMode
-
- self.aggregatorName = aggregatorName
-
- self.merchantCode = merchantCode
-
- self.paymentIdentifier = paymentIdentifier
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(addressId, forKey: .addressId)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CouponAddCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponAddCartPlatformModel.swift
index 40212ce98b..13eb8f3268 100644
--- a/Sources/code/platform/Models/Cart/CouponAddCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponAddCartPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var dateMeta: CouponDateMeta?
- public var ownership: Ownership?
+ public var ownership: Ownership
public var author: CouponAuthor?
@@ -28,29 +28,23 @@ public extension PlatformClient.ApplicationClient.Cart {
public var action: CouponAction?
- public var couponType: String?
-
- public var couponPrefix: String?
-
- public var couponCounts: Int?
-
public var tags: [String]?
public var schedule: CouponSchedule?
- public var rule: [Rule]?
+ public var rule: [Rule]
- public var displayMeta: DisplayMeta?
+ public var displayMeta: DisplayMeta
public var code: String
public var typeSlug: String
- public var identifiers: Identifier?
+ public var identifiers: Identifier
- public var validity: Validity?
+ public var validity: Validity
- public var ruleDefinition: RuleDefinition?
+ public var ruleDefinition: RuleDefinition
public var id: String?
@@ -71,12 +65,6 @@ public extension PlatformClient.ApplicationClient.Cart {
case action = "action"
- case couponType = "coupon_type"
-
- case couponPrefix = "coupon_prefix"
-
- case couponCounts = "coupon_counts"
-
case tags = "tags"
case schedule = "_schedule"
@@ -99,7 +87,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(action: CouponAction? = nil, author: CouponAuthor? = nil, code: String, couponCounts: Int? = nil, couponPrefix: String? = nil, couponType: String? = nil, dateMeta: CouponDateMeta? = nil, displayMeta: DisplayMeta? = nil, identifiers: Identifier? = nil, ownership: Ownership? = nil, restrictions: Restrictions? = nil, rule: [Rule]? = nil, ruleDefinition: RuleDefinition? = nil, state: State? = nil, tags: [String]? = nil, typeSlug: String, validation: Validation? = nil, validity: Validity? = nil, id: String? = nil, schedule: CouponSchedule? = nil) {
+ public init(action: CouponAction? = nil, author: CouponAuthor? = nil, code: String, dateMeta: CouponDateMeta? = nil, displayMeta: DisplayMeta, identifiers: Identifier, ownership: Ownership, restrictions: Restrictions? = nil, rule: [Rule], ruleDefinition: RuleDefinition, state: State? = nil, tags: [String]? = nil, typeSlug: String, validation: Validation? = nil, validity: Validity, id: String? = nil, schedule: CouponSchedule? = nil) {
self.dateMeta = dateMeta
@@ -115,12 +103,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.action = action
- self.couponType = couponType
-
- self.couponPrefix = couponPrefix
-
- self.couponCounts = couponCounts
-
self.tags = tags
self.schedule = schedule
@@ -159,18 +141,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- ownership = try container.decode(Ownership.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ ownership = try container.decode(Ownership.self, forKey: .ownership)
+
do {
author = try container.decode(CouponAuthor.self, forKey: .author)
@@ -231,42 +206,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- couponType = try container.decode(String.self, forKey: .couponType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponPrefix = try container.decode(String.self, forKey: .couponPrefix)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponCounts = try container.decode(Int.self, forKey: .couponCounts)
-
- } 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)
@@ -291,30 +230,16 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- rule = try container.decode([Rule].self, forKey: .rule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ rule = try container.decode([Rule].self, forKey: .rule)
- do {
- displayMeta = try container.decode(DisplayMeta.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ displayMeta = try container.decode(DisplayMeta.self, forKey: .displayMeta)
+
code = try container.decode(String.self, forKey: .code)
@@ -325,42 +250,21 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- identifiers = try container.decode(Identifier.self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ identifiers = try container.decode(Identifier.self, forKey: .identifiers)
- do {
- validity = try container.decode(Validity.self, forKey: .validity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ validity = try container.decode(Validity.self, forKey: .validity)
- do {
- ruleDefinition = try container.decode(RuleDefinition.self, forKey: .ruleDefinition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ ruleDefinition = try container.decode(RuleDefinition.self, forKey: .ruleDefinition)
+
do {
id = try container.decode(String.self, forKey: .id)
@@ -414,21 +318,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(couponType, forKey: .couponType)
-
-
-
-
- try? container.encodeIfPresent(couponPrefix, forKey: .couponPrefix)
-
-
-
-
- try? container.encodeIfPresent(couponCounts, forKey: .couponCounts)
-
-
-
-
try? container.encodeIfPresent(tags, forKey: .tags)
diff --git a/Sources/code/platform/Models/Cart/CouponAuthorCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponAuthorCartPlatformModel.swift
index f1f2f4a1ea..7c8a755a1d 100644
--- a/Sources/code/platform/Models/Cart/CouponAuthorCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponAuthorCartPlatformModel.swift
@@ -18,12 +18,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var modifiedBy: String?
- public var approvedBy: String?
-
- public var rejectedBy: String?
-
- public var reviewedBy: String?
-
public enum CodingKeys: String, CodingKey {
@@ -31,26 +25,14 @@ public extension PlatformClient.ApplicationClient.Cart {
case modifiedBy = "modified_by"
- case approvedBy = "approved_by"
-
- case rejectedBy = "rejected_by"
-
- case reviewedBy = "reviewed_by"
-
}
- public init(approvedBy: String? = nil, createdBy: String? = nil, modifiedBy: String? = nil, rejectedBy: String? = nil, reviewedBy: String? = nil) {
+ public init(createdBy: String? = nil, modifiedBy: String? = nil) {
self.createdBy = createdBy
self.modifiedBy = modifiedBy
- self.approvedBy = approvedBy
-
- self.rejectedBy = rejectedBy
-
- self.reviewedBy = reviewedBy
-
}
required public init(from decoder: Decoder) throws {
@@ -80,42 +62,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- approvedBy = try container.decode(String.self, forKey: .approvedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rejectedBy = try container.decode(String.self, forKey: .rejectedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reviewedBy = try container.decode(String.self, forKey: .reviewedBy)
-
- } 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 {
@@ -131,21 +77,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- try? container.encodeIfPresent(approvedBy, forKey: .approvedBy)
-
-
-
-
- try? container.encodeIfPresent(rejectedBy, forKey: .rejectedBy)
-
-
-
-
- try? container.encodeIfPresent(reviewedBy, forKey: .reviewedBy)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/CouponCreateResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponCreateResultCartPlatformModel.swift
deleted file mode 100644
index d3b7f00dd6..0000000000
--- a/Sources/code/platform/Models/Cart/CouponCreateResultCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CouponCreateResult
- Used By: Cart
- */
-
- class CouponCreateResult: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var id: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case id = "_id"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil, id: String? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/CouponDateMetaCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponDateMetaCartPlatformModel.swift
index 1fb502eb3c..1865f126ff 100644
--- a/Sources/code/platform/Models/Cart/CouponDateMetaCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponDateMetaCartPlatformModel.swift
@@ -18,12 +18,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var createdOn: String?
- public var approvedOn: String?
-
- public var rejectedOn: String?
-
- public var reviewedOn: String?
-
public enum CodingKeys: String, CodingKey {
@@ -31,26 +25,14 @@ public extension PlatformClient.ApplicationClient.Cart {
case createdOn = "created_on"
- case approvedOn = "approved_on"
-
- case rejectedOn = "rejected_on"
-
- case reviewedOn = "reviewed_on"
-
}
- public init(approvedOn: String? = nil, createdOn: String? = nil, modifiedOn: String? = nil, rejectedOn: String? = nil, reviewedOn: String? = nil) {
+ public init(createdOn: String? = nil, modifiedOn: String? = nil) {
self.modifiedOn = modifiedOn
self.createdOn = createdOn
- self.approvedOn = approvedOn
-
- self.rejectedOn = rejectedOn
-
- self.reviewedOn = reviewedOn
-
}
required public init(from decoder: Decoder) throws {
@@ -80,42 +62,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- approvedOn = try container.decode(String.self, forKey: .approvedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rejectedOn = try container.decode(String.self, forKey: .rejectedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reviewedOn = try container.decode(String.self, forKey: .reviewedOn)
-
- } 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 {
@@ -131,21 +77,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
- try? container.encodeIfPresent(approvedOn, forKey: .approvedOn)
-
-
-
-
- try? container.encodeIfPresent(rejectedOn, forKey: .rejectedOn)
-
-
-
-
- try? container.encodeIfPresent(reviewedOn, forKey: .reviewedOn)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/CouponScheduleCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponScheduleCartPlatformModel.swift
index 357eaa0db1..098a32b37c 100644
--- a/Sources/code/platform/Models/Cart/CouponScheduleCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponScheduleCartPlatformModel.swift
@@ -22,8 +22,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var cron: String?
- public var status: String?
-
public var duration: Int?
@@ -37,13 +35,11 @@ public extension PlatformClient.ApplicationClient.Cart {
case cron = "cron"
- case status = "status"
-
case duration = "duration"
}
- public init(cron: String? = nil, duration: Int? = nil, end: String? = nil, nextSchedule: [[String: Any]]? = nil, start: String? = nil, status: String? = nil) {
+ public init(cron: String? = nil, duration: Int? = nil, end: String? = nil, nextSchedule: [[String: Any]]? = nil, start: String? = nil) {
self.end = end
@@ -53,8 +49,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.cron = cron
- self.status = status
-
self.duration = duration
}
@@ -111,18 +105,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- 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)
- } catch {
-
- }
-
-
-
do {
duration = try container.decode(Int.self, forKey: .duration)
@@ -161,11 +143,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
try? container.encodeIfPresent(duration, forKey: .duration)
diff --git a/Sources/code/platform/Models/Cart/CouponUpdateCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponUpdateCartPlatformModel.swift
index 0038bbb6de..7ac0c2c6c6 100644
--- a/Sources/code/platform/Models/Cart/CouponUpdateCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponUpdateCartPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var dateMeta: CouponDateMeta?
- public var ownership: Ownership?
+ public var ownership: Ownership
public var author: CouponAuthor?
@@ -32,27 +32,19 @@ public extension PlatformClient.ApplicationClient.Cart {
public var schedule: CouponSchedule?
- public var rule: [Rule]?
+ public var rule: [Rule]
- public var displayMeta: DisplayMeta?
+ public var displayMeta: DisplayMeta
public var code: String
- public var couponType: String?
-
- public var couponPrefix: String?
-
- public var couponCounts: Int?
-
- public var reason: String?
-
public var typeSlug: String
- public var identifiers: Identifier?
+ public var identifiers: Identifier
- public var validity: Validity?
+ public var validity: Validity
- public var ruleDefinition: RuleDefinition?
+ public var ruleDefinition: RuleDefinition
public enum CodingKeys: String, CodingKey {
@@ -81,14 +73,6 @@ public extension PlatformClient.ApplicationClient.Cart {
case code = "code"
- case couponType = "coupon_type"
-
- case couponPrefix = "coupon_prefix"
-
- case couponCounts = "coupon_counts"
-
- case reason = "reason"
-
case typeSlug = "type_slug"
case identifiers = "identifiers"
@@ -99,7 +83,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(action: CouponAction? = nil, author: CouponAuthor? = nil, code: String, couponCounts: Int? = nil, couponPrefix: String? = nil, couponType: String? = nil, dateMeta: CouponDateMeta? = nil, displayMeta: DisplayMeta? = nil, identifiers: Identifier? = nil, ownership: Ownership? = nil, reason: String? = nil, restrictions: Restrictions? = nil, rule: [Rule]? = nil, ruleDefinition: RuleDefinition? = nil, state: State? = nil, tags: [String]? = nil, typeSlug: String, validation: Validation? = nil, validity: Validity? = nil, schedule: CouponSchedule? = nil) {
+ public init(action: CouponAction? = nil, author: CouponAuthor? = nil, code: String, dateMeta: CouponDateMeta? = nil, displayMeta: DisplayMeta, identifiers: Identifier, ownership: Ownership, restrictions: Restrictions? = nil, rule: [Rule], ruleDefinition: RuleDefinition, state: State? = nil, tags: [String]? = nil, typeSlug: String, validation: Validation? = nil, validity: Validity, schedule: CouponSchedule? = nil) {
self.dateMeta = dateMeta
@@ -125,14 +109,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.code = code
- self.couponType = couponType
-
- self.couponPrefix = couponPrefix
-
- self.couponCounts = couponCounts
-
- self.reason = reason
-
self.typeSlug = typeSlug
self.identifiers = identifiers
@@ -159,18 +135,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- ownership = try container.decode(Ownership.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ ownership = try container.decode(Ownership.self, forKey: .ownership)
+
do {
author = try container.decode(CouponAuthor.self, forKey: .author)
@@ -255,123 +224,40 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- rule = try container.decode([Rule].self, forKey: .rule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ rule = try container.decode([Rule].self, forKey: .rule)
- do {
- displayMeta = try container.decode(DisplayMeta.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
- code = try container.decode(String.self, forKey: .code)
+ displayMeta = try container.decode(DisplayMeta.self, forKey: .displayMeta)
- do {
- couponType = try container.decode(String.self, forKey: .couponType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ code = try container.decode(String.self, forKey: .code)
- do {
- couponPrefix = try container.decode(String.self, forKey: .couponPrefix)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
- do {
- couponCounts = try container.decode(Int.self, forKey: .couponCounts)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ typeSlug = try container.decode(String.self, forKey: .typeSlug)
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
- typeSlug = try container.decode(String.self, forKey: .typeSlug)
+ identifiers = try container.decode(Identifier.self, forKey: .identifiers)
- do {
- identifiers = try container.decode(Identifier.self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ validity = try container.decode(Validity.self, forKey: .validity)
- do {
- validity = try container.decode(Validity.self, forKey: .validity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
- do {
- ruleDefinition = try container.decode(RuleDefinition.self, forKey: .ruleDefinition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ ruleDefinition = try container.decode(RuleDefinition.self, forKey: .ruleDefinition)
+
}
public func encode(to encoder: Encoder) throws {
@@ -439,26 +325,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(couponType, forKey: .couponType)
-
-
-
-
- try? container.encodeIfPresent(couponPrefix, forKey: .couponPrefix)
-
-
-
-
- try? container.encodeIfPresent(couponCounts, forKey: .couponCounts)
-
-
-
-
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
-
try? container.encodeIfPresent(typeSlug, forKey: .typeSlug)
diff --git a/Sources/code/platform/Models/Cart/CouponValidityCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponValidityCartPlatformModel.swift
index 894e3ab615..ba2980eef1 100644
--- a/Sources/code/platform/Models/Cart/CouponValidityCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/CouponValidityCartPlatformModel.swift
@@ -26,8 +26,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var discount: Double?
- public var errorEn: String?
-
public enum CodingKeys: String, CodingKey {
@@ -43,11 +41,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case discount = "discount"
- case errorEn = "error_en"
-
}
- public init(code: String? = nil, discount: Double? = nil, displayMessageEn: String? = nil, errorEn: String? = nil, nextValidationRequired: Bool? = nil, title: String? = nil, valid: Bool? = nil) {
+ public init(code: String? = nil, discount: Double? = nil, displayMessageEn: String? = nil, nextValidationRequired: Bool? = nil, title: String? = nil, valid: Bool? = nil) {
self.title = title
@@ -61,8 +57,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.discount = discount
- self.errorEn = errorEn
-
}
required public init(from decoder: Decoder) throws {
@@ -140,18 +134,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- errorEn = try container.decode(String.self, forKey: .errorEn)
-
- } 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 {
@@ -187,11 +169,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(discount, forKey: .discount)
-
-
- try? container.encodeIfPresent(errorEn, forKey: .errorEn)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/CouponsResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponsResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..6d3695291a
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/CouponsResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: CouponsResponse
+ Used By: Cart
+ */
+
+ class CouponsResponse: Codable {
+
+
+ public var items: [CouponAdd]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CouponAdd]? = nil, page: Page? = nil) {
+
+ 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([CouponAdd].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/CouponsResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/CouponsResultCartPlatformModel.swift
deleted file mode 100644
index 9fa914df46..0000000000
--- a/Sources/code/platform/Models/Cart/CouponsResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: CouponsResult
- Used By: Cart
- */
-
- class CouponsResult: Codable {
-
-
- public var items: [CouponAdd]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CouponAdd]? = nil, page: Page? = nil) {
-
- 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([CouponAdd].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DeleteAddressResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteAddressResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..6cf4a3454f
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/DeleteAddressResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: DeleteAddressResponse
+ Used By: Cart
+ */
+
+ class DeleteAddressResponse: Codable {
+
+
+ public var id: String?
+
+ public var isDeleted: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case isDeleted = "is_deleted"
+
+ }
+
+ public init(id: String? = nil, isDeleted: Bool? = nil) {
+
+ self.id = id
+
+ self.isDeleted = isDeleted
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/DeleteAddressResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteAddressResultCartPlatformModel.swift
deleted file mode 100644
index a51d4638bd..0000000000
--- a/Sources/code/platform/Models/Cart/DeleteAddressResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: DeleteAddressResult
- Used By: Cart
- */
-
- class DeleteAddressResult: Codable {
-
-
- public var id: String?
-
- public var isDeleted: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case isDeleted = "is_deleted"
-
- }
-
- public init(id: String? = nil, isDeleted: Bool? = nil) {
-
- self.id = id
-
- self.isDeleted = isDeleted
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DeleteCartDetailResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteCartDetailResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..f8704bdb0f
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/DeleteCartDetailResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: DeleteCartDetailResponse
+ Used By: Cart
+ */
+
+ class DeleteCartDetailResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/DeleteCartDetailResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteCartDetailResultCartPlatformModel.swift
deleted file mode 100644
index 72b526d767..0000000000
--- a/Sources/code/platform/Models/Cart/DeleteCartDetailResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: DeleteCartDetailResult
- Used By: Cart
- */
-
- class DeleteCartDetailResult: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DeleteCartDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteCartDetailsCartPlatformModel.swift
deleted file mode 100644
index 62e6e6d3a9..0000000000
--- a/Sources/code/platform/Models/Cart/DeleteCartDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: DeleteCartDetails
- Used By: Cart
- */
-
- class DeleteCartDetails: Codable {
-
-
- public var cartIdList: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartIdList = "cart_id_list"
-
- }
-
- public init(cartIdList: [String]? = nil) {
-
- self.cartIdList = cartIdList
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cartIdList = try container.decode([String].self, forKey: .cartIdList)
-
- } 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(cartIdList, forKey: .cartIdList)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DeleteCartRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DeleteCartRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..51397bb4f1
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/DeleteCartRequestCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: DeleteCartRequest
+ Used By: Cart
+ */
+
+ class DeleteCartRequest: Codable {
+
+
+ public var cartIdList: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartIdList = "cart_id_list"
+
+ }
+
+ public init(cartIdList: [String]? = nil) {
+
+ self.cartIdList = cartIdList
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cartIdList = try container.decode([String].self, forKey: .cartIdList)
+
+ } 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(cartIdList, forKey: .cartIdList)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/DiscountRuleCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DiscountRuleCartPlatformModel.swift
index 268bb689b3..a924b9179c 100644
--- a/Sources/code/platform/Models/Cart/DiscountRuleCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/DiscountRuleCartPlatformModel.swift
@@ -20,8 +20,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var itemCriteria: ItemCriteria
- public var meta: ItemSizeMapping?
-
public var offer: DiscountOffer
@@ -33,13 +31,11 @@ public extension PlatformClient.ApplicationClient.Cart {
case itemCriteria = "item_criteria"
- case meta = "meta"
-
case offer = "offer"
}
- public init(buyCondition: String, discountType: String, itemCriteria: ItemCriteria, meta: ItemSizeMapping? = nil, offer: DiscountOffer) {
+ public init(buyCondition: String, discountType: String, itemCriteria: ItemCriteria, offer: DiscountOffer) {
self.discountType = discountType
@@ -47,8 +43,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.itemCriteria = itemCriteria
- self.meta = meta
-
self.offer = offer
}
@@ -72,18 +66,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- meta = try container.decode(ItemSizeMapping.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
offer = try container.decode(DiscountOffer.self, forKey: .offer)
@@ -110,11 +92,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
try? container.encodeIfPresent(offer, forKey: .offer)
diff --git a/Sources/code/platform/Models/Cart/DistributionCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DistributionCartPlatformModel.swift
deleted file mode 100644
index 7f92183af6..0000000000
--- a/Sources/code/platform/Models/Cart/DistributionCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: Distribution
- Used By: Cart
- */
-
- class Distribution: Codable {
-
-
- public var type: String?
-
- public var logic: String?
-
- public var rule: DistributionRule?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case logic = "logic"
-
- case rule = "rule"
-
- }
-
- public init(logic: String? = nil, rule: DistributionRule? = nil, type: String? = nil) {
-
- self.type = type
-
- self.logic = logic
-
- self.rule = rule
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- logic = try container.decode(String.self, forKey: .logic)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rule = try container.decode(DistributionRule.self, forKey: .rule)
-
- } 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(logic, forKey: .logic)
-
-
-
-
- try? container.encodeIfPresent(rule, forKey: .rule)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DistributionLogicCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DistributionLogicCartPlatformModel.swift
deleted file mode 100644
index 958dfb21b5..0000000000
--- a/Sources/code/platform/Models/Cart/DistributionLogicCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: DistributionLogic
- Used By: Cart
- */
-
- class DistributionLogic: Codable {
-
-
- public var distributionLevel: String?
-
- public var distribution: Distribution?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case distributionLevel = "distribution_level"
-
- case distribution = "distribution"
-
- }
-
- public init(distribution: Distribution? = nil, distributionLevel: String? = nil) {
-
- self.distributionLevel = distributionLevel
-
- self.distribution = distribution
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- distributionLevel = try container.decode(String.self, forKey: .distributionLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- distribution = try container.decode(Distribution.self, forKey: .distribution)
-
- } 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(distributionLevel, forKey: .distributionLevel)
-
-
-
-
- try? container.encodeIfPresent(distribution, forKey: .distribution)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/DistributionRuleCartPlatformModel.swift b/Sources/code/platform/Models/Cart/DistributionRuleCartPlatformModel.swift
deleted file mode 100644
index 693f7e54d0..0000000000
--- a/Sources/code/platform/Models/Cart/DistributionRuleCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: DistributionRule
- Used By: Cart
- */
-
- class DistributionRule: Codable {
-
-
- public var conditions: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case conditions = "conditions"
-
- }
-
- public init(conditions: [String: Any]? = nil) {
-
- self.conditions = conditions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- conditions = try container.decode([String: Any].self, forKey: .conditions)
-
- } 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(conditions, forKey: .conditions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/FreeGiftItemCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/FreeGiftItemCreationCartPlatformModel.swift
deleted file mode 100644
index dea5d64062..0000000000
--- a/Sources/code/platform/Models/Cart/FreeGiftItemCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: FreeGiftItemCreation
- Used By: Cart
- */
-
- class FreeGiftItemCreation: Codable {
-
-
- public var promotionId: String
-
- public var itemId: String
-
- public var itemSize: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case promotionId = "promotion_id"
-
- case itemId = "item_id"
-
- case itemSize = "item_size"
-
- }
-
- public init(itemId: String, itemSize: String, promotionId: String) {
-
- self.promotionId = promotionId
-
- self.itemId = itemId
-
- self.itemSize = itemSize
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- promotionId = try container.decode(String.self, forKey: .promotionId)
-
-
-
-
- itemId = try container.decode(String.self, forKey: .itemId)
-
-
-
-
- itemSize = try container.decode(String.self, forKey: .itemSize)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(promotionId, forKey: .promotionId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(itemSize, forKey: .itemSize)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/FreeGiftItemsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/FreeGiftItemsCartPlatformModel.swift
index 78795467c8..766887e817 100644
--- a/Sources/code/platform/Models/Cart/FreeGiftItemsCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/FreeGiftItemsCartPlatformModel.swift
@@ -20,16 +20,10 @@ public extension PlatformClient.ApplicationClient.Cart {
public var itemPriceDetails: ItemPriceDetails?
- public var articlePrice: ArticlePriceDetails?
-
public var itemBrandName: String?
public var itemId: Int?
- public var availableSizes: [String]?
-
- public var size: String?
-
public var itemImagesUrl: [String]?
@@ -41,21 +35,15 @@ public extension PlatformClient.ApplicationClient.Cart {
case itemPriceDetails = "item_price_details"
- case articlePrice = "article_price"
-
case itemBrandName = "item_brand_name"
case itemId = "item_id"
- case availableSizes = "available_sizes"
-
- case size = "size"
-
case itemImagesUrl = "item_images_url"
}
- public init(articlePrice: ArticlePriceDetails? = nil, availableSizes: [String]? = nil, itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil, size: String? = nil) {
+ public init(itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil) {
self.itemSlug = itemSlug
@@ -63,16 +51,10 @@ public extension PlatformClient.ApplicationClient.Cart {
self.itemPriceDetails = itemPriceDetails
- self.articlePrice = articlePrice
-
self.itemBrandName = itemBrandName
self.itemId = itemId
- self.availableSizes = availableSizes
-
- self.size = size
-
self.itemImagesUrl = itemImagesUrl
}
@@ -117,18 +99,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- articlePrice = try container.decode(ArticlePriceDetails.self, forKey: .articlePrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
itemBrandName = try container.decode(String.self, forKey: .itemBrandName)
@@ -153,30 +123,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- availableSizes = try container.decode([String].self, forKey: .availableSizes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
do {
itemImagesUrl = try container.decode([String].self, forKey: .itemImagesUrl)
@@ -210,11 +156,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(articlePrice, forKey: .articlePrice)
-
-
-
-
try? container.encodeIfPresent(itemBrandName, forKey: .itemBrandName)
@@ -225,16 +166,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(availableSizes, forKey: .availableSizes)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
try? container.encodeIfPresent(itemImagesUrl, forKey: .itemImagesUrl)
diff --git a/Sources/code/platform/Models/Cart/GetCouponResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetCouponResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..72303e9533
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/GetCouponResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: GetCouponResponse
+ Used By: Cart
+ */
+
+ class GetCouponResponse: Codable {
+
+
+ public var availableCouponList: [Coupon]?
+
+ public var page: PageCoupon?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case availableCouponList = "available_coupon_list"
+
+ case page = "page"
+
+ }
+
+ public init(availableCouponList: [Coupon]? = nil, page: PageCoupon? = nil) {
+
+ self.availableCouponList = availableCouponList
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ availableCouponList = try container.decode([Coupon].self, forKey: .availableCouponList)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ page = try container.decode(PageCoupon.self, forKey: .page)
+
+ } 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(availableCouponList, forKey: .availableCouponList)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/GetCouponResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetCouponResultCartPlatformModel.swift
deleted file mode 100644
index 61cb05221e..0000000000
--- a/Sources/code/platform/Models/Cart/GetCouponResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: GetCouponResult
- Used By: Cart
- */
-
- class GetCouponResult: Codable {
-
-
- public var availableCouponList: [Coupon]?
-
- public var page: PageCoupon?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case availableCouponList = "available_coupon_list"
-
- case page = "page"
-
- }
-
- public init(availableCouponList: [Coupon]? = nil, page: PageCoupon? = nil) {
-
- self.availableCouponList = availableCouponList
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- availableCouponList = try container.decode([Coupon].self, forKey: .availableCouponList)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- page = try container.decode(PageCoupon.self, forKey: .page)
-
- } 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(availableCouponList, forKey: .availableCouponList)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/GetPriceAdjustmentResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetPriceAdjustmentResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..3e744d5002
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/GetPriceAdjustmentResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: GetPriceAdjustmentResponse
+ Used By: Cart
+ */
+
+ class GetPriceAdjustmentResponse: Codable {
+
+
+ public var data: [PriceAdjustment]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [PriceAdjustment]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([PriceAdjustment].self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/GetPriceAdjustmentResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetPriceAdjustmentResultCartPlatformModel.swift
deleted file mode 100644
index f55753e35b..0000000000
--- a/Sources/code/platform/Models/Cart/GetPriceAdjustmentResultCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: GetPriceAdjustmentResult
- Used By: Cart
- */
-
- class GetPriceAdjustmentResult: Codable {
-
-
- public var data: [PriceAdjustment]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [PriceAdjustment]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([PriceAdjustment].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/GetShareCartLinkCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetShareCartLinkCreationCartPlatformModel.swift
deleted file mode 100644
index 680649e419..0000000000
--- a/Sources/code/platform/Models/Cart/GetShareCartLinkCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: GetShareCartLinkCreation
- Used By: Cart
- */
-
- class GetShareCartLinkCreation: Codable {
-
-
- public var id: String?
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case meta = "meta"
-
- }
-
- public init(id: String? = nil, meta: [String: Any]? = nil) {
-
- self.id = id
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/GetShareCartLinkRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetShareCartLinkRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..72d04c894c
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/GetShareCartLinkRequestCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: GetShareCartLinkRequest
+ Used By: Cart
+ */
+
+ class GetShareCartLinkRequest: Codable {
+
+
+ public var id: String?
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case meta = "meta"
+
+ }
+
+ public init(id: String? = nil, meta: [String: Any]? = nil) {
+
+ self.id = id
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/GetShareCartLinkResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetShareCartLinkResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..bfea5dde24
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/GetShareCartLinkResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: GetShareCartLinkResponse
+ Used By: Cart
+ */
+
+ class GetShareCartLinkResponse: Codable {
+
+
+ public var token: String?
+
+ public var shareUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case token = "token"
+
+ case shareUrl = "share_url"
+
+ }
+
+ public init(shareUrl: String? = nil, token: String? = nil) {
+
+ self.token = token
+
+ self.shareUrl = shareUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ token = try container.decode(String.self, forKey: .token)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shareUrl = try container.decode(String.self, forKey: .shareUrl)
+
+ } 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(token, forKey: .token)
+
+
+
+
+ try? container.encodeIfPresent(shareUrl, forKey: .shareUrl)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/GetShareCartLinkResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/GetShareCartLinkResultCartPlatformModel.swift
deleted file mode 100644
index e32d2f7333..0000000000
--- a/Sources/code/platform/Models/Cart/GetShareCartLinkResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: GetShareCartLinkResult
- Used By: Cart
- */
-
- class GetShareCartLinkResult: Codable {
-
-
- public var token: String?
-
- public var shareUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case token = "token"
-
- case shareUrl = "share_url"
-
- }
-
- public init(shareUrl: String? = nil, token: String? = nil) {
-
- self.token = token
-
- self.shareUrl = shareUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- token = try container.decode(String.self, forKey: .token)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shareUrl = try container.decode(String.self, forKey: .shareUrl)
-
- } 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(token, forKey: .token)
-
-
-
-
- try? container.encodeIfPresent(shareUrl, forKey: .shareUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ItemSizeMappingCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ItemSizeMappingCartPlatformModel.swift
deleted file mode 100644
index 621ecfab87..0000000000
--- a/Sources/code/platform/Models/Cart/ItemSizeMappingCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ItemSizeMapping
- Used By: Cart
- */
-
- class ItemSizeMapping: Codable {
-
-
- public var itemSizeMapping: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemSizeMapping = "item_size_mapping"
-
- }
-
- public init(itemSizeMapping: [String: Any]? = nil) {
-
- self.itemSizeMapping = itemSizeMapping
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- itemSizeMapping = try container.decode([String: Any].self, forKey: .itemSizeMapping)
-
- } 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(itemSizeMapping, forKey: .itemSizeMapping)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/MultiCartResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/MultiCartResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..9b1609a2f7
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/MultiCartResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: MultiCartResponse
+ Used By: Cart
+ */
+
+ class MultiCartResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [CartList]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: [CartList]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([CartList].self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/MultiCartResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/MultiCartResultCartPlatformModel.swift
deleted file mode 100644
index 43895de7d9..0000000000
--- a/Sources/code/platform/Models/Cart/MultiCartResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: MultiCartResult
- Used By: Cart
- */
-
- class MultiCartResult: Codable {
-
-
- public var success: Bool?
-
- public var data: [CartList]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(data: [CartList]? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode([CartList].self, forKey: .data)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityCreationCartPlatformModel.swift
deleted file mode 100644
index ad59e32b84..0000000000
--- a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenApiCartServiceabilityCreation
- Used By: Cart
- */
-
- class OpenApiCartServiceabilityCreation: Codable {
-
-
- public var cartItems: [CartItem]
-
- public var shippingAddress: ShippingAddress
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartItems = "cart_items"
-
- case shippingAddress = "shipping_address"
-
- }
-
- public init(cartItems: [CartItem], shippingAddress: ShippingAddress) {
-
- self.cartItems = cartItems
-
- self.shippingAddress = shippingAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- cartItems = try container.decode([CartItem].self, forKey: .cartItems)
-
-
-
-
- shippingAddress = try container.decode(ShippingAddress.self, forKey: .shippingAddress)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(cartItems, forKey: .cartItems)
-
-
-
-
- try? container.encodeIfPresent(shippingAddress, forKey: .shippingAddress)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..e15f9c5761
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityRequestCartPlatformModel.swift
@@ -0,0 +1,71 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenApiCartServiceabilityRequest
+ Used By: Cart
+ */
+
+ class OpenApiCartServiceabilityRequest: Codable {
+
+
+ public var cartItems: [CartItem]
+
+ public var shippingAddress: ShippingAddress
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartItems = "cart_items"
+
+ case shippingAddress = "shipping_address"
+
+ }
+
+ public init(cartItems: [CartItem], shippingAddress: ShippingAddress) {
+
+ self.cartItems = cartItems
+
+ self.shippingAddress = shippingAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ cartItems = try container.decode([CartItem].self, forKey: .cartItems)
+
+
+
+
+ shippingAddress = try container.decode(ShippingAddress.self, forKey: .shippingAddress)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(cartItems, forKey: .cartItems)
+
+
+
+
+ try? container.encodeIfPresent(shippingAddress, forKey: .shippingAddress)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..bf729b3f21
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResponseCartPlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenApiCartServiceabilityResponse
+ Used By: Cart
+ */
+
+ class OpenApiCartServiceabilityResponse: Codable {
+
+
+ public var isValid: Bool?
+
+ public var items: [CartProductInfo]?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var message: String?
+
+ public var breakupValues: CartBreakup?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isValid = "is_valid"
+
+ case items = "items"
+
+ case deliveryPromise = "delivery_promise"
+
+ case message = "message"
+
+ case breakupValues = "breakup_values"
+
+ }
+
+ public init(breakupValues: CartBreakup? = nil, deliveryPromise: ShipmentPromise? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, message: String? = nil) {
+
+ self.isValid = isValid
+
+ self.items = items
+
+ self.deliveryPromise = deliveryPromise
+
+ self.message = message
+
+ self.breakupValues = breakupValues
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } 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(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResultCartPlatformModel.swift
deleted file mode 100644
index d42732d23a..0000000000
--- a/Sources/code/platform/Models/Cart/OpenApiCartServiceabilityResultCartPlatformModel.swift
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenApiCartServiceabilityResult
- Used By: Cart
- */
-
- class OpenApiCartServiceabilityResult: Codable {
-
-
- public var isValid: Bool?
-
- public var items: [CartProductInfo]?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var message: String?
-
- public var breakupValues: CartBreakup?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isValid = "is_valid"
-
- case items = "items"
-
- case deliveryPromise = "delivery_promise"
-
- case message = "message"
-
- case breakupValues = "breakup_values"
-
- }
-
- public init(breakupValues: CartBreakup? = nil, deliveryPromise: ShipmentPromise? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, message: String? = nil) {
-
- self.isValid = isValid
-
- self.items = items
-
- self.deliveryPromise = deliveryPromise
-
- self.message = message
-
- self.breakupValues = breakupValues
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } 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(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenApiCheckoutResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCheckoutResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..7db9c1c89f
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenApiCheckoutResponseCartPlatformModel.swift
@@ -0,0 +1,124 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenApiCheckoutResponse
+ Used By: Cart
+ */
+
+ class OpenApiCheckoutResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var orderRefId: String?
+
+ public var orderId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case orderRefId = "order_ref_id"
+
+ case orderId = "order_id"
+
+ }
+
+ public init(message: String? = nil, orderId: String, orderRefId: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.orderRefId = orderRefId
+
+ self.orderId = orderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ orderRefId = try container.decode(String.self, forKey: .orderRefId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(orderRefId, forKey: .orderRefId)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenApiCheckoutResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiCheckoutResultCartPlatformModel.swift
deleted file mode 100644
index 3d1d79a577..0000000000
--- a/Sources/code/platform/Models/Cart/OpenApiCheckoutResultCartPlatformModel.swift
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenApiCheckoutResult
- Used By: Cart
- */
-
- class OpenApiCheckoutResult: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var orderRefId: String?
-
- public var orderId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case orderRefId = "order_ref_id"
-
- case orderId = "order_id"
-
- }
-
- public init(message: String? = nil, orderId: String, orderRefId: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.orderRefId = orderRefId
-
- self.orderId = orderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- orderRefId = try container.decode(String.self, forKey: .orderRefId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(orderRefId, forKey: .orderRefId)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenApiErrorResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiErrorResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..025325a580
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenApiErrorResponseCartPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenApiErrorResponse
+ Used By: Cart
+ */
+
+ class OpenApiErrorResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var errors: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case errors = "errors"
+
+ }
+
+ public init(errors: [String: Any]? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.errors = errors
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(errors, forKey: .errors)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenApiErrorResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenApiErrorResultCartPlatformModel.swift
deleted file mode 100644
index 22d567fa5f..0000000000
--- a/Sources/code/platform/Models/Cart/OpenApiErrorResultCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenApiErrorResult
- Used By: Cart
- */
-
- class OpenApiErrorResult: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var errors: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case errors = "errors"
-
- }
-
- public init(errors: [String: Any]? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenapiCartDetailsCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenapiCartDetailsCreationCartPlatformModel.swift
deleted file mode 100644
index 31a04b8625..0000000000
--- a/Sources/code/platform/Models/Cart/OpenapiCartDetailsCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenapiCartDetailsCreation
- Used By: Cart
- */
-
- class OpenapiCartDetailsCreation: Codable {
-
-
- public var cartItems: [CartItem]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartItems = "cart_items"
-
- }
-
- public init(cartItems: [CartItem]) {
-
- self.cartItems = cartItems
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- cartItems = try container.decode([CartItem].self, forKey: .cartItems)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(cartItems, forKey: .cartItems)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OpenapiCartDetailsRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenapiCartDetailsRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..4f0737a99d
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenapiCartDetailsRequestCartPlatformModel.swift
@@ -0,0 +1,55 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenapiCartDetailsRequest
+ Used By: Cart
+ */
+
+ class OpenapiCartDetailsRequest: Codable {
+
+
+ public var cartItems: [CartItem]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartItems = "cart_items"
+
+ }
+
+ public init(cartItems: [CartItem]) {
+
+ self.cartItems = cartItems
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ cartItems = try container.decode([CartItem].self, forKey: .cartItems)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(cartItems, forKey: .cartItems)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenapiCartDetailsResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenapiCartDetailsResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..78e3251c74
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OpenapiCartDetailsResponseCartPlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OpenapiCartDetailsResponse
+ Used By: Cart
+ */
+
+ class OpenapiCartDetailsResponse: Codable {
+
+
+ public var isValid: Bool?
+
+ public var message: String?
+
+ public var breakupValues: CartBreakup?
+
+ public var items: [CartProductInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isValid = "is_valid"
+
+ case message = "message"
+
+ case breakupValues = "breakup_values"
+
+ case items = "items"
+
+ }
+
+ public init(breakupValues: CartBreakup? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, message: String? = nil) {
+
+ self.isValid = isValid
+
+ self.message = message
+
+ self.breakupValues = breakupValues
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].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(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OpenapiCartDetailsResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OpenapiCartDetailsResultCartPlatformModel.swift
deleted file mode 100644
index ae4043d829..0000000000
--- a/Sources/code/platform/Models/Cart/OpenapiCartDetailsResultCartPlatformModel.swift
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OpenapiCartDetailsResult
- Used By: Cart
- */
-
- class OpenapiCartDetailsResult: Codable {
-
-
- public var isValid: Bool?
-
- public var message: String?
-
- public var breakupValues: CartBreakup?
-
- public var items: [CartProductInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isValid = "is_valid"
-
- case message = "message"
-
- case breakupValues = "breakup_values"
-
- case items = "items"
-
- }
-
- public init(breakupValues: CartBreakup? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, message: String? = nil) {
-
- self.isValid = isValid
-
- self.message = message
-
- self.breakupValues = breakupValues
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].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(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OperationErrorResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OperationErrorResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..f91000cabd
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OperationErrorResponseCartPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OperationErrorResponse
+ Used By: Cart
+ */
+
+ class OperationErrorResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OperationErrorResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OperationErrorResultCartPlatformModel.swift
deleted file mode 100644
index b2d5f87168..0000000000
--- a/Sources/code/platform/Models/Cart/OperationErrorResultCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OperationErrorResult
- Used By: Cart
- */
-
- class OperationErrorResult: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/OverrideCheckoutResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OverrideCheckoutResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..e00789ab54
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/OverrideCheckoutResponseCartPlatformModel.swift
@@ -0,0 +1,119 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: OverrideCheckoutResponse
+ Used By: Cart
+ */
+
+ class OverrideCheckoutResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var cart: [String: Any]
+
+ public var success: String
+
+ public var orderId: String
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case cart = "cart"
+
+ case success = "success"
+
+ case orderId = "order_id"
+
+ case message = "message"
+
+ }
+
+ public init(cart: [String: Any], data: [String: Any], message: String, orderId: String, success: String) {
+
+ self.data = data
+
+ self.cart = cart
+
+ self.success = success
+
+ self.orderId = orderId
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ cart = try container.decode([String: Any].self, forKey: .cart)
+
+
+
+
+ success = try container.decode(String.self, forKey: .success)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/OverrideCheckoutResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OverrideCheckoutResultCartPlatformModel.swift
deleted file mode 100644
index 87a7c844c8..0000000000
--- a/Sources/code/platform/Models/Cart/OverrideCheckoutResultCartPlatformModel.swift
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: OverrideCheckoutResult
- Used By: Cart
- */
-
- class OverrideCheckoutResult: Codable {
-
-
- public var data: [String: Any]
-
- public var cart: [String: Any]
-
- public var success: String
-
- public var orderId: String
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case cart = "cart"
-
- case success = "success"
-
- case orderId = "order_id"
-
- case message = "message"
-
- }
-
- public init(cart: [String: Any], data: [String: Any], message: String, orderId: String, success: String) {
-
- self.data = data
-
- self.cart = cart
-
- self.success = success
-
- self.orderId = orderId
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- cart = try container.decode([String: Any].self, forKey: .cart)
-
-
-
-
- success = try container.decode(String.self, forKey: .success)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/Ownership1CartPlatformModel.swift b/Sources/code/platform/Models/Cart/Ownership1CartPlatformModel.swift
index e7b77ed429..da40058ee7 100644
--- a/Sources/code/platform/Models/Cart/Ownership1CartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/Ownership1CartPlatformModel.swift
@@ -14,9 +14,9 @@ public extension PlatformClient.ApplicationClient.Cart {
class Ownership1: Codable {
- public var payableCategory: String?
+ public var payableCategory: String
- public var payableBy: String?
+ public var payableBy: String
public enum CodingKeys: String, CodingKey {
@@ -27,7 +27,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(payableBy: String? = nil, payableCategory: String? = nil) {
+ public init(payableBy: String, payableCategory: String) {
self.payableCategory = payableCategory
@@ -39,29 +39,15 @@ public extension PlatformClient.ApplicationClient.Cart {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- payableCategory = try container.decode(String.self, forKey: .payableCategory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ payableCategory = try container.decode(String.self, forKey: .payableCategory)
- do {
- payableBy = try container.decode(String.self, forKey: .payableBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ payableBy = try container.decode(String.self, forKey: .payableBy)
+
}
public func encode(to encoder: Encoder) throws {
diff --git a/Sources/code/platform/Models/Cart/OwnershipCartPlatformModel.swift b/Sources/code/platform/Models/Cart/OwnershipCartPlatformModel.swift
index a9acb065cd..3f12beb857 100644
--- a/Sources/code/platform/Models/Cart/OwnershipCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/OwnershipCartPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var payableCategory: String
- public var payableBy: String?
+ public var payableBy: String
public enum CodingKeys: String, CodingKey {
@@ -27,7 +27,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(payableBy: String? = nil, payableCategory: String) {
+ public init(payableBy: String, payableCategory: String) {
self.payableCategory = payableCategory
@@ -44,17 +44,10 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- payableBy = try container.decode(String.self, forKey: .payableBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ payableBy = try container.decode(String.self, forKey: .payableBy)
+
}
public func encode(to encoder: Encoder) throws {
diff --git a/Sources/code/platform/Models/Cart/PlatformAddCartDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformAddCartDetailsCartPlatformModel.swift
deleted file mode 100644
index b2b429f26a..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformAddCartDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformAddCartDetails
- Used By: Cart
- */
-
- class PlatformAddCartDetails: Codable {
-
-
- public var userId: String?
-
- public var newCart: Bool?
-
- public var items: [AddProductCart]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case newCart = "new_cart"
-
- case items = "items"
-
- }
-
- public init(items: [AddProductCart]? = nil, newCart: Bool? = nil, userId: String? = nil) {
-
- self.userId = userId
-
- self.newCart = newCart
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- newCart = try container.decode(Bool.self, forKey: .newCart)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([AddProductCart].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(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(newCart, forKey: .newCart)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformAddCartRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformAddCartRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..ab1565b253
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformAddCartRequestCartPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformAddCartRequest
+ Used By: Cart
+ */
+
+ class PlatformAddCartRequest: Codable {
+
+
+ public var userId: String?
+
+ public var newCart: Bool?
+
+ public var items: [AddProductCart]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userId = "user_id"
+
+ case newCart = "new_cart"
+
+ case items = "items"
+
+ }
+
+ public init(items: [AddProductCart]? = nil, newCart: Bool? = nil, userId: String? = nil) {
+
+ self.userId = userId
+
+ self.newCart = newCart
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ newCart = try container.decode(Bool.self, forKey: .newCart)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([AddProductCart].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(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(newCart, forKey: .newCart)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailCreationCartPlatformModel.swift
deleted file mode 100644
index a426cff076..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,731 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformCartCheckoutDetailCreation
- Used By: Cart
- */
-
- class PlatformCartCheckoutDetailCreation: Codable {
-
-
- public var customMeta: [CartCheckoutCustomMeta]?
-
- public var addressId: String?
-
- public var paymentIdentifier: String?
-
- public var paymentParams: [String: Any]?
-
- public var paymentAutoConfirm: Bool?
-
- public var id: String
-
- public var pos: Bool?
-
- public var billingAddressId: String?
-
- public var merchantCode: String?
-
- public var aggregator: String?
-
- public var pickAtStoreUid: Int?
-
- public var deviceId: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var paymentMode: String
-
- public var checkoutMode: String?
-
- public var customerDetails: CustomerDetails?
-
- public var meta: [String: Any]?
-
- public var staff: StaffCheckout?
-
- public var employeeCode: String?
-
- public var billingAddress: [String: Any]?
-
- public var callbackUrl: String?
-
- public var userId: String?
-
- public var extraMeta: [String: Any]?
-
- public var orderType: String
-
- public var files: [Files]?
-
- public var orderingStore: Int?
-
- public var paymentExtraIdentifiers: [String: Any]?
-
- public var iin: String?
-
- public var network: String?
-
- public var type: String?
-
- public var cardId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customMeta = "custom_meta"
-
- case addressId = "address_id"
-
- case paymentIdentifier = "payment_identifier"
-
- case paymentParams = "payment_params"
-
- case paymentAutoConfirm = "payment_auto_confirm"
-
- case id = "id"
-
- case pos = "pos"
-
- case billingAddressId = "billing_address_id"
-
- case merchantCode = "merchant_code"
-
- case aggregator = "aggregator"
-
- case pickAtStoreUid = "pick_at_store_uid"
-
- case deviceId = "device_id"
-
- case deliveryAddress = "delivery_address"
-
- case paymentMode = "payment_mode"
-
- case checkoutMode = "checkout_mode"
-
- case customerDetails = "customer_details"
-
- case meta = "meta"
-
- case staff = "staff"
-
- case employeeCode = "employee_code"
-
- case billingAddress = "billing_address"
-
- case callbackUrl = "callback_url"
-
- case userId = "user_id"
-
- case extraMeta = "extra_meta"
-
- case orderType = "order_type"
-
- case files = "files"
-
- case orderingStore = "ordering_store"
-
- case paymentExtraIdentifiers = "payment_extra_identifiers"
-
- case iin = "iin"
-
- case network = "network"
-
- case type = "type"
-
- case cardId = "card_id"
-
- }
-
- public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, checkoutMode: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, deviceId: String? = nil, employeeCode: String? = nil, extraMeta: [String: Any]? = nil, files: [Files]? = nil, id: String, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String, paymentAutoConfirm: Bool? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, pickAtStoreUid: Int? = nil, pos: Bool? = nil, staff: StaffCheckout? = nil, type: String? = nil, userId: String? = nil) {
-
- self.customMeta = customMeta
-
- self.addressId = addressId
-
- self.paymentIdentifier = paymentIdentifier
-
- self.paymentParams = paymentParams
-
- self.paymentAutoConfirm = paymentAutoConfirm
-
- self.id = id
-
- self.pos = pos
-
- self.billingAddressId = billingAddressId
-
- self.merchantCode = merchantCode
-
- self.aggregator = aggregator
-
- self.pickAtStoreUid = pickAtStoreUid
-
- self.deviceId = deviceId
-
- self.deliveryAddress = deliveryAddress
-
- self.paymentMode = paymentMode
-
- self.checkoutMode = checkoutMode
-
- self.customerDetails = customerDetails
-
- self.meta = meta
-
- self.staff = staff
-
- self.employeeCode = employeeCode
-
- self.billingAddress = billingAddress
-
- self.callbackUrl = callbackUrl
-
- self.userId = userId
-
- self.extraMeta = extraMeta
-
- self.orderType = orderType
-
- self.files = files
-
- self.orderingStore = orderingStore
-
- self.paymentExtraIdentifiers = paymentExtraIdentifiers
-
- self.iin = iin
-
- self.network = network
-
- self.type = type
-
- self.cardId = cardId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customMeta = try container.decode([CartCheckoutCustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- pos = try container.decode(Bool.self, forKey: .pos)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pickAtStoreUid = try container.decode(Int.self, forKey: .pickAtStoreUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- staff = try container.decode(StaffCheckout.self, forKey: .staff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- employeeCode = try container.decode(String.self, forKey: .employeeCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderType = try container.decode(String.self, forKey: .orderType)
-
-
-
-
- do {
- files = try container.decode([Files].self, forKey: .files)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingStore = try container.decode(Int.self, forKey: .orderingStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentExtraIdentifiers = try container.decode([String: Any].self, forKey: .paymentExtraIdentifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- iin = try container.decode(String.self, forKey: .iin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- network = try container.decode(String.self, forKey: .network)
-
- } 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 {
- cardId = try container.decode(String.self, forKey: .cardId)
-
- } 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(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(addressId, forKey: .addressId)
-
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
-
-
-
-
- try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pos, forKey: .pos)
-
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(pickAtStoreUid, forKey: .pickAtStoreUid)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(staff, forKey: .staff)
-
-
-
-
- try? container.encodeIfPresent(employeeCode, forKey: .employeeCode)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
-
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
-
- try? container.encodeIfPresent(files, forKey: .files)
-
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
-
-
- try? container.encodeIfPresent(paymentExtraIdentifiers, forKey: .paymentExtraIdentifiers)
-
-
-
-
- try? container.encodeIfPresent(iin, forKey: .iin)
-
-
-
-
- try? container.encodeIfPresent(network, forKey: .network)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2CreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2CreationCartPlatformModel.swift
deleted file mode 100644
index 74381b4000..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2CreationCartPlatformModel.swift
+++ /dev/null
@@ -1,724 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformCartCheckoutDetailV2Creation
- Used By: Cart
- */
-
- class PlatformCartCheckoutDetailV2Creation: Codable {
-
-
- public var addressId: String?
-
- public var paymentIdentifier: String?
-
- public var paymentParams: [String: Any]?
-
- public var customMeta: [CartCheckoutCustomMeta]?
-
- public var paymentAutoConfirm: Bool?
-
- public var id: String
-
- public var pos: Bool?
-
- public var billingAddressId: String?
-
- public var merchantCode: String?
-
- public var aggregator: String?
-
- public var pickAtStoreUid: Int?
-
- public var deviceId: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var paymentMode: String?
-
- public var checkoutMode: String?
-
- public var customerDetails: CustomerDetails?
-
- public var meta: [String: Any]?
-
- public var paymentMethods: [PaymentMethod]
-
- public var staff: StaffCheckout?
-
- public var employeeCode: String?
-
- public var billingAddress: [String: Any]?
-
- public var callbackUrl: String?
-
- public var userId: String
-
- public var extraMeta: [String: Any]?
-
- public var orderType: String
-
- public var files: [Files]?
-
- public var orderingStore: Int?
-
- public var iin: String?
-
- public var network: String?
-
- public var type: String?
-
- public var cardId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addressId = "address_id"
-
- case paymentIdentifier = "payment_identifier"
-
- case paymentParams = "payment_params"
-
- case customMeta = "custom_meta"
-
- case paymentAutoConfirm = "payment_auto_confirm"
-
- case id = "id"
-
- case pos = "pos"
-
- case billingAddressId = "billing_address_id"
-
- case merchantCode = "merchant_code"
-
- case aggregator = "aggregator"
-
- case pickAtStoreUid = "pick_at_store_uid"
-
- case deviceId = "device_id"
-
- case deliveryAddress = "delivery_address"
-
- case paymentMode = "payment_mode"
-
- case checkoutMode = "checkout_mode"
-
- case customerDetails = "customer_details"
-
- case meta = "meta"
-
- case paymentMethods = "payment_methods"
-
- case staff = "staff"
-
- case employeeCode = "employee_code"
-
- case billingAddress = "billing_address"
-
- case callbackUrl = "callback_url"
-
- case userId = "user_id"
-
- case extraMeta = "extra_meta"
-
- case orderType = "order_type"
-
- case files = "files"
-
- case orderingStore = "ordering_store"
-
- case iin = "iin"
-
- case network = "network"
-
- case type = "type"
-
- case cardId = "card_id"
-
- }
-
- public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, checkoutMode: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, deviceId: String? = nil, employeeCode: String? = nil, extraMeta: [String: Any]? = nil, files: [Files]? = nil, id: String, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String? = nil, paymentParams: [String: Any]? = nil, pickAtStoreUid: Int? = nil, pos: Bool? = nil, staff: StaffCheckout? = nil, type: String? = nil, userId: String) {
-
- self.addressId = addressId
-
- self.paymentIdentifier = paymentIdentifier
-
- self.paymentParams = paymentParams
-
- self.customMeta = customMeta
-
- self.paymentAutoConfirm = paymentAutoConfirm
-
- self.id = id
-
- self.pos = pos
-
- self.billingAddressId = billingAddressId
-
- self.merchantCode = merchantCode
-
- self.aggregator = aggregator
-
- self.pickAtStoreUid = pickAtStoreUid
-
- self.deviceId = deviceId
-
- self.deliveryAddress = deliveryAddress
-
- self.paymentMode = paymentMode
-
- self.checkoutMode = checkoutMode
-
- self.customerDetails = customerDetails
-
- self.meta = meta
-
- self.paymentMethods = paymentMethods
-
- self.staff = staff
-
- self.employeeCode = employeeCode
-
- self.billingAddress = billingAddress
-
- self.callbackUrl = callbackUrl
-
- self.userId = userId
-
- self.extraMeta = extraMeta
-
- self.orderType = orderType
-
- self.files = files
-
- self.orderingStore = orderingStore
-
- self.iin = iin
-
- self.network = network
-
- self.type = type
-
- self.cardId = cardId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- addressId = try container.decode(String.self, forKey: .addressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([CartCheckoutCustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- pos = try container.decode(Bool.self, forKey: .pos)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCode = try container.decode(String.self, forKey: .merchantCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pickAtStoreUid = try container.decode(Int.self, forKey: .pickAtStoreUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
-
- } 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)
- } catch {
-
- }
-
-
-
- paymentMethods = try container.decode([PaymentMethod].self, forKey: .paymentMethods)
-
-
-
-
- do {
- staff = try container.decode(StaffCheckout.self, forKey: .staff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- employeeCode = try container.decode(String.self, forKey: .employeeCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- do {
- extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- orderType = try container.decode(String.self, forKey: .orderType)
-
-
-
-
- do {
- files = try container.decode([Files].self, forKey: .files)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingStore = try container.decode(Int.self, forKey: .orderingStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- iin = try container.decode(String.self, forKey: .iin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- network = try container.decode(String.self, forKey: .network)
-
- } 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 {
- cardId = try container.decode(String.self, forKey: .cardId)
-
- } 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(addressId, forKey: .addressId)
-
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pos, forKey: .pos)
-
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
-
- try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(pickAtStoreUid, forKey: .pickAtStoreUid)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(staff, forKey: .staff)
-
-
-
-
- try? container.encodeIfPresent(employeeCode, forKey: .employeeCode)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
-
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
-
- try? container.encodeIfPresent(files, forKey: .files)
-
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
-
-
- try? container.encodeIfPresent(iin, forKey: .iin)
-
-
-
-
- try? container.encodeIfPresent(network, forKey: .network)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(cardId, forKey: .cardId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2RequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2RequestCartPlatformModel.swift
new file mode 100644
index 0000000000..fa30ac7650
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformCartCheckoutDetailV2RequestCartPlatformModel.swift
@@ -0,0 +1,724 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformCartCheckoutDetailV2Request
+ Used By: Cart
+ */
+
+ class PlatformCartCheckoutDetailV2Request: Codable {
+
+
+ public var addressId: String?
+
+ public var paymentIdentifier: String?
+
+ public var paymentParams: [String: Any]?
+
+ public var customMeta: [String: Any]?
+
+ public var paymentAutoConfirm: Bool?
+
+ public var id: String
+
+ public var pos: Bool?
+
+ public var billingAddressId: String?
+
+ public var merchantCode: String?
+
+ public var aggregator: String?
+
+ public var pickAtStoreUid: Int?
+
+ public var deviceId: String?
+
+ public var deliveryAddress: [String: Any]?
+
+ public var paymentMode: String?
+
+ public var checkoutMode: String?
+
+ public var customerDetails: CustomerDetails?
+
+ public var meta: [String: Any]?
+
+ public var paymentMethods: [PaymentMethod]
+
+ public var staff: StaffCheckout?
+
+ public var employeeCode: String?
+
+ public var billingAddress: [String: Any]?
+
+ public var callbackUrl: String?
+
+ public var userId: String
+
+ public var extraMeta: [String: Any]?
+
+ public var orderType: String
+
+ public var files: [Files]?
+
+ public var orderingStore: Int?
+
+ public var iin: String?
+
+ public var network: String?
+
+ public var type: String?
+
+ public var cardId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case addressId = "address_id"
+
+ case paymentIdentifier = "payment_identifier"
+
+ case paymentParams = "payment_params"
+
+ case customMeta = "custom_meta"
+
+ case paymentAutoConfirm = "payment_auto_confirm"
+
+ case id = "id"
+
+ case pos = "pos"
+
+ case billingAddressId = "billing_address_id"
+
+ case merchantCode = "merchant_code"
+
+ case aggregator = "aggregator"
+
+ case pickAtStoreUid = "pick_at_store_uid"
+
+ case deviceId = "device_id"
+
+ case deliveryAddress = "delivery_address"
+
+ case paymentMode = "payment_mode"
+
+ case checkoutMode = "checkout_mode"
+
+ case customerDetails = "customer_details"
+
+ case meta = "meta"
+
+ case paymentMethods = "payment_methods"
+
+ case staff = "staff"
+
+ case employeeCode = "employee_code"
+
+ case billingAddress = "billing_address"
+
+ case callbackUrl = "callback_url"
+
+ case userId = "user_id"
+
+ case extraMeta = "extra_meta"
+
+ case orderType = "order_type"
+
+ case files = "files"
+
+ case orderingStore = "ordering_store"
+
+ case iin = "iin"
+
+ case network = "network"
+
+ case type = "type"
+
+ case cardId = "card_id"
+
+ }
+
+ public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, cardId: String? = nil, checkoutMode: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, deviceId: String? = nil, employeeCode: String? = nil, extraMeta: [String: Any]? = nil, files: [Files]? = nil, id: String, iin: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, network: String? = nil, orderingStore: Int? = nil, orderType: String, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMethods: [PaymentMethod], paymentMode: String? = nil, paymentParams: [String: Any]? = nil, pickAtStoreUid: Int? = nil, pos: Bool? = nil, staff: StaffCheckout? = nil, type: String? = nil, userId: String) {
+
+ self.addressId = addressId
+
+ self.paymentIdentifier = paymentIdentifier
+
+ self.paymentParams = paymentParams
+
+ self.customMeta = customMeta
+
+ self.paymentAutoConfirm = paymentAutoConfirm
+
+ self.id = id
+
+ self.pos = pos
+
+ self.billingAddressId = billingAddressId
+
+ self.merchantCode = merchantCode
+
+ self.aggregator = aggregator
+
+ self.pickAtStoreUid = pickAtStoreUid
+
+ self.deviceId = deviceId
+
+ self.deliveryAddress = deliveryAddress
+
+ self.paymentMode = paymentMode
+
+ self.checkoutMode = checkoutMode
+
+ self.customerDetails = customerDetails
+
+ self.meta = meta
+
+ self.paymentMethods = paymentMethods
+
+ self.staff = staff
+
+ self.employeeCode = employeeCode
+
+ self.billingAddress = billingAddress
+
+ self.callbackUrl = callbackUrl
+
+ self.userId = userId
+
+ self.extraMeta = extraMeta
+
+ self.orderType = orderType
+
+ self.files = files
+
+ self.orderingStore = orderingStore
+
+ self.iin = iin
+
+ self.network = network
+
+ self.type = type
+
+ self.cardId = cardId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ addressId = try container.decode(String.self, forKey: .addressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentParams = try container.decode([String: Any].self, forKey: .paymentParams)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customMeta = try container.decode([String: Any].self, forKey: .customMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentAutoConfirm = try container.decode(Bool.self, forKey: .paymentAutoConfirm)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ do {
+ pos = try container.decode(Bool.self, forKey: .pos)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCode = try container.decode(String.self, forKey: .merchantCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pickAtStoreUid = try container.decode(Int.self, forKey: .pickAtStoreUid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerDetails = try container.decode(CustomerDetails.self, forKey: .customerDetails)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ paymentMethods = try container.decode([PaymentMethod].self, forKey: .paymentMethods)
+
+
+
+
+ do {
+ staff = try container.decode(StaffCheckout.self, forKey: .staff)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ employeeCode = try container.decode(String.self, forKey: .employeeCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ userId = try container.decode(String.self, forKey: .userId)
+
+
+
+
+ do {
+ extraMeta = try container.decode([String: Any].self, forKey: .extraMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+
+
+
+ do {
+ files = try container.decode([Files].self, forKey: .files)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingStore = try container.decode(Int.self, forKey: .orderingStore)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ iin = try container.decode(String.self, forKey: .iin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ network = try container.decode(String.self, forKey: .network)
+
+ } 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 {
+ cardId = try container.decode(String.self, forKey: .cardId)
+
+ } 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(addressId, forKey: .addressId)
+
+
+
+
+ try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
+
+
+
+
+ try? container.encodeIfPresent(customMeta, forKey: .customMeta)
+
+
+
+
+ try? container.encodeIfPresent(paymentAutoConfirm, forKey: .paymentAutoConfirm)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(pos, forKey: .pos)
+
+
+
+
+ try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
+
+
+
+
+ try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(pickAtStoreUid, forKey: .pickAtStoreUid)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
+
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+
+
+ try? container.encodeIfPresent(staff, forKey: .staff)
+
+
+
+
+ try? container.encodeIfPresent(employeeCode, forKey: .employeeCode)
+
+
+
+
+ try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
+
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(extraMeta, forKey: .extraMeta)
+
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+
+ try? container.encodeIfPresent(files, forKey: .files)
+
+
+
+
+ try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
+
+
+
+
+ try? container.encodeIfPresent(iin, forKey: .iin)
+
+
+
+
+ try? container.encodeIfPresent(network, forKey: .network)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(cardId, forKey: .cardId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformCartMetaCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartMetaCreationCartPlatformModel.swift
deleted file mode 100644
index ed081134f2..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformCartMetaCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformCartMetaCreation
- Used By: Cart
- */
-
- class PlatformCartMetaCreation: Codable {
-
-
- public var gstin: String?
-
- public var pickUpCustomerDetails: [String: Any]?
-
- public var checkoutMode: String?
-
- public var giftDetails: [String: Any]?
-
- public var panNo: String?
-
- public var comment: String?
-
- public var staffUserId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case gstin = "gstin"
-
- case pickUpCustomerDetails = "pick_up_customer_details"
-
- case checkoutMode = "checkout_mode"
-
- case giftDetails = "gift_details"
-
- case panNo = "pan_no"
-
- case comment = "comment"
-
- case staffUserId = "staff_user_id"
-
- }
-
- public init(checkoutMode: String? = nil, comment: String? = nil, giftDetails: [String: Any]? = nil, gstin: String? = nil, panNo: String? = nil, pickUpCustomerDetails: [String: Any]? = nil, staffUserId: String? = nil) {
-
- self.gstin = gstin
-
- self.pickUpCustomerDetails = pickUpCustomerDetails
-
- self.checkoutMode = checkoutMode
-
- self.giftDetails = giftDetails
-
- self.panNo = panNo
-
- self.comment = comment
-
- self.staffUserId = staffUserId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pickUpCustomerDetails = try container.decode([String: Any].self, forKey: .pickUpCustomerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- giftDetails = try container.decode([String: Any].self, forKey: .giftDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panNo = try container.decode(String.self, forKey: .panNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staffUserId = try container.decode(String.self, forKey: .staffUserId)
-
- } 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(gstin, forKey: .gstin)
-
-
-
-
- try? container.encodeIfPresent(pickUpCustomerDetails, forKey: .pickUpCustomerDetails)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(giftDetails, forKey: .giftDetails)
-
-
-
-
- try? container.encodeIfPresent(panNo, forKey: .panNo)
-
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
-
- try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformCartMetaRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartMetaRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..2fd73d9f5c
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformCartMetaRequestCartPlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformCartMetaRequest
+ Used By: Cart
+ */
+
+ class PlatformCartMetaRequest: Codable {
+
+
+ public var gstin: String?
+
+ public var pickUpCustomerDetails: [String: Any]?
+
+ public var checkoutMode: String?
+
+ public var giftDetails: [String: Any]?
+
+ public var panNo: String?
+
+ public var comment: String?
+
+ public var staffUserId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case gstin = "gstin"
+
+ case pickUpCustomerDetails = "pick_up_customer_details"
+
+ case checkoutMode = "checkout_mode"
+
+ case giftDetails = "gift_details"
+
+ case panNo = "pan_no"
+
+ case comment = "comment"
+
+ case staffUserId = "staff_user_id"
+
+ }
+
+ public init(checkoutMode: String? = nil, comment: String? = nil, giftDetails: [String: Any]? = nil, gstin: String? = nil, panNo: String? = nil, pickUpCustomerDetails: [String: Any]? = nil, staffUserId: String? = nil) {
+
+ self.gstin = gstin
+
+ self.pickUpCustomerDetails = pickUpCustomerDetails
+
+ self.checkoutMode = checkoutMode
+
+ self.giftDetails = giftDetails
+
+ self.panNo = panNo
+
+ self.comment = comment
+
+ self.staffUserId = staffUserId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pickUpCustomerDetails = try container.decode([String: Any].self, forKey: .pickUpCustomerDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ giftDetails = try container.decode([String: Any].self, forKey: .giftDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panNo = try container.decode(String.self, forKey: .panNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ staffUserId = try container.decode(String.self, forKey: .staffUserId)
+
+ } 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(gstin, forKey: .gstin)
+
+
+
+
+ try? container.encodeIfPresent(pickUpCustomerDetails, forKey: .pickUpCustomerDetails)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(giftDetails, forKey: .giftDetails)
+
+
+
+
+ try? container.encodeIfPresent(panNo, forKey: .panNo)
+
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+
+ try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformCartShipmentsResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartShipmentsResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..c8cc9891e7
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformCartShipmentsResponseCartPlatformModel.swift
@@ -0,0 +1,568 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformCartShipmentsResponse
+ Used By: Cart
+ */
+
+ class PlatformCartShipmentsResponse: Codable {
+
+
+ public var couponText: String?
+
+ public var id: String?
+
+ public var panConfig: [String: Any]?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var comment: String?
+
+ public var items: [CartProductInfo]?
+
+ public var paymentSelectionLock: PaymentSelectionLock?
+
+ public var deliveryChargeInfo: String?
+
+ public var restrictCheckout: Bool?
+
+ public var message: String?
+
+ public var breakupValues: CartBreakup?
+
+ public var staffUserId: String?
+
+ public var isValid: Bool?
+
+ public var shipments: [PlatformShipmentResponse]?
+
+ public var currency: CartCurrency?
+
+ public var checkoutMode: String?
+
+ public var lastModified: String?
+
+ public var buyNow: Bool?
+
+ public var gstin: String?
+
+ public var appliedPromoDetails: [AppliedPromotion]?
+
+ public var error: Bool?
+
+ public var panNo: String?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case couponText = "coupon_text"
+
+ case id = "id"
+
+ case panConfig = "pan_config"
+
+ case deliveryPromise = "delivery_promise"
+
+ case comment = "comment"
+
+ case items = "items"
+
+ case paymentSelectionLock = "payment_selection_lock"
+
+ case deliveryChargeInfo = "delivery_charge_info"
+
+ case restrictCheckout = "restrict_checkout"
+
+ case message = "message"
+
+ case breakupValues = "breakup_values"
+
+ case staffUserId = "staff_user_id"
+
+ case isValid = "is_valid"
+
+ case shipments = "shipments"
+
+ case currency = "currency"
+
+ case checkoutMode = "checkout_mode"
+
+ case lastModified = "last_modified"
+
+ case buyNow = "buy_now"
+
+ case gstin = "gstin"
+
+ case appliedPromoDetails = "applied_promo_details"
+
+ case error = "error"
+
+ case panNo = "pan_no"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, error: Bool? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, shipments: [PlatformShipmentResponse]? = nil, staffUserId: String? = nil) {
+
+ self.couponText = couponText
+
+ self.id = id
+
+ self.panConfig = panConfig
+
+ self.deliveryPromise = deliveryPromise
+
+ self.comment = comment
+
+ self.items = items
+
+ self.paymentSelectionLock = paymentSelectionLock
+
+ self.deliveryChargeInfo = deliveryChargeInfo
+
+ self.restrictCheckout = restrictCheckout
+
+ self.message = message
+
+ self.breakupValues = breakupValues
+
+ self.staffUserId = staffUserId
+
+ self.isValid = isValid
+
+ self.shipments = shipments
+
+ self.currency = currency
+
+ self.checkoutMode = checkoutMode
+
+ self.lastModified = lastModified
+
+ self.buyNow = buyNow
+
+ self.gstin = gstin
+
+ self.appliedPromoDetails = appliedPromoDetails
+
+ self.error = error
+
+ self.panNo = panNo
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ couponText = try container.decode(String.self, forKey: .couponText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ panConfig = try container.decode([String: Any].self, forKey: .panConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ staffUserId = try container.decode(String.self, forKey: .staffUserId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipments = try container.decode([PlatformShipmentResponse].self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(CartCurrency.self, forKey: .currency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lastModified = try container.decode(String.self, forKey: .lastModified)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ buyNow = try container.decode(Bool.self, forKey: .buyNow)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(Bool.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panNo = try container.decode(String.self, forKey: .panNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(couponText, forKey: .couponText)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(panConfig, forKey: .panConfig)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
+
+
+
+
+ try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
+
+
+
+
+ try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+
+ try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
+
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(lastModified, forKey: .lastModified)
+
+
+
+
+ try? container.encodeIfPresent(buyNow, forKey: .buyNow)
+
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+
+ try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(panNo, forKey: .panNo)
+
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformCartShipmentsResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformCartShipmentsResultCartPlatformModel.swift
deleted file mode 100644
index 7edab4b8fb..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformCartShipmentsResultCartPlatformModel.swift
+++ /dev/null
@@ -1,568 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformCartShipmentsResult
- Used By: Cart
- */
-
- class PlatformCartShipmentsResult: Codable {
-
-
- public var couponText: String?
-
- public var id: String?
-
- public var panConfig: [String: Any]?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var comment: String?
-
- public var items: [CartProductInfo]?
-
- public var paymentSelectionLock: PaymentSelectionLock?
-
- public var deliveryChargeInfo: String?
-
- public var restrictCheckout: Bool?
-
- public var message: String?
-
- public var breakupValues: CartBreakup?
-
- public var staffUserId: String?
-
- public var isValid: Bool?
-
- public var shipments: [PlatformShipmentDetails]?
-
- public var currency: CartCurrency?
-
- public var checkoutMode: String?
-
- public var lastModified: String?
-
- public var buyNow: Bool?
-
- public var gstin: String?
-
- public var appliedPromoDetails: [AppliedPromotion]?
-
- public var error: Bool?
-
- public var panNo: String?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case couponText = "coupon_text"
-
- case id = "id"
-
- case panConfig = "pan_config"
-
- case deliveryPromise = "delivery_promise"
-
- case comment = "comment"
-
- case items = "items"
-
- case paymentSelectionLock = "payment_selection_lock"
-
- case deliveryChargeInfo = "delivery_charge_info"
-
- case restrictCheckout = "restrict_checkout"
-
- case message = "message"
-
- case breakupValues = "breakup_values"
-
- case staffUserId = "staff_user_id"
-
- case isValid = "is_valid"
-
- case shipments = "shipments"
-
- case currency = "currency"
-
- case checkoutMode = "checkout_mode"
-
- case lastModified = "last_modified"
-
- case buyNow = "buy_now"
-
- case gstin = "gstin"
-
- case appliedPromoDetails = "applied_promo_details"
-
- case error = "error"
-
- case panNo = "pan_no"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, error: Bool? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, shipments: [PlatformShipmentDetails]? = nil, staffUserId: String? = nil) {
-
- self.couponText = couponText
-
- self.id = id
-
- self.panConfig = panConfig
-
- self.deliveryPromise = deliveryPromise
-
- self.comment = comment
-
- self.items = items
-
- self.paymentSelectionLock = paymentSelectionLock
-
- self.deliveryChargeInfo = deliveryChargeInfo
-
- self.restrictCheckout = restrictCheckout
-
- self.message = message
-
- self.breakupValues = breakupValues
-
- self.staffUserId = staffUserId
-
- self.isValid = isValid
-
- self.shipments = shipments
-
- self.currency = currency
-
- self.checkoutMode = checkoutMode
-
- self.lastModified = lastModified
-
- self.buyNow = buyNow
-
- self.gstin = gstin
-
- self.appliedPromoDetails = appliedPromoDetails
-
- self.error = error
-
- self.panNo = panNo
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- couponText = try container.decode(String.self, forKey: .couponText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- panConfig = try container.decode([String: Any].self, forKey: .panConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- staffUserId = try container.decode(String.self, forKey: .staffUserId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipments = try container.decode([PlatformShipmentDetails].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CartCurrency.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastModified = try container.decode(String.self, forKey: .lastModified)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- buyNow = try container.decode(Bool.self, forKey: .buyNow)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(Bool.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panNo = try container.decode(String.self, forKey: .panNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(couponText, forKey: .couponText)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(panConfig, forKey: .panConfig)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
-
-
-
-
- try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
-
-
-
-
- try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
-
- try? container.encodeIfPresent(staffUserId, forKey: .staffUserId)
-
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(lastModified, forKey: .lastModified)
-
-
-
-
- try? container.encodeIfPresent(buyNow, forKey: .buyNow)
-
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
-
- try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(panNo, forKey: .panNo)
-
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformGetAddressesDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformGetAddressesDetailsCartPlatformModel.swift
deleted file mode 100644
index 186491f57c..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformGetAddressesDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformGetAddressesDetails
- Used By: Cart
- */
-
- class PlatformGetAddressesDetails: Codable {
-
-
- public var address: [PlatformAddress]?
-
- public var validationConfig: ValidationConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case validationConfig = "validation_config"
-
- }
-
- public init(address: [PlatformAddress]? = nil, validationConfig: ValidationConfig? = nil) {
-
- self.address = address
-
- self.validationConfig = validationConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode([PlatformAddress].self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- validationConfig = try container.decode(ValidationConfig.self, forKey: .validationConfig)
-
- } 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(validationConfig, forKey: .validationConfig)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformGetAddressesResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformGetAddressesResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..3961d8660b
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformGetAddressesResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformGetAddressesResponse
+ Used By: Cart
+ */
+
+ class PlatformGetAddressesResponse: Codable {
+
+
+ public var address: [PlatformAddress]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ }
+
+ public init(address: [PlatformAddress]? = nil) {
+
+ self.address = address
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode([PlatformAddress].self, forKey: .address)
+
+ } 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(address, forKey: .address)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformSelectCartAddressCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformSelectCartAddressCartPlatformModel.swift
deleted file mode 100644
index 9b078b6208..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformSelectCartAddressCartPlatformModel.swift
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformSelectCartAddress
- Used By: Cart
- */
-
- class PlatformSelectCartAddress: Codable {
-
-
- public var cartId: String?
-
- public var billingAddressId: String?
-
- public var checkoutMode: String?
-
- public var id: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cartId = "cart_id"
-
- case billingAddressId = "billing_address_id"
-
- case checkoutMode = "checkout_mode"
-
- case id = "id"
-
- case userId = "user_id"
-
- }
-
- public init(billingAddressId: String? = nil, cartId: String? = nil, checkoutMode: String? = nil, id: String? = nil, userId: String? = nil) {
-
- self.cartId = cartId
-
- self.billingAddressId = billingAddressId
-
- self.checkoutMode = checkoutMode
-
- self.id = id
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cartId = try container.decode(String.self, forKey: .cartId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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(cartId, forKey: .cartId)
-
-
-
-
- try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformSelectCartAddressRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformSelectCartAddressRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..4478011f08
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformSelectCartAddressRequestCartPlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformSelectCartAddressRequest
+ Used By: Cart
+ */
+
+ class PlatformSelectCartAddressRequest: Codable {
+
+
+ public var cartId: String?
+
+ public var billingAddressId: String?
+
+ public var checkoutMode: String?
+
+ public var id: String?
+
+ public var userId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cartId = "cart_id"
+
+ case billingAddressId = "billing_address_id"
+
+ case checkoutMode = "checkout_mode"
+
+ case id = "id"
+
+ case userId = "user_id"
+
+ }
+
+ public init(billingAddressId: String? = nil, cartId: String? = nil, checkoutMode: String? = nil, id: String? = nil, userId: String? = nil) {
+
+ self.cartId = cartId
+
+ self.billingAddressId = billingAddressId
+
+ self.checkoutMode = checkoutMode
+
+ self.id = id
+
+ self.userId = userId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cartId = try container.decode(String.self, forKey: .cartId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddressId = try container.decode(String.self, forKey: .billingAddressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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(cartId, forKey: .cartId)
+
+
+
+
+ try? container.encodeIfPresent(billingAddressId, forKey: .billingAddressId)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformShipmentDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformShipmentDetailsCartPlatformModel.swift
deleted file mode 100644
index 004ae84b92..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformShipmentDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,292 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformShipmentDetails
- Used By: Cart
- */
-
- class PlatformShipmentDetails: Codable {
-
-
- public var shipments: Int?
-
- public var fulfillmentId: Int?
-
- public var items: [CartProductInfo]?
-
- public var dpOptions: [String: Any]?
-
- public var shipmentType: String?
-
- public var orderType: String?
-
- public var boxType: String?
-
- public var promise: ShipmentPromise?
-
- public var dpId: String?
-
- public var fulfillmentType: String?
-
- public var articles: [ShipmentArticle]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- case fulfillmentId = "fulfillment_id"
-
- case items = "items"
-
- case dpOptions = "dp_options"
-
- case shipmentType = "shipment_type"
-
- case orderType = "order_type"
-
- case boxType = "box_type"
-
- case promise = "promise"
-
- case dpId = "dp_id"
-
- case fulfillmentType = "fulfillment_type"
-
- case articles = "articles"
-
- }
-
- public init(articles: [ShipmentArticle]? = nil, boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int? = nil, fulfillmentType: String? = nil, items: [CartProductInfo]? = nil, orderType: String? = nil, promise: ShipmentPromise? = nil, shipments: Int? = nil, shipmentType: String? = nil) {
-
- self.shipments = shipments
-
- self.fulfillmentId = fulfillmentId
-
- self.items = items
-
- self.dpOptions = dpOptions
-
- self.shipmentType = shipmentType
-
- self.orderType = orderType
-
- self.boxType = boxType
-
- self.promise = promise
-
- self.dpId = dpId
-
- self.fulfillmentType = fulfillmentType
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode(Int.self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentType = try container.decode(String.self, forKey: .shipmentType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- boxType = try container.decode(String.self, forKey: .boxType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- promise = try container.decode(ShipmentPromise.self, forKey: .promise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dpId = try container.decode(String.self, forKey: .dpId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articles = try container.decode([ShipmentArticle].self, forKey: .articles)
-
- } 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(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
-
-
-
-
- try? container.encodeIfPresent(shipmentType, forKey: .shipmentType)
-
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
-
- try? container.encodeIfPresent(boxType, forKey: .boxType)
-
-
-
-
- try? container.encodeIfPresent(promise, forKey: .promise)
-
-
-
-
- try? container.encodeIfPresent(dpId, forKey: .dpId)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformShipmentResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformShipmentResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..8ce44f55d2
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformShipmentResponseCartPlatformModel.swift
@@ -0,0 +1,292 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformShipmentResponse
+ Used By: Cart
+ */
+
+ class PlatformShipmentResponse: Codable {
+
+
+ public var shipments: Int?
+
+ public var fulfillmentId: Int?
+
+ public var items: [CartProductInfo]?
+
+ public var dpOptions: [String: Any]?
+
+ public var shipmentType: String?
+
+ public var orderType: String?
+
+ public var boxType: String?
+
+ public var promise: ShipmentPromise?
+
+ public var dpId: String?
+
+ public var fulfillmentType: String?
+
+ public var articles: [ShipmentArticle]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ case fulfillmentId = "fulfillment_id"
+
+ case items = "items"
+
+ case dpOptions = "dp_options"
+
+ case shipmentType = "shipment_type"
+
+ case orderType = "order_type"
+
+ case boxType = "box_type"
+
+ case promise = "promise"
+
+ case dpId = "dp_id"
+
+ case fulfillmentType = "fulfillment_type"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [ShipmentArticle]? = nil, boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int? = nil, fulfillmentType: String? = nil, items: [CartProductInfo]? = nil, orderType: String? = nil, promise: ShipmentPromise? = nil, shipments: Int? = nil, shipmentType: String? = nil) {
+
+ self.shipments = shipments
+
+ self.fulfillmentId = fulfillmentId
+
+ self.items = items
+
+ self.dpOptions = dpOptions
+
+ self.shipmentType = shipmentType
+
+ self.orderType = orderType
+
+ self.boxType = boxType
+
+ self.promise = promise
+
+ self.dpId = dpId
+
+ self.fulfillmentType = fulfillmentType
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode(Int.self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentType = try container.decode(String.self, forKey: .shipmentType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ boxType = try container.decode(String.self, forKey: .boxType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ promise = try container.decode(ShipmentPromise.self, forKey: .promise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dpId = try container.decode(String.self, forKey: .dpId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ articles = try container.decode([ShipmentArticle].self, forKey: .articles)
+
+ } 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(shipments, forKey: .shipments)
+
+
+
+
+ try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
+
+
+
+
+ try? container.encodeIfPresent(shipmentType, forKey: .shipmentType)
+
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+
+ try? container.encodeIfPresent(boxType, forKey: .boxType)
+
+
+
+
+ try? container.encodeIfPresent(promise, forKey: .promise)
+
+
+
+
+ try? container.encodeIfPresent(dpId, forKey: .dpId)
+
+
+
+
+ try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
+
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PlatformUpdateCartDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformUpdateCartDetailsCartPlatformModel.swift
deleted file mode 100644
index 94751581b8..0000000000
--- a/Sources/code/platform/Models/Cart/PlatformUpdateCartDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PlatformUpdateCartDetails
- Used By: Cart
- */
-
- class PlatformUpdateCartDetails: Codable {
-
-
- public var userId: String?
-
- public var items: [UpdateProductCart]?
-
- public var freeGiftItems: [FreeGiftItemCreation]?
-
- public var operation: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case items = "items"
-
- case freeGiftItems = "free_gift_items"
-
- case operation = "operation"
-
- }
-
- public init(freeGiftItems: [FreeGiftItemCreation]? = nil, items: [UpdateProductCart]? = nil, operation: String, userId: String? = nil) {
-
- self.userId = userId
-
- self.items = items
-
- self.freeGiftItems = freeGiftItems
-
- self.operation = operation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- items = try container.decode([UpdateProductCart].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- freeGiftItems = try container.decode([FreeGiftItemCreation].self, forKey: .freeGiftItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(freeGiftItems, forKey: .freeGiftItems)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PlatformUpdateCartRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PlatformUpdateCartRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..e72932b2f6
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PlatformUpdateCartRequestCartPlatformModel.swift
@@ -0,0 +1,101 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PlatformUpdateCartRequest
+ Used By: Cart
+ */
+
+ class PlatformUpdateCartRequest: Codable {
+
+
+ public var userId: String?
+
+ public var items: [UpdateProductCart]?
+
+ public var operation: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userId = "user_id"
+
+ case items = "items"
+
+ case operation = "operation"
+
+ }
+
+ public init(items: [UpdateProductCart]? = nil, operation: String, userId: String? = nil) {
+
+ self.userId = userId
+
+ self.items = items
+
+ self.operation = operation
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([UpdateProductCart].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PriceAdjustmentAddCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PriceAdjustmentAddCartPlatformModel.swift
index 764f37a19b..32fab426d9 100644
--- a/Sources/code/platform/Models/Cart/PriceAdjustmentAddCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PriceAdjustmentAddCartPlatformModel.swift
@@ -42,8 +42,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var autoRemove: Bool?
- public var distributionLogic: DistributionLogic?
-
public enum CodingKeys: String, CodingKey {
@@ -75,11 +73,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case autoRemove = "auto_remove"
- case distributionLogic = "distribution_logic"
-
}
- public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, createdBy: String? = nil, distributionLogic: DistributionLogic? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
+ public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, createdBy: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
self.value = value
@@ -109,8 +105,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.autoRemove = autoRemove
- self.distributionLogic = distributionLogic
-
}
required public init(from decoder: Decoder) throws {
@@ -228,18 +222,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- distributionLogic = try container.decode(DistributionLogic.self, forKey: .distributionLogic)
-
- } 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 {
@@ -315,11 +297,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(autoRemove, forKey: .autoRemove)
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/PriceAdjustmentCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PriceAdjustmentCartPlatformModel.swift
index ecb87edc47..124f81c833 100644
--- a/Sources/code/platform/Models/Cart/PriceAdjustmentCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PriceAdjustmentCartPlatformModel.swift
@@ -42,8 +42,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var cartId: String
- public var distributionLogic: DistributionLogic?
-
public enum CodingKeys: String, CodingKey {
@@ -75,11 +73,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case cartId = "cart_id"
- case distributionLogic = "distribution_logic"
-
}
- public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, distributionLogic: DistributionLogic? = nil, id: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
+ public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, id: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
self.value = value
@@ -109,8 +105,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.cartId = cartId
- self.distributionLogic = distributionLogic
-
}
required public init(from decoder: Decoder) throws {
@@ -228,18 +222,6 @@ public extension PlatformClient.ApplicationClient.Cart {
-
- do {
- distributionLogic = try container.decode(DistributionLogic.self, forKey: .distributionLogic)
-
- } 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 {
@@ -315,11 +297,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/PriceAdjustmentResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PriceAdjustmentResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..0515c3590d
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PriceAdjustmentResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PriceAdjustmentResponse
+ Used By: Cart
+ */
+
+ class PriceAdjustmentResponse: Codable {
+
+
+ public var data: PriceAdjustment?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: PriceAdjustment? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(PriceAdjustment.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PriceAdjustmentResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PriceAdjustmentResultCartPlatformModel.swift
deleted file mode 100644
index 3a680e3901..0000000000
--- a/Sources/code/platform/Models/Cart/PriceAdjustmentResultCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PriceAdjustmentResult
- Used By: Cart
- */
-
- class PriceAdjustmentResult: Codable {
-
-
- public var data: PriceAdjustment?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: PriceAdjustment? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(PriceAdjustment.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PriceAdjustmentUpdateCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PriceAdjustmentUpdateCartPlatformModel.swift
index f3fccfd0c3..81bc6a071c 100644
--- a/Sources/code/platform/Models/Cart/PriceAdjustmentUpdateCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PriceAdjustmentUpdateCartPlatformModel.swift
@@ -42,8 +42,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var cartId: String
- public var distributionLogic: DistributionLogic?
-
public enum CodingKeys: String, CodingKey {
@@ -75,11 +73,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case cartId = "cart_id"
- case distributionLogic = "distribution_logic"
-
}
- public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, distributionLogic: DistributionLogic? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, modifiedBy: String? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
+ public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, modifiedBy: String? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
self.modifiedBy = modifiedBy
@@ -109,8 +105,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.cartId = cartId
- self.distributionLogic = distributionLogic
-
}
required public init(from decoder: Decoder) throws {
@@ -228,18 +222,6 @@ public extension PlatformClient.ApplicationClient.Cart {
-
- do {
- distributionLogic = try container.decode(DistributionLogic.self, forKey: .distributionLogic)
-
- } 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 {
@@ -315,11 +297,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(cartId, forKey: .cartId)
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/ProductActionCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ProductActionCartPlatformModel.swift
index a36630bd97..c8e2a75c27 100644
--- a/Sources/code/platform/Models/Cart/ProductActionCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/ProductActionCartPlatformModel.swift
@@ -20,8 +20,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var query: ActionQuery?
- public var page: ProductActionPage?
-
public enum CodingKeys: String, CodingKey {
@@ -31,11 +29,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case query = "query"
- case page = "page"
-
}
- public init(page: ProductActionPage? = nil, query: ActionQuery? = nil, type: String? = nil, url: String? = nil) {
+ public init(query: ActionQuery? = nil, type: String? = nil, url: String? = nil) {
self.type = type
@@ -43,8 +39,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.query = query
- self.page = page
-
}
required public init(from decoder: Decoder) throws {
@@ -86,18 +80,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- page = try container.decode(ProductActionPage.self, forKey: .page)
-
- } 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 {
@@ -118,11 +100,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(query, forKey: .query)
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/ProductActionPageCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ProductActionPageCartPlatformModel.swift
deleted file mode 100644
index 42b497a911..0000000000
--- a/Sources/code/platform/Models/Cart/ProductActionPageCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ProductActionPage
- Used By: Cart
- */
-
- class ProductActionPage: Codable {
-
-
- public var type: String?
-
- public var params: ProductActionParams?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case params = "params"
-
- }
-
- public init(params: ProductActionParams? = nil, type: String? = nil) {
-
- self.type = type
-
- self.params = params
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- params = try container.decode(ProductActionParams.self, forKey: .params)
-
- } 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(params, forKey: .params)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ProductActionParamsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ProductActionParamsCartPlatformModel.swift
deleted file mode 100644
index 1c03ff1de6..0000000000
--- a/Sources/code/platform/Models/Cart/ProductActionParamsCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ProductActionParams
- Used By: Cart
- */
-
- class ProductActionParams: Codable {
-
-
- public var slug: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- }
-
- public init(slug: [String]? = nil) {
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PromotionActionCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionActionCartPlatformModel.swift
index d25b9c86c2..05a8a932a7 100644
--- a/Sources/code/platform/Models/Cart/PromotionActionCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionActionCartPlatformModel.swift
@@ -14,9 +14,9 @@ public extension PlatformClient.ApplicationClient.Cart {
class PromotionAction: Codable {
- public var actionDate: String?
+ public var actionDate: String
- public var actionType: String?
+ public var actionType: String
public enum CodingKeys: String, CodingKey {
@@ -27,7 +27,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(actionDate: String? = nil, actionType: String? = nil) {
+ public init(actionDate: String, actionType: String) {
self.actionDate = actionDate
@@ -39,29 +39,15 @@ public extension PlatformClient.ApplicationClient.Cart {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- actionDate = try container.decode(String.self, forKey: .actionDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ actionDate = try container.decode(String.self, forKey: .actionDate)
- do {
- actionType = try container.decode(String.self, forKey: .actionType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ actionType = try container.decode(String.self, forKey: .actionType)
+
}
public func encode(to encoder: Encoder) throws {
diff --git a/Sources/code/platform/Models/Cart/PromotionAddCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionAddCartPlatformModel.swift
index 5d17a8d969..5e9195bfde 100644
--- a/Sources/code/platform/Models/Cart/PromotionAddCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionAddCartPlatformModel.swift
@@ -26,13 +26,13 @@ public extension PlatformClient.ApplicationClient.Cart {
public var applyAllDiscount: Bool?
- public var displayMeta: DisplayMeta1?
+ public var displayMeta: DisplayMeta1
- public var ownership: Ownership1?
+ public var ownership: Ownership1
public var promotionType: String
- public var discountRules: [DiscountRule]?
+ public var discountRules: [DiscountRule]
public var restrictions: Restrictions1?
@@ -52,7 +52,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var applicationId: String
- public var buyRules: ItemCriteria?
+ public var buyRules: [String: ItemCriteria]
public var customJson: [String: Any]?
@@ -111,7 +111,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: ItemCriteria? = nil, calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule]? = nil, displayMeta: DisplayMeta1? = nil, mode: String, ownership: Ownership1? = nil, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
+ public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: [String: ItemCriteria], calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule], displayMeta: DisplayMeta1, mode: String, ownership: Ownership1, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
self.stackable = stackable
@@ -223,47 +223,26 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
- do {
- ownership = try container.decode(Ownership1.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ ownership = try container.decode(Ownership1.self, forKey: .ownership)
+
promotionType = try container.decode(String.self, forKey: .promotionType)
- do {
- discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
+
do {
restrictions = try container.decode(Restrictions1.self, forKey: .restrictions)
@@ -365,18 +344,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- buyRules = try container.decode(ItemCriteria.self, forKey: .buyRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ buyRules = try container.decode([String: ItemCriteria].self, forKey: .buyRules)
+
do {
customJson = try container.decode([String: Any].self, forKey: .customJson)
diff --git a/Sources/code/platform/Models/Cart/PromotionAddResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionAddResultCartPlatformModel.swift
deleted file mode 100644
index 981154af0d..0000000000
--- a/Sources/code/platform/Models/Cart/PromotionAddResultCartPlatformModel.swift
+++ /dev/null
@@ -1,563 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PromotionAddResult
- Used By: Cart
- */
-
- class PromotionAddResult: Codable {
-
-
- public var stackable: Bool?
-
- public var calculateOn: String?
-
- public var applyExclusive: String?
-
- public var promoGroup: String
-
- public var mode: String
-
- public var isProcessed: Bool?
-
- public var applyAllDiscount: Bool?
-
- public var displayMeta: DisplayMeta1?
-
- public var ownership: Ownership1?
-
- public var promotionType: String
-
- public var discountRules: [DiscountRule]?
-
- public var restrictions: Restrictions1?
-
- public var currency: String?
-
- public var code: String?
-
- public var schedule: PromotionSchedule?
-
- public var postOrderAction: PromotionAction?
-
- public var applyPriority: Int?
-
- public var author: PromotionAuthor?
-
- public var visiblility: Visibility?
-
- public var applicationId: String
-
- public var buyRules: ItemCriteria?
-
- public var customJson: [String: Any]?
-
- public var dateMeta: PromotionDateMeta?
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stackable = "stackable"
-
- case calculateOn = "calculate_on"
-
- case applyExclusive = "apply_exclusive"
-
- case promoGroup = "promo_group"
-
- case mode = "mode"
-
- case isProcessed = "is_processed"
-
- case applyAllDiscount = "apply_all_discount"
-
- case displayMeta = "display_meta"
-
- case ownership = "ownership"
-
- case promotionType = "promotion_type"
-
- case discountRules = "discount_rules"
-
- case restrictions = "restrictions"
-
- case currency = "currency"
-
- case code = "code"
-
- case schedule = "_schedule"
-
- case postOrderAction = "post_order_action"
-
- case applyPriority = "apply_priority"
-
- case author = "author"
-
- case visiblility = "visiblility"
-
- case applicationId = "application_id"
-
- case buyRules = "buy_rules"
-
- case customJson = "_custom_json"
-
- case dateMeta = "date_meta"
-
- case tags = "tags"
-
- }
-
- public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: ItemCriteria? = nil, calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule]? = nil, displayMeta: DisplayMeta1? = nil, isProcessed: Bool? = nil, mode: String, ownership: Ownership1? = nil, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
-
- self.stackable = stackable
-
- self.calculateOn = calculateOn
-
- self.applyExclusive = applyExclusive
-
- self.promoGroup = promoGroup
-
- self.mode = mode
-
- self.isProcessed = isProcessed
-
- self.applyAllDiscount = applyAllDiscount
-
- self.displayMeta = displayMeta
-
- self.ownership = ownership
-
- self.promotionType = promotionType
-
- self.discountRules = discountRules
-
- self.restrictions = restrictions
-
- self.currency = currency
-
- self.code = code
-
- self.schedule = schedule
-
- self.postOrderAction = postOrderAction
-
- self.applyPriority = applyPriority
-
- self.author = author
-
- self.visiblility = visiblility
-
- self.applicationId = applicationId
-
- self.buyRules = buyRules
-
- self.customJson = customJson
-
- self.dateMeta = dateMeta
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- stackable = try container.decode(Bool.self, forKey: .stackable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- calculateOn = try container.decode(String.self, forKey: .calculateOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applyExclusive = try container.decode(String.self, forKey: .applyExclusive)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- promoGroup = try container.decode(String.self, forKey: .promoGroup)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- do {
- isProcessed = try container.decode(Bool.self, forKey: .isProcessed)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applyAllDiscount = try container.decode(Bool.self, forKey: .applyAllDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- ownership = try container.decode(Ownership1.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- promotionType = try container.decode(String.self, forKey: .promotionType)
-
-
-
-
- do {
- discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictions = try container.decode(Restrictions1.self, forKey: .restrictions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- schedule = try container.decode(PromotionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- postOrderAction = try container.decode(PromotionAction.self, forKey: .postOrderAction)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applyPriority = try container.decode(Int.self, forKey: .applyPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- author = try container.decode(PromotionAuthor.self, forKey: .author)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- visiblility = try container.decode(Visibility.self, forKey: .visiblility)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- do {
- buyRules = try container.decode(ItemCriteria.self, forKey: .buyRules)
-
- } 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 {
- dateMeta = try container.decode(PromotionDateMeta.self, forKey: .dateMeta)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(stackable, forKey: .stackable)
-
-
-
-
- try? container.encodeIfPresent(calculateOn, forKey: .calculateOn)
-
-
-
-
- try? container.encodeIfPresent(applyExclusive, forKey: .applyExclusive)
-
-
-
-
- try? container.encodeIfPresent(promoGroup, forKey: .promoGroup)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(isProcessed, forKey: .isProcessed)
-
-
-
-
- try? container.encodeIfPresent(applyAllDiscount, forKey: .applyAllDiscount)
-
-
-
-
- try? container.encodeIfPresent(displayMeta, forKey: .displayMeta)
-
-
-
-
- try? container.encodeIfPresent(ownership, forKey: .ownership)
-
-
-
-
- try? container.encodeIfPresent(promotionType, forKey: .promotionType)
-
-
-
-
- try? container.encodeIfPresent(discountRules, forKey: .discountRules)
-
-
-
-
- try? container.encodeIfPresent(restrictions, forKey: .restrictions)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(postOrderAction, forKey: .postOrderAction)
-
-
-
-
- try? container.encodeIfPresent(applyPriority, forKey: .applyPriority)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(visiblility, forKey: .visiblility)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(buyRules, forKey: .buyRules)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(dateMeta, forKey: .dateMeta)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PromotionAuthorCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionAuthorCartPlatformModel.swift
index 287c634ddc..542f8bfd46 100644
--- a/Sources/code/platform/Models/Cart/PromotionAuthorCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionAuthorCartPlatformModel.swift
@@ -18,12 +18,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var modifiedBy: String?
- public var approvedBy: String?
-
- public var rejectedBy: String?
-
- public var reviewedBy: String?
-
public enum CodingKeys: String, CodingKey {
@@ -31,26 +25,14 @@ public extension PlatformClient.ApplicationClient.Cart {
case modifiedBy = "modified_by"
- case approvedBy = "approved_by"
-
- case rejectedBy = "rejected_by"
-
- case reviewedBy = "reviewed_by"
-
}
- public init(approvedBy: String? = nil, createdBy: String? = nil, modifiedBy: String? = nil, rejectedBy: String? = nil, reviewedBy: String? = nil) {
+ public init(createdBy: String? = nil, modifiedBy: String? = nil) {
self.createdBy = createdBy
self.modifiedBy = modifiedBy
- self.approvedBy = approvedBy
-
- self.rejectedBy = rejectedBy
-
- self.reviewedBy = reviewedBy
-
}
required public init(from decoder: Decoder) throws {
@@ -80,42 +62,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- approvedBy = try container.decode(String.self, forKey: .approvedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rejectedBy = try container.decode(String.self, forKey: .rejectedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reviewedBy = try container.decode(String.self, forKey: .reviewedBy)
-
- } 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 {
@@ -131,21 +77,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- try? container.encodeIfPresent(approvedBy, forKey: .approvedBy)
-
-
-
-
- try? container.encodeIfPresent(rejectedBy, forKey: .rejectedBy)
-
-
-
-
- try? container.encodeIfPresent(reviewedBy, forKey: .reviewedBy)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/PromotionDateMetaCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionDateMetaCartPlatformModel.swift
index 4a550556e3..00f7b16f4c 100644
--- a/Sources/code/platform/Models/Cart/PromotionDateMetaCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionDateMetaCartPlatformModel.swift
@@ -18,12 +18,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var createdOn: String?
- public var approvedOn: String?
-
- public var rejectedOn: String?
-
- public var reviewedOn: String?
-
public enum CodingKeys: String, CodingKey {
@@ -31,26 +25,14 @@ public extension PlatformClient.ApplicationClient.Cart {
case createdOn = "created_on"
- case approvedOn = "approved_on"
-
- case rejectedOn = "rejected_on"
-
- case reviewedOn = "reviewed_on"
-
}
- public init(approvedOn: String? = nil, createdOn: String? = nil, modifiedOn: String? = nil, rejectedOn: String? = nil, reviewedOn: String? = nil) {
+ public init(createdOn: String? = nil, modifiedOn: String? = nil) {
self.modifiedOn = modifiedOn
self.createdOn = createdOn
- self.approvedOn = approvedOn
-
- self.rejectedOn = rejectedOn
-
- self.reviewedOn = reviewedOn
-
}
required public init(from decoder: Decoder) throws {
@@ -80,42 +62,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- approvedOn = try container.decode(String.self, forKey: .approvedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rejectedOn = try container.decode(String.self, forKey: .rejectedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reviewedOn = try container.decode(String.self, forKey: .reviewedOn)
-
- } 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 {
@@ -131,21 +77,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
- try? container.encodeIfPresent(approvedOn, forKey: .approvedOn)
-
-
-
-
- try? container.encodeIfPresent(rejectedOn, forKey: .rejectedOn)
-
-
-
-
- try? container.encodeIfPresent(reviewedOn, forKey: .reviewedOn)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/PromotionListItemCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionListItemCartPlatformModel.swift
index 23ac068383..ef951a91e0 100644
--- a/Sources/code/platform/Models/Cart/PromotionListItemCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionListItemCartPlatformModel.swift
@@ -38,8 +38,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var currency: String?
- public var isProcessed: Bool?
-
public var code: String?
public var schedule: PromotionSchedule?
@@ -54,7 +52,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var applicationId: String
- public var buyRules: ItemCriteria
+ public var buyRules: [String: ItemCriteria]
public var customJson: [String: Any]?
@@ -91,8 +89,6 @@ public extension PlatformClient.ApplicationClient.Cart {
case currency = "currency"
- case isProcessed = "is_processed"
-
case code = "code"
case schedule = "_schedule"
@@ -119,7 +115,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: ItemCriteria, calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule], displayMeta: DisplayMeta1, isProcessed: Bool? = nil, mode: String, ownership: Ownership1, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, id: String? = nil, schedule: PromotionSchedule? = nil) {
+ public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: [String: ItemCriteria], calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule], displayMeta: DisplayMeta1, mode: String, ownership: Ownership1, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, id: String? = nil, schedule: PromotionSchedule? = nil) {
self.stackable = stackable
@@ -145,8 +141,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.currency = currency
- self.isProcessed = isProcessed
-
self.code = code
self.schedule = schedule
@@ -279,18 +273,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- isProcessed = try container.decode(Bool.self, forKey: .isProcessed)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
code = try container.decode(String.self, forKey: .code)
@@ -368,7 +350,7 @@ public extension PlatformClient.ApplicationClient.Cart {
- buyRules = try container.decode(ItemCriteria.self, forKey: .buyRules)
+ buyRules = try container.decode([String: ItemCriteria].self, forKey: .buyRules)
@@ -487,11 +469,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(isProcessed, forKey: .isProcessed)
-
-
-
-
try? container.encodeIfPresent(code, forKey: .code)
diff --git a/Sources/code/platform/Models/Cart/PromotionOfferCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionOfferCartPlatformModel.swift
index 588587ad17..7e0fabb69c 100644
--- a/Sources/code/platform/Models/Cart/PromotionOfferCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionOfferCartPlatformModel.swift
@@ -34,8 +34,6 @@ public extension PlatformClient.ApplicationClient.Cart {
public var description: String?
- public var isBankOffer: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -59,11 +57,9 @@ public extension PlatformClient.ApplicationClient.Cart {
case description = "description"
- case isBankOffer = "is_bank_offer"
-
}
- public init(buyRules: [String: Any]? = nil, description: String? = nil, discountRules: [[String: Any]]? = nil, freeGiftItems: [FreeGiftItems]? = nil, id: String? = nil, isBankOffer: Bool? = nil, offerText: String? = nil, promotionGroup: String? = nil, promotionName: String? = nil, promotionType: String? = nil, validTill: String? = nil) {
+ public init(buyRules: [String: Any]? = nil, description: String? = nil, discountRules: [[String: Any]]? = nil, freeGiftItems: [FreeGiftItems]? = nil, id: String? = nil, offerText: String? = nil, promotionGroup: String? = nil, promotionName: String? = nil, promotionType: String? = nil, validTill: String? = nil) {
self.id = id
@@ -85,8 +81,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.description = description
- self.isBankOffer = isBankOffer
-
}
required public init(from decoder: Decoder) throws {
@@ -212,18 +206,6 @@ public extension PlatformClient.ApplicationClient.Cart {
}
-
- do {
- isBankOffer = try container.decode(Bool.self, forKey: .isBankOffer)
-
- } 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 {
@@ -279,11 +261,6 @@ public extension PlatformClient.ApplicationClient.Cart {
try? container.encodeIfPresent(description, forKey: .description)
-
-
- try? container.encodeIfPresent(isBankOffer, forKey: .isBankOffer)
-
-
}
}
diff --git a/Sources/code/platform/Models/Cart/PromotionOffersDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionOffersDetailsCartPlatformModel.swift
deleted file mode 100644
index cd3ad4e68f..0000000000
--- a/Sources/code/platform/Models/Cart/PromotionOffersDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PromotionOffersDetails
- Used By: Cart
- */
-
- class PromotionOffersDetails: Codable {
-
-
- public var availablePromotions: [PromotionOffer]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case availablePromotions = "available_promotions"
-
- }
-
- public init(availablePromotions: [PromotionOffer]? = nil) {
-
- self.availablePromotions = availablePromotions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- availablePromotions = try container.decode([PromotionOffer].self, forKey: .availablePromotions)
-
- } 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(availablePromotions, forKey: .availablePromotions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PromotionOffersResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionOffersResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..ac166e786f
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PromotionOffersResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PromotionOffersResponse
+ Used By: Cart
+ */
+
+ class PromotionOffersResponse: Codable {
+
+
+ public var availablePromotions: [PromotionOffer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case availablePromotions = "available_promotions"
+
+ }
+
+ public init(availablePromotions: [PromotionOffer]? = nil) {
+
+ self.availablePromotions = availablePromotions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ availablePromotions = try container.decode([PromotionOffer].self, forKey: .availablePromotions)
+
+ } 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(availablePromotions, forKey: .availablePromotions)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PromotionPaymentModesCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionPaymentModesCartPlatformModel.swift
index 582bbac824..38949c8767 100644
--- a/Sources/code/platform/Models/Cart/PromotionPaymentModesCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionPaymentModesCartPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.ApplicationClient.Cart {
class PromotionPaymentModes: Codable {
- public var type: String?
+ public var type: String
public var uses: PaymentAllowValue1?
@@ -31,7 +31,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(codes: [String]? = nil, type: String? = nil, uses: PaymentAllowValue1? = nil) {
+ public init(codes: [String]? = nil, type: String, uses: PaymentAllowValue1? = nil) {
self.type = type
@@ -45,18 +45,11 @@ public extension PlatformClient.ApplicationClient.Cart {
let container = try decoder.container(keyedBy: CodingKeys.self)
- 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 {
-
- }
+ type = try container.decode(String.self, forKey: .type)
+
do {
uses = try container.decode(PaymentAllowValue1.self, forKey: .uses)
diff --git a/Sources/code/platform/Models/Cart/PromotionPaymentOffersDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionPaymentOffersDetailsCartPlatformModel.swift
deleted file mode 100644
index ae6edfc6ab..0000000000
--- a/Sources/code/platform/Models/Cart/PromotionPaymentOffersDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PromotionPaymentOffersDetails
- Used By: Cart
- */
-
- class PromotionPaymentOffersDetails: Codable {
-
-
- public var success: Bool?
-
- public var promotions: [PromotionPaymentOffer]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case promotions = "promotions"
-
- }
-
- public init(promotions: [PromotionPaymentOffer]? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.promotions = promotions
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- promotions = try container.decode([PromotionPaymentOffer].self, forKey: .promotions)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(promotions, forKey: .promotions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PromotionPaymentOffersResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionPaymentOffersResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..e52fdde0dc
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PromotionPaymentOffersResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PromotionPaymentOffersResponse
+ Used By: Cart
+ */
+
+ class PromotionPaymentOffersResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var promotions: [PromotionPaymentOffer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case promotions = "promotions"
+
+ }
+
+ public init(promotions: [PromotionPaymentOffer]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.promotions = promotions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ promotions = try container.decode([PromotionPaymentOffer].self, forKey: .promotions)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(promotions, forKey: .promotions)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PromotionScheduleCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionScheduleCartPlatformModel.swift
index 55d51b6014..5471c65470 100644
--- a/Sources/code/platform/Models/Cart/PromotionScheduleCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionScheduleCartPlatformModel.swift
@@ -14,13 +14,11 @@ public extension PlatformClient.ApplicationClient.Cart {
class PromotionSchedule: Codable {
- public var end: String?
+ public var end: String
- public var start: String?
+ public var start: String
- public var status: String?
-
- public var published: Bool?
+ public var published: Bool
public var nextSchedule: [[String: Any]]?
@@ -35,8 +33,6 @@ public extension PlatformClient.ApplicationClient.Cart {
case start = "start"
- case status = "status"
-
case published = "published"
case nextSchedule = "next_schedule"
@@ -47,14 +43,12 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(cron: String? = nil, duration: Int? = nil, end: String? = nil, nextSchedule: [[String: Any]]? = nil, published: Bool? = nil, start: String? = nil, status: String? = nil) {
+ public init(cron: String? = nil, duration: Int? = nil, end: String, nextSchedule: [[String: Any]]? = nil, published: Bool, start: String) {
self.end = end
self.start = start
- self.status = status
-
self.published = published
self.nextSchedule = nextSchedule
@@ -69,54 +63,21 @@ public extension PlatformClient.ApplicationClient.Cart {
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 {
-
- }
+ end = try container.decode(String.self, forKey: .end)
- 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 {
-
- }
-
-
- do {
- 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)
- } catch {
-
- }
+ start = try container.decode(String.self, forKey: .start)
- 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 {
-
- }
+
+ published = try container.decode(Bool.self, forKey: .published)
+
do {
nextSchedule = try container.decode([[String: Any]].self, forKey: .nextSchedule)
@@ -169,11 +130,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
try? container.encodeIfPresent(published, forKey: .published)
diff --git a/Sources/code/platform/Models/Cart/PromotionUpdateCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionUpdateCartPlatformModel.swift
index 7564459b27..2b42b3e56d 100644
--- a/Sources/code/platform/Models/Cart/PromotionUpdateCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/PromotionUpdateCartPlatformModel.swift
@@ -20,21 +20,19 @@ public extension PlatformClient.ApplicationClient.Cart {
public var applyExclusive: String?
- public var reason: String?
-
public var promoGroup: String
public var mode: String
public var applyAllDiscount: Bool?
- public var displayMeta: DisplayMeta1?
+ public var displayMeta: DisplayMeta1
- public var ownership: Ownership1?
+ public var ownership: Ownership1
public var promotionType: String
- public var discountRules: [DiscountRule]?
+ public var discountRules: [DiscountRule]
public var restrictions: Restrictions1?
@@ -54,7 +52,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var applicationId: String
- public var buyRules: ItemCriteria?
+ public var buyRules: [String: ItemCriteria]
public var customJson: [String: Any]?
@@ -71,8 +69,6 @@ public extension PlatformClient.ApplicationClient.Cart {
case applyExclusive = "apply_exclusive"
- case reason = "reason"
-
case promoGroup = "promo_group"
case mode = "mode"
@@ -115,7 +111,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: ItemCriteria? = nil, calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule]? = nil, displayMeta: DisplayMeta1? = nil, mode: String, ownership: Ownership1? = nil, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, reason: String? = nil, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
+ public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: [String: ItemCriteria], calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule], displayMeta: DisplayMeta1, mode: String, ownership: Ownership1, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
self.stackable = stackable
@@ -123,8 +119,6 @@ public extension PlatformClient.ApplicationClient.Cart {
self.applyExclusive = applyExclusive
- self.reason = reason
-
self.promoGroup = promoGroup
self.mode = mode
@@ -207,18 +201,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
promoGroup = try container.decode(String.self, forKey: .promoGroup)
@@ -241,47 +223,26 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
- do {
- ownership = try container.decode(Ownership1.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ ownership = try container.decode(Ownership1.self, forKey: .ownership)
+
promotionType = try container.decode(String.self, forKey: .promotionType)
- do {
- discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
+
do {
restrictions = try container.decode(Restrictions1.self, forKey: .restrictions)
@@ -383,18 +344,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- buyRules = try container.decode(ItemCriteria.self, forKey: .buyRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ buyRules = try container.decode([String: ItemCriteria].self, forKey: .buyRules)
+
do {
customJson = try container.decode([String: Any].self, forKey: .customJson)
@@ -452,11 +406,6 @@ public extension PlatformClient.ApplicationClient.Cart {
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
-
try? container.encodeIfPresent(promoGroup, forKey: .promoGroup)
diff --git a/Sources/code/platform/Models/Cart/PromotionUpdateResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionUpdateResultCartPlatformModel.swift
deleted file mode 100644
index fa36916102..0000000000
--- a/Sources/code/platform/Models/Cart/PromotionUpdateResultCartPlatformModel.swift
+++ /dev/null
@@ -1,586 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PromotionUpdateResult
- Used By: Cart
- */
-
- class PromotionUpdateResult: Codable {
-
-
- public var stackable: Bool?
-
- public var calculateOn: String?
-
- public var applyExclusive: String?
-
- public var reason: String?
-
- public var isProcessed: Bool?
-
- public var promoGroup: String
-
- public var mode: String
-
- public var applyAllDiscount: Bool?
-
- public var displayMeta: DisplayMeta1?
-
- public var ownership: Ownership1?
-
- public var promotionType: String
-
- public var discountRules: [DiscountRule]?
-
- public var restrictions: Restrictions1?
-
- public var currency: String?
-
- public var code: String?
-
- public var schedule: PromotionSchedule?
-
- public var postOrderAction: PromotionAction?
-
- public var applyPriority: Int?
-
- public var author: PromotionAuthor?
-
- public var visiblility: Visibility?
-
- public var applicationId: String
-
- public var buyRules: ItemCriteria?
-
- public var customJson: [String: Any]?
-
- public var dateMeta: PromotionDateMeta?
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stackable = "stackable"
-
- case calculateOn = "calculate_on"
-
- case applyExclusive = "apply_exclusive"
-
- case reason = "reason"
-
- case isProcessed = "is_processed"
-
- case promoGroup = "promo_group"
-
- case mode = "mode"
-
- case applyAllDiscount = "apply_all_discount"
-
- case displayMeta = "display_meta"
-
- case ownership = "ownership"
-
- case promotionType = "promotion_type"
-
- case discountRules = "discount_rules"
-
- case restrictions = "restrictions"
-
- case currency = "currency"
-
- case code = "code"
-
- case schedule = "_schedule"
-
- case postOrderAction = "post_order_action"
-
- case applyPriority = "apply_priority"
-
- case author = "author"
-
- case visiblility = "visiblility"
-
- case applicationId = "application_id"
-
- case buyRules = "buy_rules"
-
- case customJson = "_custom_json"
-
- case dateMeta = "date_meta"
-
- case tags = "tags"
-
- }
-
- public init(applicationId: String, applyAllDiscount: Bool? = nil, applyExclusive: String? = nil, applyPriority: Int? = nil, author: PromotionAuthor? = nil, buyRules: ItemCriteria? = nil, calculateOn: String? = nil, code: String? = nil, currency: String? = nil, dateMeta: PromotionDateMeta? = nil, discountRules: [DiscountRule]? = nil, displayMeta: DisplayMeta1? = nil, isProcessed: Bool? = nil, mode: String, ownership: Ownership1? = nil, postOrderAction: PromotionAction? = nil, promotionType: String, promoGroup: String, reason: String? = nil, restrictions: Restrictions1? = nil, stackable: Bool? = nil, tags: [String]? = nil, visiblility: Visibility? = nil, customJson: [String: Any]? = nil, schedule: PromotionSchedule? = nil) {
-
- self.stackable = stackable
-
- self.calculateOn = calculateOn
-
- self.applyExclusive = applyExclusive
-
- self.reason = reason
-
- self.isProcessed = isProcessed
-
- self.promoGroup = promoGroup
-
- self.mode = mode
-
- self.applyAllDiscount = applyAllDiscount
-
- self.displayMeta = displayMeta
-
- self.ownership = ownership
-
- self.promotionType = promotionType
-
- self.discountRules = discountRules
-
- self.restrictions = restrictions
-
- self.currency = currency
-
- self.code = code
-
- self.schedule = schedule
-
- self.postOrderAction = postOrderAction
-
- self.applyPriority = applyPriority
-
- self.author = author
-
- self.visiblility = visiblility
-
- self.applicationId = applicationId
-
- self.buyRules = buyRules
-
- self.customJson = customJson
-
- self.dateMeta = dateMeta
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- stackable = try container.decode(Bool.self, forKey: .stackable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- calculateOn = try container.decode(String.self, forKey: .calculateOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applyExclusive = try container.decode(String.self, forKey: .applyExclusive)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isProcessed = try container.decode(Bool.self, forKey: .isProcessed)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- promoGroup = try container.decode(String.self, forKey: .promoGroup)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- do {
- applyAllDiscount = try container.decode(Bool.self, forKey: .applyAllDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- displayMeta = try container.decode(DisplayMeta1.self, forKey: .displayMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- ownership = try container.decode(Ownership1.self, forKey: .ownership)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- promotionType = try container.decode(String.self, forKey: .promotionType)
-
-
-
-
- do {
- discountRules = try container.decode([DiscountRule].self, forKey: .discountRules)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictions = try container.decode(Restrictions1.self, forKey: .restrictions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- schedule = try container.decode(PromotionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- postOrderAction = try container.decode(PromotionAction.self, forKey: .postOrderAction)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applyPriority = try container.decode(Int.self, forKey: .applyPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- author = try container.decode(PromotionAuthor.self, forKey: .author)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- visiblility = try container.decode(Visibility.self, forKey: .visiblility)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- do {
- buyRules = try container.decode(ItemCriteria.self, forKey: .buyRules)
-
- } 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 {
- dateMeta = try container.decode(PromotionDateMeta.self, forKey: .dateMeta)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(stackable, forKey: .stackable)
-
-
-
-
- try? container.encodeIfPresent(calculateOn, forKey: .calculateOn)
-
-
-
-
- try? container.encodeIfPresent(applyExclusive, forKey: .applyExclusive)
-
-
-
-
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
-
- try? container.encodeIfPresent(isProcessed, forKey: .isProcessed)
-
-
-
-
- try? container.encodeIfPresent(promoGroup, forKey: .promoGroup)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(applyAllDiscount, forKey: .applyAllDiscount)
-
-
-
-
- try? container.encodeIfPresent(displayMeta, forKey: .displayMeta)
-
-
-
-
- try? container.encodeIfPresent(ownership, forKey: .ownership)
-
-
-
-
- try? container.encodeIfPresent(promotionType, forKey: .promotionType)
-
-
-
-
- try? container.encodeIfPresent(discountRules, forKey: .discountRules)
-
-
-
-
- try? container.encodeIfPresent(restrictions, forKey: .restrictions)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(postOrderAction, forKey: .postOrderAction)
-
-
-
-
- try? container.encodeIfPresent(applyPriority, forKey: .applyPriority)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(visiblility, forKey: .visiblility)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(buyRules, forKey: .buyRules)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(dateMeta, forKey: .dateMeta)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/PromotionsResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionsResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..c4444ff64a
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/PromotionsResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: PromotionsResponse
+ Used By: Cart
+ */
+
+ class PromotionsResponse: Codable {
+
+
+ public var items: [PromotionListItem]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PromotionListItem]? = nil, page: Page? = nil) {
+
+ 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([PromotionListItem].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/PromotionsResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/PromotionsResultCartPlatformModel.swift
deleted file mode 100644
index 0c0f5dc814..0000000000
--- a/Sources/code/platform/Models/Cart/PromotionsResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: PromotionsResult
- Used By: Cart
- */
-
- class PromotionsResult: Codable {
-
-
- public var items: [PromotionListItem]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PromotionListItem]? = nil, page: Page? = nil) {
-
- 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([PromotionListItem].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/Restrictions1CartPlatformModel.swift b/Sources/code/platform/Models/Cart/Restrictions1CartPlatformModel.swift
index cc425dadbb..f2b245b4ab 100644
--- a/Sources/code/platform/Models/Cart/Restrictions1CartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/Restrictions1CartPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.ApplicationClient.Cart {
class Restrictions1: Codable {
- public var payments: PaymentModes?
+ public var payments: [String: PaymentModes]?
public var userRegistered: UserRegistered?
@@ -30,7 +30,7 @@ public extension PlatformClient.ApplicationClient.Cart {
public var userId: [String]?
- public var uses: UsesRestriction1?
+ public var uses: UsesRestriction1
public var orderingStores: [Int]?
@@ -59,7 +59,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(anonymousUsers: Bool? = nil, orderingStores: [Int]? = nil, orderQuantity: Int? = nil, payments: PaymentModes? = nil, platforms: [String]? = nil, postOrder: PostOrder1? = nil, userGroups: [Int]? = nil, userId: [String]? = nil, userRegistered: UserRegistered? = nil, uses: UsesRestriction1? = nil) {
+ public init(anonymousUsers: Bool? = nil, orderingStores: [Int]? = nil, orderQuantity: Int? = nil, payments: [String: PaymentModes]? = nil, platforms: [String]? = nil, postOrder: PostOrder1? = nil, userGroups: [Int]? = nil, userId: [String]? = nil, userRegistered: UserRegistered? = nil, uses: UsesRestriction1) {
self.payments = payments
@@ -88,7 +88,7 @@ public extension PlatformClient.ApplicationClient.Cart {
do {
- payments = try container.decode(PaymentModes.self, forKey: .payments)
+ payments = try container.decode([String: PaymentModes].self, forKey: .payments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -183,18 +183,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- uses = try container.decode(UsesRestriction1.self, forKey: .uses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ uses = try container.decode(UsesRestriction1.self, forKey: .uses)
+
do {
orderingStores = try container.decode([Int].self, forKey: .orderingStores)
diff --git a/Sources/code/platform/Models/Cart/RestrictionsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/RestrictionsCartPlatformModel.swift
index 12b9a275b8..4395016819 100644
--- a/Sources/code/platform/Models/Cart/RestrictionsCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/RestrictionsCartPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.ApplicationClient.Cart {
class Restrictions: Codable {
- public var payments: PaymentModes?
+ public var payments: [String: PaymentModes]?
public var userType: String?
@@ -59,7 +59,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(bulkBundle: BulkBundleRestriction? = nil, couponAllowed: Bool? = nil, orderingStores: [Int]? = nil, payments: PaymentModes? = nil, platforms: [String]? = nil, postOrder: PostOrder? = nil, priceRange: PriceRange? = nil, userGroups: [Int]? = nil, userType: String? = nil, uses: UsesRestriction? = nil) {
+ public init(bulkBundle: BulkBundleRestriction? = nil, couponAllowed: Bool? = nil, orderingStores: [Int]? = nil, payments: [String: PaymentModes]? = nil, platforms: [String]? = nil, postOrder: PostOrder? = nil, priceRange: PriceRange? = nil, userGroups: [Int]? = nil, userType: String? = nil, uses: UsesRestriction? = nil) {
self.payments = payments
@@ -88,7 +88,7 @@ public extension PlatformClient.ApplicationClient.Cart {
do {
- payments = try container.decode(PaymentModes.self, forKey: .payments)
+ payments = try container.decode([String: PaymentModes].self, forKey: .payments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Cart/RuleDefinitionCartPlatformModel.swift b/Sources/code/platform/Models/Cart/RuleDefinitionCartPlatformModel.swift
index e724f2796d..6f58d8e250 100644
--- a/Sources/code/platform/Models/Cart/RuleDefinitionCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/RuleDefinitionCartPlatformModel.swift
@@ -18,15 +18,15 @@ public extension PlatformClient.ApplicationClient.Cart {
public var autoApply: Bool?
- public var type: String?
+ public var type: String
public var isExact: Bool?
- public var applicableOn: String?
+ public var applicableOn: String
- public var calculateOn: String?
+ public var calculateOn: String
- public var valueType: String?
+ public var valueType: String
public var scope: [String]?
@@ -51,7 +51,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(applicableOn: String? = nil, autoApply: Bool? = nil, calculateOn: String? = nil, currencyCode: String? = nil, isExact: Bool? = nil, scope: [String]? = nil, type: String? = nil, valueType: String? = nil) {
+ public init(applicableOn: String, autoApply: Bool? = nil, calculateOn: String, currencyCode: String? = nil, isExact: Bool? = nil, scope: [String]? = nil, type: String, valueType: String) {
self.currencyCode = currencyCode
@@ -99,18 +99,11 @@ public extension PlatformClient.ApplicationClient.Cart {
- 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 {
-
- }
+ type = try container.decode(String.self, forKey: .type)
+
do {
isExact = try container.decode(Bool.self, forKey: .isExact)
@@ -123,42 +116,21 @@ public extension PlatformClient.ApplicationClient.Cart {
- do {
- applicableOn = try container.decode(String.self, forKey: .applicableOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ applicableOn = try container.decode(String.self, forKey: .applicableOn)
- do {
- calculateOn = try container.decode(String.self, forKey: .calculateOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ calculateOn = try container.decode(String.self, forKey: .calculateOn)
- do {
- valueType = try container.decode(String.self, forKey: .valueType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ valueType = try container.decode(String.self, forKey: .valueType)
+
do {
scope = try container.decode([String].self, forKey: .scope)
diff --git a/Sources/code/platform/Models/Cart/SaveAddressDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/SaveAddressDetailsCartPlatformModel.swift
deleted file mode 100644
index ee91e3be7e..0000000000
--- a/Sources/code/platform/Models/Cart/SaveAddressDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: SaveAddressDetails
- Used By: Cart
- */
-
- class SaveAddressDetails: Codable {
-
-
- public var id: String?
-
- public var success: Bool?
-
- public var isDefaultAddress: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case success = "success"
-
- case isDefaultAddress = "is_default_address"
-
- }
-
- public init(id: String? = nil, isDefaultAddress: Bool? = nil, success: Bool? = nil) {
-
- self.id = id
-
- self.success = success
-
- self.isDefaultAddress = isDefaultAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/SaveAddressResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/SaveAddressResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..91c173c37e
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/SaveAddressResponseCartPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: SaveAddressResponse
+ Used By: Cart
+ */
+
+ class SaveAddressResponse: Codable {
+
+
+ public var id: String?
+
+ public var success: Bool?
+
+ public var isDefaultAddress: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case success = "success"
+
+ case isDefaultAddress = "is_default_address"
+
+ }
+
+ public init(id: String? = nil, isDefaultAddress: Bool? = nil, success: Bool? = nil) {
+
+ self.id = id
+
+ self.success = success
+
+ self.isDefaultAddress = isDefaultAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/SharedCartResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/SharedCartResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..79c6af9399
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/SharedCartResponseCartPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: SharedCartResponse
+ Used By: Cart
+ */
+
+ class SharedCartResponse: Codable {
+
+
+ public var cart: SharedCart?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cart = "cart"
+
+ case error = "error"
+
+ }
+
+ public init(cart: SharedCart? = nil, error: String? = nil) {
+
+ self.cart = cart
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cart = try container.decode(SharedCart.self, forKey: .cart)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(cart, forKey: .cart)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/SharedCartResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/SharedCartResultCartPlatformModel.swift
deleted file mode 100644
index 5ef679750d..0000000000
--- a/Sources/code/platform/Models/Cart/SharedCartResultCartPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: SharedCartResult
- Used By: Cart
- */
-
- class SharedCartResult: Codable {
-
-
- public var cart: SharedCart?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cart = "cart"
-
- case error = "error"
-
- }
-
- public init(cart: SharedCart? = nil, error: String? = nil) {
-
- self.cart = cart
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cart = try container.decode(SharedCart.self, forKey: .cart)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/StoreDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/StoreDetailsCartPlatformModel.swift
deleted file mode 100644
index 040457c64c..0000000000
--- a/Sources/code/platform/Models/Cart/StoreDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: StoreDetails
- Used By: Cart
- */
-
- class StoreDetails: Codable {
-
-
- public var items: [PickupStoreDetail]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [PickupStoreDetail]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([PickupStoreDetail].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/StoreDetailsResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/StoreDetailsResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..80d34bc6ff
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/StoreDetailsResponseCartPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: StoreDetailsResponse
+ Used By: Cart
+ */
+
+ class StoreDetailsResponse: Codable {
+
+
+ public var items: [PickupStoreDetail]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [PickupStoreDetail]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([PickupStoreDetail].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UpdateAddressDetailsCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateAddressDetailsCartPlatformModel.swift
deleted file mode 100644
index 55f1f81b18..0000000000
--- a/Sources/code/platform/Models/Cart/UpdateAddressDetailsCartPlatformModel.swift
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: UpdateAddressDetails
- Used By: Cart
- */
-
- class UpdateAddressDetails: Codable {
-
-
- public var id: String?
-
- public var isDefaultAddress: Bool?
-
- public var success: Bool?
-
- public var isUpdated: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case isDefaultAddress = "is_default_address"
-
- case success = "success"
-
- case isUpdated = "is_updated"
-
- }
-
- public init(id: String? = nil, isDefaultAddress: Bool? = nil, isUpdated: Bool? = nil, success: Bool? = nil) {
-
- self.id = id
-
- self.isDefaultAddress = isDefaultAddress
-
- self.success = success
-
- self.isUpdated = isUpdated
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
-
- } 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 {
-
- }
-
-
-
- do {
- isUpdated = try container.decode(Bool.self, forKey: .isUpdated)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(isUpdated, forKey: .isUpdated)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/UpdateAddressResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateAddressResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..d6bfad0e3d
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UpdateAddressResponseCartPlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UpdateAddressResponse
+ Used By: Cart
+ */
+
+ class UpdateAddressResponse: Codable {
+
+
+ public var id: String?
+
+ public var isDefaultAddress: Bool?
+
+ public var success: Bool?
+
+ public var isUpdated: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case isDefaultAddress = "is_default_address"
+
+ case success = "success"
+
+ case isUpdated = "is_updated"
+
+ }
+
+ public init(id: String? = nil, isDefaultAddress: Bool? = nil, isUpdated: Bool? = nil, success: Bool? = nil) {
+
+ self.id = id
+
+ self.isDefaultAddress = isDefaultAddress
+
+ self.success = success
+
+ self.isUpdated = isUpdated
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ isDefaultAddress = try container.decode(Bool.self, forKey: .isDefaultAddress)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ isUpdated = try container.decode(Bool.self, forKey: .isUpdated)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(isDefaultAddress, forKey: .isDefaultAddress)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(isUpdated, forKey: .isUpdated)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UpdateCartCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartCreationCartPlatformModel.swift
deleted file mode 100644
index 0979aebb41..0000000000
--- a/Sources/code/platform/Models/Cart/UpdateCartCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: UpdateCartCreation
- Used By: Cart
- */
-
- class UpdateCartCreation: Codable {
-
-
- public var items: [UpdateProductCart]?
-
- public var freeGiftItems: [FreeGiftItemCreation]?
-
- public var operation: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case freeGiftItems = "free_gift_items"
-
- case operation = "operation"
-
- }
-
- public init(freeGiftItems: [FreeGiftItemCreation]? = nil, items: [UpdateProductCart]? = nil, operation: String) {
-
- self.items = items
-
- self.freeGiftItems = freeGiftItems
-
- self.operation = operation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([UpdateProductCart].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- freeGiftItems = try container.decode([FreeGiftItemCreation].self, forKey: .freeGiftItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(freeGiftItems, forKey: .freeGiftItems)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/UpdateCartDetailResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartDetailResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..293c16911b
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UpdateCartDetailResponseCartPlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UpdateCartDetailResponse
+ Used By: Cart
+ */
+
+ class UpdateCartDetailResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var cart: CartDetailResponse?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case cart = "cart"
+
+ case message = "message"
+
+ }
+
+ public init(cart: CartDetailResponse? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.cart = cart
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ cart = try container.decode(CartDetailResponse.self, forKey: .cart)
+
+ } 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)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(cart, forKey: .cart)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UpdateCartDetailResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartDetailResultCartPlatformModel.swift
deleted file mode 100644
index 7cb2b1bd48..0000000000
--- a/Sources/code/platform/Models/Cart/UpdateCartDetailResultCartPlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: UpdateCartDetailResult
- Used By: Cart
- */
-
- class UpdateCartDetailResult: Codable {
-
-
- public var success: Bool?
-
- public var cart: CartDetailResult?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case cart = "cart"
-
- case message = "message"
-
- }
-
- public init(cart: CartDetailResult? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.cart = cart
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- cart = try container.decode(CartDetailResult.self, forKey: .cart)
-
- } 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)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(cart, forKey: .cart)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/UpdateCartPaymentRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartPaymentRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..4751c20a53
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UpdateCartPaymentRequestCartPlatformModel.swift
@@ -0,0 +1,177 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UpdateCartPaymentRequest
+ Used By: Cart
+ */
+
+ class UpdateCartPaymentRequest: Codable {
+
+
+ public var addressId: String?
+
+ public var paymentMode: String?
+
+ public var aggregatorName: String?
+
+ public var merchantCode: String?
+
+ public var paymentIdentifier: String?
+
+ public var id: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case addressId = "address_id"
+
+ case paymentMode = "payment_mode"
+
+ case aggregatorName = "aggregator_name"
+
+ case merchantCode = "merchant_code"
+
+ case paymentIdentifier = "payment_identifier"
+
+ case id = "id"
+
+ }
+
+ public init(addressId: String? = nil, aggregatorName: String? = nil, id: String? = nil, merchantCode: String? = nil, paymentIdentifier: String? = nil, paymentMode: String? = nil) {
+
+ self.addressId = addressId
+
+ self.paymentMode = paymentMode
+
+ self.aggregatorName = aggregatorName
+
+ self.merchantCode = merchantCode
+
+ self.paymentIdentifier = paymentIdentifier
+
+ self.id = id
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ addressId = try container.decode(String.self, forKey: .addressId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCode = try container.decode(String.self, forKey: .merchantCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(addressId, forKey: .addressId)
+
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+
+
+ try? container.encodeIfPresent(merchantCode, forKey: .merchantCode)
+
+
+
+
+ try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UpdateCartRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..ded18ad2d7
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UpdateCartRequestCartPlatformModel.swift
@@ -0,0 +1,78 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UpdateCartRequest
+ Used By: Cart
+ */
+
+ class UpdateCartRequest: Codable {
+
+
+ public var items: [UpdateProductCart]?
+
+ public var operation: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case operation = "operation"
+
+ }
+
+ public init(items: [UpdateProductCart]? = nil, operation: String) {
+
+ self.items = items
+
+ self.operation = operation
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([UpdateProductCart].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UpdateCartShipmentCreationCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartShipmentCreationCartPlatformModel.swift
deleted file mode 100644
index 57d2d0bfb6..0000000000
--- a/Sources/code/platform/Models/Cart/UpdateCartShipmentCreationCartPlatformModel.swift
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: UpdateCartShipmentCreation
- Used By: Cart
- */
-
- class UpdateCartShipmentCreation: Codable {
-
-
- public var shipments: [UpdateCartShipmentItem]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- }
-
- public init(shipments: [UpdateCartShipmentItem]) {
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipments = try container.decode([UpdateCartShipmentItem].self, forKey: .shipments)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/UpdateCartShipmentRequestCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UpdateCartShipmentRequestCartPlatformModel.swift
new file mode 100644
index 0000000000..de81628fce
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UpdateCartShipmentRequestCartPlatformModel.swift
@@ -0,0 +1,55 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UpdateCartShipmentRequest
+ Used By: Cart
+ */
+
+ class UpdateCartShipmentRequest: Codable {
+
+
+ public var shipments: [UpdateCartShipmentItem]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ }
+
+ public init(shipments: [UpdateCartShipmentItem]) {
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ shipments = try container.decode([UpdateCartShipmentItem].self, forKey: .shipments)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UserCartMappingResponseCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UserCartMappingResponseCartPlatformModel.swift
new file mode 100644
index 0000000000..d33040217b
--- /dev/null
+++ b/Sources/code/platform/Models/Cart/UserCartMappingResponseCartPlatformModel.swift
@@ -0,0 +1,522 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Cart {
+ /*
+ Model: UserCartMappingResponse
+ Used By: Cart
+ */
+
+ class UserCartMappingResponse: Codable {
+
+
+ public var couponText: String?
+
+ public var user: UserInfo?
+
+ public var id: String?
+
+ public var panConfig: [String: Any]?
+
+ public var deliveryPromise: ShipmentPromise?
+
+ public var comment: String?
+
+ public var items: [CartProductInfo]?
+
+ public var paymentSelectionLock: PaymentSelectionLock?
+
+ public var deliveryChargeInfo: String?
+
+ public var restrictCheckout: Bool?
+
+ public var message: String?
+
+ public var breakupValues: CartBreakup?
+
+ public var isValid: Bool?
+
+ public var currency: CartCurrency?
+
+ public var checkoutMode: String?
+
+ public var lastModified: String?
+
+ public var buyNow: Bool?
+
+ public var gstin: String?
+
+ public var customCartMeta: [String: Any]?
+
+ public var appliedPromoDetails: [AppliedPromotion]?
+
+ public var panNo: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case couponText = "coupon_text"
+
+ case user = "user"
+
+ case id = "id"
+
+ case panConfig = "pan_config"
+
+ case deliveryPromise = "delivery_promise"
+
+ case comment = "comment"
+
+ case items = "items"
+
+ case paymentSelectionLock = "payment_selection_lock"
+
+ case deliveryChargeInfo = "delivery_charge_info"
+
+ case restrictCheckout = "restrict_checkout"
+
+ case message = "message"
+
+ case breakupValues = "breakup_values"
+
+ case isValid = "is_valid"
+
+ case currency = "currency"
+
+ case checkoutMode = "checkout_mode"
+
+ case lastModified = "last_modified"
+
+ case buyNow = "buy_now"
+
+ case gstin = "gstin"
+
+ case customCartMeta = "custom_cart_meta"
+
+ case appliedPromoDetails = "applied_promo_details"
+
+ case panNo = "pan_no"
+
+ }
+
+ public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, user: UserInfo? = nil) {
+
+ self.couponText = couponText
+
+ self.user = user
+
+ self.id = id
+
+ self.panConfig = panConfig
+
+ self.deliveryPromise = deliveryPromise
+
+ self.comment = comment
+
+ self.items = items
+
+ self.paymentSelectionLock = paymentSelectionLock
+
+ self.deliveryChargeInfo = deliveryChargeInfo
+
+ self.restrictCheckout = restrictCheckout
+
+ self.message = message
+
+ self.breakupValues = breakupValues
+
+ self.isValid = isValid
+
+ self.currency = currency
+
+ self.checkoutMode = checkoutMode
+
+ self.lastModified = lastModified
+
+ self.buyNow = buyNow
+
+ self.gstin = gstin
+
+ self.customCartMeta = customCartMeta
+
+ self.appliedPromoDetails = appliedPromoDetails
+
+ self.panNo = panNo
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ couponText = try container.decode(String.self, forKey: .couponText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ user = try container.decode(UserInfo.self, forKey: .user)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ panConfig = try container.decode([String: Any].self, forKey: .panConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ comment = try container.decode(String.self, forKey: .comment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CartProductInfo].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isValid = try container.decode(Bool.self, forKey: .isValid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(CartCurrency.self, forKey: .currency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lastModified = try container.decode(String.self, forKey: .lastModified)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ buyNow = try container.decode(Bool.self, forKey: .buyNow)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstin = try container.decode(String.self, forKey: .gstin)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ panNo = try container.decode(String.self, forKey: .panNo)
+
+ } 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(couponText, forKey: .couponText)
+
+
+
+
+ try? container.encodeIfPresent(user, forKey: .user)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(panConfig, forKey: .panConfig)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
+
+
+
+
+ try? container.encodeIfPresent(comment, forKey: .comment)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
+
+
+
+
+ try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
+
+
+
+
+ try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
+
+
+
+
+ try? container.encodeIfPresent(isValid, forKey: .isValid)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
+
+
+
+
+ try? container.encodeIfPresent(lastModified, forKey: .lastModified)
+
+
+
+
+ try? container.encodeIfPresent(buyNow, forKey: .buyNow)
+
+
+
+
+ try? container.encodeIfPresent(gstin, forKey: .gstin)
+
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+
+
+ try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
+
+
+
+
+ try? container.encodeIfPresent(panNo, forKey: .panNo)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Cart/UserCartMappingResultCartPlatformModel.swift b/Sources/code/platform/Models/Cart/UserCartMappingResultCartPlatformModel.swift
deleted file mode 100644
index ba8b9bfaff..0000000000
--- a/Sources/code/platform/Models/Cart/UserCartMappingResultCartPlatformModel.swift
+++ /dev/null
@@ -1,522 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: UserCartMappingResult
- Used By: Cart
- */
-
- class UserCartMappingResult: Codable {
-
-
- public var couponText: String?
-
- public var user: UserInfo?
-
- public var id: String?
-
- public var panConfig: [String: Any]?
-
- public var deliveryPromise: ShipmentPromise?
-
- public var comment: String?
-
- public var items: [CartProductInfo]?
-
- public var paymentSelectionLock: PaymentSelectionLock?
-
- public var deliveryChargeInfo: String?
-
- public var restrictCheckout: Bool?
-
- public var message: String?
-
- public var breakupValues: CartBreakup?
-
- public var isValid: Bool?
-
- public var currency: CartCurrency?
-
- public var checkoutMode: String?
-
- public var lastModified: String?
-
- public var buyNow: Bool?
-
- public var gstin: String?
-
- public var customCartMeta: [String: Any]?
-
- public var appliedPromoDetails: [AppliedPromotion]?
-
- public var panNo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case couponText = "coupon_text"
-
- case user = "user"
-
- case id = "id"
-
- case panConfig = "pan_config"
-
- case deliveryPromise = "delivery_promise"
-
- case comment = "comment"
-
- case items = "items"
-
- case paymentSelectionLock = "payment_selection_lock"
-
- case deliveryChargeInfo = "delivery_charge_info"
-
- case restrictCheckout = "restrict_checkout"
-
- case message = "message"
-
- case breakupValues = "breakup_values"
-
- case isValid = "is_valid"
-
- case currency = "currency"
-
- case checkoutMode = "checkout_mode"
-
- case lastModified = "last_modified"
-
- case buyNow = "buy_now"
-
- case gstin = "gstin"
-
- case customCartMeta = "custom_cart_meta"
-
- case appliedPromoDetails = "applied_promo_details"
-
- case panNo = "pan_no"
-
- }
-
- public init(appliedPromoDetails: [AppliedPromotion]? = nil, breakupValues: CartBreakup? = nil, buyNow: Bool? = nil, checkoutMode: String? = nil, comment: String? = nil, couponText: String? = nil, currency: CartCurrency? = nil, customCartMeta: [String: Any]? = nil, deliveryChargeInfo: String? = nil, deliveryPromise: ShipmentPromise? = nil, gstin: String? = nil, id: String? = nil, isValid: Bool? = nil, items: [CartProductInfo]? = nil, lastModified: String? = nil, message: String? = nil, panConfig: [String: Any]? = nil, panNo: String? = nil, paymentSelectionLock: PaymentSelectionLock? = nil, restrictCheckout: Bool? = nil, user: UserInfo? = nil) {
-
- self.couponText = couponText
-
- self.user = user
-
- self.id = id
-
- self.panConfig = panConfig
-
- self.deliveryPromise = deliveryPromise
-
- self.comment = comment
-
- self.items = items
-
- self.paymentSelectionLock = paymentSelectionLock
-
- self.deliveryChargeInfo = deliveryChargeInfo
-
- self.restrictCheckout = restrictCheckout
-
- self.message = message
-
- self.breakupValues = breakupValues
-
- self.isValid = isValid
-
- self.currency = currency
-
- self.checkoutMode = checkoutMode
-
- self.lastModified = lastModified
-
- self.buyNow = buyNow
-
- self.gstin = gstin
-
- self.customCartMeta = customCartMeta
-
- self.appliedPromoDetails = appliedPromoDetails
-
- self.panNo = panNo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- couponText = try container.decode(String.self, forKey: .couponText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- user = try container.decode(UserInfo.self, forKey: .user)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- panConfig = try container.decode([String: Any].self, forKey: .panConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(ShipmentPromise.self, forKey: .deliveryPromise)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- comment = try container.decode(String.self, forKey: .comment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([CartProductInfo].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentSelectionLock = try container.decode(PaymentSelectionLock.self, forKey: .paymentSelectionLock)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryChargeInfo = try container.decode(String.self, forKey: .deliveryChargeInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- restrictCheckout = try container.decode(Bool.self, forKey: .restrictCheckout)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breakupValues = try container.decode(CartBreakup.self, forKey: .breakupValues)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isValid = try container.decode(Bool.self, forKey: .isValid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CartCurrency.self, forKey: .currency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- checkoutMode = try container.decode(String.self, forKey: .checkoutMode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastModified = try container.decode(String.self, forKey: .lastModified)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- buyNow = try container.decode(Bool.self, forKey: .buyNow)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstin = try container.decode(String.self, forKey: .gstin)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appliedPromoDetails = try container.decode([AppliedPromotion].self, forKey: .appliedPromoDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- panNo = try container.decode(String.self, forKey: .panNo)
-
- } 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(couponText, forKey: .couponText)
-
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(panConfig, forKey: .panConfig)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
-
-
- try? container.encodeIfPresent(comment, forKey: .comment)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(paymentSelectionLock, forKey: .paymentSelectionLock)
-
-
-
-
- try? container.encodeIfPresent(deliveryChargeInfo, forKey: .deliveryChargeInfo)
-
-
-
-
- try? container.encodeIfPresent(restrictCheckout, forKey: .restrictCheckout)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(breakupValues, forKey: .breakupValues)
-
-
-
-
- try? container.encodeIfPresent(isValid, forKey: .isValid)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(checkoutMode, forKey: .checkoutMode)
-
-
-
-
- try? container.encodeIfPresent(lastModified, forKey: .lastModified)
-
-
-
-
- try? container.encodeIfPresent(buyNow, forKey: .buyNow)
-
-
-
-
- try? container.encodeIfPresent(gstin, forKey: .gstin)
-
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
-
-
- try? container.encodeIfPresent(appliedPromoDetails, forKey: .appliedPromoDetails)
-
-
-
-
- try? container.encodeIfPresent(panNo, forKey: .panNo)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ValidationConfigCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ValidationConfigCartPlatformModel.swift
deleted file mode 100644
index 2a86c2d883..0000000000
--- a/Sources/code/platform/Models/Cart/ValidationConfigCartPlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ValidationConfig
- Used By: Cart
- */
-
- class ValidationConfig: Codable {
-
-
- public var addressMaxLimit: Int
-
- public var userAddressCount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addressMaxLimit = "address_max_limit"
-
- case userAddressCount = "user_address_count"
-
- }
-
- public init(addressMaxLimit: Int, userAddressCount: Int) {
-
- self.addressMaxLimit = addressMaxLimit
-
- self.userAddressCount = userAddressCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- addressMaxLimit = try container.decode(Int.self, forKey: .addressMaxLimit)
-
-
-
-
- userAddressCount = try container.decode(Int.self, forKey: .userAddressCount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(addressMaxLimit, forKey: .addressMaxLimit)
-
-
-
-
- try? container.encodeIfPresent(userAddressCount, forKey: .userAddressCount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/ValidationErrorCartPlatformModel.swift b/Sources/code/platform/Models/Cart/ValidationErrorCartPlatformModel.swift
deleted file mode 100644
index 4e5bedd70c..0000000000
--- a/Sources/code/platform/Models/Cart/ValidationErrorCartPlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Cart {
- /*
- Model: ValidationError
- Used By: Cart
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Cart/VisibilityCartPlatformModel.swift b/Sources/code/platform/Models/Cart/VisibilityCartPlatformModel.swift
index 2b082f096c..ee196d6558 100644
--- a/Sources/code/platform/Models/Cart/VisibilityCartPlatformModel.swift
+++ b/Sources/code/platform/Models/Cart/VisibilityCartPlatformModel.swift
@@ -14,9 +14,9 @@ public extension PlatformClient.ApplicationClient.Cart {
class Visibility: Codable {
- public var couponList: Bool?
+ public var couponList: Bool
- public var pdp: Bool?
+ public var pdp: Bool
public enum CodingKeys: String, CodingKey {
@@ -27,7 +27,7 @@ public extension PlatformClient.ApplicationClient.Cart {
}
- public init(couponList: Bool? = nil, pdp: Bool? = nil) {
+ public init(couponList: Bool, pdp: Bool) {
self.couponList = couponList
@@ -39,29 +39,15 @@ public extension PlatformClient.ApplicationClient.Cart {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- couponList = try container.decode(Bool.self, forKey: .couponList)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ couponList = try container.decode(Bool.self, forKey: .couponList)
- do {
- pdp = try container.decode(Bool.self, forKey: .pdp)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+
+ pdp = try container.decode(Bool.self, forKey: .pdp)
+
}
public func encode(to encoder: Encoder) throws {
diff --git a/Sources/code/platform/Models/Catalog/ActionObjectCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ActionObjectCatalogPlatformModel.swift
deleted file mode 100644
index de0b8277df..0000000000
--- a/Sources/code/platform/Models/Catalog/ActionObjectCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ActionObject
- Used By: Catalog
- */
-
- class ActionObject: Codable {
-
-
- public var type: String?
-
- public var query: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case query = "query"
-
- }
-
- public init(query: [String: Any]? = nil, type: String? = nil) {
-
- self.type = type
-
- self.query = query
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ActionObject
- Used By: Catalog
- */
-
- class ActionObject: Codable {
-
-
- public var type: String?
-
- public var query: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case query = "query"
-
- }
-
- public init(query: [String: Any]? = nil, type: String? = nil) {
-
- self.type = type
-
- self.query = query
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AddInventoryRequestPayloadCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AddInventoryRequestPayloadCatalogPlatformModel.swift
deleted file mode 100644
index 11c197f75c..0000000000
--- a/Sources/code/platform/Models/Catalog/AddInventoryRequestPayloadCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AddInventoryRequestPayload
- Used By: Catalog
- */
-
- class AddInventoryRequestPayload: Codable {
-
-
- public var sizes: [InventoryResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case sizes = "sizes"
-
- }
-
- public init(sizes: [InventoryResponseSchema]? = nil) {
-
- self.sizes = sizes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- sizes = try container.decode([InventoryResponseSchema].self, forKey: .sizes)
-
- } 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(sizes, forKey: .sizes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AddInventoryRequestPayload
- Used By: Catalog
- */
-
- class AddInventoryRequestPayload: Codable {
-
-
- public var sizes: [InventoryResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case sizes = "sizes"
-
- }
-
- public init(sizes: [InventoryResponseSchema]? = nil) {
-
- self.sizes = sizes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- sizes = try container.decode([InventoryResponseSchema].self, forKey: .sizes)
-
- } 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(sizes, forKey: .sizes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AllowSingleRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AllowSingleRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..ca45f8a138
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/AllowSingleRequestCatalogPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: AllowSingleRequest
+ Used By: Catalog
+ */
+
+ class AllowSingleRequest: Codable {
+
+
+ public var allowSingle: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case allowSingle = "allow_single"
+
+ }
+
+ public init(allowSingle: Bool) {
+
+ self.allowSingle = allowSingle
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ allowSingle = try container.decode(Bool.self, forKey: .allowSingle)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(allowSingle, forKey: .allowSingle)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: AllowSingleRequest
+ Used By: Catalog
+ */
+
+ class AllowSingleRequest: Codable {
+
+
+ public var allowSingle: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case allowSingle = "allow_single"
+
+ }
+
+ public init(allowSingle: Bool) {
+
+ self.allowSingle = allowSingle
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ allowSingle = try container.decode(Bool.self, forKey: .allowSingle)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(allowSingle, forKey: .allowSingle)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/AllowSingleRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AllowSingleRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index fdbab37feb..0000000000
--- a/Sources/code/platform/Models/Catalog/AllowSingleRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AllowSingleRequestSchema
- Used By: Catalog
- */
-
- class AllowSingleRequestSchema: Codable {
-
-
- public var allowSingle: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case allowSingle = "allow_single"
-
- }
-
- public init(allowSingle: Bool) {
-
- self.allowSingle = allowSingle
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- allowSingle = try container.decode(Bool.self, forKey: .allowSingle)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(allowSingle, forKey: .allowSingle)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AllowSingleRequestSchema
- Used By: Catalog
- */
-
- class AllowSingleRequestSchema: Codable {
-
-
- public var allowSingle: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case allowSingle = "allow_single"
-
- }
-
- public init(allowSingle: Bool) {
-
- self.allowSingle = allowSingle
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- allowSingle = try container.decode(Bool.self, forKey: .allowSingle)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(allowSingle, forKey: .allowSingle)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigCatalogPlatformModel.swift
index 8742b6496a..378bfa0b7d 100644
--- a/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigCatalogPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Catalog {
public var categoryId: Int
- public var returnConfig: ProductReturnConfigBaseSchema
+ public var returnConfig: ProductReturnConfigBaseSerializer
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(categoryId: Int, returnConfig: ProductReturnConfigBaseSchema) {
+ public init(categoryId: Int, returnConfig: ProductReturnConfigBaseSerializer) {
self.categoryId = categoryId
@@ -42,7 +42,7 @@ public extension PlatformClient.Catalog {
- returnConfig = try container.decode(ProductReturnConfigBaseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ProductReturnConfigBaseSerializer.self, forKey: .returnConfig)
@@ -79,7 +79,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var categoryId: Int
- public var returnConfig: ProductReturnConfigBaseSchema
+ public var returnConfig: ProductReturnConfigBaseSerializer
public enum CodingKeys: String, CodingKey {
@@ -90,7 +90,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(categoryId: Int, returnConfig: ProductReturnConfigBaseSchema) {
+ public init(categoryId: Int, returnConfig: ProductReturnConfigBaseSerializer) {
self.categoryId = categoryId
@@ -107,7 +107,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
- returnConfig = try container.decode(ProductReturnConfigBaseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ProductReturnConfigBaseSerializer.self, forKey: .returnConfig)
diff --git a/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2628d09a4a
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: AppCategoryReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class AppCategoryReturnConfigResponse: Codable {
+
+
+ public var appId: String?
+
+ public var categoryId: Int?
+
+ public var logo: String?
+
+ public var name: String?
+
+ public var returnConfig: ProductReturnConfigBaseSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case categoryId = "category_id"
+
+ case logo = "logo"
+
+ case name = "name"
+
+ case returnConfig = "return_config"
+
+ }
+
+ public init(appId: String? = nil, categoryId: Int? = nil, logo: String? = nil, name: String? = nil, returnConfig: ProductReturnConfigBaseSerializer? = nil) {
+
+ self.appId = appId
+
+ self.categoryId = categoryId
+
+ self.logo = logo
+
+ self.name = name
+
+ self.returnConfig = returnConfig
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ categoryId = try container.decode(Int.self, forKey: .categoryId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ returnConfig = try container.decode(ProductReturnConfigBaseSerializer.self, forKey: .returnConfig)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(categoryId, forKey: .categoryId)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: AppCategoryReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class AppCategoryReturnConfigResponse: Codable {
+
+
+ public var appId: String?
+
+ public var categoryId: Int?
+
+ public var logo: String?
+
+ public var name: String?
+
+ public var returnConfig: ProductReturnConfigBaseSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case categoryId = "category_id"
+
+ case logo = "logo"
+
+ case name = "name"
+
+ case returnConfig = "return_config"
+
+ }
+
+ public init(appId: String? = nil, categoryId: Int? = nil, logo: String? = nil, name: String? = nil, returnConfig: ProductReturnConfigBaseSerializer? = nil) {
+
+ self.appId = appId
+
+ self.categoryId = categoryId
+
+ self.logo = logo
+
+ self.name = name
+
+ self.returnConfig = returnConfig
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ categoryId = try container.decode(Int.self, forKey: .categoryId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ returnConfig = try container.decode(ProductReturnConfigBaseSerializer.self, forKey: .returnConfig)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(categoryId, forKey: .categoryId)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 41fe39505b..0000000000
--- a/Sources/code/platform/Models/Catalog/AppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AppCategoryReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class AppCategoryReturnConfigResponseSchema: Codable {
-
-
- public var appId: String?
-
- public var categoryId: Int?
-
- public var logo: String?
-
- public var name: String?
-
- public var returnConfig: ProductReturnConfigBaseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case categoryId = "category_id"
-
- case logo = "logo"
-
- case name = "name"
-
- case returnConfig = "return_config"
-
- }
-
- public init(appId: String? = nil, categoryId: Int? = nil, logo: String? = nil, name: String? = nil, returnConfig: ProductReturnConfigBaseSchema? = nil) {
-
- self.appId = appId
-
- self.categoryId = categoryId
-
- self.logo = logo
-
- self.name = name
-
- self.returnConfig = returnConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- categoryId = try container.decode(Int.self, forKey: .categoryId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- returnConfig = try container.decode(ProductReturnConfigBaseSchema.self, forKey: .returnConfig)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(categoryId, forKey: .categoryId)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AppCategoryReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class AppCategoryReturnConfigResponseSchema: Codable {
-
-
- public var appId: String?
-
- public var categoryId: Int?
-
- public var logo: String?
-
- public var name: String?
-
- public var returnConfig: ProductReturnConfigBaseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case categoryId = "category_id"
-
- case logo = "logo"
-
- case name = "name"
-
- case returnConfig = "return_config"
-
- }
-
- public init(appId: String? = nil, categoryId: Int? = nil, logo: String? = nil, name: String? = nil, returnConfig: ProductReturnConfigBaseSchema? = nil) {
-
- self.appId = appId
-
- self.categoryId = categoryId
-
- self.logo = logo
-
- self.name = name
-
- self.returnConfig = returnConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- categoryId = try container.decode(Int.self, forKey: .categoryId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- returnConfig = try container.decode(ProductReturnConfigBaseSchema.self, forKey: .returnConfig)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(categoryId, forKey: .categoryId)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AppReturnConfigResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AppReturnConfigResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..bd62c29f8d
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/AppReturnConfigResponseCatalogPlatformModel.swift
@@ -0,0 +1,392 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: AppReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class AppReturnConfigResponse: Codable {
+
+
+ public var appId: String?
+
+ public var categoryCount: Int?
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var returnConfigLevel: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case categoryCount = "category_count"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case returnConfigLevel = "return_config_level"
+
+ }
+
+ public init(appId: String? = nil, categoryCount: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, returnConfigLevel: String? = nil) {
+
+ self.appId = appId
+
+ self.categoryCount = categoryCount
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.returnConfigLevel = returnConfigLevel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ categoryCount = try container.decode(Int.self, forKey: .categoryCount)
+
+ } 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)
+
+ } 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)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(categoryCount, forKey: .categoryCount)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: AppReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class AppReturnConfigResponse: Codable {
+
+
+ public var appId: String?
+
+ public var categoryCount: Int?
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var returnConfigLevel: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case categoryCount = "category_count"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case returnConfigLevel = "return_config_level"
+
+ }
+
+ public init(appId: String? = nil, categoryCount: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, returnConfigLevel: String? = nil) {
+
+ self.appId = appId
+
+ self.categoryCount = categoryCount
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.returnConfigLevel = returnConfigLevel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ categoryCount = try container.decode(Int.self, forKey: .categoryCount)
+
+ } 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)
+
+ } 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)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(categoryCount, forKey: .categoryCount)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/AppReturnConfigResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AppReturnConfigResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 7b0fb8a893..0000000000
--- a/Sources/code/platform/Models/Catalog/AppReturnConfigResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AppReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class AppReturnConfigResponseSchema: Codable {
-
-
- public var appId: String?
-
- public var categoryCount: Int?
-
- public var companyId: Int?
-
- public var createdBy: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var returnConfigLevel: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case categoryCount = "category_count"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case returnConfigLevel = "return_config_level"
-
- }
-
- public init(appId: String? = nil, categoryCount: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, returnConfigLevel: String? = nil) {
-
- self.appId = appId
-
- self.categoryCount = categoryCount
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.returnConfigLevel = returnConfigLevel
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- categoryCount = try container.decode(Int.self, forKey: .categoryCount)
-
- } 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)
-
- } 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)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(categoryCount, forKey: .categoryCount)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AppReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class AppReturnConfigResponseSchema: Codable {
-
-
- public var appId: String?
-
- public var categoryCount: Int?
-
- public var companyId: Int?
-
- public var createdBy: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var returnConfigLevel: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case categoryCount = "category_count"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case returnConfigLevel = "return_config_level"
-
- }
-
- public init(appId: String? = nil, categoryCount: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, returnConfigLevel: String? = nil) {
-
- self.appId = appId
-
- self.categoryCount = categoryCount
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.returnConfigLevel = returnConfigLevel
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- categoryCount = try container.decode(Int.self, forKey: .categoryCount)
-
- } 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)
-
- } 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)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(categoryCount, forKey: .categoryCount)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationBrandListingSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationBrandListingSchemaCatalogPlatformModel.swift
index 1eaee7b9b7..dba503fcf4 100644
--- a/Sources/code/platform/Models/Catalog/ApplicationBrandListingSchemaCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ApplicationBrandListingSchemaCatalogPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Catalog {
public var items: [ApplicationBrandListingItemSchema]?
- public var page: Page
+ public var page: Page?
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [ApplicationBrandListingItemSchema]? = nil, page: Page) {
+ public init(items: [ApplicationBrandListingItemSchema]? = nil, page: Page? = nil) {
self.items = items
@@ -49,9 +49,16 @@ public extension PlatformClient.Catalog {
- page = try container.decode(Page.self, forKey: .page)
+ 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 {
+
+ }
-
}
@@ -86,7 +93,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var items: [ApplicationBrandListingItemSchema]?
- public var page: Page
+ public var page: Page?
public enum CodingKeys: String, CodingKey {
@@ -97,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [ApplicationBrandListingItemSchema]? = nil, page: Page) {
+ public init(items: [ApplicationBrandListingItemSchema]? = nil, page: Page? = nil) {
self.items = items
@@ -121,9 +128,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
- page = try container.decode(Page.self, forKey: .page)
+ 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 {
+
+ }
-
}
diff --git a/Sources/code/platform/Models/Catalog/ApplicationCategoryActionCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationCategoryActionCatalogPlatformModel.swift
deleted file mode 100644
index 40515a00e7..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationCategoryActionCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationCategoryAction
- Used By: Catalog
- */
-
- class ApplicationCategoryAction: Codable {
-
-
- public var page: CategoryPageAction?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case type = "type"
-
- }
-
- public init(page: CategoryPageAction? = nil, type: String? = nil) {
-
- self.page = page
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(CategoryPageAction.self, forKey: .page)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationCategoryAction
- Used By: Catalog
- */
-
- class ApplicationCategoryAction: Codable {
-
-
- public var page: CategoryPageAction?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case type = "type"
-
- }
-
- public init(page: CategoryPageAction? = nil, type: String? = nil) {
-
- self.page = page
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(CategoryPageAction.self, forKey: .page)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationCategoryItemCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationCategoryItemCatalogPlatformModel.swift
deleted file mode 100644
index 4cb1627f2b..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationCategoryItemCatalogPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationCategoryItem
- Used By: Catalog
- */
-
- class ApplicationCategoryItem: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var action: ApplicationCategoryAction?
-
- public var id: Int?
-
- public var logo: CategoryImage?
-
- public var name: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case action = "action"
-
- case id = "id"
-
- case logo = "logo"
-
- case name = "name"
-
- case uid = "uid"
-
- }
-
- public init(action: ApplicationCategoryAction? = nil, id: Int? = nil, logo: CategoryImage? = nil, name: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.action = action
-
- self.id = id
-
- self.logo = logo
-
- self.name = name
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- action = try container.decode(ApplicationCategoryAction.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logo = try container.decode(CategoryImage.self, forKey: .logo)
-
- } 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationCategoryItem
- Used By: Catalog
- */
-
- class ApplicationCategoryItem: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var action: ApplicationCategoryAction?
-
- public var id: Int?
-
- public var logo: CategoryImage?
-
- public var name: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case action = "action"
-
- case id = "id"
-
- case logo = "logo"
-
- case name = "name"
-
- case uid = "uid"
-
- }
-
- public init(action: ApplicationCategoryAction? = nil, id: Int? = nil, logo: CategoryImage? = nil, name: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.action = action
-
- self.id = id
-
- self.logo = logo
-
- self.name = name
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- action = try container.decode(ApplicationCategoryAction.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logo = try container.decode(CategoryImage.self, forKey: .logo)
-
- } 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoActionCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoActionCatalogPlatformModel.swift
deleted file mode 100644
index 5a6868fd29..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoActionCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoAction
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoAction: Codable {
-
-
- public var type: String?
-
- public var page: ApplicationCollectionItemSeoPage?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case page = "page"
-
- }
-
- public init(page: ApplicationCollectionItemSeoPage? = nil, type: String? = nil) {
-
- self.type = type
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- page = try container.decode(ApplicationCollectionItemSeoPage.self, forKey: .page)
-
- } 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoAction
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoAction: Codable {
-
-
- public var type: String?
-
- public var page: ApplicationCollectionItemSeoPage?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case page = "page"
-
- }
-
- public init(page: ApplicationCollectionItemSeoPage? = nil, type: String? = nil) {
-
- self.type = type
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- page = try container.decode(ApplicationCollectionItemSeoPage.self, forKey: .page)
-
- } 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoBreadcrumbsCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoBreadcrumbsCatalogPlatformModel.swift
deleted file mode 100644
index f5eb94396a..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoBreadcrumbsCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoBreadcrumbs
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoBreadcrumbs: Codable {
-
-
- public var url: String?
-
- public var action: ApplicationCollectionItemSeoAction?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case action = "action"
-
- }
-
- public init(action: ApplicationCollectionItemSeoAction? = nil, url: String? = nil) {
-
- self.url = url
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- action = try container.decode(ApplicationCollectionItemSeoAction.self, forKey: .action)
-
- } 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(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoBreadcrumbs
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoBreadcrumbs: Codable {
-
-
- public var url: String?
-
- public var action: ApplicationCollectionItemSeoAction?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case action = "action"
-
- }
-
- public init(action: ApplicationCollectionItemSeoAction? = nil, url: String? = nil) {
-
- self.url = url
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- action = try container.decode(ApplicationCollectionItemSeoAction.self, forKey: .action)
-
- } 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(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoPageCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoPageCatalogPlatformModel.swift
deleted file mode 100644
index 53239ef997..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationCollectionItemSeoPageCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoPage
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoPage: Codable {
-
-
- public var params: [String: Any]?
-
- public var query: PageQuery?
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case params = "params"
-
- case query = "query"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(params: [String: Any]? = nil, query: PageQuery? = nil, type: String? = nil, url: String? = nil) {
-
- self.params = params
-
- self.query = query
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- query = try container.decode(PageQuery.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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationCollectionItemSeoPage
- Used By: Catalog
- */
-
- class ApplicationCollectionItemSeoPage: Codable {
-
-
- public var params: [String: Any]?
-
- public var query: PageQuery?
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case params = "params"
-
- case query = "query"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(params: [String: Any]? = nil, query: PageQuery? = nil, type: String? = nil, url: String? = nil) {
-
- self.params = params
-
- self.query = query
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- query = try container.decode(PageQuery.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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- 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(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..ed5cab6ca3
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ApplicationDepartmentListingResponse
+ Used By: Catalog
+ */
+
+ class ApplicationDepartmentListingResponse: Codable {
+
+
+ public var items: [ApplicationDepartment]?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ApplicationDepartment]? = nil, 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([ApplicationDepartment].self, forKey: .items)
+
+ } 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ApplicationDepartmentListingResponse
+ Used By: Catalog
+ */
+
+ class ApplicationDepartmentListingResponse: Codable {
+
+
+ public var items: [ApplicationDepartment]?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ApplicationDepartment]? = nil, 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([ApplicationDepartment].self, forKey: .items)
+
+ } 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b7eff4a47b..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationDepartmentListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationDepartmentListingResponseSchema
- Used By: Catalog
- */
-
- class ApplicationDepartmentListingResponseSchema: Codable {
-
-
- public var items: [ApplicationDepartment]?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ApplicationDepartment]? = nil, 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([ApplicationDepartment].self, forKey: .items)
-
- } 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)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationDepartmentListingResponseSchema
- Used By: Catalog
- */
-
- class ApplicationDepartmentListingResponseSchema: Codable {
-
-
- public var items: [ApplicationDepartment]?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ApplicationDepartment]? = nil, 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([ApplicationDepartment].self, forKey: .items)
-
- } 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)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationInventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationInventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift
deleted file mode 100644
index 5497e00adc..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationInventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationInventorySellerIdentifierResponsePaginated
- Used By: Catalog
- */
-
- class ApplicationInventorySellerIdentifierResponsePaginated: Codable {
-
-
- public var items: [InventorySellerResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [InventorySellerResponseSchema]? = nil, page: Page? = nil) {
-
- 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([InventorySellerResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationInventorySellerIdentifierResponsePaginated
- Used By: Catalog
- */
-
- class ApplicationInventorySellerIdentifierResponsePaginated: Codable {
-
-
- public var items: [InventorySellerResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [InventorySellerResponseSchema]? = nil, page: Page? = nil) {
-
- 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([InventorySellerResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationInventorySellerResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationInventorySellerResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index aef6e5034a..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationInventorySellerResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,1856 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationInventorySellerResponseSchema
- Used By: Catalog
- */
-
- class ApplicationInventorySellerResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var addedOnStore: String?
-
- public var brand: BrandMeta
-
- public var company: CompanyMeta
-
- public var countryOfOrigin: String
-
- public var createdBy: RequestUserSchema?
-
- public var dimension: DimensionResponseSchema
-
- public var expirationDate: String?
-
- public var fragile: Bool
-
- public var fyndArticleCode: String
-
- public var fyndItemCode: String
-
- public var fyndMeta: [String: Any]?
-
- public var identifier: [String: Any]
-
- public var isActive: Bool?
-
- public var isSet: Bool?
-
- public var itemId: Int
-
- public var manufacturer: ManufacturerResponseSchema
-
- public var meta: [String: Any]?
-
- public var modifiedBy: RequestUserSchema?
-
- public var price: PriceMeta
-
- public var quantities: Quantities?
-
- public var rawMeta: [String: Any]?
-
- public var returnConfig: InventoryReturnConfig?
-
- public var sellerIdentifier: String
-
- public var set: InventorySet?
-
- public var size: String
-
- public var stage: String?
-
- public var store: StoreMeta
-
- public var tags: [String]?
-
- public var taxIdentifier: TaxIdentifier?
-
- public var totalQuantity: Int
-
- public var traceId: String?
-
- public var trackInventory: Bool?
-
- public var trader: [Trader]?
-
- public var uid: String
-
- public var weight: WeightResponseSchema
-
- public var dateMeta: DateMeta?
-
- public var platforms: [String: Any]?
-
- public var priceMarked: Double?
-
- public var priceEffective: Double?
-
- public var currency: String?
-
- public var priceSelling: Double?
-
- public var discountMeta: [String: Any]?
-
- public var discountApplied: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case addedOnStore = "added_on_store"
-
- case brand = "brand"
-
- case company = "company"
-
- case countryOfOrigin = "country_of_origin"
-
- case createdBy = "created_by"
-
- case dimension = "dimension"
-
- case expirationDate = "expiration_date"
-
- case fragile = "fragile"
-
- case fyndArticleCode = "fynd_article_code"
-
- case fyndItemCode = "fynd_item_code"
-
- case fyndMeta = "fynd_meta"
-
- case identifier = "identifier"
-
- case isActive = "is_active"
-
- case isSet = "is_set"
-
- case itemId = "item_id"
-
- case manufacturer = "manufacturer"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case price = "price"
-
- case quantities = "quantities"
-
- case rawMeta = "raw_meta"
-
- case returnConfig = "return_config"
-
- case sellerIdentifier = "seller_identifier"
-
- case set = "set"
-
- case size = "size"
-
- case stage = "stage"
-
- case store = "store"
-
- case tags = "tags"
-
- case taxIdentifier = "tax_identifier"
-
- case totalQuantity = "total_quantity"
-
- case traceId = "trace_id"
-
- case trackInventory = "track_inventory"
-
- case trader = "trader"
-
- case uid = "uid"
-
- case weight = "weight"
-
- case dateMeta = "date_meta"
-
- case platforms = "platforms"
-
- case priceMarked = "price_marked"
-
- case priceEffective = "price_effective"
-
- case currency = "currency"
-
- case priceSelling = "price_selling"
-
- case discountMeta = "discount_meta"
-
- case discountApplied = "discount_applied"
-
- }
-
- public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSchema? = nil, currency: String? = nil, dateMeta: DateMeta? = nil, dimension: DimensionResponseSchema, discountApplied: [String: Any]? = nil, discountMeta: [String: Any]? = nil, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponseSchema, meta: [String: Any]? = nil, modifiedBy: RequestUserSchema? = nil, platforms: [String: Any]? = nil, price: PriceMeta, priceEffective: Double? = nil, priceMarked: Double? = nil, priceSelling: Double? = nil, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: InventoryReturnConfig? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader]? = nil, uid: String, weight: WeightResponseSchema, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.addedOnStore = addedOnStore
-
- self.brand = brand
-
- self.company = company
-
- self.countryOfOrigin = countryOfOrigin
-
- self.createdBy = createdBy
-
- self.dimension = dimension
-
- self.expirationDate = expirationDate
-
- self.fragile = fragile
-
- self.fyndArticleCode = fyndArticleCode
-
- self.fyndItemCode = fyndItemCode
-
- self.fyndMeta = fyndMeta
-
- self.identifier = identifier
-
- self.isActive = isActive
-
- self.isSet = isSet
-
- self.itemId = itemId
-
- self.manufacturer = manufacturer
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.price = price
-
- self.quantities = quantities
-
- self.rawMeta = rawMeta
-
- self.returnConfig = returnConfig
-
- self.sellerIdentifier = sellerIdentifier
-
- self.set = set
-
- self.size = size
-
- self.stage = stage
-
- self.store = store
-
- self.tags = tags
-
- self.taxIdentifier = taxIdentifier
-
- self.totalQuantity = totalQuantity
-
- self.traceId = traceId
-
- self.trackInventory = trackInventory
-
- self.trader = trader
-
- self.uid = uid
-
- self.weight = weight
-
- self.dateMeta = dateMeta
-
- self.platforms = platforms
-
- self.priceMarked = priceMarked
-
- self.priceEffective = priceEffective
-
- self.currency = currency
-
- self.priceSelling = priceSelling
-
- self.discountMeta = discountMeta
-
- self.discountApplied = discountApplied
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brand = try container.decode(BrandMeta.self, forKey: .brand)
-
-
-
-
- company = try container.decode(CompanyMeta.self, forKey: .company)
-
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- dimension = try container.decode(DimensionResponseSchema.self, forKey: .dimension)
-
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- fragile = try container.decode(Bool.self, forKey: .fragile)
-
-
-
-
- fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
-
-
-
-
- fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
-
-
-
-
- do {
- fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- manufacturer = try container.decode(ManufacturerResponseSchema.self, forKey: .manufacturer)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- price = try container.decode(PriceMeta.self, forKey: .price)
-
-
-
-
- do {
- quantities = try container.decode(Quantities.self, forKey: .quantities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnConfig = try container.decode(InventoryReturnConfig.self, forKey: .returnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- store = try container.decode(StoreMeta.self, forKey: .store)
-
-
-
-
- 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 {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
-
-
-
- do {
- traceId = try container.decode(String.self, forKey: .traceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
-
- weight = try container.decode(WeightResponseSchema.self, forKey: .weight)
-
-
-
-
- do {
- dateMeta = try container.decode(DateMeta.self, forKey: .dateMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platforms = try container.decode([String: Any].self, forKey: .platforms)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- priceSelling = try container.decode(Double.self, forKey: .priceSelling)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountMeta = try container.decode([String: Any].self, forKey: .discountMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountApplied = try container.decode([String: Any].self, forKey: .discountApplied)
-
- } 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(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(fragile, forKey: .fragile)
-
-
-
-
- try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
-
-
-
-
- try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
-
-
-
-
- try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isSet, forKey: .isSet)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(quantities, forKey: .quantities)
-
-
-
-
- try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(set, forKey: .set)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(traceId, forKey: .traceId)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(trader, forKey: .trader)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(dateMeta, forKey: .dateMeta)
-
-
-
-
- try? container.encodeIfPresent(platforms, forKey: .platforms)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(priceSelling, forKey: .priceSelling)
-
-
-
-
- try? container.encodeIfPresent(discountMeta, forKey: .discountMeta)
-
-
-
-
- try? container.encodeIfPresent(discountApplied, forKey: .discountApplied)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationInventorySellerResponseSchema
- Used By: Catalog
- */
-
- class ApplicationInventorySellerResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var addedOnStore: String?
-
- public var brand: BrandMeta
-
- public var company: CompanyMeta
-
- public var countryOfOrigin: String
-
- public var createdBy: RequestUserSchema?
-
- public var dimension: DimensionResponseSchema
-
- public var expirationDate: String?
-
- public var fragile: Bool
-
- public var fyndArticleCode: String
-
- public var fyndItemCode: String
-
- public var fyndMeta: [String: Any]?
-
- public var identifier: [String: Any]
-
- public var isActive: Bool?
-
- public var isSet: Bool?
-
- public var itemId: Int
-
- public var manufacturer: ManufacturerResponseSchema
-
- public var meta: [String: Any]?
-
- public var modifiedBy: RequestUserSchema?
-
- public var price: PriceMeta
-
- public var quantities: Quantities?
-
- public var rawMeta: [String: Any]?
-
- public var returnConfig: InventoryReturnConfig?
-
- public var sellerIdentifier: String
-
- public var set: InventorySet?
-
- public var size: String
-
- public var stage: String?
-
- public var store: StoreMeta
-
- public var tags: [String]?
-
- public var taxIdentifier: TaxIdentifier?
-
- public var totalQuantity: Int
-
- public var traceId: String?
-
- public var trackInventory: Bool?
-
- public var trader: [Trader]?
-
- public var uid: String
-
- public var weight: WeightResponseSchema
-
- public var dateMeta: DateMeta?
-
- public var platforms: [String: Any]?
-
- public var priceMarked: Double?
-
- public var priceEffective: Double?
-
- public var currency: String?
-
- public var priceSelling: Double?
-
- public var discountMeta: [String: Any]?
-
- public var discountApplied: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case addedOnStore = "added_on_store"
-
- case brand = "brand"
-
- case company = "company"
-
- case countryOfOrigin = "country_of_origin"
-
- case createdBy = "created_by"
-
- case dimension = "dimension"
-
- case expirationDate = "expiration_date"
-
- case fragile = "fragile"
-
- case fyndArticleCode = "fynd_article_code"
-
- case fyndItemCode = "fynd_item_code"
-
- case fyndMeta = "fynd_meta"
-
- case identifier = "identifier"
-
- case isActive = "is_active"
-
- case isSet = "is_set"
-
- case itemId = "item_id"
-
- case manufacturer = "manufacturer"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case price = "price"
-
- case quantities = "quantities"
-
- case rawMeta = "raw_meta"
-
- case returnConfig = "return_config"
-
- case sellerIdentifier = "seller_identifier"
-
- case set = "set"
-
- case size = "size"
-
- case stage = "stage"
-
- case store = "store"
-
- case tags = "tags"
-
- case taxIdentifier = "tax_identifier"
-
- case totalQuantity = "total_quantity"
-
- case traceId = "trace_id"
-
- case trackInventory = "track_inventory"
-
- case trader = "trader"
-
- case uid = "uid"
-
- case weight = "weight"
-
- case dateMeta = "date_meta"
-
- case platforms = "platforms"
-
- case priceMarked = "price_marked"
-
- case priceEffective = "price_effective"
-
- case currency = "currency"
-
- case priceSelling = "price_selling"
-
- case discountMeta = "discount_meta"
-
- case discountApplied = "discount_applied"
-
- }
-
- public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSchema? = nil, currency: String? = nil, dateMeta: DateMeta? = nil, dimension: DimensionResponseSchema, discountApplied: [String: Any]? = nil, discountMeta: [String: Any]? = nil, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponseSchema, meta: [String: Any]? = nil, modifiedBy: RequestUserSchema? = nil, platforms: [String: Any]? = nil, price: PriceMeta, priceEffective: Double? = nil, priceMarked: Double? = nil, priceSelling: Double? = nil, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: InventoryReturnConfig? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader]? = nil, uid: String, weight: WeightResponseSchema, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.addedOnStore = addedOnStore
-
- self.brand = brand
-
- self.company = company
-
- self.countryOfOrigin = countryOfOrigin
-
- self.createdBy = createdBy
-
- self.dimension = dimension
-
- self.expirationDate = expirationDate
-
- self.fragile = fragile
-
- self.fyndArticleCode = fyndArticleCode
-
- self.fyndItemCode = fyndItemCode
-
- self.fyndMeta = fyndMeta
-
- self.identifier = identifier
-
- self.isActive = isActive
-
- self.isSet = isSet
-
- self.itemId = itemId
-
- self.manufacturer = manufacturer
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.price = price
-
- self.quantities = quantities
-
- self.rawMeta = rawMeta
-
- self.returnConfig = returnConfig
-
- self.sellerIdentifier = sellerIdentifier
-
- self.set = set
-
- self.size = size
-
- self.stage = stage
-
- self.store = store
-
- self.tags = tags
-
- self.taxIdentifier = taxIdentifier
-
- self.totalQuantity = totalQuantity
-
- self.traceId = traceId
-
- self.trackInventory = trackInventory
-
- self.trader = trader
-
- self.uid = uid
-
- self.weight = weight
-
- self.dateMeta = dateMeta
-
- self.platforms = platforms
-
- self.priceMarked = priceMarked
-
- self.priceEffective = priceEffective
-
- self.currency = currency
-
- self.priceSelling = priceSelling
-
- self.discountMeta = discountMeta
-
- self.discountApplied = discountApplied
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brand = try container.decode(BrandMeta.self, forKey: .brand)
-
-
-
-
- company = try container.decode(CompanyMeta.self, forKey: .company)
-
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- dimension = try container.decode(DimensionResponseSchema.self, forKey: .dimension)
-
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- fragile = try container.decode(Bool.self, forKey: .fragile)
-
-
-
-
- fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
-
-
-
-
- fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
-
-
-
-
- do {
- fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- manufacturer = try container.decode(ManufacturerResponseSchema.self, forKey: .manufacturer)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- price = try container.decode(PriceMeta.self, forKey: .price)
-
-
-
-
- do {
- quantities = try container.decode(Quantities.self, forKey: .quantities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnConfig = try container.decode(InventoryReturnConfig.self, forKey: .returnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- store = try container.decode(StoreMeta.self, forKey: .store)
-
-
-
-
- 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 {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
-
-
-
- do {
- traceId = try container.decode(String.self, forKey: .traceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
-
- weight = try container.decode(WeightResponseSchema.self, forKey: .weight)
-
-
-
-
- do {
- dateMeta = try container.decode(DateMeta.self, forKey: .dateMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platforms = try container.decode([String: Any].self, forKey: .platforms)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- priceSelling = try container.decode(Double.self, forKey: .priceSelling)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountMeta = try container.decode([String: Any].self, forKey: .discountMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountApplied = try container.decode([String: Any].self, forKey: .discountApplied)
-
- } 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(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(fragile, forKey: .fragile)
-
-
-
-
- try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
-
-
-
-
- try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
-
-
-
-
- try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isSet, forKey: .isSet)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(quantities, forKey: .quantities)
-
-
-
-
- try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(set, forKey: .set)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(traceId, forKey: .traceId)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(trader, forKey: .trader)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(dateMeta, forKey: .dateMeta)
-
-
-
-
- try? container.encodeIfPresent(platforms, forKey: .platforms)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(priceSelling, forKey: .priceSelling)
-
-
-
-
- try? container.encodeIfPresent(discountMeta, forKey: .discountMeta)
-
-
-
-
- try? container.encodeIfPresent(discountApplied, forKey: .discountApplied)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationLocationAddressSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationLocationAddressSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b402552186..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationLocationAddressSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationLocationAddressSchema
- Used By: Catalog
- */
-
- class ApplicationLocationAddressSchema: Codable {
-
-
- public var address1: String?
-
- public var address2: String?
-
- public var pincode: Int?
-
- public var city: String?
-
- public var country: String?
-
- public var state: String?
-
- public var latLong: LatLong?
-
- public var countryCode: String?
-
- public var addressMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address1 = "address1"
-
- case address2 = "address2"
-
- case pincode = "pincode"
-
- case city = "city"
-
- case country = "country"
-
- case state = "state"
-
- case latLong = "lat_long"
-
- case countryCode = "country_code"
-
- case addressMeta = "address_meta"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressMeta: [String: Any]? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, latLong: LatLong? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.address1 = address1
-
- self.address2 = address2
-
- self.pincode = pincode
-
- self.city = city
-
- self.country = country
-
- self.state = state
-
- self.latLong = latLong
-
- self.countryCode = countryCode
-
- self.addressMeta = addressMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- 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 {
- latLong = try container.decode(LatLong.self, forKey: .latLong)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- addressMeta = try container.decode([String: Any].self, forKey: .addressMeta)
-
- } 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(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(addressMeta, forKey: .addressMeta)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationLocationAddressSchema
- Used By: Catalog
- */
-
- class ApplicationLocationAddressSchema: Codable {
-
-
- public var address1: String?
-
- public var address2: String?
-
- public var pincode: Int?
-
- public var city: String?
-
- public var country: String?
-
- public var state: String?
-
- public var latLong: LatLong?
-
- public var countryCode: String?
-
- public var addressMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address1 = "address1"
-
- case address2 = "address2"
-
- case pincode = "pincode"
-
- case city = "city"
-
- case country = "country"
-
- case state = "state"
-
- case latLong = "lat_long"
-
- case countryCode = "country_code"
-
- case addressMeta = "address_meta"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressMeta: [String: Any]? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, latLong: LatLong? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.address1 = address1
-
- self.address2 = address2
-
- self.pincode = pincode
-
- self.city = city
-
- self.country = country
-
- self.state = state
-
- self.latLong = latLong
-
- self.countryCode = countryCode
-
- self.addressMeta = addressMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- 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 {
- latLong = try container.decode(LatLong.self, forKey: .latLong)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- addressMeta = try container.decode([String: Any].self, forKey: .addressMeta)
-
- } 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(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(latLong, forKey: .latLong)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(addressMeta, forKey: .addressMeta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationProductCategoryItemCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationProductCategoryItemCatalogPlatformModel.swift
deleted file mode 100644
index bb1a531406..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationProductCategoryItemCatalogPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationProductCategoryItem
- Used By: Catalog
- */
-
- class ApplicationProductCategoryItem: Codable {
-
-
- public var id: Int?
-
- public var uid: Int?
-
- public var name: String?
-
- public var slug: String?
-
- public var logo: ApplicationProductMedia?
-
- public var action: PageAction?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case uid = "uid"
-
- case name = "name"
-
- case slug = "slug"
-
- case logo = "logo"
-
- case action = "action"
-
- }
-
- public init(action: PageAction? = nil, id: Int? = nil, logo: ApplicationProductMedia? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.id = id
-
- self.uid = uid
-
- self.name = name
-
- self.slug = slug
-
- self.logo = logo
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- logo = try container.decode(ApplicationProductMedia.self, forKey: .logo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(PageAction.self, forKey: .action)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationProductCategoryItem
- Used By: Catalog
- */
-
- class ApplicationProductCategoryItem: Codable {
-
-
- public var id: Int?
-
- public var uid: Int?
-
- public var name: String?
-
- public var slug: String?
-
- public var logo: ApplicationProductMedia?
-
- public var action: PageAction?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case uid = "uid"
-
- case name = "name"
-
- case slug = "slug"
-
- case logo = "logo"
-
- case action = "action"
-
- }
-
- public init(action: PageAction? = nil, id: Int? = nil, logo: ApplicationProductMedia? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.id = id
-
- self.uid = uid
-
- self.name = name
-
- self.slug = slug
-
- self.logo = logo
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- logo = try container.decode(ApplicationProductMedia.self, forKey: .logo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(PageAction.self, forKey: .action)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2850b33777
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,286 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ApplicationProductListingResponse
+ Used By: Catalog
+ */
+
+ class ApplicationProductListingResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var items: [ProductListingDetail]?
+
+ public var operators: [String: Any]?
+
+ public var page: Page
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case operators = "operators"
+
+ case page = "page"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, operators: [String: Any]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.operators = operators
+
+ self.page = page
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ operators = try container.decode([String: Any].self, forKey: .operators)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ApplicationProductListingResponse
+ Used By: Catalog
+ */
+
+ class ApplicationProductListingResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var items: [ProductListingDetail]?
+
+ public var operators: [String: Any]?
+
+ public var page: Page
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case operators = "operators"
+
+ case page = "page"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, operators: [String: Any]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.operators = operators
+
+ self.page = page
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ operators = try container.decode([String: Any].self, forKey: .operators)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 1f982ffedc..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationProductListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationProductListingResponseSchema
- Used By: Catalog
- */
-
- class ApplicationProductListingResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var items: [ApplicationProductsSchema]?
-
- public var operators: [String: Any]?
-
- public var page: Page
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case operators = "operators"
-
- case page = "page"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, items: [ApplicationProductsSchema]? = nil, operators: [String: Any]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.operators = operators
-
- self.page = page
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ApplicationProductsSchema].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- operators = try container.decode([String: Any].self, forKey: .operators)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationProductListingResponseSchema
- Used By: Catalog
- */
-
- class ApplicationProductListingResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var items: [ApplicationProductsSchema]?
-
- public var operators: [String: Any]?
-
- public var page: Page
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case operators = "operators"
-
- case page = "page"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, items: [ApplicationProductsSchema]? = nil, operators: [String: Any]? = nil, page: Page, sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.operators = operators
-
- self.page = page
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ApplicationProductsSchema].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- operators = try container.decode([String: Any].self, forKey: .operators)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationProductMediaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationProductMediaCatalogPlatformModel.swift
deleted file mode 100644
index 9507703ce4..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationProductMediaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationProductMedia
- Used By: Catalog
- */
-
- class ApplicationProductMedia: Codable {
-
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(type: String? = nil, url: String? = nil) {
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationProductMedia
- Used By: Catalog
- */
-
- class ApplicationProductMedia: Codable {
-
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(type: String? = nil, url: String? = nil) {
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ApplicationProductsSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ApplicationProductsSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 04dc99298f..0000000000
--- a/Sources/code/platform/Models/Catalog/ApplicationProductsSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,2578 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ApplicationProductsSchema
- Used By: Catalog
- */
-
- class ApplicationProductsSchema: Codable {
-
-
- public var attributes: [String: Any]?
-
- public var brand: ProductBrand?
-
- public var color: String?
-
- public var description: String?
-
- public var discount: String?
-
- public var hasVariant: Bool?
-
- public var highlights: [String]?
-
- public var imageNature: String
-
- public var itemCode: String
-
- public var itemType: String
-
- public var medias: [Media]?
-
- public var name: String
-
- public var price: ProductListingPrice?
-
- public var productOnlineDate: String?
-
- public var promoMeta: [String: Any]?
-
- public var rating: Double?
-
- public var ratingCount: Int?
-
- public var sellable: Bool?
-
- public var shortDescription: String?
-
- public var similars: [String]?
-
- public var slug: String
-
- public var teaserTag: [String: Any]?
-
- public var tryouts: [String]?
-
- public var type: String?
-
- public var uid: Int
-
- public var popularity: Int?
-
- public var brandUid: Int
-
- public var categoryUid: Int
-
- public var verificationStatus: Int?
-
- public var channelIdentifier: String?
-
- public var categorySlug: String?
-
- public var sizeGuide: String?
-
- public var l3Categories: [Int]
-
- public var storeIds: [Int]?
-
- public var companyIds: [Int]?
-
- public var departments: [Int]
-
- public var tags: [String]?
-
- public var l3CategoryNames: [String]?
-
- public var sizes: [String]?
-
- public var productGroupTag: [String]?
-
- public var multiSize: Bool
-
- public var isGift: Bool
-
- public var isCod: Bool
-
- public var isDependent: Bool
-
- public var isAvailable: Bool
-
- public var moq: ApplicationItemMOQ
-
- public var seo: ApplicationItemSEO
-
- public var variants: [String: Any]?
-
- public var variantMedia: [String: Any]?
-
- public var variantGroup: [String: Any]?
-
- public var multiCategories: [MultiCategoriesSchema]?
-
- public var templateTag: String?
-
- public var netQuantity: [String: Any]?
-
- public var customOrder: CustomOrder?
-
- public var countryOfOrigin: String
-
- public var customJson: [String: Any]?
-
- public var identifiers: [String]?
-
- public var itemId: Int?
-
- public var customMeta: [CustomMeta]?
-
- public var discountPercentage: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case attributes = "attributes"
-
- case brand = "brand"
-
- case color = "color"
-
- case description = "description"
-
- case discount = "discount"
-
- case hasVariant = "has_variant"
-
- case highlights = "highlights"
-
- case imageNature = "image_nature"
-
- case itemCode = "item_code"
-
- case itemType = "item_type"
-
- case medias = "medias"
-
- case name = "name"
-
- case price = "price"
-
- case productOnlineDate = "product_online_date"
-
- case promoMeta = "promo_meta"
-
- case rating = "rating"
-
- case ratingCount = "rating_count"
-
- case sellable = "sellable"
-
- case shortDescription = "short_description"
-
- case similars = "similars"
-
- case slug = "slug"
-
- case teaserTag = "teaser_tag"
-
- case tryouts = "tryouts"
-
- case type = "type"
-
- case uid = "uid"
-
- case popularity = "popularity"
-
- case brandUid = "brand_uid"
-
- case categoryUid = "category_uid"
-
- case verificationStatus = "verification_status"
-
- case channelIdentifier = "channel_identifier"
-
- case categorySlug = "category_slug"
-
- case sizeGuide = "size_guide"
-
- case l3Categories = "l3_categories"
-
- case storeIds = "store_ids"
-
- case companyIds = "company_ids"
-
- case departments = "departments"
-
- case tags = "tags"
-
- case l3CategoryNames = "l3_category_names"
-
- case sizes = "sizes"
-
- case productGroupTag = "product_group_tag"
-
- case multiSize = "multi_size"
-
- case isGift = "is_gift"
-
- case isCod = "is_cod"
-
- case isDependent = "is_dependent"
-
- case isAvailable = "is_available"
-
- case moq = "moq"
-
- case seo = "seo"
-
- case variants = "variants"
-
- case variantMedia = "variant_media"
-
- case variantGroup = "variant_group"
-
- case multiCategories = "multi_categories"
-
- case templateTag = "template_tag"
-
- case netQuantity = "net_quantity"
-
- case customOrder = "custom_order"
-
- case countryOfOrigin = "country_of_origin"
-
- case customJson = "_custom_json"
-
- case identifiers = "identifiers"
-
- case itemId = "item_id"
-
- case customMeta = "_custom_meta"
-
- case discountPercentage = "discount_percentage"
-
- }
-
- public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, brandUid: Int, categorySlug: String? = nil, categoryUid: Int, channelIdentifier: String? = nil, color: String? = nil, companyIds: [Int]? = nil, countryOfOrigin: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, discount: String? = nil, discountPercentage: Int? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String, isAvailable: Bool, isCod: Bool, isDependent: Bool, isGift: Bool, itemCode: String, itemId: Int? = nil, itemType: String, l3Categories: [Int], l3CategoryNames: [String]? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ, multiCategories: [MultiCategoriesSchema]? = nil, multiSize: Bool, name: String, netQuantity: [String: Any]? = nil, popularity: Int? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, sizeGuide: String? = nil, slug: String, storeIds: [Int]? = nil, tags: [String]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verificationStatus: Int? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMeta]? = nil) {
-
- self.attributes = attributes
-
- self.brand = brand
-
- self.color = color
-
- self.description = description
-
- self.discount = discount
-
- self.hasVariant = hasVariant
-
- self.highlights = highlights
-
- self.imageNature = imageNature
-
- self.itemCode = itemCode
-
- self.itemType = itemType
-
- self.medias = medias
-
- self.name = name
-
- self.price = price
-
- self.productOnlineDate = productOnlineDate
-
- self.promoMeta = promoMeta
-
- self.rating = rating
-
- self.ratingCount = ratingCount
-
- self.sellable = sellable
-
- self.shortDescription = shortDescription
-
- self.similars = similars
-
- self.slug = slug
-
- self.teaserTag = teaserTag
-
- self.tryouts = tryouts
-
- self.type = type
-
- self.uid = uid
-
- self.popularity = popularity
-
- self.brandUid = brandUid
-
- self.categoryUid = categoryUid
-
- self.verificationStatus = verificationStatus
-
- self.channelIdentifier = channelIdentifier
-
- self.categorySlug = categorySlug
-
- self.sizeGuide = sizeGuide
-
- self.l3Categories = l3Categories
-
- self.storeIds = storeIds
-
- self.companyIds = companyIds
-
- self.departments = departments
-
- self.tags = tags
-
- self.l3CategoryNames = l3CategoryNames
-
- self.sizes = sizes
-
- self.productGroupTag = productGroupTag
-
- self.multiSize = multiSize
-
- self.isGift = isGift
-
- self.isCod = isCod
-
- self.isDependent = isDependent
-
- self.isAvailable = isAvailable
-
- self.moq = moq
-
- self.seo = seo
-
- self.variants = variants
-
- self.variantMedia = variantMedia
-
- self.variantGroup = variantGroup
-
- self.multiCategories = multiCategories
-
- self.templateTag = templateTag
-
- self.netQuantity = netQuantity
-
- self.customOrder = customOrder
-
- self.countryOfOrigin = countryOfOrigin
-
- self.customJson = customJson
-
- self.identifiers = identifiers
-
- self.itemId = itemId
-
- self.customMeta = customMeta
-
- self.discountPercentage = discountPercentage
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.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 {
-
- }
-
-
-
- do {
- brand = try container.decode(ProductBrand.self, forKey: .brand)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- imageNature = try container.decode(String.self, forKey: .imageNature)
-
-
-
-
- itemCode = try container.decode(String.self, forKey: .itemCode)
-
-
-
-
- itemType = try container.decode(String.self, forKey: .itemType)
-
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } 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 {
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- uid = try container.decode(Int.self, forKey: .uid)
-
-
-
-
- do {
- popularity = try container.decode(Int.self, forKey: .popularity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brandUid = try container.decode(Int.self, forKey: .brandUid)
-
-
-
-
- categoryUid = try container.decode(Int.self, forKey: .categoryUid)
-
-
-
-
- do {
- verificationStatus = try container.decode(Int.self, forKey: .verificationStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- l3Categories = try container.decode([Int].self, forKey: .l3Categories)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- companyIds = try container.decode([Int].self, forKey: .companyIds)
-
- } 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 {
- 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 {
- l3CategoryNames = try container.decode([String].self, forKey: .l3CategoryNames)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- multiSize = try container.decode(Bool.self, forKey: .multiSize)
-
-
-
-
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
-
-
-
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
-
-
-
- isDependent = try container.decode(Bool.self, forKey: .isDependent)
-
-
-
-
- isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
-
-
-
-
- moq = try container.decode(ApplicationItemMOQ.self, forKey: .moq)
-
-
-
-
- seo = try container.decode(ApplicationItemSEO.self, forKey: .seo)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- variantMedia = try container.decode([String: Any].self, forKey: .variantMedia)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantGroup = try container.decode([String: Any].self, forKey: .variantGroup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- multiCategories = try container.decode([MultiCategoriesSchema].self, forKey: .multiCategories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- netQuantity = try container.decode([String: Any].self, forKey: .netQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- 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 {
- identifiers = try container.decode([String].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([CustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountPercentage = try container.decode(Int.self, forKey: .discountPercentage)
-
- } 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(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(color, forKey: .color)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(hasVariant, forKey: .hasVariant)
-
-
-
-
- try? container.encodeIfPresent(highlights, forKey: .highlights)
-
-
-
-
- try? container.encodeIfPresent(imageNature, forKey: .imageNature)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
-
-
-
-
- try? container.encodeIfPresent(promoMeta, forKey: .promoMeta)
-
-
-
-
- try? container.encodeIfPresent(rating, forKey: .rating)
-
-
-
-
- try? container.encodeIfPresent(ratingCount, forKey: .ratingCount)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(shortDescription, forKey: .shortDescription)
-
-
-
-
- try? container.encodeIfPresent(similars, forKey: .similars)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
-
-
- try? container.encodeIfPresent(tryouts, forKey: .tryouts)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(popularity, forKey: .popularity)
-
-
-
-
- try? container.encodeIfPresent(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(categoryUid, forKey: .categoryUid)
-
-
-
-
- try? container.encodeIfPresent(verificationStatus, forKey: .verificationStatus)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(categorySlug, forKey: .categorySlug)
-
-
-
-
- try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide)
-
-
-
-
- try? container.encodeIfPresent(l3Categories, forKey: .l3Categories)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(companyIds, forKey: .companyIds)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(l3CategoryNames, forKey: .l3CategoryNames)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag)
-
-
-
-
- try? container.encodeIfPresent(multiSize, forKey: .multiSize)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isDependent, forKey: .isDependent)
-
-
-
-
- try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(variants, forKey: .variants)
-
-
-
-
- try? container.encodeIfPresent(variantMedia, forKey: .variantMedia)
-
-
-
-
- try? container.encodeIfPresent(variantGroup, forKey: .variantGroup)
-
-
-
-
- try? container.encodeIfPresent(multiCategories, forKey: .multiCategories)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
-
-
- try? container.encodeIfPresent(netQuantity, forKey: .netQuantity)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(discountPercentage, forKey: .discountPercentage)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ApplicationProductsSchema
- Used By: Catalog
- */
-
- class ApplicationProductsSchema: Codable {
-
-
- public var attributes: [String: Any]?
-
- public var brand: ProductBrand?
-
- public var color: String?
-
- public var description: String?
-
- public var discount: String?
-
- public var hasVariant: Bool?
-
- public var highlights: [String]?
-
- public var imageNature: String
-
- public var itemCode: String
-
- public var itemType: String
-
- public var medias: [Media]?
-
- public var name: String
-
- public var price: ProductListingPrice?
-
- public var productOnlineDate: String?
-
- public var promoMeta: [String: Any]?
-
- public var rating: Double?
-
- public var ratingCount: Int?
-
- public var sellable: Bool?
-
- public var shortDescription: String?
-
- public var similars: [String]?
-
- public var slug: String
-
- public var teaserTag: [String: Any]?
-
- public var tryouts: [String]?
-
- public var type: String?
-
- public var uid: Int
-
- public var popularity: Int?
-
- public var brandUid: Int
-
- public var categoryUid: Int
-
- public var verificationStatus: Int?
-
- public var channelIdentifier: String?
-
- public var categorySlug: String?
-
- public var sizeGuide: String?
-
- public var l3Categories: [Int]
-
- public var storeIds: [Int]?
-
- public var companyIds: [Int]?
-
- public var departments: [Int]
-
- public var tags: [String]?
-
- public var l3CategoryNames: [String]?
-
- public var sizes: [String]?
-
- public var productGroupTag: [String]?
-
- public var multiSize: Bool
-
- public var isGift: Bool
-
- public var isCod: Bool
-
- public var isDependent: Bool
-
- public var isAvailable: Bool
-
- public var moq: ApplicationItemMOQ
-
- public var seo: ApplicationItemSEO
-
- public var variants: [String: Any]?
-
- public var variantMedia: [String: Any]?
-
- public var variantGroup: [String: Any]?
-
- public var multiCategories: [MultiCategoriesSchema]?
-
- public var templateTag: String?
-
- public var netQuantity: [String: Any]?
-
- public var customOrder: CustomOrder?
-
- public var countryOfOrigin: String
-
- public var customJson: [String: Any]?
-
- public var identifiers: [String]?
-
- public var itemId: Int?
-
- public var customMeta: [CustomMeta]?
-
- public var discountPercentage: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case attributes = "attributes"
-
- case brand = "brand"
-
- case color = "color"
-
- case description = "description"
-
- case discount = "discount"
-
- case hasVariant = "has_variant"
-
- case highlights = "highlights"
-
- case imageNature = "image_nature"
-
- case itemCode = "item_code"
-
- case itemType = "item_type"
-
- case medias = "medias"
-
- case name = "name"
-
- case price = "price"
-
- case productOnlineDate = "product_online_date"
-
- case promoMeta = "promo_meta"
-
- case rating = "rating"
-
- case ratingCount = "rating_count"
-
- case sellable = "sellable"
-
- case shortDescription = "short_description"
-
- case similars = "similars"
-
- case slug = "slug"
-
- case teaserTag = "teaser_tag"
-
- case tryouts = "tryouts"
-
- case type = "type"
-
- case uid = "uid"
-
- case popularity = "popularity"
-
- case brandUid = "brand_uid"
-
- case categoryUid = "category_uid"
-
- case verificationStatus = "verification_status"
-
- case channelIdentifier = "channel_identifier"
-
- case categorySlug = "category_slug"
-
- case sizeGuide = "size_guide"
-
- case l3Categories = "l3_categories"
-
- case storeIds = "store_ids"
-
- case companyIds = "company_ids"
-
- case departments = "departments"
-
- case tags = "tags"
-
- case l3CategoryNames = "l3_category_names"
-
- case sizes = "sizes"
-
- case productGroupTag = "product_group_tag"
-
- case multiSize = "multi_size"
-
- case isGift = "is_gift"
-
- case isCod = "is_cod"
-
- case isDependent = "is_dependent"
-
- case isAvailable = "is_available"
-
- case moq = "moq"
-
- case seo = "seo"
-
- case variants = "variants"
-
- case variantMedia = "variant_media"
-
- case variantGroup = "variant_group"
-
- case multiCategories = "multi_categories"
-
- case templateTag = "template_tag"
-
- case netQuantity = "net_quantity"
-
- case customOrder = "custom_order"
-
- case countryOfOrigin = "country_of_origin"
-
- case customJson = "_custom_json"
-
- case identifiers = "identifiers"
-
- case itemId = "item_id"
-
- case customMeta = "_custom_meta"
-
- case discountPercentage = "discount_percentage"
-
- }
-
- public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, brandUid: Int, categorySlug: String? = nil, categoryUid: Int, channelIdentifier: String? = nil, color: String? = nil, companyIds: [Int]? = nil, countryOfOrigin: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, discount: String? = nil, discountPercentage: Int? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String, isAvailable: Bool, isCod: Bool, isDependent: Bool, isGift: Bool, itemCode: String, itemId: Int? = nil, itemType: String, l3Categories: [Int], l3CategoryNames: [String]? = nil, medias: [Media]? = nil, moq: ApplicationItemMOQ, multiCategories: [MultiCategoriesSchema]? = nil, multiSize: Bool, name: String, netQuantity: [String: Any]? = nil, popularity: Int? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, sizeGuide: String? = nil, slug: String, storeIds: [Int]? = nil, tags: [String]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verificationStatus: Int? = nil, customJson: [String: Any]? = nil, customMeta: [CustomMeta]? = nil) {
-
- self.attributes = attributes
-
- self.brand = brand
-
- self.color = color
-
- self.description = description
-
- self.discount = discount
-
- self.hasVariant = hasVariant
-
- self.highlights = highlights
-
- self.imageNature = imageNature
-
- self.itemCode = itemCode
-
- self.itemType = itemType
-
- self.medias = medias
-
- self.name = name
-
- self.price = price
-
- self.productOnlineDate = productOnlineDate
-
- self.promoMeta = promoMeta
-
- self.rating = rating
-
- self.ratingCount = ratingCount
-
- self.sellable = sellable
-
- self.shortDescription = shortDescription
-
- self.similars = similars
-
- self.slug = slug
-
- self.teaserTag = teaserTag
-
- self.tryouts = tryouts
-
- self.type = type
-
- self.uid = uid
-
- self.popularity = popularity
-
- self.brandUid = brandUid
-
- self.categoryUid = categoryUid
-
- self.verificationStatus = verificationStatus
-
- self.channelIdentifier = channelIdentifier
-
- self.categorySlug = categorySlug
-
- self.sizeGuide = sizeGuide
-
- self.l3Categories = l3Categories
-
- self.storeIds = storeIds
-
- self.companyIds = companyIds
-
- self.departments = departments
-
- self.tags = tags
-
- self.l3CategoryNames = l3CategoryNames
-
- self.sizes = sizes
-
- self.productGroupTag = productGroupTag
-
- self.multiSize = multiSize
-
- self.isGift = isGift
-
- self.isCod = isCod
-
- self.isDependent = isDependent
-
- self.isAvailable = isAvailable
-
- self.moq = moq
-
- self.seo = seo
-
- self.variants = variants
-
- self.variantMedia = variantMedia
-
- self.variantGroup = variantGroup
-
- self.multiCategories = multiCategories
-
- self.templateTag = templateTag
-
- self.netQuantity = netQuantity
-
- self.customOrder = customOrder
-
- self.countryOfOrigin = countryOfOrigin
-
- self.customJson = customJson
-
- self.identifiers = identifiers
-
- self.itemId = itemId
-
- self.customMeta = customMeta
-
- self.discountPercentage = discountPercentage
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.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 {
-
- }
-
-
-
- do {
- brand = try container.decode(ProductBrand.self, forKey: .brand)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- imageNature = try container.decode(String.self, forKey: .imageNature)
-
-
-
-
- itemCode = try container.decode(String.self, forKey: .itemCode)
-
-
-
-
- itemType = try container.decode(String.self, forKey: .itemType)
-
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } 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 {
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- uid = try container.decode(Int.self, forKey: .uid)
-
-
-
-
- do {
- popularity = try container.decode(Int.self, forKey: .popularity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brandUid = try container.decode(Int.self, forKey: .brandUid)
-
-
-
-
- categoryUid = try container.decode(Int.self, forKey: .categoryUid)
-
-
-
-
- do {
- verificationStatus = try container.decode(Int.self, forKey: .verificationStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- l3Categories = try container.decode([Int].self, forKey: .l3Categories)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- companyIds = try container.decode([Int].self, forKey: .companyIds)
-
- } 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 {
- 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 {
- l3CategoryNames = try container.decode([String].self, forKey: .l3CategoryNames)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- multiSize = try container.decode(Bool.self, forKey: .multiSize)
-
-
-
-
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
-
-
-
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
-
-
-
- isDependent = try container.decode(Bool.self, forKey: .isDependent)
-
-
-
-
- isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
-
-
-
-
- moq = try container.decode(ApplicationItemMOQ.self, forKey: .moq)
-
-
-
-
- seo = try container.decode(ApplicationItemSEO.self, forKey: .seo)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- variantMedia = try container.decode([String: Any].self, forKey: .variantMedia)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantGroup = try container.decode([String: Any].self, forKey: .variantGroup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- multiCategories = try container.decode([MultiCategoriesSchema].self, forKey: .multiCategories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- netQuantity = try container.decode([String: Any].self, forKey: .netQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- 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 {
- identifiers = try container.decode([String].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([CustomMeta].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountPercentage = try container.decode(Int.self, forKey: .discountPercentage)
-
- } 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(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(color, forKey: .color)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(hasVariant, forKey: .hasVariant)
-
-
-
-
- try? container.encodeIfPresent(highlights, forKey: .highlights)
-
-
-
-
- try? container.encodeIfPresent(imageNature, forKey: .imageNature)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
-
-
-
-
- try? container.encodeIfPresent(promoMeta, forKey: .promoMeta)
-
-
-
-
- try? container.encodeIfPresent(rating, forKey: .rating)
-
-
-
-
- try? container.encodeIfPresent(ratingCount, forKey: .ratingCount)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(shortDescription, forKey: .shortDescription)
-
-
-
-
- try? container.encodeIfPresent(similars, forKey: .similars)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
-
-
- try? container.encodeIfPresent(tryouts, forKey: .tryouts)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(popularity, forKey: .popularity)
-
-
-
-
- try? container.encodeIfPresent(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(categoryUid, forKey: .categoryUid)
-
-
-
-
- try? container.encodeIfPresent(verificationStatus, forKey: .verificationStatus)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(categorySlug, forKey: .categorySlug)
-
-
-
-
- try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide)
-
-
-
-
- try? container.encodeIfPresent(l3Categories, forKey: .l3Categories)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(companyIds, forKey: .companyIds)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(l3CategoryNames, forKey: .l3CategoryNames)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag)
-
-
-
-
- try? container.encodeIfPresent(multiSize, forKey: .multiSize)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isDependent, forKey: .isDependent)
-
-
-
-
- try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(variants, forKey: .variants)
-
-
-
-
- try? container.encodeIfPresent(variantMedia, forKey: .variantMedia)
-
-
-
-
- try? container.encodeIfPresent(variantGroup, forKey: .variantGroup)
-
-
-
-
- try? container.encodeIfPresent(multiCategories, forKey: .multiCategories)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
-
-
- try? container.encodeIfPresent(netQuantity, forKey: .netQuantity)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(discountPercentage, forKey: .discountPercentage)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ArticleStoreResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ArticleStoreResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..251964bb0f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ArticleStoreResponseCatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ArticleStoreResponse
+ Used By: Catalog
+ */
+
+ class ArticleStoreResponse: Codable {
+
+
+ public var name: String?
+
+ public var storeCode: String?
+
+ public var storeType: String?
+
+ public var uid: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case storeCode = "store_code"
+
+ case storeType = "store_type"
+
+ case uid = "uid"
+
+ }
+
+ public init(name: String? = nil, storeCode: String? = nil, storeType: String? = nil, uid: Int? = nil) {
+
+ self.name = name
+
+ self.storeCode = storeCode
+
+ self.storeType = storeType
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(storeCode, forKey: .storeCode)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ArticleStoreResponse
+ Used By: Catalog
+ */
+
+ class ArticleStoreResponse: Codable {
+
+
+ public var name: String?
+
+ public var storeCode: String?
+
+ public var storeType: String?
+
+ public var uid: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case storeCode = "store_code"
+
+ case storeType = "store_type"
+
+ case uid = "uid"
+
+ }
+
+ public init(name: String? = nil, storeCode: String? = nil, storeType: String? = nil, uid: Int? = nil) {
+
+ self.name = name
+
+ self.storeCode = storeCode
+
+ self.storeType = storeType
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(storeCode, forKey: .storeCode)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ArticleStoreResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ArticleStoreResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 8c7ad139e6..0000000000
--- a/Sources/code/platform/Models/Catalog/ArticleStoreResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ArticleStoreResponseSchema
- Used By: Catalog
- */
-
- class ArticleStoreResponseSchema: Codable {
-
-
- public var name: String?
-
- public var storeCode: String?
-
- public var storeType: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case storeCode = "store_code"
-
- case storeType = "store_type"
-
- case uid = "uid"
-
- }
-
- public init(name: String? = nil, storeCode: String? = nil, storeType: String? = nil, uid: Int? = nil) {
-
- self.name = name
-
- self.storeCode = storeCode
-
- self.storeType = storeType
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(storeCode, forKey: .storeCode)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ArticleStoreResponseSchema
- Used By: Catalog
- */
-
- class ArticleStoreResponseSchema: Codable {
-
-
- public var name: String?
-
- public var storeCode: String?
-
- public var storeType: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case storeCode = "store_code"
-
- case storeType = "store_type"
-
- case uid = "uid"
-
- }
-
- public init(name: String? = nil, storeCode: String? = nil, storeType: String? = nil, uid: Int? = nil) {
-
- self.name = name
-
- self.storeCode = storeCode
-
- self.storeType = storeType
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(storeCode, forKey: .storeCode)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AttributeConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AttributeConfigCatalogPlatformModel.swift
deleted file mode 100644
index 639284c12d..0000000000
--- a/Sources/code/platform/Models/Catalog/AttributeConfigCatalogPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AttributeConfig
- Used By: Catalog
- */
-
- class AttributeConfig: Codable {
-
-
- public var displayType: String?
-
- public var isActive: Bool?
-
- public var key: String?
-
- public var name: String?
-
- public var priority: Int?
-
- public var slug: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case displayType = "display_type"
-
- case isActive = "is_active"
-
- case key = "key"
-
- case name = "name"
-
- case priority = "priority"
-
- case slug = "slug"
-
- }
-
- public init(displayType: String? = nil, isActive: Bool? = nil, key: String? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil) {
-
- self.displayType = displayType
-
- self.isActive = isActive
-
- self.key = key
-
- self.name = name
-
- self.priority = priority
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- displayType = try container.decode(String.self, forKey: .displayType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(displayType, forKey: .displayType)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AttributeConfig
- Used By: Catalog
- */
-
- class AttributeConfig: Codable {
-
-
- public var displayType: String?
-
- public var isActive: Bool?
-
- public var key: String?
-
- public var name: String?
-
- public var priority: Int?
-
- public var slug: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case displayType = "display_type"
-
- case isActive = "is_active"
-
- case key = "key"
-
- case name = "name"
-
- case priority = "priority"
-
- case slug = "slug"
-
- }
-
- public init(displayType: String? = nil, isActive: Bool? = nil, key: String? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil) {
-
- self.displayType = displayType
-
- self.isActive = isActive
-
- self.key = key
-
- self.name = name
-
- self.priority = priority
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- displayType = try container.decode(String.self, forKey: .displayType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(displayType, forKey: .displayType)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AttributeDetailCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AttributeDetailCatalogPlatformModel.swift
index b3ac80adf5..49bf6b2802 100644
--- a/Sources/code/platform/Models/Catalog/AttributeDetailCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/AttributeDetailCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class AttributeDetail: Codable {
- public var id: [String]?
+ public var departments: [String]?
public var description: String?
@@ -22,6 +22,8 @@ public extension PlatformClient.Catalog {
public var filters: AttributeMasterFilter?
+ public var id: String?
+
public var isNested: Bool?
public var logo: String?
@@ -37,7 +39,7 @@ public extension PlatformClient.Catalog {
public enum CodingKeys: String, CodingKey {
- case id = "_id"
+ case departments = "departments"
case description = "description"
@@ -47,6 +49,8 @@ public extension PlatformClient.Catalog {
case filters = "filters"
+ case id = "id"
+
case isNested = "is_nested"
case logo = "logo"
@@ -61,9 +65,9 @@ public extension PlatformClient.Catalog {
}
- public init(description: String? = nil, details: AttributeMasterDetails? = nil, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter? = nil, isNested: Bool? = nil, logo: String? = nil, meta: AttributeMasterMeta? = nil, name: String? = nil, schema: AttributeMaster? = nil, slug: String? = nil, id: [String]? = nil) {
+ public init(departments: [String]? = nil, description: String? = nil, details: AttributeMasterDetails? = nil, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter? = nil, id: String? = nil, isNested: Bool? = nil, logo: String? = nil, meta: AttributeMasterMeta? = nil, name: String? = nil, schema: AttributeMaster? = nil, slug: String? = nil) {
- self.id = id
+ self.departments = departments
self.description = description
@@ -73,6 +77,8 @@ public extension PlatformClient.Catalog {
self.filters = filters
+ self.id = id
+
self.isNested = isNested
self.logo = logo
@@ -92,7 +98,7 @@ public extension PlatformClient.Catalog {
do {
- id = try container.decode([String].self, forKey: .id)
+ departments = try container.decode([String].self, forKey: .departments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -151,6 +157,18 @@ public extension PlatformClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
isNested = try container.decode(Bool.self, forKey: .isNested)
@@ -229,7 +247,7 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(departments, forKey: .departments)
@@ -254,6 +272,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
try? container.encodeIfPresent(isNested, forKey: .isNested)
@@ -298,7 +321,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class AttributeDetail: Codable {
- public var id: [String]?
+ public var departments: [String]?
public var description: String?
@@ -308,6 +331,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var filters: AttributeMasterFilter?
+ public var id: String?
+
public var isNested: Bool?
public var logo: String?
@@ -323,7 +348,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public enum CodingKeys: String, CodingKey {
- case id = "_id"
+ case departments = "departments"
case description = "description"
@@ -333,6 +358,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case filters = "filters"
+ case id = "id"
+
case isNested = "is_nested"
case logo = "logo"
@@ -347,9 +374,9 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(description: String? = nil, details: AttributeMasterDetails? = nil, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter? = nil, isNested: Bool? = nil, logo: String? = nil, meta: AttributeMasterMeta? = nil, name: String? = nil, schema: AttributeMaster? = nil, slug: String? = nil, id: [String]? = nil) {
+ public init(departments: [String]? = nil, description: String? = nil, details: AttributeMasterDetails? = nil, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter? = nil, id: String? = nil, isNested: Bool? = nil, logo: String? = nil, meta: AttributeMasterMeta? = nil, name: String? = nil, schema: AttributeMaster? = nil, slug: String? = nil) {
- self.id = id
+ self.departments = departments
self.description = description
@@ -359,6 +386,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.filters = filters
+ self.id = id
+
self.isNested = isNested
self.logo = logo
@@ -378,7 +407,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- id = try container.decode([String].self, forKey: .id)
+ departments = try container.decode([String].self, forKey: .departments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -437,6 +466,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
isNested = try container.decode(Bool.self, forKey: .isNested)
@@ -515,7 +556,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(departments, forKey: .departments)
@@ -540,6 +581,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
try? container.encodeIfPresent(isNested, forKey: .isNested)
diff --git a/Sources/code/platform/Models/Catalog/AttributeMasterSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AttributeMasterSchemaCatalogPlatformModel.swift
deleted file mode 100644
index df61449692..0000000000
--- a/Sources/code/platform/Models/Catalog/AttributeMasterSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,906 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: AttributeMasterSchema
- Used By: Catalog
- */
-
- class AttributeMasterSchema: Codable {
-
-
- public var createdBy: [String: Any]?
-
- public var createdOn: String?
-
- public var departments: [String]
-
- public var description: String?
-
- public var details: AttributeMasterDetails
-
- public var enabledForEndConsumer: Bool?
-
- public var filters: AttributeMasterFilter
-
- public var isNested: Bool?
-
- public var logo: String?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var rawKey: String?
-
- public var schema: AttributeMaster
-
- public var suggestion: String?
-
- public var synonyms: [String: Any]?
-
- public var tags: [String]?
-
- public var unit: String?
-
- public var slug: String
-
- public var variant: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case departments = "departments"
-
- case description = "description"
-
- case details = "details"
-
- case enabledForEndConsumer = "enabled_for_end_consumer"
-
- case filters = "filters"
-
- case isNested = "is_nested"
-
- case logo = "logo"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case rawKey = "raw_key"
-
- case schema = "schema"
-
- case suggestion = "suggestion"
-
- case synonyms = "synonyms"
-
- case tags = "tags"
-
- case unit = "unit"
-
- case slug = "slug"
-
- case variant = "variant"
-
- }
-
- public init(createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String], description: String? = nil, details: AttributeMasterDetails, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter, isNested: Bool? = nil, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, rawKey: String? = nil, schema: AttributeMaster, slug: String, suggestion: String? = nil, synonyms: [String: Any]? = nil, tags: [String]? = nil, unit: String? = nil, variant: Bool? = nil) {
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.departments = departments
-
- self.description = description
-
- self.details = details
-
- self.enabledForEndConsumer = enabledForEndConsumer
-
- self.filters = filters
-
- self.isNested = isNested
-
- self.logo = logo
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.rawKey = rawKey
-
- self.schema = schema
-
- self.suggestion = suggestion
-
- self.synonyms = synonyms
-
- self.tags = tags
-
- self.unit = unit
-
- self.slug = slug
-
- self.variant = variant
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- departments = try container.decode([String].self, forKey: .departments)
-
-
-
-
- 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 {
-
- }
-
-
-
- details = try container.decode(AttributeMasterDetails.self, forKey: .details)
-
-
-
-
- do {
- enabledForEndConsumer = try container.decode(Bool.self, forKey: .enabledForEndConsumer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(AttributeMasterFilter.self, forKey: .filters)
-
-
-
-
- do {
- isNested = try container.decode(Bool.self, forKey: .isNested)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- rawKey = try container.decode(String.self, forKey: .rawKey)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- schema = try container.decode(AttributeMaster.self, forKey: .schema)
-
-
-
-
- do {
- suggestion = try container.decode(String.self, forKey: .suggestion)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- synonyms = try container.decode([String: Any].self, forKey: .synonyms)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- do {
- variant = try container.decode(Bool.self, forKey: .variant)
-
- } 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(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
-
-
- try? container.encodeIfPresent(enabledForEndConsumer, forKey: .enabledForEndConsumer)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(isNested, forKey: .isNested)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rawKey, forKey: .rawKey)
-
-
-
-
- try? container.encodeIfPresent(schema, forKey: .schema)
-
-
-
-
- try? container.encodeIfPresent(suggestion, forKey: .suggestion)
-
-
-
-
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(variant, forKey: .variant)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: AttributeMasterSchema
- Used By: Catalog
- */
-
- class AttributeMasterSchema: Codable {
-
-
- public var createdBy: [String: Any]?
-
- public var createdOn: String?
-
- public var departments: [String]
-
- public var description: String?
-
- public var details: AttributeMasterDetails
-
- public var enabledForEndConsumer: Bool?
-
- public var filters: AttributeMasterFilter
-
- public var isNested: Bool?
-
- public var logo: String?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var rawKey: String?
-
- public var schema: AttributeMaster
-
- public var suggestion: String?
-
- public var synonyms: [String: Any]?
-
- public var tags: [String]?
-
- public var unit: String?
-
- public var slug: String
-
- public var variant: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case departments = "departments"
-
- case description = "description"
-
- case details = "details"
-
- case enabledForEndConsumer = "enabled_for_end_consumer"
-
- case filters = "filters"
-
- case isNested = "is_nested"
-
- case logo = "logo"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case rawKey = "raw_key"
-
- case schema = "schema"
-
- case suggestion = "suggestion"
-
- case synonyms = "synonyms"
-
- case tags = "tags"
-
- case unit = "unit"
-
- case slug = "slug"
-
- case variant = "variant"
-
- }
-
- public init(createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String], description: String? = nil, details: AttributeMasterDetails, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter, isNested: Bool? = nil, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, rawKey: String? = nil, schema: AttributeMaster, slug: String, suggestion: String? = nil, synonyms: [String: Any]? = nil, tags: [String]? = nil, unit: String? = nil, variant: Bool? = nil) {
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.departments = departments
-
- self.description = description
-
- self.details = details
-
- self.enabledForEndConsumer = enabledForEndConsumer
-
- self.filters = filters
-
- self.isNested = isNested
-
- self.logo = logo
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.rawKey = rawKey
-
- self.schema = schema
-
- self.suggestion = suggestion
-
- self.synonyms = synonyms
-
- self.tags = tags
-
- self.unit = unit
-
- self.slug = slug
-
- self.variant = variant
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- departments = try container.decode([String].self, forKey: .departments)
-
-
-
-
- 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 {
-
- }
-
-
-
- details = try container.decode(AttributeMasterDetails.self, forKey: .details)
-
-
-
-
- do {
- enabledForEndConsumer = try container.decode(Bool.self, forKey: .enabledForEndConsumer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(AttributeMasterFilter.self, forKey: .filters)
-
-
-
-
- do {
- isNested = try container.decode(Bool.self, forKey: .isNested)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- rawKey = try container.decode(String.self, forKey: .rawKey)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- schema = try container.decode(AttributeMaster.self, forKey: .schema)
-
-
-
-
- do {
- suggestion = try container.decode(String.self, forKey: .suggestion)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- synonyms = try container.decode([String: Any].self, forKey: .synonyms)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- do {
- variant = try container.decode(Bool.self, forKey: .variant)
-
- } 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(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
-
-
- try? container.encodeIfPresent(enabledForEndConsumer, forKey: .enabledForEndConsumer)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(isNested, forKey: .isNested)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rawKey, forKey: .rawKey)
-
-
-
-
- try? container.encodeIfPresent(schema, forKey: .schema)
-
-
-
-
- try? container.encodeIfPresent(suggestion, forKey: .suggestion)
-
-
-
-
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(variant, forKey: .variant)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/AttributeMasterSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AttributeMasterSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..4296357f9a
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/AttributeMasterSerializerCatalogPlatformModel.swift
@@ -0,0 +1,920 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: AttributeMasterSerializer
+ Used By: Catalog
+ */
+
+ class AttributeMasterSerializer: Codable {
+
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var departments: [String]
+
+ public var description: String?
+
+ public var details: AttributeMasterDetails
+
+ public var enabledForEndConsumer: Bool?
+
+ public var filters: AttributeMasterFilter
+
+ public var isNested: Bool?
+
+ public var logo: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var rawKey: String?
+
+ public var schema: AttributeMaster
+
+ public var slug: String
+
+ public var suggestion: String?
+
+ public var synonyms: [String: Any]?
+
+ public var tags: [String]?
+
+ public var unit: String?
+
+ public var variant: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case departments = "departments"
+
+ case description = "description"
+
+ case details = "details"
+
+ case enabledForEndConsumer = "enabled_for_end_consumer"
+
+ case filters = "filters"
+
+ case isNested = "is_nested"
+
+ case logo = "logo"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case rawKey = "raw_key"
+
+ case schema = "schema"
+
+ case slug = "slug"
+
+ case suggestion = "suggestion"
+
+ case synonyms = "synonyms"
+
+ case tags = "tags"
+
+ case unit = "unit"
+
+ case variant = "variant"
+
+ }
+
+ public init(createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String], description: String? = nil, details: AttributeMasterDetails, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter, isNested: Bool? = nil, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, rawKey: String? = nil, schema: AttributeMaster, slug: String, suggestion: String? = nil, synonyms: [String: Any]? = nil, tags: [String]? = nil, unit: String? = nil, variant: Bool? = nil) {
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.departments = departments
+
+ self.description = description
+
+ self.details = details
+
+ self.enabledForEndConsumer = enabledForEndConsumer
+
+ self.filters = filters
+
+ self.isNested = isNested
+
+ self.logo = logo
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.rawKey = rawKey
+
+ self.schema = schema
+
+ self.slug = slug
+
+ self.suggestion = suggestion
+
+ self.synonyms = synonyms
+
+ self.tags = tags
+
+ self.unit = unit
+
+ self.variant = variant
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ departments = try container.decode([String].self, forKey: .departments)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ details = try container.decode(AttributeMasterDetails.self, forKey: .details)
+
+
+
+
+ do {
+ enabledForEndConsumer = try container.decode(Bool.self, forKey: .enabledForEndConsumer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(AttributeMasterFilter.self, forKey: .filters)
+
+
+
+
+ do {
+ isNested = try container.decode(Bool.self, forKey: .isNested)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ rawKey = try container.decode(String.self, forKey: .rawKey)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ schema = try container.decode(AttributeMaster.self, forKey: .schema)
+
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+
+ do {
+ suggestion = try container.decode(String.self, forKey: .suggestion)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ synonyms = try container.decode([String: Any].self, forKey: .synonyms)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ variant = try container.decode(Bool.self, forKey: .variant)
+
+ } 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(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(departments, forKey: .departments)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+
+
+ try? container.encodeIfPresent(enabledForEndConsumer, forKey: .enabledForEndConsumer)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(isNested, forKey: .isNested)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(rawKey, forKey: .rawKey)
+
+
+
+
+ try? container.encodeIfPresent(schema, forKey: .schema)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(suggestion, forKey: .suggestion)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(variant, forKey: .variant)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: AttributeMasterSerializer
+ Used By: Catalog
+ */
+
+ class AttributeMasterSerializer: Codable {
+
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var departments: [String]
+
+ public var description: String?
+
+ public var details: AttributeMasterDetails
+
+ public var enabledForEndConsumer: Bool?
+
+ public var filters: AttributeMasterFilter
+
+ public var isNested: Bool?
+
+ public var logo: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var rawKey: String?
+
+ public var schema: AttributeMaster
+
+ public var slug: String
+
+ public var suggestion: String?
+
+ public var synonyms: [String: Any]?
+
+ public var tags: [String]?
+
+ public var unit: String?
+
+ public var variant: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case departments = "departments"
+
+ case description = "description"
+
+ case details = "details"
+
+ case enabledForEndConsumer = "enabled_for_end_consumer"
+
+ case filters = "filters"
+
+ case isNested = "is_nested"
+
+ case logo = "logo"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case rawKey = "raw_key"
+
+ case schema = "schema"
+
+ case slug = "slug"
+
+ case suggestion = "suggestion"
+
+ case synonyms = "synonyms"
+
+ case tags = "tags"
+
+ case unit = "unit"
+
+ case variant = "variant"
+
+ }
+
+ public init(createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String], description: String? = nil, details: AttributeMasterDetails, enabledForEndConsumer: Bool? = nil, filters: AttributeMasterFilter, isNested: Bool? = nil, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, rawKey: String? = nil, schema: AttributeMaster, slug: String, suggestion: String? = nil, synonyms: [String: Any]? = nil, tags: [String]? = nil, unit: String? = nil, variant: Bool? = nil) {
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.departments = departments
+
+ self.description = description
+
+ self.details = details
+
+ self.enabledForEndConsumer = enabledForEndConsumer
+
+ self.filters = filters
+
+ self.isNested = isNested
+
+ self.logo = logo
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.rawKey = rawKey
+
+ self.schema = schema
+
+ self.slug = slug
+
+ self.suggestion = suggestion
+
+ self.synonyms = synonyms
+
+ self.tags = tags
+
+ self.unit = unit
+
+ self.variant = variant
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ departments = try container.decode([String].self, forKey: .departments)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ details = try container.decode(AttributeMasterDetails.self, forKey: .details)
+
+
+
+
+ do {
+ enabledForEndConsumer = try container.decode(Bool.self, forKey: .enabledForEndConsumer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(AttributeMasterFilter.self, forKey: .filters)
+
+
+
+
+ do {
+ isNested = try container.decode(Bool.self, forKey: .isNested)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ rawKey = try container.decode(String.self, forKey: .rawKey)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ schema = try container.decode(AttributeMaster.self, forKey: .schema)
+
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+
+ do {
+ suggestion = try container.decode(String.self, forKey: .suggestion)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ synonyms = try container.decode([String: Any].self, forKey: .synonyms)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ variant = try container.decode(Bool.self, forKey: .variant)
+
+ } 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(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(departments, forKey: .departments)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+
+
+ try? container.encodeIfPresent(enabledForEndConsumer, forKey: .enabledForEndConsumer)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(isNested, forKey: .isNested)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(rawKey, forKey: .rawKey)
+
+
+
+
+ try? container.encodeIfPresent(schema, forKey: .schema)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(suggestion, forKey: .suggestion)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(variant, forKey: .variant)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/AttributeSchemaRangeCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/AttributeSchemaRangeCatalogPlatformModel.swift
index becf5bf66c..3512a415a3 100644
--- a/Sources/code/platform/Models/Catalog/AttributeSchemaRangeCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/AttributeSchemaRangeCatalogPlatformModel.swift
@@ -12,25 +12,25 @@ public extension PlatformClient.Catalog {
class AttributeSchemaRange: Codable {
- public var min: Int?
-
public var max: Int?
+ public var min: Int?
+
public enum CodingKeys: String, CodingKey {
- case min = "min"
-
case max = "max"
+ case min = "min"
+
}
public init(max: Int? = nil, min: Int? = nil) {
- self.min = min
-
self.max = max
+ self.min = min
+
}
required public init(from decoder: Decoder) throws {
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- min = try container.decode(Int.self, forKey: .min)
+ max = try container.decode(Int.self, forKey: .max)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -50,7 +50,7 @@ public extension PlatformClient.Catalog {
do {
- max = try container.decode(Int.self, forKey: .max)
+ min = try container.decode(Int.self, forKey: .min)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -67,12 +67,12 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(min, forKey: .min)
+ try? container.encodeIfPresent(max, forKey: .max)
- try? container.encodeIfPresent(max, forKey: .max)
+ try? container.encodeIfPresent(min, forKey: .min)
}
@@ -91,25 +91,25 @@ public extension PlatformClient.ApplicationClient.Catalog {
class AttributeSchemaRange: Codable {
- public var min: Int?
-
public var max: Int?
+ public var min: Int?
+
public enum CodingKeys: String, CodingKey {
- case min = "min"
-
case max = "max"
+ case min = "min"
+
}
public init(max: Int? = nil, min: Int? = nil) {
- self.min = min
-
self.max = max
+ self.min = min
+
}
required public init(from decoder: Decoder) throws {
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- min = try container.decode(Int.self, forKey: .min)
+ max = try container.decode(Int.self, forKey: .max)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- max = try container.decode(Int.self, forKey: .max)
+ min = try container.decode(Int.self, forKey: .min)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -146,12 +146,12 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(min, forKey: .min)
+ try? container.encodeIfPresent(max, forKey: .max)
- try? container.encodeIfPresent(max, forKey: .max)
+ try? container.encodeIfPresent(min, forKey: .min)
}
diff --git a/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigCatalogPlatformModel.swift
index accfed305a..00b7f74214 100644
--- a/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigCatalogPlatformModel.swift
@@ -12,16 +12,28 @@ public extension PlatformClient.Catalog {
class BaseAppCategoryReturnConfig: Codable {
+ public var appId: String
+
+ public var companyId: Int
+
public var data: [AppCategoryReturnConfig]
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
+ case companyId = "company_id"
+
case data = "data"
}
- public init(data: [AppCategoryReturnConfig]) {
+ public init(appId: String, companyId: Int, data: [AppCategoryReturnConfig]) {
+
+ self.appId = appId
+
+ self.companyId = companyId
self.data = data
@@ -31,6 +43,16 @@ public extension PlatformClient.Catalog {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
data = try container.decode([AppCategoryReturnConfig].self, forKey: .data)
@@ -42,6 +64,16 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
try? container.encodeIfPresent(data, forKey: .data)
@@ -61,16 +93,28 @@ public extension PlatformClient.ApplicationClient.Catalog {
class BaseAppCategoryReturnConfig: Codable {
+ public var appId: String
+
+ public var companyId: Int
+
public var data: [AppCategoryReturnConfig]
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
+ case companyId = "company_id"
+
case data = "data"
}
- public init(data: [AppCategoryReturnConfig]) {
+ public init(appId: String, companyId: Int, data: [AppCategoryReturnConfig]) {
+
+ self.appId = appId
+
+ self.companyId = companyId
self.data = data
@@ -80,6 +124,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
data = try container.decode([AppCategoryReturnConfig].self, forKey: .data)
@@ -91,6 +145,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
try? container.encodeIfPresent(data, forKey: .data)
diff --git a/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..9adb695aef
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BaseAppCategoryReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class BaseAppCategoryReturnConfigResponse: Codable {
+
+
+ public var data: [AppCategoryReturnConfigResponse]?
+
+ public var page: PageResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case page = "page"
+
+ }
+
+ public init(data: [AppCategoryReturnConfigResponse]? = nil, page: PageResponse? = nil) {
+
+ self.data = data
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([AppCategoryReturnConfigResponse].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BaseAppCategoryReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class BaseAppCategoryReturnConfigResponse: Codable {
+
+
+ public var data: [AppCategoryReturnConfigResponse]?
+
+ public var page: PageResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case page = "page"
+
+ }
+
+ public init(data: [AppCategoryReturnConfigResponse]? = nil, page: PageResponse? = nil) {
+
+ self.data = data
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([AppCategoryReturnConfigResponse].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 58e11a0770..0000000000
--- a/Sources/code/platform/Models/Catalog/BaseAppCategoryReturnConfigResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BaseAppCategoryReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class BaseAppCategoryReturnConfigResponseSchema: Codable {
-
-
- public var data: [AppCategoryReturnConfigResponseSchema]?
-
- public var page: PageResponseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case page = "page"
-
- }
-
- public init(data: [AppCategoryReturnConfigResponseSchema]? = nil, page: PageResponseSchema? = nil) {
-
- self.data = data
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([AppCategoryReturnConfigResponseSchema].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BaseAppCategoryReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class BaseAppCategoryReturnConfigResponseSchema: Codable {
-
-
- public var data: [AppCategoryReturnConfigResponseSchema]?
-
- public var page: PageResponseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case page = "page"
-
- }
-
- public init(data: [AppCategoryReturnConfigResponseSchema]? = nil, page: PageResponseSchema? = nil) {
-
- self.data = data
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([AppCategoryReturnConfigResponseSchema].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/BrandListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BrandListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..a178d0b924
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BrandListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BrandListingResponse
+ Used By: Catalog
+ */
+
+ class BrandListingResponse: Codable {
+
+
+ public var items: [BrandItem]?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
+
+ } 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BrandListingResponse
+ Used By: Catalog
+ */
+
+ class BrandListingResponse: Codable {
+
+
+ public var items: [BrandItem]?
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
+
+ } 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BrandListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BrandListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 35c678dfd3..0000000000
--- a/Sources/code/platform/Models/Catalog/BrandListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BrandListingResponseSchema
- Used By: Catalog
- */
-
- class BrandListingResponseSchema: Codable {
-
-
- public var items: [BrandItem]?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
-
- } 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)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BrandListingResponseSchema
- Used By: Catalog
- */
-
- class BrandListingResponseSchema: Codable {
-
-
- public var items: [BrandItem]?
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandItem]? = nil, 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([BrandItem].self, forKey: .items)
-
- } 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)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/BulkAssetResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkAssetResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..89a15da408
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BulkAssetResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BulkAssetResponse
+ Used By: Catalog
+ */
+
+ class BulkAssetResponse: Codable {
+
+
+ public var items: [Items]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Items]? = nil, page: Page? = nil) {
+
+ 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([Items].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BulkAssetResponse
+ Used By: Catalog
+ */
+
+ class BulkAssetResponse: Codable {
+
+
+ public var items: [Items]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Items]? = nil, page: Page? = nil) {
+
+ 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([Items].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BulkAssetResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkAssetResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index efd89606b0..0000000000
--- a/Sources/code/platform/Models/Catalog/BulkAssetResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BulkAssetResponseSchema
- Used By: Catalog
- */
-
- class BulkAssetResponseSchema: Codable {
-
-
- public var items: [Items]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Items]? = nil, page: Page? = nil) {
-
- 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([Items].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BulkAssetResponseSchema
- Used By: Catalog
- */
-
- class BulkAssetResponseSchema: Codable {
-
-
- public var items: [Items]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Items]? = nil, page: Page? = nil) {
-
- 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([Items].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/BulkHsnResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkHsnResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..b851d42a5f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BulkHsnResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BulkHsnResponse
+ Used By: Catalog
+ */
+
+ class BulkHsnResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BulkHsnResponse
+ Used By: Catalog
+ */
+
+ class BulkHsnResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BulkHsnResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkHsnResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 719e669179..0000000000
--- a/Sources/code/platform/Models/Catalog/BulkHsnResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BulkHsnResponseSchema
- Used By: Catalog
- */
-
- class BulkHsnResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BulkHsnResponseSchema
- Used By: Catalog
- */
-
- class BulkHsnResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/BulkJobCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkJobCatalogPlatformModel.swift
index e64cc80551..0faf31cda2 100644
--- a/Sources/code/platform/Models/Catalog/BulkJobCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/BulkJobCatalogPlatformModel.swift
@@ -18,7 +18,7 @@ public extension PlatformClient.Catalog {
public var companyId: Int
- public var createdBy: UserInfo?
+ public var createdBy: UserInfo1?
public var createdOn: String
@@ -32,7 +32,7 @@ public extension PlatformClient.Catalog {
public var isActive: Bool?
- public var modifiedBy: UserInfo?
+ public var modifiedBy: UserInfo1?
public var modifiedOn: String?
@@ -85,7 +85,7 @@ public extension PlatformClient.Catalog {
}
- public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int, createdBy: UserInfo? = nil, createdOn: String, customTemplateTag: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserInfo? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, templateTag: String? = nil, total: Int? = nil, trackingUrl: String? = nil) {
+ public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int, createdBy: UserInfo1? = nil, createdOn: String, customTemplateTag: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserInfo1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, templateTag: String? = nil, total: Int? = nil, trackingUrl: String? = nil) {
self.cancelled = cancelled
@@ -157,7 +157,7 @@ public extension PlatformClient.Catalog {
do {
- createdBy = try container.decode(UserInfo.self, forKey: .createdBy)
+ createdBy = try container.decode(UserInfo1.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -234,7 +234,7 @@ public extension PlatformClient.Catalog {
do {
- modifiedBy = try container.decode(UserInfo.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(UserInfo1.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -428,7 +428,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var companyId: Int
- public var createdBy: UserInfo?
+ public var createdBy: UserInfo1?
public var createdOn: String
@@ -442,7 +442,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var isActive: Bool?
- public var modifiedBy: UserInfo?
+ public var modifiedBy: UserInfo1?
public var modifiedOn: String?
@@ -495,7 +495,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int, createdBy: UserInfo? = nil, createdOn: String, customTemplateTag: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserInfo? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, templateTag: String? = nil, total: Int? = nil, trackingUrl: String? = nil) {
+ public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int, createdBy: UserInfo1? = nil, createdOn: String, customTemplateTag: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserInfo1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, templateTag: String? = nil, total: Int? = nil, trackingUrl: String? = nil) {
self.cancelled = cancelled
@@ -567,7 +567,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- createdBy = try container.decode(UserInfo.self, forKey: .createdBy)
+ createdBy = try container.decode(UserInfo1.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -644,7 +644,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- modifiedBy = try container.decode(UserInfo.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(UserInfo1.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/BulkProductJobCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkProductJobCatalogPlatformModel.swift
index 595fa2d563..ad83b6f86e 100644
--- a/Sources/code/platform/Models/Catalog/BulkProductJobCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/BulkProductJobCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class BulkProductJob: Codable {
- public var companyId: String?
+ public var companyId: Int?
public var templateTag: String?
@@ -37,7 +37,7 @@ public extension PlatformClient.Catalog {
}
- public init(companyId: String? = nil, department: String? = nil, filePath: String? = nil, productType: String? = nil, templateTag: String? = nil) {
+ public init(companyId: Int? = nil, department: String? = nil, filePath: String? = nil, productType: String? = nil, templateTag: String? = nil) {
self.companyId = companyId
@@ -56,7 +56,7 @@ public extension PlatformClient.Catalog {
do {
- companyId = try container.decode(String.self, forKey: .companyId)
+ companyId = try container.decode(Int.self, forKey: .companyId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -160,7 +160,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class BulkProductJob: Codable {
- public var companyId: String?
+ public var companyId: Int?
public var templateTag: String?
@@ -185,7 +185,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(companyId: String? = nil, department: String? = nil, filePath: String? = nil, productType: String? = nil, templateTag: String? = nil) {
+ public init(companyId: Int? = nil, department: String? = nil, filePath: String? = nil, productType: String? = nil, templateTag: String? = nil) {
self.companyId = companyId
@@ -204,7 +204,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- companyId = try container.decode(String.self, forKey: .companyId)
+ companyId = try container.decode(Int.self, forKey: .companyId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/BulkProductRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkProductRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..53341946b3
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BulkProductRequestCatalogPlatformModel.swift
@@ -0,0 +1,198 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BulkProductRequest
+ Used By: Catalog
+ */
+
+ class BulkProductRequest: Codable {
+
+
+ public var batchId: String
+
+ public var companyId: Int
+
+ public var data: [[String: Any]]
+
+ public var templateTag: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case companyId = "company_id"
+
+ case data = "data"
+
+ case templateTag = "template_tag"
+
+ }
+
+ public init(batchId: String, companyId: Int, data: [[String: Any]], templateTag: String) {
+
+ self.batchId = batchId
+
+ self.companyId = companyId
+
+ self.data = data
+
+ self.templateTag = templateTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ templateTag = try container.decode(String.self, forKey: .templateTag)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(templateTag, forKey: .templateTag)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BulkProductRequest
+ Used By: Catalog
+ */
+
+ class BulkProductRequest: Codable {
+
+
+ public var batchId: String
+
+ public var companyId: Int
+
+ public var data: [[String: Any]]
+
+ public var templateTag: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case companyId = "company_id"
+
+ case data = "data"
+
+ case templateTag = "template_tag"
+
+ }
+
+ public init(batchId: String, companyId: Int, data: [[String: Any]], templateTag: String) {
+
+ self.batchId = batchId
+
+ self.companyId = companyId
+
+ self.data = data
+
+ self.templateTag = templateTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ templateTag = try container.decode(String.self, forKey: .templateTag)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(templateTag, forKey: .templateTag)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BulkProductRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkProductRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index a2613ac331..0000000000
--- a/Sources/code/platform/Models/Catalog/BulkProductRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BulkProductRequestSchema
- Used By: Catalog
- */
-
- class BulkProductRequestSchema: Codable {
-
-
- public var batchId: String
-
- public var companyId: Int
-
- public var data: [[String: Any]]
-
- public var templateTag: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case companyId = "company_id"
-
- case data = "data"
-
- case templateTag = "template_tag"
-
- }
-
- public init(batchId: String, companyId: Int, data: [[String: Any]], templateTag: String) {
-
- self.batchId = batchId
-
- self.companyId = companyId
-
- self.data = data
-
- self.templateTag = templateTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- data = try container.decode([[String: Any]].self, forKey: .data)
-
-
-
-
- templateTag = try container.decode(String.self, forKey: .templateTag)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BulkProductRequestSchema
- Used By: Catalog
- */
-
- class BulkProductRequestSchema: Codable {
-
-
- public var batchId: String
-
- public var companyId: Int
-
- public var data: [[String: Any]]
-
- public var templateTag: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case companyId = "company_id"
-
- case data = "data"
-
- case templateTag = "template_tag"
-
- }
-
- public init(batchId: String, companyId: Int, data: [[String: Any]], templateTag: String) {
-
- self.batchId = batchId
-
- self.companyId = companyId
-
- self.data = data
-
- self.templateTag = templateTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- data = try container.decode([[String: Any]].self, forKey: .data)
-
-
-
-
- templateTag = try container.decode(String.self, forKey: .templateTag)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/BulkResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..aa7f2495c7
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/BulkResponseCatalogPlatformModel.swift
@@ -0,0 +1,318 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: BulkResponse
+ Used By: Catalog
+ */
+
+ class BulkResponse: Codable {
+
+
+ public var batchId: String
+
+ public var createdBy: UserInfo1?
+
+ public var createdOn: String
+
+ public var isActive: Bool?
+
+ public var modifiedBy: UserInfo1?
+
+ public var modifiedOn: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isActive = "is_active"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ }
+
+ public init(batchId: String, createdBy: UserInfo1? = nil, createdOn: String, isActive: Bool? = nil, modifiedBy: UserInfo1? = nil, modifiedOn: String? = nil) {
+
+ self.batchId = batchId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isActive = isActive
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: BulkResponse
+ Used By: Catalog
+ */
+
+ class BulkResponse: Codable {
+
+
+ public var batchId: String
+
+ public var createdBy: UserInfo1?
+
+ public var createdOn: String
+
+ public var isActive: Bool?
+
+ public var modifiedBy: UserInfo1?
+
+ public var modifiedOn: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isActive = "is_active"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ }
+
+ public init(batchId: String, createdBy: UserInfo1? = nil, createdOn: String, isActive: Bool? = nil, modifiedBy: UserInfo1? = nil, modifiedOn: String? = nil) {
+
+ self.batchId = batchId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isActive = isActive
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/BulkResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/BulkResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 1a479f3512..0000000000
--- a/Sources/code/platform/Models/Catalog/BulkResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,318 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: BulkResponseSchema
- Used By: Catalog
- */
-
- class BulkResponseSchema: Codable {
-
-
- public var batchId: String
-
- public var createdBy: UserInfo?
-
- public var createdOn: String
-
- public var isActive: Bool?
-
- public var modifiedBy: UserInfo?
-
- public var modifiedOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isActive = "is_active"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- }
-
- public init(batchId: String, createdBy: UserInfo? = nil, createdOn: String, isActive: Bool? = nil, modifiedBy: UserInfo? = nil, modifiedOn: String? = nil) {
-
- self.batchId = batchId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isActive = isActive
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- 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 {
-
- }
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: BulkResponseSchema
- Used By: Catalog
- */
-
- class BulkResponseSchema: Codable {
-
-
- public var batchId: String
-
- public var createdBy: UserInfo?
-
- public var createdOn: String
-
- public var isActive: Bool?
-
- public var modifiedBy: UserInfo?
-
- public var modifiedOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isActive = "is_active"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- }
-
- public init(batchId: String, createdBy: UserInfo? = nil, createdOn: String, isActive: Bool? = nil, modifiedBy: UserInfo? = nil, modifiedOn: String? = nil) {
-
- self.batchId = batchId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isActive = isActive
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- 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 {
-
- }
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CatalogInsightResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CatalogInsightResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..7896f41d74
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CatalogInsightResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CatalogInsightResponse
+ Used By: Catalog
+ */
+
+ class CatalogInsightResponse: Codable {
+
+
+ public var brandDistribution: CatalogInsightBrand?
+
+ public var item: CatalogInsightItem?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandDistribution = "brand_distribution"
+
+ case item = "item"
+
+ }
+
+ public init(brandDistribution: CatalogInsightBrand? = nil, item: CatalogInsightItem? = nil) {
+
+ self.brandDistribution = brandDistribution
+
+ self.item = item
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
+
+
+
+
+ try? container.encodeIfPresent(item, forKey: .item)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CatalogInsightResponse
+ Used By: Catalog
+ */
+
+ class CatalogInsightResponse: Codable {
+
+
+ public var brandDistribution: CatalogInsightBrand?
+
+ public var item: CatalogInsightItem?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandDistribution = "brand_distribution"
+
+ case item = "item"
+
+ }
+
+ public init(brandDistribution: CatalogInsightBrand? = nil, item: CatalogInsightItem? = nil) {
+
+ self.brandDistribution = brandDistribution
+
+ self.item = item
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
+
+
+
+
+ try? container.encodeIfPresent(item, forKey: .item)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CatalogInsightResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CatalogInsightResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 84ee6d6a0c..0000000000
--- a/Sources/code/platform/Models/Catalog/CatalogInsightResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CatalogInsightResponseSchema
- Used By: Catalog
- */
-
- class CatalogInsightResponseSchema: Codable {
-
-
- public var brandDistribution: CatalogInsightBrand?
-
- public var item: CatalogInsightItem?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandDistribution = "brand_distribution"
-
- case item = "item"
-
- }
-
- public init(brandDistribution: CatalogInsightBrand? = nil, item: CatalogInsightItem? = nil) {
-
- self.brandDistribution = brandDistribution
-
- self.item = item
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
-
-
-
-
- try? container.encodeIfPresent(item, forKey: .item)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CatalogInsightResponseSchema
- Used By: Catalog
- */
-
- class CatalogInsightResponseSchema: Codable {
-
-
- public var brandDistribution: CatalogInsightBrand?
-
- public var item: CatalogInsightItem?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandDistribution = "brand_distribution"
-
- case item = "item"
-
- }
-
- public init(brandDistribution: CatalogInsightBrand? = nil, item: CatalogInsightItem? = nil) {
-
- self.brandDistribution = brandDistribution
-
- self.item = item
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
-
-
-
-
- try? container.encodeIfPresent(item, forKey: .item)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoriesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoriesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..8d66c01744
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CategoriesResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CategoriesResponse
+ Used By: Catalog
+ */
+
+ class CategoriesResponse: Codable {
+
+
+ public var name: String?
+
+ public var slug: String?
+
+ public var slugKey: String?
+
+ public var templateSlug: String?
+
+ public var uid: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case slug = "slug"
+
+ case slugKey = "slug_key"
+
+ case templateSlug = "template_slug"
+
+ case uid = "uid"
+
+ }
+
+ public init(name: String? = nil, slug: String? = nil, slugKey: String? = nil, templateSlug: String? = nil, uid: Int? = nil) {
+
+ self.name = name
+
+ self.slug = slug
+
+ self.slugKey = slugKey
+
+ self.templateSlug = templateSlug
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ templateSlug = try container.decode(String.self, forKey: .templateSlug)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(slugKey, forKey: .slugKey)
+
+
+
+
+ try? container.encodeIfPresent(templateSlug, forKey: .templateSlug)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CategoriesResponse
+ Used By: Catalog
+ */
+
+ class CategoriesResponse: Codable {
+
+
+ public var name: String?
+
+ public var slug: String?
+
+ public var slugKey: String?
+
+ public var templateSlug: String?
+
+ public var uid: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case slug = "slug"
+
+ case slugKey = "slug_key"
+
+ case templateSlug = "template_slug"
+
+ case uid = "uid"
+
+ }
+
+ public init(name: String? = nil, slug: String? = nil, slugKey: String? = nil, templateSlug: String? = nil, uid: Int? = nil) {
+
+ self.name = name
+
+ self.slug = slug
+
+ self.slugKey = slugKey
+
+ self.templateSlug = templateSlug
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ templateSlug = try container.decode(String.self, forKey: .templateSlug)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(slugKey, forKey: .slugKey)
+
+
+
+
+ try? container.encodeIfPresent(templateSlug, forKey: .templateSlug)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CategoriesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoriesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 50549c8823..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoriesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoriesResponseSchema
- Used By: Catalog
- */
-
- class CategoriesResponseSchema: Codable {
-
-
- public var name: String?
-
- public var slug: String?
-
- public var slugKey: String?
-
- public var templateSlug: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case slug = "slug"
-
- case slugKey = "slug_key"
-
- case templateSlug = "template_slug"
-
- case uid = "uid"
-
- }
-
- public init(name: String? = nil, slug: String? = nil, slugKey: String? = nil, templateSlug: String? = nil, uid: Int? = nil) {
-
- self.name = name
-
- self.slug = slug
-
- self.slugKey = slugKey
-
- self.templateSlug = templateSlug
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- templateSlug = try container.decode(String.self, forKey: .templateSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(slugKey, forKey: .slugKey)
-
-
-
-
- try? container.encodeIfPresent(templateSlug, forKey: .templateSlug)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoriesResponseSchema
- Used By: Catalog
- */
-
- class CategoriesResponseSchema: Codable {
-
-
- public var name: String?
-
- public var slug: String?
-
- public var slugKey: String?
-
- public var templateSlug: String?
-
- public var uid: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case slug = "slug"
-
- case slugKey = "slug_key"
-
- case templateSlug = "template_slug"
-
- case uid = "uid"
-
- }
-
- public init(name: String? = nil, slug: String? = nil, slugKey: String? = nil, templateSlug: String? = nil, uid: Int? = nil) {
-
- self.name = name
-
- self.slug = slug
-
- self.slugKey = slugKey
-
- self.templateSlug = templateSlug
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- templateSlug = try container.decode(String.self, forKey: .templateSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(slugKey, forKey: .slugKey)
-
-
-
-
- try? container.encodeIfPresent(templateSlug, forKey: .templateSlug)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoryImageCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryImageCatalogPlatformModel.swift
deleted file mode 100644
index 26b3efc8c1..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoryImageCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoryImage
- Used By: Catalog
- */
-
- class CategoryImage: Codable {
-
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(type: String? = nil, url: String? = nil) {
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoryImage
- Used By: Catalog
- */
-
- class CategoryImage: Codable {
-
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(type: String? = nil, url: String? = nil) {
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoryListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..53f02fe633
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CategoryListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CategoryListingResponse
+ Used By: Catalog
+ */
+
+ class CategoryListingResponse: Codable {
+
+
+ public var data: [DepartmentCategoryTree]?
+
+ public var departments: [DepartmentIdentifier]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case departments = "departments"
+
+ }
+
+ public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
+
+ self.data = data
+
+ self.departments = departments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(departments, forKey: .departments)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CategoryListingResponse
+ Used By: Catalog
+ */
+
+ class CategoryListingResponse: Codable {
+
+
+ public var data: [DepartmentCategoryTree]?
+
+ public var departments: [DepartmentIdentifier]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case departments = "departments"
+
+ }
+
+ public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
+
+ self.data = data
+
+ self.departments = departments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(departments, forKey: .departments)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CategoryListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c7722f4801..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoryListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoryListingResponseSchema
- Used By: Catalog
- */
-
- class CategoryListingResponseSchema: Codable {
-
-
- public var data: [DepartmentCategoryTree]?
-
- public var departments: [DepartmentIdentifier]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case departments = "departments"
-
- }
-
- public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
-
- self.data = data
-
- self.departments = departments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoryListingResponseSchema
- Used By: Catalog
- */
-
- class CategoryListingResponseSchema: Codable {
-
-
- public var data: [DepartmentCategoryTree]?
-
- public var departments: [DepartmentIdentifier]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case departments = "departments"
-
- }
-
- public init(data: [DepartmentCategoryTree]? = nil, departments: [DepartmentIdentifier]? = nil) {
-
- self.data = data
-
- self.departments = departments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([DepartmentCategoryTree].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- departments = try container.decode([DepartmentIdentifier].self, forKey: .departments)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoryPageActionCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryPageActionCatalogPlatformModel.swift
deleted file mode 100644
index f18e5aaaaa..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoryPageActionCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoryPageAction
- Used By: Catalog
- */
-
- class CategoryPageAction: Codable {
-
-
- public var query: CategoryQuery?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case query = "query"
-
- case type = "type"
-
- }
-
- public init(query: CategoryQuery? = nil, type: String? = nil) {
-
- 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(CategoryQuery.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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoryPageAction
- Used By: Catalog
- */
-
- class CategoryPageAction: Codable {
-
-
- public var query: CategoryQuery?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case query = "query"
-
- case type = "type"
-
- }
-
- public init(query: CategoryQuery? = nil, type: String? = nil) {
-
- 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(CategoryQuery.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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoryQueryCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryQueryCatalogPlatformModel.swift
deleted file mode 100644
index 7ff757e37c..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoryQueryCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoryQuery
- Used By: Catalog
- */
-
- class CategoryQuery: Codable {
-
-
- public var category: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case category = "category"
-
- }
-
- public init(category: [String]? = nil) {
-
- self.category = category
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- category = try container.decode([String].self, forKey: .category)
-
- } 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(category, forKey: .category)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoryQuery
- Used By: Catalog
- */
-
- class CategoryQuery: Codable {
-
-
- public var category: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case category = "category"
-
- }
-
- public init(category: [String]? = nil) {
-
- self.category = category
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- category = try container.decode([String].self, forKey: .category)
-
- } 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(category, forKey: .category)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CategoryResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..404541d054
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CategoryResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CategoryResponse
+ Used By: Catalog
+ */
+
+ class CategoryResponse: Codable {
+
+
+ public var items: [Category]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Category]? = nil, page: Page? = nil) {
+
+ 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([Category].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CategoryResponse
+ Used By: Catalog
+ */
+
+ class CategoryResponse: Codable {
+
+
+ public var items: [Category]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Category]? = nil, page: Page? = nil) {
+
+ 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([Category].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CategoryResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CategoryResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b762ee48c8..0000000000
--- a/Sources/code/platform/Models/Catalog/CategoryResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CategoryResponseSchema
- Used By: Catalog
- */
-
- class CategoryResponseSchema: Codable {
-
-
- public var items: [Category]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Category]? = nil, page: Page? = nil) {
-
- 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([Category].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CategoryResponseSchema
- Used By: Catalog
- */
-
- class CategoryResponseSchema: Codable {
-
-
- public var items: [Category]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Category]? = nil, page: Page? = nil) {
-
- 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([Category].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionCreateResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionCreateResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..016cc5b327
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CollectionCreateResponseCatalogPlatformModel.swift
@@ -0,0 +1,1312 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CollectionCreateResponse
+ Used By: Catalog
+ */
+
+ class CollectionCreateResponse: Codable {
+
+
+ public var uid: String?
+
+ public var schedule: CollectionSchedule?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: [String: Any]?
+
+ public var banners: ImageUrls?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var logo: BannerImage?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var query: [CollectionQuery]?
+
+ public var slug: String?
+
+ public var sortOn: String?
+
+ public var tag: [String]?
+
+ public var type: String?
+
+ public var visibleFacetsKeys: [String]?
+
+ public var published: Bool?
+
+ public var tags: [String]?
+
+ public var action: Action?
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var seo: SeoDetail?
+
+ public var isVisible: Bool?
+
+ public var id: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uid = "uid"
+
+ case schedule = "_schedule"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case query = "query"
+
+ case slug = "slug"
+
+ case sortOn = "sort_on"
+
+ case tag = "tag"
+
+ case type = "type"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ case published = "published"
+
+ case tags = "tags"
+
+ case action = "action"
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case seo = "seo"
+
+ case isVisible = "is_visible"
+
+ case id = "id"
+
+ }
+
+ public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, description: String? = nil, id: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: BannerImage? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+
+ self.uid = uid
+
+ self.schedule = schedule
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.query = query
+
+ self.slug = slug
+
+ self.sortOn = sortOn
+
+ self.tag = tag
+
+ self.type = type
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ self.published = published
+
+ self.tags = tags
+
+ self.action = action
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.seo = seo
+
+ self.isVisible = isVisible
+
+ self.id = id
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ schedule = try container.decode(CollectionSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ action = try container.decode(Action.self, forKey: .action)
+
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ isVisible = try container.decode(Bool.self, forKey: .isVisible)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(isVisible, forKey: .isVisible)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CollectionCreateResponse
+ Used By: Catalog
+ */
+
+ class CollectionCreateResponse: Codable {
+
+
+ public var uid: String?
+
+ public var schedule: CollectionSchedule?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: [String: Any]?
+
+ public var banners: ImageUrls?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var logo: BannerImage?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var query: [CollectionQuery]?
+
+ public var slug: String?
+
+ public var sortOn: String?
+
+ public var tag: [String]?
+
+ public var type: String?
+
+ public var visibleFacetsKeys: [String]?
+
+ public var published: Bool?
+
+ public var tags: [String]?
+
+ public var action: Action?
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var seo: SeoDetail?
+
+ public var isVisible: Bool?
+
+ public var id: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uid = "uid"
+
+ case schedule = "_schedule"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case query = "query"
+
+ case slug = "slug"
+
+ case sortOn = "sort_on"
+
+ case tag = "tag"
+
+ case type = "type"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ case published = "published"
+
+ case tags = "tags"
+
+ case action = "action"
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case seo = "seo"
+
+ case isVisible = "is_visible"
+
+ case id = "id"
+
+ }
+
+ public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, description: String? = nil, id: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: BannerImage? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+
+ self.uid = uid
+
+ self.schedule = schedule
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.query = query
+
+ self.slug = slug
+
+ self.sortOn = sortOn
+
+ self.tag = tag
+
+ self.type = type
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ self.published = published
+
+ self.tags = tags
+
+ self.action = action
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.seo = seo
+
+ self.isVisible = isVisible
+
+ self.id = id
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ schedule = try container.decode(CollectionSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ action = try container.decode(Action.self, forKey: .action)
+
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ isVisible = try container.decode(Bool.self, forKey: .isVisible)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(isVisible, forKey: .isVisible)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CollectionCreateResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionCreateResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 9dbb69ee48..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionCreateResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,1358 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionCreateResponseSchema
- Used By: Catalog
- */
-
- class CollectionCreateResponseSchema: Codable {
-
-
- public var uid: String?
-
- public var schedule: CollectionSchedule?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: [String: Any]?
-
- public var banners: ImageUrls?
-
- public var cron: [String: Any]?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var logo: BannerImage?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var query: [CollectionQuery]?
-
- public var slug: String?
-
- public var sortOn: String?
-
- public var tag: [String]?
-
- public var type: String?
-
- public var visibleFacetsKeys: [String]?
-
- public var published: Bool?
-
- public var tags: [String]?
-
- public var action: Action?
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var seo: SeoDetail?
-
- public var isVisible: Bool?
-
- public var id: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case schedule = "_schedule"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case cron = "cron"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case query = "query"
-
- case slug = "slug"
-
- case sortOn = "sort_on"
-
- case tag = "tag"
-
- case type = "type"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- case published = "published"
-
- case tags = "tags"
-
- case action = "action"
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case seo = "seo"
-
- case isVisible = "is_visible"
-
- case id = "id"
-
- }
-
- public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, id: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: BannerImage? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
-
- self.uid = uid
-
- self.schedule = schedule
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.cron = cron
-
- self.description = description
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.query = query
-
- self.slug = slug
-
- self.sortOn = sortOn
-
- self.tag = tag
-
- self.type = type
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- self.published = published
-
- self.tags = tags
-
- self.action = action
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.seo = seo
-
- self.isVisible = isVisible
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- schedule = try container.decode(CollectionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
- 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 {
- 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)
- } 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- action = try container.decode(Action.self, forKey: .action)
-
- } 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 {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionCreateResponseSchema
- Used By: Catalog
- */
-
- class CollectionCreateResponseSchema: Codable {
-
-
- public var uid: String?
-
- public var schedule: CollectionSchedule?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: [String: Any]?
-
- public var banners: ImageUrls?
-
- public var cron: [String: Any]?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var logo: BannerImage?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var query: [CollectionQuery]?
-
- public var slug: String?
-
- public var sortOn: String?
-
- public var tag: [String]?
-
- public var type: String?
-
- public var visibleFacetsKeys: [String]?
-
- public var published: Bool?
-
- public var tags: [String]?
-
- public var action: Action?
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var seo: SeoDetail?
-
- public var isVisible: Bool?
-
- public var id: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case schedule = "_schedule"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case cron = "cron"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case query = "query"
-
- case slug = "slug"
-
- case sortOn = "sort_on"
-
- case tag = "tag"
-
- case type = "type"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- case published = "published"
-
- case tags = "tags"
-
- case action = "action"
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case seo = "seo"
-
- case isVisible = "is_visible"
-
- case id = "id"
-
- }
-
- public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, id: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: BannerImage? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
-
- self.uid = uid
-
- self.schedule = schedule
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.cron = cron
-
- self.description = description
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.query = query
-
- self.slug = slug
-
- self.sortOn = sortOn
-
- self.tag = tag
-
- self.type = type
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- self.published = published
-
- self.tags = tags
-
- self.action = action
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.seo = seo
-
- self.isVisible = isVisible
-
- self.id = id
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- schedule = try container.decode(CollectionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
- 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 {
- 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)
- } 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- action = try container.decode(Action.self, forKey: .action)
-
- } 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 {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionDetailResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionDetailResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..50030b4424
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CollectionDetailResponseCatalogPlatformModel.swift
@@ -0,0 +1,944 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CollectionDetailResponse
+ Used By: Catalog
+ */
+
+ class CollectionDetailResponse: Codable {
+
+
+ public var schedule: [String: Any]?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: [String: Any]?
+
+ public var banners: ImageUrls?
+
+ public var cron: [String: Any]?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var logo: Media?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var query: [CollectionQuery]?
+
+ public var slug: String?
+
+ public var tag: [String]?
+
+ public var type: String?
+
+ public var uid: String?
+
+ public var visibleFacetsKeys: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case schedule = "_schedule"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case cron = "cron"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case query = "query"
+
+ case slug = "slug"
+
+ case tag = "tag"
+
+ case type = "type"
+
+ case uid = "uid"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ }
+
+ public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, tag: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, schedule: [String: Any]? = nil) {
+
+ self.schedule = schedule
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.cron = cron
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.query = query
+
+ self.slug = slug
+
+ self.tag = tag
+
+ self.type = type
+
+ self.uid = uid
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(cron, forKey: .cron)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CollectionDetailResponse
+ Used By: Catalog
+ */
+
+ class CollectionDetailResponse: Codable {
+
+
+ public var schedule: [String: Any]?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: [String: Any]?
+
+ public var banners: ImageUrls?
+
+ public var cron: [String: Any]?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var logo: Media?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var query: [CollectionQuery]?
+
+ public var slug: String?
+
+ public var tag: [String]?
+
+ public var type: String?
+
+ public var uid: String?
+
+ public var visibleFacetsKeys: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case schedule = "_schedule"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case cron = "cron"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case query = "query"
+
+ case slug = "slug"
+
+ case tag = "tag"
+
+ case type = "type"
+
+ case uid = "uid"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ }
+
+ public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, tag: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, schedule: [String: Any]? = nil) {
+
+ self.schedule = schedule
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.cron = cron
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.query = query
+
+ self.slug = slug
+
+ self.tag = tag
+
+ self.type = type
+
+ self.uid = uid
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(cron, forKey: .cron)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CollectionDetailResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionDetailResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 8832388172..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionDetailResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,944 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionDetailResponseSchema
- Used By: Catalog
- */
-
- class CollectionDetailResponseSchema: Codable {
-
-
- public var schedule: [String: Any]?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: [String: Any]?
-
- public var banners: ImageUrls?
-
- public var cron: [String: Any]?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var logo: Media?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var query: [CollectionQuery]?
-
- public var slug: String?
-
- public var tag: [String]?
-
- public var type: String?
-
- public var uid: String?
-
- public var visibleFacetsKeys: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case schedule = "_schedule"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case cron = "cron"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case query = "query"
-
- case slug = "slug"
-
- case tag = "tag"
-
- case type = "type"
-
- case uid = "uid"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- }
-
- public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, tag: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, schedule: [String: Any]? = nil) {
-
- self.schedule = schedule
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.cron = cron
-
- self.description = description
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.query = query
-
- self.slug = slug
-
- self.tag = tag
-
- self.type = type
-
- self.uid = uid
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
- 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)
- } 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionDetailResponseSchema
- Used By: Catalog
- */
-
- class CollectionDetailResponseSchema: Codable {
-
-
- public var schedule: [String: Any]?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: [String: Any]?
-
- public var banners: ImageUrls?
-
- public var cron: [String: Any]?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var logo: Media?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var query: [CollectionQuery]?
-
- public var slug: String?
-
- public var tag: [String]?
-
- public var type: String?
-
- public var uid: String?
-
- public var visibleFacetsKeys: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case schedule = "_schedule"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case cron = "cron"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case query = "query"
-
- case slug = "slug"
-
- case tag = "tag"
-
- case type = "type"
-
- case uid = "uid"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- }
-
- public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: [String: Any]? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, query: [CollectionQuery]? = nil, slug: String? = nil, tag: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, schedule: [String: Any]? = nil) {
-
- self.schedule = schedule
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.cron = cron
-
- self.description = description
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.query = query
-
- self.slug = slug
-
- self.tag = tag
-
- self.type = type
-
- self.uid = uid
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
- 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)
- } 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionProductFiltersCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionProductFiltersCatalogPlatformModel.swift
deleted file mode 100644
index 6b4c9edad7..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionProductFiltersCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionProductFilters
- Used By: Catalog
- */
-
- class CollectionProductFilters: Codable {
-
-
- public var key: ProductFiltersKey
-
- public var values: [CollectionProductFiltersValue]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case values = "values"
-
- }
-
- public init(key: ProductFiltersKey, values: [CollectionProductFiltersValue]) {
-
- self.key = key
-
- self.values = values
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(ProductFiltersKey.self, forKey: .key)
-
-
-
-
- values = try container.decode([CollectionProductFiltersValue].self, forKey: .values)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionProductFilters
- Used By: Catalog
- */
-
- class CollectionProductFilters: Codable {
-
-
- public var key: ProductFiltersKey
-
- public var values: [CollectionProductFiltersValue]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case values = "values"
-
- }
-
- public init(key: ProductFiltersKey, values: [CollectionProductFiltersValue]) {
-
- self.key = key
-
- self.values = values
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(ProductFiltersKey.self, forKey: .key)
-
-
-
-
- values = try container.decode([CollectionProductFiltersValue].self, forKey: .values)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionProductFiltersValueCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionProductFiltersValueCatalogPlatformModel.swift
deleted file mode 100644
index 8908be2321..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionProductFiltersValueCatalogPlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionProductFiltersValue
- Used By: Catalog
- */
-
- class CollectionProductFiltersValue: Codable {
-
-
- public var display: String
-
- public var count: Int?
-
- public var isSelected: Bool
-
- public var value: String
-
- public var logo: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case count = "count"
-
- case isSelected = "is_selected"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(count: Int? = nil, display: String, isSelected: Bool, logo: [String: Any]? = nil, value: String) {
-
- self.display = display
-
- self.count = count
-
- self.isSelected = isSelected
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- display = try container.decode(String.self, forKey: .display)
-
-
-
-
- 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 {
-
- }
-
-
-
- isSelected = try container.decode(Bool.self, forKey: .isSelected)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- do {
- logo = try container.decode([String: Any].self, forKey: .logo)
-
- } 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(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionProductFiltersValue
- Used By: Catalog
- */
-
- class CollectionProductFiltersValue: Codable {
-
-
- public var display: String
-
- public var count: Int?
-
- public var isSelected: Bool
-
- public var value: String
-
- public var logo: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case count = "count"
-
- case isSelected = "is_selected"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(count: Int? = nil, display: String, isSelected: Bool, logo: [String: Any]? = nil, value: String) {
-
- self.display = display
-
- self.count = count
-
- self.isSelected = isSelected
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- display = try container.decode(String.self, forKey: .display)
-
-
-
-
- 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 {
-
- }
-
-
-
- isSelected = try container.decode(Bool.self, forKey: .isSelected)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- do {
- logo = try container.decode([String: Any].self, forKey: .logo)
-
- } 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(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionProductListingDetailCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionProductListingDetailCatalogPlatformModel.swift
deleted file mode 100644
index d0e3f0322a..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionProductListingDetailCatalogPlatformModel.swift
+++ /dev/null
@@ -1,3184 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionProductListingDetail
- Used By: Catalog
- */
-
- class CollectionProductListingDetail: Codable {
-
-
- public var attributes: [String: Any]?
-
- public var brand: ProductBrand?
-
- public var color: String?
-
- public var description: String?
-
- public var discount: String?
-
- public var groupedAttributes: [ProductDetailGroupedAttribute]?
-
- public var hasVariant: Bool?
-
- public var highlights: [String]?
-
- public var imageNature: String?
-
- public var itemCode: String?
-
- public var itemType: String?
-
- public var medias: [Media]?
-
- public var name: String?
-
- public var price: ProductListingPrice?
-
- public var productOnlineDate: String?
-
- public var promoMeta: [String: Any]?
-
- public var rating: Double?
-
- public var ratingCount: Int?
-
- public var sellable: Bool?
-
- public var shortDescription: String?
-
- public var similars: [String]?
-
- public var slug: String
-
- public var teaserTag: [String: Any]?
-
- public var tryouts: [String]?
-
- public var type: String?
-
- public var uid: Int?
-
- public var categories: [ProductCategory]?
-
- public var customMeta: [[String: Any]]?
-
- public var action: Action?
-
- public var discountPercentage: Double?
-
- public var isTryout: Bool?
-
- public var allCompanyIds: [Int]?
-
- public var isCustomOrder: Bool?
-
- public var collections: [String]?
-
- public var popularity: Double?
-
- public var brandUid: Int?
-
- public var categoryUid: Int?
-
- public var verificationStatus: String?
-
- public var channelIdentifier: String?
-
- public var categorySlug: String?
-
- public var sizeGuide: String?
-
- public var createdOn: String?
-
- public var modifiedOn: String?
-
- public var l3Categories: [Int]?
-
- public var storeIds: [Int]?
-
- public var companyIds: [Int]?
-
- public var departments: [Int]?
-
- public var tags: [String]?
-
- public var l3CategoryNames: [String]?
-
- public var sizes: [String]?
-
- public var productGroupTag: [String]?
-
- public var multiSize: Bool?
-
- public var isGift: Bool?
-
- public var isCod: Bool?
-
- public var isDependent: Bool?
-
- public var isAvailable: Bool?
-
- public var netQuantity: NetQuantity?
-
- public var seo: ApplicationItemSEO?
-
- public var moq: ApplicationItemMOQ?
-
- public var customOrder: CustomOrder?
-
- public var countryOfOrigin: String?
-
- public var customJson: [String: Any]?
-
- public var multiCategories: [[String: Any]]?
-
- public var variantMedia: [String: Any]?
-
- public var variantGroup: [String: Any]?
-
- public var identifiers: [String]?
-
- public var noOfBoxes: Int?
-
- public var templateTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case attributes = "attributes"
-
- case brand = "brand"
-
- case color = "color"
-
- case description = "description"
-
- case discount = "discount"
-
- case groupedAttributes = "grouped_attributes"
-
- case hasVariant = "has_variant"
-
- case highlights = "highlights"
-
- case imageNature = "image_nature"
-
- case itemCode = "item_code"
-
- case itemType = "item_type"
-
- case medias = "medias"
-
- case name = "name"
-
- case price = "price"
-
- case productOnlineDate = "product_online_date"
-
- case promoMeta = "promo_meta"
-
- case rating = "rating"
-
- case ratingCount = "rating_count"
-
- case sellable = "sellable"
-
- case shortDescription = "short_description"
-
- case similars = "similars"
-
- case slug = "slug"
-
- case teaserTag = "teaser_tag"
-
- case tryouts = "tryouts"
-
- case type = "type"
-
- case uid = "uid"
-
- case categories = "categories"
-
- case customMeta = "_custom_meta"
-
- case action = "action"
-
- case discountPercentage = "discount_percentage"
-
- case isTryout = "is_tryout"
-
- case allCompanyIds = "all_company_ids"
-
- case isCustomOrder = "is_custom_order"
-
- case collections = "collections"
-
- case popularity = "popularity"
-
- case brandUid = "brand_uid"
-
- case categoryUid = "category_uid"
-
- case verificationStatus = "verification_status"
-
- case channelIdentifier = "channel_identifier"
-
- case categorySlug = "category_slug"
-
- case sizeGuide = "size_guide"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case l3Categories = "l3_categories"
-
- case storeIds = "store_ids"
-
- case companyIds = "company_ids"
-
- case departments = "departments"
-
- case tags = "tags"
-
- case l3CategoryNames = "l3_category_names"
-
- case sizes = "sizes"
-
- case productGroupTag = "product_group_tag"
-
- case multiSize = "multi_size"
-
- case isGift = "is_gift"
-
- case isCod = "is_cod"
-
- case isDependent = "is_dependent"
-
- case isAvailable = "is_available"
-
- case netQuantity = "net_quantity"
-
- case seo = "seo"
-
- case moq = "moq"
-
- case customOrder = "custom_order"
-
- case countryOfOrigin = "country_of_origin"
-
- case customJson = "_custom_json"
-
- case multiCategories = "multi_categories"
-
- case variantMedia = "variant_media"
-
- case variantGroup = "variant_group"
-
- case identifiers = "identifiers"
-
- case noOfBoxes = "no_of_boxes"
-
- case templateTag = "template_tag"
-
- }
-
- public init(action: Action? = nil, allCompanyIds: [Int]? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, brandUid: Int? = nil, categories: [ProductCategory]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, channelIdentifier: String? = nil, collections: [String]? = nil, color: String? = nil, companyIds: [Int]? = nil, countryOfOrigin: String? = nil, createdOn: String? = nil, customOrder: CustomOrder? = nil, departments: [Int]? = nil, description: String? = nil, discount: String? = nil, discountPercentage: Double? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String? = nil, isAvailable: Bool? = nil, isCod: Bool? = nil, isCustomOrder: Bool? = nil, isDependent: Bool? = nil, isGift: Bool? = nil, isTryout: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Categories: [Int]? = nil, l3CategoryNames: [String]? = nil, medias: [Media]? = nil, modifiedOn: String? = nil, moq: ApplicationItemMOQ? = nil, multiCategories: [[String: Any]]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, popularity: Double? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, sizeGuide: String? = nil, slug: String, storeIds: [Int]? = nil, tags: [String]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verificationStatus: String? = nil, customJson: [String: Any]? = nil, customMeta: [[String: Any]]? = nil) {
-
- self.attributes = attributes
-
- self.brand = brand
-
- self.color = color
-
- self.description = description
-
- self.discount = discount
-
- self.groupedAttributes = groupedAttributes
-
- self.hasVariant = hasVariant
-
- self.highlights = highlights
-
- self.imageNature = imageNature
-
- self.itemCode = itemCode
-
- self.itemType = itemType
-
- self.medias = medias
-
- self.name = name
-
- self.price = price
-
- self.productOnlineDate = productOnlineDate
-
- self.promoMeta = promoMeta
-
- self.rating = rating
-
- self.ratingCount = ratingCount
-
- self.sellable = sellable
-
- self.shortDescription = shortDescription
-
- self.similars = similars
-
- self.slug = slug
-
- self.teaserTag = teaserTag
-
- self.tryouts = tryouts
-
- self.type = type
-
- self.uid = uid
-
- self.categories = categories
-
- self.customMeta = customMeta
-
- self.action = action
-
- self.discountPercentage = discountPercentage
-
- self.isTryout = isTryout
-
- self.allCompanyIds = allCompanyIds
-
- self.isCustomOrder = isCustomOrder
-
- self.collections = collections
-
- self.popularity = popularity
-
- self.brandUid = brandUid
-
- self.categoryUid = categoryUid
-
- self.verificationStatus = verificationStatus
-
- self.channelIdentifier = channelIdentifier
-
- self.categorySlug = categorySlug
-
- self.sizeGuide = sizeGuide
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.l3Categories = l3Categories
-
- self.storeIds = storeIds
-
- self.companyIds = companyIds
-
- self.departments = departments
-
- self.tags = tags
-
- self.l3CategoryNames = l3CategoryNames
-
- self.sizes = sizes
-
- self.productGroupTag = productGroupTag
-
- self.multiSize = multiSize
-
- self.isGift = isGift
-
- self.isCod = isCod
-
- self.isDependent = isDependent
-
- self.isAvailable = isAvailable
-
- self.netQuantity = netQuantity
-
- self.seo = seo
-
- self.moq = moq
-
- self.customOrder = customOrder
-
- self.countryOfOrigin = countryOfOrigin
-
- self.customJson = customJson
-
- self.multiCategories = multiCategories
-
- self.variantMedia = variantMedia
-
- self.variantGroup = variantGroup
-
- self.identifiers = identifiers
-
- self.noOfBoxes = noOfBoxes
-
- self.templateTag = templateTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.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 {
-
- }
-
-
-
- do {
- brand = try container.decode(ProductBrand.self, forKey: .brand)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- groupedAttributes = try container.decode([ProductDetailGroupedAttribute].self, forKey: .groupedAttributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- categories = try container.decode([ProductCategory].self, forKey: .categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([[String: Any]].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(Action.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountPercentage = try container.decode(Double.self, forKey: .discountPercentage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isTryout = try container.decode(Bool.self, forKey: .isTryout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allCompanyIds = try container.decode([Int].self, forKey: .allCompanyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- collections = try container.decode([String].self, forKey: .collections)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- popularity = try container.decode(Double.self, forKey: .popularity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- categoryUid = try container.decode(Int.self, forKey: .categoryUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verificationStatus = try container.decode(String.self, forKey: .verificationStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- l3Categories = try container.decode([Int].self, forKey: .l3Categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- companyIds = try container.decode([Int].self, forKey: .companyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- l3CategoryNames = try container.decode([String].self, forKey: .l3CategoryNames)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- netQuantity = try container.decode(NetQuantity.self, forKey: .netQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(ApplicationItemSEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- moq = try container.decode(ApplicationItemMOQ.self, forKey: .moq)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- multiCategories = try container.decode([[String: Any]].self, forKey: .multiCategories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantMedia = try container.decode([String: Any].self, forKey: .variantMedia)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantGroup = try container.decode([String: Any].self, forKey: .variantGroup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifiers = try container.decode([String].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(color, forKey: .color)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(groupedAttributes, forKey: .groupedAttributes)
-
-
-
-
- try? container.encodeIfPresent(hasVariant, forKey: .hasVariant)
-
-
-
-
- try? container.encodeIfPresent(highlights, forKey: .highlights)
-
-
-
-
- try? container.encodeIfPresent(imageNature, forKey: .imageNature)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
-
-
-
-
- try? container.encodeIfPresent(promoMeta, forKey: .promoMeta)
-
-
-
-
- try? container.encodeIfPresent(rating, forKey: .rating)
-
-
-
-
- try? container.encodeIfPresent(ratingCount, forKey: .ratingCount)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(shortDescription, forKey: .shortDescription)
-
-
-
-
- try? container.encodeIfPresent(similars, forKey: .similars)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
-
-
- try? container.encodeIfPresent(tryouts, forKey: .tryouts)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(discountPercentage, forKey: .discountPercentage)
-
-
-
-
- try? container.encodeIfPresent(isTryout, forKey: .isTryout)
-
-
-
-
- try? container.encodeIfPresent(allCompanyIds, forKey: .allCompanyIds)
-
-
-
-
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
-
-
-
-
- try? container.encodeIfPresent(collections, forKey: .collections)
-
-
-
-
- try? container.encodeIfPresent(popularity, forKey: .popularity)
-
-
-
-
- try? container.encodeIfPresent(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(categoryUid, forKey: .categoryUid)
-
-
-
-
- try? container.encodeIfPresent(verificationStatus, forKey: .verificationStatus)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(categorySlug, forKey: .categorySlug)
-
-
-
-
- try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(l3Categories, forKey: .l3Categories)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(companyIds, forKey: .companyIds)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(l3CategoryNames, forKey: .l3CategoryNames)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag)
-
-
-
-
- try? container.encodeIfPresent(multiSize, forKey: .multiSize)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isDependent, forKey: .isDependent)
-
-
-
-
- try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
-
-
-
-
- try? container.encodeIfPresent(netQuantity, forKey: .netQuantity)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(multiCategories, forKey: .multiCategories)
-
-
-
-
- try? container.encodeIfPresent(variantMedia, forKey: .variantMedia)
-
-
-
-
- try? container.encodeIfPresent(variantGroup, forKey: .variantGroup)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionProductListingDetail
- Used By: Catalog
- */
-
- class CollectionProductListingDetail: Codable {
-
-
- public var attributes: [String: Any]?
-
- public var brand: ProductBrand?
-
- public var color: String?
-
- public var description: String?
-
- public var discount: String?
-
- public var groupedAttributes: [ProductDetailGroupedAttribute]?
-
- public var hasVariant: Bool?
-
- public var highlights: [String]?
-
- public var imageNature: String?
-
- public var itemCode: String?
-
- public var itemType: String?
-
- public var medias: [Media]?
-
- public var name: String?
-
- public var price: ProductListingPrice?
-
- public var productOnlineDate: String?
-
- public var promoMeta: [String: Any]?
-
- public var rating: Double?
-
- public var ratingCount: Int?
-
- public var sellable: Bool?
-
- public var shortDescription: String?
-
- public var similars: [String]?
-
- public var slug: String
-
- public var teaserTag: [String: Any]?
-
- public var tryouts: [String]?
-
- public var type: String?
-
- public var uid: Int?
-
- public var categories: [ProductCategory]?
-
- public var customMeta: [[String: Any]]?
-
- public var action: Action?
-
- public var discountPercentage: Double?
-
- public var isTryout: Bool?
-
- public var allCompanyIds: [Int]?
-
- public var isCustomOrder: Bool?
-
- public var collections: [String]?
-
- public var popularity: Double?
-
- public var brandUid: Int?
-
- public var categoryUid: Int?
-
- public var verificationStatus: String?
-
- public var channelIdentifier: String?
-
- public var categorySlug: String?
-
- public var sizeGuide: String?
-
- public var createdOn: String?
-
- public var modifiedOn: String?
-
- public var l3Categories: [Int]?
-
- public var storeIds: [Int]?
-
- public var companyIds: [Int]?
-
- public var departments: [Int]?
-
- public var tags: [String]?
-
- public var l3CategoryNames: [String]?
-
- public var sizes: [String]?
-
- public var productGroupTag: [String]?
-
- public var multiSize: Bool?
-
- public var isGift: Bool?
-
- public var isCod: Bool?
-
- public var isDependent: Bool?
-
- public var isAvailable: Bool?
-
- public var netQuantity: NetQuantity?
-
- public var seo: ApplicationItemSEO?
-
- public var moq: ApplicationItemMOQ?
-
- public var customOrder: CustomOrder?
-
- public var countryOfOrigin: String?
-
- public var customJson: [String: Any]?
-
- public var multiCategories: [[String: Any]]?
-
- public var variantMedia: [String: Any]?
-
- public var variantGroup: [String: Any]?
-
- public var identifiers: [String]?
-
- public var noOfBoxes: Int?
-
- public var templateTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case attributes = "attributes"
-
- case brand = "brand"
-
- case color = "color"
-
- case description = "description"
-
- case discount = "discount"
-
- case groupedAttributes = "grouped_attributes"
-
- case hasVariant = "has_variant"
-
- case highlights = "highlights"
-
- case imageNature = "image_nature"
-
- case itemCode = "item_code"
-
- case itemType = "item_type"
-
- case medias = "medias"
-
- case name = "name"
-
- case price = "price"
-
- case productOnlineDate = "product_online_date"
-
- case promoMeta = "promo_meta"
-
- case rating = "rating"
-
- case ratingCount = "rating_count"
-
- case sellable = "sellable"
-
- case shortDescription = "short_description"
-
- case similars = "similars"
-
- case slug = "slug"
-
- case teaserTag = "teaser_tag"
-
- case tryouts = "tryouts"
-
- case type = "type"
-
- case uid = "uid"
-
- case categories = "categories"
-
- case customMeta = "_custom_meta"
-
- case action = "action"
-
- case discountPercentage = "discount_percentage"
-
- case isTryout = "is_tryout"
-
- case allCompanyIds = "all_company_ids"
-
- case isCustomOrder = "is_custom_order"
-
- case collections = "collections"
-
- case popularity = "popularity"
-
- case brandUid = "brand_uid"
-
- case categoryUid = "category_uid"
-
- case verificationStatus = "verification_status"
-
- case channelIdentifier = "channel_identifier"
-
- case categorySlug = "category_slug"
-
- case sizeGuide = "size_guide"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case l3Categories = "l3_categories"
-
- case storeIds = "store_ids"
-
- case companyIds = "company_ids"
-
- case departments = "departments"
-
- case tags = "tags"
-
- case l3CategoryNames = "l3_category_names"
-
- case sizes = "sizes"
-
- case productGroupTag = "product_group_tag"
-
- case multiSize = "multi_size"
-
- case isGift = "is_gift"
-
- case isCod = "is_cod"
-
- case isDependent = "is_dependent"
-
- case isAvailable = "is_available"
-
- case netQuantity = "net_quantity"
-
- case seo = "seo"
-
- case moq = "moq"
-
- case customOrder = "custom_order"
-
- case countryOfOrigin = "country_of_origin"
-
- case customJson = "_custom_json"
-
- case multiCategories = "multi_categories"
-
- case variantMedia = "variant_media"
-
- case variantGroup = "variant_group"
-
- case identifiers = "identifiers"
-
- case noOfBoxes = "no_of_boxes"
-
- case templateTag = "template_tag"
-
- }
-
- public init(action: Action? = nil, allCompanyIds: [Int]? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, brandUid: Int? = nil, categories: [ProductCategory]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, channelIdentifier: String? = nil, collections: [String]? = nil, color: String? = nil, companyIds: [Int]? = nil, countryOfOrigin: String? = nil, createdOn: String? = nil, customOrder: CustomOrder? = nil, departments: [Int]? = nil, description: String? = nil, discount: String? = nil, discountPercentage: Double? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, identifiers: [String]? = nil, imageNature: String? = nil, isAvailable: Bool? = nil, isCod: Bool? = nil, isCustomOrder: Bool? = nil, isDependent: Bool? = nil, isGift: Bool? = nil, isTryout: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Categories: [Int]? = nil, l3CategoryNames: [String]? = nil, medias: [Media]? = nil, modifiedOn: String? = nil, moq: ApplicationItemMOQ? = nil, multiCategories: [[String: Any]]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, popularity: Double? = nil, price: ProductListingPrice? = nil, productGroupTag: [String]? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, seo: ApplicationItemSEO? = nil, shortDescription: String? = nil, similars: [String]? = nil, sizes: [String]? = nil, sizeGuide: String? = nil, slug: String, storeIds: [Int]? = nil, tags: [String]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verificationStatus: String? = nil, customJson: [String: Any]? = nil, customMeta: [[String: Any]]? = nil) {
-
- self.attributes = attributes
-
- self.brand = brand
-
- self.color = color
-
- self.description = description
-
- self.discount = discount
-
- self.groupedAttributes = groupedAttributes
-
- self.hasVariant = hasVariant
-
- self.highlights = highlights
-
- self.imageNature = imageNature
-
- self.itemCode = itemCode
-
- self.itemType = itemType
-
- self.medias = medias
-
- self.name = name
-
- self.price = price
-
- self.productOnlineDate = productOnlineDate
-
- self.promoMeta = promoMeta
-
- self.rating = rating
-
- self.ratingCount = ratingCount
-
- self.sellable = sellable
-
- self.shortDescription = shortDescription
-
- self.similars = similars
-
- self.slug = slug
-
- self.teaserTag = teaserTag
-
- self.tryouts = tryouts
-
- self.type = type
-
- self.uid = uid
-
- self.categories = categories
-
- self.customMeta = customMeta
-
- self.action = action
-
- self.discountPercentage = discountPercentage
-
- self.isTryout = isTryout
-
- self.allCompanyIds = allCompanyIds
-
- self.isCustomOrder = isCustomOrder
-
- self.collections = collections
-
- self.popularity = popularity
-
- self.brandUid = brandUid
-
- self.categoryUid = categoryUid
-
- self.verificationStatus = verificationStatus
-
- self.channelIdentifier = channelIdentifier
-
- self.categorySlug = categorySlug
-
- self.sizeGuide = sizeGuide
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.l3Categories = l3Categories
-
- self.storeIds = storeIds
-
- self.companyIds = companyIds
-
- self.departments = departments
-
- self.tags = tags
-
- self.l3CategoryNames = l3CategoryNames
-
- self.sizes = sizes
-
- self.productGroupTag = productGroupTag
-
- self.multiSize = multiSize
-
- self.isGift = isGift
-
- self.isCod = isCod
-
- self.isDependent = isDependent
-
- self.isAvailable = isAvailable
-
- self.netQuantity = netQuantity
-
- self.seo = seo
-
- self.moq = moq
-
- self.customOrder = customOrder
-
- self.countryOfOrigin = countryOfOrigin
-
- self.customJson = customJson
-
- self.multiCategories = multiCategories
-
- self.variantMedia = variantMedia
-
- self.variantGroup = variantGroup
-
- self.identifiers = identifiers
-
- self.noOfBoxes = noOfBoxes
-
- self.templateTag = templateTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.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 {
-
- }
-
-
-
- do {
- brand = try container.decode(ProductBrand.self, forKey: .brand)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- groupedAttributes = try container.decode([ProductDetailGroupedAttribute].self, forKey: .groupedAttributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- medias = try container.decode([Media].self, forKey: .medias)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- categories = try container.decode([ProductCategory].self, forKey: .categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([[String: Any]].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(Action.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountPercentage = try container.decode(Double.self, forKey: .discountPercentage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isTryout = try container.decode(Bool.self, forKey: .isTryout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allCompanyIds = try container.decode([Int].self, forKey: .allCompanyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- collections = try container.decode([String].self, forKey: .collections)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- popularity = try container.decode(Double.self, forKey: .popularity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- categoryUid = try container.decode(Int.self, forKey: .categoryUid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verificationStatus = try container.decode(String.self, forKey: .verificationStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- l3Categories = try container.decode([Int].self, forKey: .l3Categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- companyIds = try container.decode([Int].self, forKey: .companyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- l3CategoryNames = try container.decode([String].self, forKey: .l3CategoryNames)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isAvailable = try container.decode(Bool.self, forKey: .isAvailable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- netQuantity = try container.decode(NetQuantity.self, forKey: .netQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(ApplicationItemSEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- moq = try container.decode(ApplicationItemMOQ.self, forKey: .moq)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- multiCategories = try container.decode([[String: Any]].self, forKey: .multiCategories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantMedia = try container.decode([String: Any].self, forKey: .variantMedia)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- variantGroup = try container.decode([String: Any].self, forKey: .variantGroup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifiers = try container.decode([String].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(color, forKey: .color)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(groupedAttributes, forKey: .groupedAttributes)
-
-
-
-
- try? container.encodeIfPresent(hasVariant, forKey: .hasVariant)
-
-
-
-
- try? container.encodeIfPresent(highlights, forKey: .highlights)
-
-
-
-
- try? container.encodeIfPresent(imageNature, forKey: .imageNature)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(itemType, forKey: .itemType)
-
-
-
-
- try? container.encodeIfPresent(medias, forKey: .medias)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
-
-
-
-
- try? container.encodeIfPresent(promoMeta, forKey: .promoMeta)
-
-
-
-
- try? container.encodeIfPresent(rating, forKey: .rating)
-
-
-
-
- try? container.encodeIfPresent(ratingCount, forKey: .ratingCount)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(shortDescription, forKey: .shortDescription)
-
-
-
-
- try? container.encodeIfPresent(similars, forKey: .similars)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(teaserTag, forKey: .teaserTag)
-
-
-
-
- try? container.encodeIfPresent(tryouts, forKey: .tryouts)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(discountPercentage, forKey: .discountPercentage)
-
-
-
-
- try? container.encodeIfPresent(isTryout, forKey: .isTryout)
-
-
-
-
- try? container.encodeIfPresent(allCompanyIds, forKey: .allCompanyIds)
-
-
-
-
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
-
-
-
-
- try? container.encodeIfPresent(collections, forKey: .collections)
-
-
-
-
- try? container.encodeIfPresent(popularity, forKey: .popularity)
-
-
-
-
- try? container.encodeIfPresent(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(categoryUid, forKey: .categoryUid)
-
-
-
-
- try? container.encodeIfPresent(verificationStatus, forKey: .verificationStatus)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(categorySlug, forKey: .categorySlug)
-
-
-
-
- try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(l3Categories, forKey: .l3Categories)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(companyIds, forKey: .companyIds)
-
-
-
-
- try? container.encodeIfPresent(departments, forKey: .departments)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(l3CategoryNames, forKey: .l3CategoryNames)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag)
-
-
-
-
- try? container.encodeIfPresent(multiSize, forKey: .multiSize)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isDependent, forKey: .isDependent)
-
-
-
-
- try? container.encodeIfPresent(isAvailable, forKey: .isAvailable)
-
-
-
-
- try? container.encodeIfPresent(netQuantity, forKey: .netQuantity)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(multiCategories, forKey: .multiCategories)
-
-
-
-
- try? container.encodeIfPresent(variantMedia, forKey: .variantMedia)
-
-
-
-
- try? container.encodeIfPresent(variantGroup, forKey: .variantGroup)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionProductSortOnCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionProductSortOnCatalogPlatformModel.swift
deleted file mode 100644
index 47a8744102..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionProductSortOnCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionProductSortOn
- Used By: Catalog
- */
-
- class CollectionProductSortOn: Codable {
-
-
- public var isSelected: Bool?
-
- public var name: String?
-
- public var value: String?
-
- public var logo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isSelected = "is_selected"
-
- case name = "name"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(isSelected: Bool? = nil, logo: String? = nil, name: String? = nil, value: String? = nil) {
-
- self.isSelected = isSelected
-
- self.name = name
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionProductSortOn
- Used By: Catalog
- */
-
- class CollectionProductSortOn: Codable {
-
-
- public var isSelected: Bool?
-
- public var name: String?
-
- public var value: String?
-
- public var logo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isSelected = "is_selected"
-
- case name = "name"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(isSelected: Bool? = nil, logo: String? = nil, name: String? = nil, value: String? = nil) {
-
- self.isSelected = isSelected
-
- self.name = name
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CollectionSeoDetailCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CollectionSeoDetailCatalogPlatformModel.swift
deleted file mode 100644
index c2bdd6b34e..0000000000
--- a/Sources/code/platform/Models/Catalog/CollectionSeoDetailCatalogPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CollectionSeoDetail
- Used By: Catalog
- */
-
- class CollectionSeoDetail: Codable {
-
-
- public var description: String?
-
- public var title: String?
-
- public var sitemap: Sitemap?
-
- public var breadcrumbs: [ApplicationCollectionItemSeoBreadcrumbs]?
-
- public var metaTags: [Metatags]?
-
- public var canonicalUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case description = "description"
-
- case title = "title"
-
- case sitemap = "sitemap"
-
- case breadcrumbs = "breadcrumbs"
-
- case metaTags = "meta_tags"
-
- case canonicalUrl = "canonical_url"
-
- }
-
- public init(breadcrumbs: [ApplicationCollectionItemSeoBreadcrumbs]? = nil, canonicalUrl: String? = nil, description: String? = nil, metaTags: [Metatags]? = nil, sitemap: Sitemap? = nil, title: String? = nil) {
-
- self.description = description
-
- self.title = title
-
- self.sitemap = sitemap
-
- self.breadcrumbs = breadcrumbs
-
- self.metaTags = metaTags
-
- self.canonicalUrl = canonicalUrl
-
- }
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sitemap = try container.decode(Sitemap.self, forKey: .sitemap)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breadcrumbs = try container.decode([ApplicationCollectionItemSeoBreadcrumbs].self, forKey: .breadcrumbs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- metaTags = try container.decode([Metatags].self, forKey: .metaTags)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- canonicalUrl = try container.decode(String.self, forKey: .canonicalUrl)
-
- } 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(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(sitemap, forKey: .sitemap)
-
-
-
-
- try? container.encodeIfPresent(breadcrumbs, forKey: .breadcrumbs)
-
-
-
-
- try? container.encodeIfPresent(metaTags, forKey: .metaTags)
-
-
-
-
- try? container.encodeIfPresent(canonicalUrl, forKey: .canonicalUrl)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CollectionSeoDetail
- Used By: Catalog
- */
-
- class CollectionSeoDetail: Codable {
-
-
- public var description: String?
-
- public var title: String?
-
- public var sitemap: Sitemap?
-
- public var breadcrumbs: [ApplicationCollectionItemSeoBreadcrumbs]?
-
- public var metaTags: [Metatags]?
-
- public var canonicalUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case description = "description"
-
- case title = "title"
-
- case sitemap = "sitemap"
-
- case breadcrumbs = "breadcrumbs"
-
- case metaTags = "meta_tags"
-
- case canonicalUrl = "canonical_url"
-
- }
-
- public init(breadcrumbs: [ApplicationCollectionItemSeoBreadcrumbs]? = nil, canonicalUrl: String? = nil, description: String? = nil, metaTags: [Metatags]? = nil, sitemap: Sitemap? = nil, title: String? = nil) {
-
- self.description = description
-
- self.title = title
-
- self.sitemap = sitemap
-
- self.breadcrumbs = breadcrumbs
-
- self.metaTags = metaTags
-
- self.canonicalUrl = canonicalUrl
-
- }
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sitemap = try container.decode(Sitemap.self, forKey: .sitemap)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- breadcrumbs = try container.decode([ApplicationCollectionItemSeoBreadcrumbs].self, forKey: .breadcrumbs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- metaTags = try container.decode([Metatags].self, forKey: .metaTags)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- canonicalUrl = try container.decode(String.self, forKey: .canonicalUrl)
-
- } 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(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(sitemap, forKey: .sitemap)
-
-
-
-
- try? container.encodeIfPresent(breadcrumbs, forKey: .breadcrumbs)
-
-
-
-
- try? container.encodeIfPresent(metaTags, forKey: .metaTags)
-
-
-
-
- try? container.encodeIfPresent(canonicalUrl, forKey: .canonicalUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ConfigErrorResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ConfigErrorResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..21c8a0b12a
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ConfigErrorResponseCatalogPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ConfigErrorResponse
+ Used By: Catalog
+ */
+
+ class ConfigErrorResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ConfigErrorResponse
+ Used By: Catalog
+ */
+
+ class ConfigErrorResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ConfigErrorResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ConfigErrorResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 521b2d75db..0000000000
--- a/Sources/code/platform/Models/Catalog/ConfigErrorResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ConfigErrorResponseSchema
- Used By: Catalog
- */
-
- class ConfigErrorResponseSchema: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ConfigErrorResponseSchema
- Used By: Catalog
- */
-
- class ConfigErrorResponseSchema: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ConfigItemCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ConfigItemCatalogPlatformModel.swift
deleted file mode 100644
index 5147d62da6..0000000000
--- a/Sources/code/platform/Models/Catalog/ConfigItemCatalogPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ConfigItem
- Used By: Catalog
- */
-
- class ConfigItem: Codable {
-
-
- public var appId: String?
-
- public var attributes: [AttributeConfig]?
-
- public var id: String?
-
- public var isActive: Bool?
-
- public var isDefault: Bool?
-
- public var name: String?
-
- public var priority: Int?
-
- public var slug: String?
-
- public var templateSlugs: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case attributes = "attributes"
-
- case id = "id"
-
- case isActive = "is_active"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- case priority = "priority"
-
- case slug = "slug"
-
- case templateSlugs = "template_slugs"
-
- }
-
- public init(appId: String? = nil, attributes: [AttributeConfig]? = nil, id: String? = nil, isActive: Bool? = nil, isDefault: Bool? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil, templateSlugs: [String]? = nil) {
-
- self.appId = appId
-
- self.attributes = attributes
-
- self.id = id
-
- self.isActive = isActive
-
- self.isDefault = isDefault
-
- self.name = name
-
- self.priority = priority
-
- self.slug = slug
-
- self.templateSlugs = templateSlugs
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- attributes = try container.decode([AttributeConfig].self, forKey: .attributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- templateSlugs = try container.decode([String].self, forKey: .templateSlugs)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(templateSlugs, forKey: .templateSlugs)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ConfigItem
- Used By: Catalog
- */
-
- class ConfigItem: Codable {
-
-
- public var appId: String?
-
- public var attributes: [AttributeConfig]?
-
- public var id: String?
-
- public var isActive: Bool?
-
- public var isDefault: Bool?
-
- public var name: String?
-
- public var priority: Int?
-
- public var slug: String?
-
- public var templateSlugs: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case attributes = "attributes"
-
- case id = "id"
-
- case isActive = "is_active"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- case priority = "priority"
-
- case slug = "slug"
-
- case templateSlugs = "template_slugs"
-
- }
-
- public init(appId: String? = nil, attributes: [AttributeConfig]? = nil, id: String? = nil, isActive: Bool? = nil, isDefault: Bool? = nil, name: String? = nil, priority: Int? = nil, slug: String? = nil, templateSlugs: [String]? = nil) {
-
- self.appId = appId
-
- self.attributes = attributes
-
- self.id = id
-
- self.isActive = isActive
-
- self.isDefault = isDefault
-
- self.name = name
-
- self.priority = priority
-
- self.slug = slug
-
- self.templateSlugs = templateSlugs
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- attributes = try container.decode([AttributeConfig].self, forKey: .attributes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- templateSlugs = try container.decode([String].self, forKey: .templateSlugs)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(templateSlugs, forKey: .templateSlugs)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ConfigSuccessResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ConfigSuccessResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..100963d7e3
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ConfigSuccessResponseCatalogPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ConfigSuccessResponse
+ Used By: Catalog
+ */
+
+ class ConfigSuccessResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ConfigSuccessResponse
+ Used By: Catalog
+ */
+
+ class ConfigSuccessResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ConfigSuccessResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ConfigSuccessResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index a5f946e3a3..0000000000
--- a/Sources/code/platform/Models/Catalog/ConfigSuccessResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ConfigSuccessResponseSchema
- Used By: Catalog
- */
-
- class ConfigSuccessResponseSchema: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ConfigSuccessResponseSchema
- Used By: Catalog
- */
-
- class ConfigSuccessResponseSchema: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2ca6209fd8
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseCatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CreateAutocompleteWordsResponse
+ Used By: Catalog
+ */
+
+ class CreateAutocompleteWordsResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var appId: String?
+
+ public var results: [[String: Any]]?
+
+ public var words: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case appId = "app_id"
+
+ case results = "results"
+
+ case words = "words"
+
+ }
+
+ public init(appId: String? = nil, results: [[String: Any]]? = nil, words: [String]? = nil, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.appId = appId
+
+ self.results = results
+
+ self.words = words
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(results, forKey: .results)
+
+
+
+
+ try? container.encodeIfPresent(words, forKey: .words)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CreateAutocompleteWordsResponse
+ Used By: Catalog
+ */
+
+ class CreateAutocompleteWordsResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var appId: String?
+
+ public var results: [[String: Any]]?
+
+ public var words: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case appId = "app_id"
+
+ case results = "results"
+
+ case words = "words"
+
+ }
+
+ public init(appId: String? = nil, results: [[String: Any]]? = nil, words: [String]? = nil, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.appId = appId
+
+ self.results = results
+
+ self.words = words
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(results, forKey: .results)
+
+
+
+
+ try? container.encodeIfPresent(words, forKey: .words)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 334cf106c0..0000000000
--- a/Sources/code/platform/Models/Catalog/CreateAutocompleteWordsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CreateAutocompleteWordsResponseSchema
- Used By: Catalog
- */
-
- class CreateAutocompleteWordsResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var appId: String?
-
- public var results: [[String: Any]]?
-
- public var words: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case appId = "app_id"
-
- case results = "results"
-
- case words = "words"
-
- }
-
- public init(appId: String? = nil, results: [[String: Any]]? = nil, words: [String]? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.appId = appId
-
- self.results = results
-
- self.words = words
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(results, forKey: .results)
-
-
-
-
- try? container.encodeIfPresent(words, forKey: .words)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CreateAutocompleteWordsResponseSchema
- Used By: Catalog
- */
-
- class CreateAutocompleteWordsResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var appId: String?
-
- public var results: [[String: Any]]?
-
- public var words: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case appId = "app_id"
-
- case results = "results"
-
- case words = "words"
-
- }
-
- public init(appId: String? = nil, results: [[String: Any]]? = nil, words: [String]? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.appId = appId
-
- self.results = results
-
- self.words = words
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(results, forKey: .results)
-
-
-
-
- try? container.encodeIfPresent(words, forKey: .words)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1a7a46f86d
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseCatalogPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CreateMarketplaceOptinResponse
+ Used By: Catalog
+ */
+
+ class CreateMarketplaceOptinResponse: Codable {
+
+
+ public var storeIds: [Int]?
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var enabled: Bool?
+
+ public var createdBy: CreatedBy?
+
+ public var modifiedBy: CreatedBy?
+
+ public var appId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeIds = "store_ids"
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case enabled = "enabled"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ case appId = "app_id"
+
+ }
+
+ public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.storeIds = storeIds
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.enabled = enabled
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ self.appId = appId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CreateMarketplaceOptinResponse
+ Used By: Catalog
+ */
+
+ class CreateMarketplaceOptinResponse: Codable {
+
+
+ public var storeIds: [Int]?
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var enabled: Bool?
+
+ public var createdBy: CreatedBy?
+
+ public var modifiedBy: CreatedBy?
+
+ public var appId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeIds = "store_ids"
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case enabled = "enabled"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ case appId = "app_id"
+
+ }
+
+ public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.storeIds = storeIds
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.enabled = enabled
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ self.appId = appId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 2796fe59f7..0000000000
--- a/Sources/code/platform/Models/Catalog/CreateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CreateMarketplaceOptinResponseSchema
- Used By: Catalog
- */
-
- class CreateMarketplaceOptinResponseSchema: Codable {
-
-
- public var storeIds: [Int]?
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var enabled: Bool?
-
- public var createdBy: CreatedBy?
-
- public var modifiedBy: CreatedBy?
-
- public var appId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeIds = "store_ids"
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case enabled = "enabled"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case appId = "app_id"
-
- }
-
- public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.storeIds = storeIds
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.enabled = enabled
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.appId = appId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CreateMarketplaceOptinResponseSchema
- Used By: Catalog
- */
-
- class CreateMarketplaceOptinResponseSchema: Codable {
-
-
- public var storeIds: [Int]?
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var enabled: Bool?
-
- public var createdBy: CreatedBy?
-
- public var modifiedBy: CreatedBy?
-
- public var appId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeIds = "store_ids"
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case enabled = "enabled"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case appId = "app_id"
-
- }
-
- public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.storeIds = storeIds
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.enabled = enabled
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.appId = appId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..fdb1a04654
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestCatalogPlatformModel.swift
@@ -0,0 +1,456 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CreateSearchConfigurationRequest
+ Used By: Catalog
+ */
+
+ class CreateSearchConfigurationRequest: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CreateSearchConfigurationRequest
+ Used By: Catalog
+ */
+
+ class CreateSearchConfigurationRequest: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index af3df67bf4..0000000000
--- a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CreateSearchConfigurationRequestSchema
- Used By: Catalog
- */
-
- class CreateSearchConfigurationRequestSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CreateSearchConfigurationRequestSchema
- Used By: Catalog
- */
-
- class CreateSearchConfigurationRequestSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..6df90110d7
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: CreateSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class CreateSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: CreateSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class CreateSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 87d3c4e784..0000000000
--- a/Sources/code/platform/Models/Catalog/CreateSearchConfigurationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CreateSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class CreateSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CreateSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class CreateSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CreateUpdateAppReturnConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreateUpdateAppReturnConfigCatalogPlatformModel.swift
index bc8b8197dc..c0fb5eab14 100644
--- a/Sources/code/platform/Models/Catalog/CreateUpdateAppReturnConfigCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/CreateUpdateAppReturnConfigCatalogPlatformModel.swift
@@ -12,16 +12,28 @@ public extension PlatformClient.Catalog {
class CreateUpdateAppReturnConfig: Codable {
+ public var appId: String
+
+ public var companyId: Int
+
public var returnConfigLevel: String
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
+ case companyId = "company_id"
+
case returnConfigLevel = "return_config_level"
}
- public init(returnConfigLevel: String) {
+ public init(appId: String, companyId: Int, returnConfigLevel: String) {
+
+ self.appId = appId
+
+ self.companyId = companyId
self.returnConfigLevel = returnConfigLevel
@@ -31,6 +43,16 @@ public extension PlatformClient.Catalog {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
@@ -42,6 +64,16 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
@@ -61,16 +93,28 @@ public extension PlatformClient.ApplicationClient.Catalog {
class CreateUpdateAppReturnConfig: Codable {
+ public var appId: String
+
+ public var companyId: Int
+
public var returnConfigLevel: String
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
+ case companyId = "company_id"
+
case returnConfigLevel = "return_config_level"
}
- public init(returnConfigLevel: String) {
+ public init(appId: String, companyId: Int, returnConfigLevel: String) {
+
+ self.appId = appId
+
+ self.companyId = companyId
self.returnConfigLevel = returnConfigLevel
@@ -80,6 +124,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
returnConfigLevel = try container.decode(String.self, forKey: .returnConfigLevel)
@@ -91,6 +145,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
try? container.encodeIfPresent(returnConfigLevel, forKey: .returnConfigLevel)
diff --git a/Sources/code/platform/Models/Catalog/CreatedByCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreatedByCatalogPlatformModel.swift
index cef4aa6a8d..14bc6e0f4b 100644
--- a/Sources/code/platform/Models/Catalog/CreatedByCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/CreatedByCatalogPlatformModel.swift
@@ -12,25 +12,25 @@ public extension PlatformClient.Catalog {
class CreatedBy: Codable {
- public var userId: String?
-
public var username: String?
+ public var userId: String?
+
public enum CodingKeys: String, CodingKey {
- case userId = "user_id"
-
case username = "username"
+ case userId = "user_id"
+
}
public init(username: String? = nil, userId: String? = nil) {
- self.userId = userId
-
self.username = username
+ self.userId = userId
+
}
required public init(from decoder: Decoder) throws {
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- userId = try container.decode(String.self, forKey: .userId)
+ username = try container.decode(String.self, forKey: .username)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -50,7 +50,7 @@ public extension PlatformClient.Catalog {
do {
- username = try container.decode(String.self, forKey: .username)
+ userId = try container.decode(String.self, forKey: .userId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -67,12 +67,12 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(userId, forKey: .userId)
+ try? container.encodeIfPresent(username, forKey: .username)
- try? container.encodeIfPresent(username, forKey: .username)
+ try? container.encodeIfPresent(userId, forKey: .userId)
}
@@ -91,25 +91,25 @@ public extension PlatformClient.ApplicationClient.Catalog {
class CreatedBy: Codable {
- public var userId: String?
-
public var username: String?
+ public var userId: String?
+
public enum CodingKeys: String, CodingKey {
- case userId = "user_id"
-
case username = "username"
+ case userId = "user_id"
+
}
public init(username: String? = nil, userId: String? = nil) {
- self.userId = userId
-
self.username = username
+ self.userId = userId
+
}
required public init(from decoder: Decoder) throws {
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- userId = try container.decode(String.self, forKey: .userId)
+ username = try container.decode(String.self, forKey: .username)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- username = try container.decode(String.self, forKey: .username)
+ userId = try container.decode(String.self, forKey: .userId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -146,12 +146,12 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(userId, forKey: .userId)
+ try? container.encodeIfPresent(username, forKey: .username)
- try? container.encodeIfPresent(username, forKey: .username)
+ try? container.encodeIfPresent(userId, forKey: .userId)
}
diff --git a/Sources/code/platform/Models/Catalog/CreatedBySchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CreatedBySchemaCatalogPlatformModel.swift
deleted file mode 100644
index 5629412d0e..0000000000
--- a/Sources/code/platform/Models/Catalog/CreatedBySchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CreatedBySchema
- Used By: Catalog
- */
-
- class CreatedBySchema: Codable {
-
-
- public var userId: String
-
- public var username: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String, userId: String) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- username = try container.decode(String.self, forKey: .username)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CreatedBySchema
- Used By: Catalog
- */
-
- class CreatedBySchema: Codable {
-
-
- public var userId: String
-
- public var username: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String, userId: String) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- username = try container.decode(String.self, forKey: .username)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CrossSellingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CrossSellingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..048d67d9b5
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/CrossSellingResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ 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? = nil, data: CrossSellingData? = nil) {
+
+ self.brandDistribution = brandDistribution
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ 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? = nil, data: CrossSellingData? = nil) {
+
+ self.brandDistribution = brandDistribution
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/CrossSellingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CrossSellingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index bf675b0c37..0000000000
--- a/Sources/code/platform/Models/Catalog/CrossSellingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CrossSellingResponseSchema
- Used By: Catalog
- */
-
- class CrossSellingResponseSchema: 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? = nil, data: CrossSellingData? = nil) {
-
- self.brandDistribution = brandDistribution
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CrossSellingResponseSchema
- Used By: Catalog
- */
-
- class CrossSellingResponseSchema: 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? = nil, data: CrossSellingData? = nil) {
-
- self.brandDistribution = brandDistribution
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CustomMetaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CustomMetaCatalogPlatformModel.swift
deleted file mode 100644
index e719398710..0000000000
--- a/Sources/code/platform/Models/Catalog/CustomMetaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: CustomMeta
- Used By: Catalog
- */
-
- class CustomMeta: Codable {
-
-
- public var key: String
-
- public var value: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case value = "value"
-
- }
-
- public init(key: String, value: String) {
-
- self.key = key
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(String.self, forKey: .key)
-
-
-
-
- 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(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: CustomMeta
- Used By: Catalog
- */
-
- class CustomMeta: Codable {
-
-
- public var key: String
-
- public var value: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case key = "key"
-
- case value = "value"
-
- }
-
- public init(key: String, value: String) {
-
- self.key = key
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- key = try container.decode(String.self, forKey: .key)
-
-
-
-
- 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(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/CustomOrderCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/CustomOrderCatalogPlatformModel.swift
index 6a47cd2496..09d2811154 100644
--- a/Sources/code/platform/Models/Catalog/CustomOrderCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/CustomOrderCatalogPlatformModel.swift
@@ -12,31 +12,31 @@ public extension PlatformClient.Catalog {
class CustomOrder: Codable {
- public var manufacturingTimeUnit: String?
-
- public var isCustomOrder: Bool
+ public var isCustomOrder: Bool?
public var manufacturingTime: Int?
+ public var manufacturingTimeUnit: String?
+
public enum CodingKeys: String, CodingKey {
- case manufacturingTimeUnit = "manufacturing_time_unit"
-
case isCustomOrder = "is_custom_order"
case manufacturingTime = "manufacturing_time"
+ case manufacturingTimeUnit = "manufacturing_time_unit"
+
}
- public init(isCustomOrder: Bool, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
-
- self.manufacturingTimeUnit = manufacturingTimeUnit
+ public init(isCustomOrder: Bool? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
self.isCustomOrder = isCustomOrder
self.manufacturingTime = manufacturingTime
+ self.manufacturingTimeUnit = manufacturingTimeUnit
+
}
required public init(from decoder: Decoder) throws {
@@ -44,7 +44,7 @@ public extension PlatformClient.Catalog {
do {
- manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit)
+ isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -55,13 +55,20 @@ public extension PlatformClient.Catalog {
- isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder)
+ 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)
+ } catch {
+
+ }
-
do {
- manufacturingTime = try container.decode(Int.self, forKey: .manufacturingTime)
+ manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -78,17 +85,17 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
+ try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
+ try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
- try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
+ try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
}
@@ -107,31 +114,31 @@ public extension PlatformClient.ApplicationClient.Catalog {
class CustomOrder: Codable {
- public var manufacturingTimeUnit: String?
-
- public var isCustomOrder: Bool
+ public var isCustomOrder: Bool?
public var manufacturingTime: Int?
+ public var manufacturingTimeUnit: String?
+
public enum CodingKeys: String, CodingKey {
- case manufacturingTimeUnit = "manufacturing_time_unit"
-
case isCustomOrder = "is_custom_order"
case manufacturingTime = "manufacturing_time"
+ case manufacturingTimeUnit = "manufacturing_time_unit"
+
}
- public init(isCustomOrder: Bool, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
-
- self.manufacturingTimeUnit = manufacturingTimeUnit
+ public init(isCustomOrder: Bool? = nil, manufacturingTime: Int? = nil, manufacturingTimeUnit: String? = nil) {
self.isCustomOrder = isCustomOrder
self.manufacturingTime = manufacturingTime
+ self.manufacturingTimeUnit = manufacturingTimeUnit
+
}
required public init(from decoder: Decoder) throws {
@@ -139,7 +146,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit)
+ isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -150,13 +157,20 @@ public extension PlatformClient.ApplicationClient.Catalog {
- isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder)
+ 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)
+ } catch {
+
+ }
-
do {
- manufacturingTime = try container.decode(Int.self, forKey: .manufacturingTime)
+ manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -173,17 +187,17 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
+ try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
+ try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
- try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime)
+ try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit)
}
diff --git a/Sources/code/platform/Models/Catalog/DefaultKeyRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DefaultKeyRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e1a0267d94
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DefaultKeyRequestCatalogPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DefaultKeyRequest
+ Used By: Catalog
+ */
+
+ class DefaultKeyRequest: Codable {
+
+
+ public var defaultKey: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case defaultKey = "default_key"
+
+ }
+
+ public init(defaultKey: String) {
+
+ self.defaultKey = defaultKey
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ defaultKey = try container.decode(String.self, forKey: .defaultKey)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(defaultKey, forKey: .defaultKey)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DefaultKeyRequest
+ Used By: Catalog
+ */
+
+ class DefaultKeyRequest: Codable {
+
+
+ public var defaultKey: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case defaultKey = "default_key"
+
+ }
+
+ public init(defaultKey: String) {
+
+ self.defaultKey = defaultKey
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ defaultKey = try container.decode(String.self, forKey: .defaultKey)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(defaultKey, forKey: .defaultKey)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DefaultKeyRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DefaultKeyRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index dcdb7f4568..0000000000
--- a/Sources/code/platform/Models/Catalog/DefaultKeyRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DefaultKeyRequestSchema
- Used By: Catalog
- */
-
- class DefaultKeyRequestSchema: Codable {
-
-
- public var defaultKey: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case defaultKey = "default_key"
-
- }
-
- public init(defaultKey: String) {
-
- self.defaultKey = defaultKey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- defaultKey = try container.decode(String.self, forKey: .defaultKey)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(defaultKey, forKey: .defaultKey)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DefaultKeyRequestSchema
- Used By: Catalog
- */
-
- class DefaultKeyRequestSchema: Codable {
-
-
- public var defaultKey: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case defaultKey = "default_key"
-
- }
-
- public init(defaultKey: String) {
-
- self.defaultKey = defaultKey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- defaultKey = try container.decode(String.self, forKey: .defaultKey)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(defaultKey, forKey: .defaultKey)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DeleteAppCategoryReturnConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteAppCategoryReturnConfigCatalogPlatformModel.swift
index 03c3c3fb4e..e0e3b93baf 100644
--- a/Sources/code/platform/Models/Catalog/DeleteAppCategoryReturnConfigCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/DeleteAppCategoryReturnConfigCatalogPlatformModel.swift
@@ -12,29 +12,51 @@ public extension PlatformClient.Catalog {
class DeleteAppCategoryReturnConfig: Codable {
+ public var appId: String
+
public var categoryIds: [Int]
+ public var companyId: Int
+
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
case categoryIds = "category_ids"
+ case companyId = "company_id"
+
}
- public init(categoryIds: [Int]) {
+ public init(appId: String, categoryIds: [Int], companyId: Int) {
+
+ self.appId = appId
self.categoryIds = categoryIds
+ self.companyId = companyId
+
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
categoryIds = try container.decode([Int].self, forKey: .categoryIds)
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
}
public func encode(to encoder: Encoder) throws {
@@ -42,9 +64,19 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
try? container.encodeIfPresent(categoryIds, forKey: .categoryIds)
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
}
}
@@ -61,29 +93,51 @@ public extension PlatformClient.ApplicationClient.Catalog {
class DeleteAppCategoryReturnConfig: Codable {
+ public var appId: String
+
public var categoryIds: [Int]
+ public var companyId: Int
+
public enum CodingKeys: String, CodingKey {
+ case appId = "app_id"
+
case categoryIds = "category_ids"
+ case companyId = "company_id"
+
}
- public init(categoryIds: [Int]) {
+ public init(appId: String, categoryIds: [Int], companyId: Int) {
+
+ self.appId = appId
self.categoryIds = categoryIds
+ self.companyId = companyId
+
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
categoryIds = try container.decode([Int].self, forKey: .categoryIds)
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
}
public func encode(to encoder: Encoder) throws {
@@ -91,9 +145,19 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
try? container.encodeIfPresent(categoryIds, forKey: .categoryIds)
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
}
}
diff --git a/Sources/code/platform/Models/Catalog/DeleteProductRequestBodyCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteProductRequestBodyCatalogPlatformModel.swift
deleted file mode 100644
index ea22e6f9b0..0000000000
--- a/Sources/code/platform/Models/Catalog/DeleteProductRequestBodyCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DeleteProductRequestBody
- Used By: Catalog
- */
-
- class DeleteProductRequestBody: Codable {
-
-
- public var brandUid: Int?
-
- public var itemCode: String?
-
- public var companyId: String?
-
- public var itemId: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandUid = "brand_uid"
-
- case itemCode = "item_code"
-
- case companyId = "company_id"
-
- case itemId = "item_id"
-
- }
-
- public init(brandUid: Int? = nil, companyId: String? = nil, itemCode: String? = nil, itemId: Int? = nil) {
-
- self.brandUid = brandUid
-
- self.itemCode = itemCode
-
- self.companyId = companyId
-
- self.itemId = itemId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } 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(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DeleteProductRequestBody
- Used By: Catalog
- */
-
- class DeleteProductRequestBody: Codable {
-
-
- public var brandUid: Int?
-
- public var itemCode: String?
-
- public var companyId: String?
-
- public var itemId: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandUid = "brand_uid"
-
- case itemCode = "item_code"
-
- case companyId = "company_id"
-
- case itemId = "item_id"
-
- }
-
- public init(brandUid: Int? = nil, companyId: String? = nil, itemCode: String? = nil, itemId: Int? = nil) {
-
- self.brandUid = brandUid
-
- self.itemCode = itemCode
-
- self.companyId = companyId
-
- self.itemId = itemId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } 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(brandUid, forKey: .brandUid)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DeleteResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..9c703cebe6
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DeleteResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DeleteResponse
+ Used By: Catalog
+ */
+
+ class DeleteResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DeleteResponse
+ Used By: Catalog
+ */
+
+ class DeleteResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DeleteResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c757ee5d11..0000000000
--- a/Sources/code/platform/Models/Catalog/DeleteResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DeleteResponseSchema
- Used By: Catalog
- */
-
- class DeleteResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DeleteResponseSchema
- Used By: Catalog
- */
-
- class DeleteResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..41add504f9
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DeleteSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class DeleteSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DeleteSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class DeleteSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 6b61de4d9b..0000000000
--- a/Sources/code/platform/Models/Catalog/DeleteSearchConfigurationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DeleteSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class DeleteSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DeleteSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class DeleteSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DepartmentCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentCatalogPlatformModel.swift
index 36df1773d8..50adea0e17 100644
--- a/Sources/code/platform/Models/Catalog/DepartmentCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/DepartmentCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class Department: Codable {
- public var logo: DepartmentMedia?
+ public var logo: Media2?
public var name: String?
@@ -37,7 +37,7 @@ public extension PlatformClient.Catalog {
}
- public init(logo: DepartmentMedia? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
+ public init(logo: Media2? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
self.logo = logo
@@ -56,7 +56,7 @@ public extension PlatformClient.Catalog {
do {
- logo = try container.decode(DepartmentMedia.self, forKey: .logo)
+ logo = try container.decode(Media2.self, forKey: .logo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -160,7 +160,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class Department: Codable {
- public var logo: DepartmentMedia?
+ public var logo: Media2?
public var name: String?
@@ -185,7 +185,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(logo: DepartmentMedia? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
+ public init(logo: Media2? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, uid: Int? = nil) {
self.logo = logo
@@ -204,7 +204,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- logo = try container.decode(DepartmentMedia.self, forKey: .logo)
+ logo = try container.decode(Media2.self, forKey: .logo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/DepartmentErrorResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentErrorResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..0f80b8c6b5
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DepartmentErrorResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DepartmentErrorResponse
+ Used By: Catalog
+ */
+
+ class DepartmentErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var errors: [String: Any]?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case errors = "errors"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.errors = errors
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(errors, forKey: .errors)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DepartmentErrorResponse
+ Used By: Catalog
+ */
+
+ class DepartmentErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var errors: [String: Any]?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case errors = "errors"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.errors = errors
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(errors, forKey: .errors)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DepartmentErrorResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentErrorResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index a60f2f3602..0000000000
--- a/Sources/code/platform/Models/Catalog/DepartmentErrorResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DepartmentErrorResponseSchema
- Used By: Catalog
- */
-
- class DepartmentErrorResponseSchema: Codable {
-
-
- public var code: String?
-
- public var errors: [String: Any]?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case errors = "errors"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.errors = errors
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DepartmentErrorResponseSchema
- Used By: Catalog
- */
-
- class DepartmentErrorResponseSchema: Codable {
-
-
- public var code: String?
-
- public var errors: [String: Any]?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case errors = "errors"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.errors = errors
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DepartmentMediaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentMediaCatalogPlatformModel.swift
deleted file mode 100644
index 47afd8ef3a..0000000000
--- a/Sources/code/platform/Models/Catalog/DepartmentMediaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DepartmentMedia
- Used By: Catalog
- */
-
- class DepartmentMedia: Codable {
-
-
- public var aspectRatio: String?
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aspectRatio = "aspect_ratio"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(aspectRatio: String? = nil, type: String? = nil, url: String? = nil) {
-
- self.aspectRatio = aspectRatio
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DepartmentMedia
- Used By: Catalog
- */
-
- class DepartmentMedia: Codable {
-
-
- public var aspectRatio: String?
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aspectRatio = "aspect_ratio"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(aspectRatio: String? = nil, type: String? = nil, url: String? = nil) {
-
- self.aspectRatio = aspectRatio
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DepartmentResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2c20f45828
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DepartmentResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DepartmentResponse
+ Used By: Catalog
+ */
+
+ class DepartmentResponse: Codable {
+
+
+ public var items: [Department]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Department]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Department].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DepartmentResponse
+ Used By: Catalog
+ */
+
+ class DepartmentResponse: Codable {
+
+
+ public var items: [Department]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Department]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Department].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DepartmentResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 250986ba1c..0000000000
--- a/Sources/code/platform/Models/Catalog/DepartmentResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DepartmentResponseSchema
- Used By: Catalog
- */
-
- class DepartmentResponseSchema: Codable {
-
-
- public var items: [Department]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Department]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Department].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DepartmentResponseSchema
- Used By: Catalog
- */
-
- class DepartmentResponseSchema: Codable {
-
-
- public var items: [Department]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Department]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Department].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DepartmentsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..f05c8f3884
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DepartmentsResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DepartmentsResponse
+ Used By: Catalog
+ */
+
+ class DepartmentsResponse: Codable {
+
+
+ public var items: [GetDepartment]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetDepartment]? = nil, page: Page? = nil) {
+
+ 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([GetDepartment].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DepartmentsResponse
+ Used By: Catalog
+ */
+
+ class DepartmentsResponse: Codable {
+
+
+ public var items: [GetDepartment]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetDepartment]? = nil, page: Page? = nil) {
+
+ 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([GetDepartment].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DepartmentsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DepartmentsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 73927f52ad..0000000000
--- a/Sources/code/platform/Models/Catalog/DepartmentsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DepartmentsResponseSchema
- Used By: Catalog
- */
-
- class DepartmentsResponseSchema: Codable {
-
-
- public var items: [GetDepartment]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetDepartment]? = nil, page: Page? = nil) {
-
- 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([GetDepartment].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DepartmentsResponseSchema
- Used By: Catalog
- */
-
- class DepartmentsResponseSchema: Codable {
-
-
- public var items: [GetDepartment]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetDepartment]? = nil, page: Page? = nil) {
-
- 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([GetDepartment].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/DimensionResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DimensionResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..0bb43ea552
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/DimensionResponseCatalogPlatformModel.swift
@@ -0,0 +1,230 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: DimensionResponse
+ Used By: Catalog
+ */
+
+ class DimensionResponse: Codable {
+
+
+ public var height: Double
+
+ public var isDefault: Bool
+
+ public var length: Double
+
+ public var unit: String
+
+ public var width: Double
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case height = "height"
+
+ case isDefault = "is_default"
+
+ case length = "length"
+
+ case unit = "unit"
+
+ case width = "width"
+
+ }
+
+ public init(height: Double, isDefault: Bool, length: Double, unit: String, width: Double) {
+
+ self.height = height
+
+ self.isDefault = isDefault
+
+ self.length = length
+
+ self.unit = unit
+
+ self.width = width
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ height = try container.decode(Double.self, forKey: .height)
+
+
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ length = try container.decode(Double.self, forKey: .length)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+
+ width = try container.decode(Double.self, forKey: .width)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: DimensionResponse
+ Used By: Catalog
+ */
+
+ class DimensionResponse: Codable {
+
+
+ public var height: Double
+
+ public var isDefault: Bool
+
+ public var length: Double
+
+ public var unit: String
+
+ public var width: Double
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case height = "height"
+
+ case isDefault = "is_default"
+
+ case length = "length"
+
+ case unit = "unit"
+
+ case width = "width"
+
+ }
+
+ public init(height: Double, isDefault: Bool, length: Double, unit: String, width: Double) {
+
+ self.height = height
+
+ self.isDefault = isDefault
+
+ self.length = length
+
+ self.unit = unit
+
+ self.width = width
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ height = try container.decode(Double.self, forKey: .height)
+
+
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ length = try container.decode(Double.self, forKey: .length)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+
+ width = try container.decode(Double.self, forKey: .width)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/DimensionResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/DimensionResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c68d698ebf..0000000000
--- a/Sources/code/platform/Models/Catalog/DimensionResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: DimensionResponseSchema
- Used By: Catalog
- */
-
- class DimensionResponseSchema: Codable {
-
-
- public var height: Double
-
- public var isDefault: Bool
-
- public var length: Double
-
- public var unit: String
-
- public var width: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case height = "height"
-
- case isDefault = "is_default"
-
- case length = "length"
-
- case unit = "unit"
-
- case width = "width"
-
- }
-
- public init(height: Double, isDefault: Bool, length: Double, unit: String, width: Double) {
-
- self.height = height
-
- self.isDefault = isDefault
-
- self.length = length
-
- self.unit = unit
-
- self.width = width
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- height = try container.decode(Double.self, forKey: .height)
-
-
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- length = try container.decode(Double.self, forKey: .length)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
-
- width = try container.decode(Double.self, forKey: .width)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: DimensionResponseSchema
- Used By: Catalog
- */
-
- class DimensionResponseSchema: Codable {
-
-
- public var height: Double
-
- public var isDefault: Bool
-
- public var length: Double
-
- public var unit: String
-
- public var width: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case height = "height"
-
- case isDefault = "is_default"
-
- case length = "length"
-
- case unit = "unit"
-
- case width = "width"
-
- }
-
- public init(height: Double, isDefault: Bool, length: Double, unit: String, width: Double) {
-
- self.height = height
-
- self.isDefault = isDefault
-
- self.length = length
-
- self.unit = unit
-
- self.width = width
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- height = try container.decode(Double.self, forKey: .height)
-
-
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- length = try container.decode(Double.self, forKey: .length)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
-
- width = try container.decode(Double.self, forKey: .width)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ErrorResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ErrorResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..c3d1ef0520
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ErrorResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ErrorResponse
+ Used By: Catalog
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var error: String?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case error = "error"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, error: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.error = error
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ErrorResponse
+ Used By: Catalog
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var error: String?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case error = "error"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, error: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.error = error
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ErrorResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ErrorResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 32714d5c5d..0000000000
--- a/Sources/code/platform/Models/Catalog/ErrorResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ErrorResponseSchema
- Used By: Catalog
- */
-
- class ErrorResponseSchema: Codable {
-
-
- public var code: Double?
-
- public var error: String?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case error = "error"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: Double? = nil, error: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.error = error
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- code = try container.decode(Double.self, forKey: .code)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ErrorResponseSchema
- Used By: Catalog
- */
-
- class ErrorResponseSchema: Codable {
-
-
- public var code: Double?
-
- public var error: String?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case error = "error"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: Double? = nil, error: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.error = error
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- code = try container.decode(Double.self, forKey: .code)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/FiltersCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/FiltersCatalogPlatformModel.swift
deleted file mode 100644
index 0d7042b841..0000000000
--- a/Sources/code/platform/Models/Catalog/FiltersCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: Filters
- Used By: Catalog
- */
-
- class Filters: Codable {
-
-
- public var brands: [String]?
-
- public var fromDate: String?
-
- public var quantity: InventoryExportQuantityFilter?
-
- public var stores: [String]?
-
- public var toDate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case fromDate = "from_date"
-
- case quantity = "quantity"
-
- case stores = "stores"
-
- case toDate = "to_date"
-
- }
-
- public init(brands: [String]? = nil, fromDate: String? = nil, quantity: InventoryExportQuantityFilter? = nil, stores: [String]? = nil, toDate: String? = nil) {
-
- self.brands = brands
-
- self.fromDate = fromDate
-
- self.quantity = quantity
-
- self.stores = stores
-
- self.toDate = toDate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([String].self, forKey: .brands)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromDate = try container.decode(String.self, forKey: .fromDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- quantity = try container.decode(InventoryExportQuantityFilter.self, forKey: .quantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stores = try container.decode([String].self, forKey: .stores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- toDate = try container.decode(String.self, forKey: .toDate)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(fromDate, forKey: .fromDate)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(stores, forKey: .stores)
-
-
-
-
- try? container.encodeIfPresent(toDate, forKey: .toDate)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: Filters
- Used By: Catalog
- */
-
- class Filters: Codable {
-
-
- public var brands: [String]?
-
- public var fromDate: String?
-
- public var quantity: InventoryExportQuantityFilter?
-
- public var stores: [String]?
-
- public var toDate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case fromDate = "from_date"
-
- case quantity = "quantity"
-
- case stores = "stores"
-
- case toDate = "to_date"
-
- }
-
- public init(brands: [String]? = nil, fromDate: String? = nil, quantity: InventoryExportQuantityFilter? = nil, stores: [String]? = nil, toDate: String? = nil) {
-
- self.brands = brands
-
- self.fromDate = fromDate
-
- self.quantity = quantity
-
- self.stores = stores
-
- self.toDate = toDate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([String].self, forKey: .brands)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromDate = try container.decode(String.self, forKey: .fromDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- quantity = try container.decode(InventoryExportQuantityFilter.self, forKey: .quantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stores = try container.decode([String].self, forKey: .stores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- toDate = try container.decode(String.self, forKey: .toDate)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(fromDate, forKey: .fromDate)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(stores, forKey: .stores)
-
-
-
-
- try? container.encodeIfPresent(toDate, forKey: .toDate)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetAddressSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetAddressSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 41eae76cc0..0000000000
--- a/Sources/code/platform/Models/Catalog/GetAddressSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,576 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetAddressSchema
- Used By: Catalog
- */
-
- class GetAddressSchema: Codable {
-
-
- public var address1: String?
-
- public var address2: String?
-
- public var addressType: String?
-
- public var city: String?
-
- public var country: String?
-
- public var countryCode: String?
-
- public var landmark: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
- public var pincode: Int?
-
- public var state: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address1 = "address1"
-
- case address2 = "address2"
-
- case addressType = "address_type"
-
- case city = "city"
-
- case country = "country"
-
- case countryCode = "country_code"
-
- case landmark = "landmark"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- case pincode = "pincode"
-
- case state = "state"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.address1 = address1
-
- self.address2 = address2
-
- self.addressType = addressType
-
- self.city = city
-
- self.country = country
-
- self.countryCode = countryCode
-
- self.landmark = landmark
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- self.pincode = pincode
-
- self.state = state
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetAddressSchema
- Used By: Catalog
- */
-
- class GetAddressSchema: Codable {
-
-
- public var address1: String?
-
- public var address2: String?
-
- public var addressType: String?
-
- public var city: String?
-
- public var country: String?
-
- public var countryCode: String?
-
- public var landmark: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
- public var pincode: Int?
-
- public var state: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address1 = "address1"
-
- case address2 = "address2"
-
- case addressType = "address_type"
-
- case city = "city"
-
- case country = "country"
-
- case countryCode = "country_code"
-
- case landmark = "landmark"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- case pincode = "pincode"
-
- case state = "state"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.address1 = address1
-
- self.address2 = address2
-
- self.addressType = addressType
-
- self.city = city
-
- self.country = country
-
- self.countryCode = countryCode
-
- self.landmark = landmark
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- self.pincode = pincode
-
- self.state = state
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetAddressSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetAddressSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..5f249b0f39
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetAddressSerializerCatalogPlatformModel.swift
@@ -0,0 +1,576 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetAddressSerializer
+ Used By: Catalog
+ */
+
+ class GetAddressSerializer: Codable {
+
+
+ public var address1: String?
+
+ public var address2: String?
+
+ public var addressType: String?
+
+ public var city: String?
+
+ public var country: String?
+
+ public var countryCode: String?
+
+ public var landmark: String?
+
+ public var latitude: Double?
+
+ public var longitude: Double?
+
+ public var pincode: Int?
+
+ public var state: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address1 = "address1"
+
+ case address2 = "address2"
+
+ case addressType = "address_type"
+
+ case city = "city"
+
+ case country = "country"
+
+ case countryCode = "country_code"
+
+ case landmark = "landmark"
+
+ case latitude = "latitude"
+
+ case longitude = "longitude"
+
+ case pincode = "pincode"
+
+ case state = "state"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
+
+ self.address1 = address1
+
+ self.address2 = address2
+
+ self.addressType = addressType
+
+ self.city = city
+
+ self.country = country
+
+ self.countryCode = countryCode
+
+ self.landmark = landmark
+
+ self.latitude = latitude
+
+ self.longitude = longitude
+
+ self.pincode = pincode
+
+ self.state = state
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetAddressSerializer
+ Used By: Catalog
+ */
+
+ class GetAddressSerializer: Codable {
+
+
+ public var address1: String?
+
+ public var address2: String?
+
+ public var addressType: String?
+
+ public var city: String?
+
+ public var country: String?
+
+ public var countryCode: String?
+
+ public var landmark: String?
+
+ public var latitude: Double?
+
+ public var longitude: Double?
+
+ public var pincode: Int?
+
+ public var state: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address1 = "address1"
+
+ case address2 = "address2"
+
+ case addressType = "address_type"
+
+ case city = "city"
+
+ case country = "country"
+
+ case countryCode = "country_code"
+
+ case landmark = "landmark"
+
+ case latitude = "latitude"
+
+ case longitude = "longitude"
+
+ case pincode = "pincode"
+
+ case state = "state"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
+
+ self.address1 = address1
+
+ self.address2 = address2
+
+ self.addressType = addressType
+
+ self.city = city
+
+ self.country = country
+
+ self.countryCode = countryCode
+
+ self.landmark = landmark
+
+ self.latitude = latitude
+
+ self.longitude = longitude
+
+ self.pincode = pincode
+
+ self.state = state
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..de35ad0397
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetAutocompleteWordsResponse
+ Used By: Catalog
+ */
+
+ class GetAutocompleteWordsResponse: Codable {
+
+
+ public var items: [GetAutocompleteWordsData]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetAutocompleteWordsData]? = nil, page: Page? = nil) {
+
+ 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([GetAutocompleteWordsData].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetAutocompleteWordsResponse
+ Used By: Catalog
+ */
+
+ class GetAutocompleteWordsResponse: Codable {
+
+
+ public var items: [GetAutocompleteWordsData]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetAutocompleteWordsData]? = nil, page: Page? = nil) {
+
+ 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([GetAutocompleteWordsData].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index f93a8f5968..0000000000
--- a/Sources/code/platform/Models/Catalog/GetAutocompleteWordsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetAutocompleteWordsResponseSchema
- Used By: Catalog
- */
-
- class GetAutocompleteWordsResponseSchema: Codable {
-
-
- public var items: [GetAutocompleteWordsData]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetAutocompleteWordsData]? = nil, page: Page? = nil) {
-
- 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([GetAutocompleteWordsData].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetAutocompleteWordsResponseSchema
- Used By: Catalog
- */
-
- class GetAutocompleteWordsResponseSchema: Codable {
-
-
- public var items: [GetAutocompleteWordsData]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetAutocompleteWordsData]? = nil, page: Page? = nil) {
-
- 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([GetAutocompleteWordsData].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCatalogConfigurationMetaDataCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCatalogConfigurationMetaDataCatalogPlatformModel.swift
index b05735c642..3ca7be4da1 100644
--- a/Sources/code/platform/Models/Catalog/GetCatalogConfigurationMetaDataCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/GetCatalogConfigurationMetaDataCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class GetCatalogConfigurationMetaData: Codable {
- public var listing: MetaDataListingResponseSchema?
+ public var listing: MetaDataListingResponse?
public var product: GetCatalogConfigurationDetailsProduct?
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(listing: MetaDataListingResponseSchema? = nil, product: GetCatalogConfigurationDetailsProduct? = nil) {
+ public init(listing: MetaDataListingResponse? = nil, product: GetCatalogConfigurationDetailsProduct? = nil) {
self.listing = listing
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- listing = try container.decode(MetaDataListingResponseSchema.self, forKey: .listing)
+ listing = try container.decode(MetaDataListingResponse.self, forKey: .listing)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class GetCatalogConfigurationMetaData: Codable {
- public var listing: MetaDataListingResponseSchema?
+ public var listing: MetaDataListingResponse?
public var product: GetCatalogConfigurationDetailsProduct?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(listing: MetaDataListingResponseSchema? = nil, product: GetCatalogConfigurationDetailsProduct? = nil) {
+ public init(listing: MetaDataListingResponse? = nil, product: GetCatalogConfigurationDetailsProduct? = nil) {
self.listing = listing
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- listing = try container.decode(MetaDataListingResponseSchema.self, forKey: .listing)
+ listing = try container.decode(MetaDataListingResponse.self, forKey: .listing)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionDetailNestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionDetailNestCatalogPlatformModel.swift
index 7444b8785e..bf3a93b5b7 100644
--- a/Sources/code/platform/Models/Catalog/GetCollectionDetailNestCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/GetCollectionDetailNestCatalogPlatformModel.swift
@@ -26,8 +26,6 @@ public extension PlatformClient.Catalog {
public var banners: ImageUrls?
- public var cron: [String: Any]?
-
public var description: String?
public var isActive: Bool?
@@ -85,8 +83,6 @@ public extension PlatformClient.Catalog {
case banners = "banners"
- case cron = "cron"
-
case description = "description"
case isActive = "is_active"
@@ -129,7 +125,7 @@ public extension PlatformClient.Catalog {
}
- public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+ public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
self.schedule = schedule
@@ -145,8 +141,6 @@ public extension PlatformClient.Catalog {
self.banners = banners
- self.cron = cron
-
self.description = description
self.isActive = isActive
@@ -277,18 +271,6 @@ public extension PlatformClient.Catalog {
- do {
- 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)
- } catch {
-
- }
-
-
-
do {
description = try container.decode(String.self, forKey: .description)
@@ -570,11 +552,6 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
try? container.encodeIfPresent(description, forKey: .description)
@@ -703,8 +680,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var banners: ImageUrls?
- public var cron: [String: Any]?
-
public var description: String?
public var isActive: Bool?
@@ -762,8 +737,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
case banners = "banners"
- case cron = "cron"
-
case description = "description"
case isActive = "is_active"
@@ -806,7 +779,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, cron: [String: Any]? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+ public init(action: Action? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tag: [String]? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
self.schedule = schedule
@@ -822,8 +795,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.banners = banners
- self.cron = cron
-
self.description = description
self.isActive = isActive
@@ -954,18 +925,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
- do {
- 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)
- } catch {
-
- }
-
-
-
do {
description = try container.decode(String.self, forKey: .description)
@@ -1247,11 +1206,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(cron, forKey: .cron)
-
-
-
-
try? container.encodeIfPresent(description, forKey: .description)
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..770104ae13
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseCatalogPlatformModel.swift
@@ -0,0 +1,1220 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetCollectionDetailResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionDetailResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var schedule: CollectionSchedule?
+
+ public var action: [String: Any]?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: CollectionBadge?
+
+ public var banners: ImageUrls?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var isVisible: Bool?
+
+ public var logo: Media?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var published: Bool?
+
+ public var query: [CollectionQuery]?
+
+ public var seo: SeoDetail?
+
+ public var slug: String?
+
+ public var sortOn: String?
+
+ public var tags: [String]?
+
+ public var type: String?
+
+ public var uid: String?
+
+ public var visibleFacetsKeys: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case schedule = "_schedule"
+
+ case action = "action"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case isVisible = "is_visible"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case published = "published"
+
+ case query = "query"
+
+ case seo = "seo"
+
+ case slug = "slug"
+
+ case sortOn = "sort_on"
+
+ case tags = "tags"
+
+ case type = "type"
+
+ case uid = "uid"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ }
+
+ public init(action: [String: Any]? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.schedule = schedule
+
+ self.action = action
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.isVisible = isVisible
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.published = published
+
+ self.query = query
+
+ self.seo = seo
+
+ self.slug = slug
+
+ self.sortOn = sortOn
+
+ self.tags = tags
+
+ self.type = type
+
+ self.uid = uid
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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(CollectionSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode([String: Any].self, forKey: .action)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ isVisible = try container.decode(Bool.self, forKey: .isVisible)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(isVisible, forKey: .isVisible)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetCollectionDetailResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionDetailResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var schedule: CollectionSchedule?
+
+ public var action: [String: Any]?
+
+ public var allowFacets: Bool?
+
+ public var allowSort: Bool?
+
+ public var appId: String?
+
+ public var badge: CollectionBadge?
+
+ public var banners: ImageUrls?
+
+ public var description: String?
+
+ public var isActive: Bool?
+
+ public var isVisible: Bool?
+
+ public var logo: Media?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var priority: Int?
+
+ public var published: Bool?
+
+ public var query: [CollectionQuery]?
+
+ public var seo: SeoDetail?
+
+ public var slug: String?
+
+ public var sortOn: String?
+
+ public var tags: [String]?
+
+ public var type: String?
+
+ public var uid: String?
+
+ public var visibleFacetsKeys: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case schedule = "_schedule"
+
+ case action = "action"
+
+ case allowFacets = "allow_facets"
+
+ case allowSort = "allow_sort"
+
+ case appId = "app_id"
+
+ case badge = "badge"
+
+ case banners = "banners"
+
+ case description = "description"
+
+ case isActive = "is_active"
+
+ case isVisible = "is_visible"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case priority = "priority"
+
+ case published = "published"
+
+ case query = "query"
+
+ case seo = "seo"
+
+ case slug = "slug"
+
+ case sortOn = "sort_on"
+
+ case tags = "tags"
+
+ case type = "type"
+
+ case uid = "uid"
+
+ case visibleFacetsKeys = "visible_facets_keys"
+
+ }
+
+ public init(action: [String: Any]? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.schedule = schedule
+
+ self.action = action
+
+ self.allowFacets = allowFacets
+
+ self.allowSort = allowSort
+
+ self.appId = appId
+
+ self.badge = badge
+
+ self.banners = banners
+
+ self.description = description
+
+ self.isActive = isActive
+
+ self.isVisible = isVisible
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.priority = priority
+
+ self.published = published
+
+ self.query = query
+
+ self.seo = seo
+
+ self.slug = slug
+
+ self.sortOn = sortOn
+
+ self.tags = tags
+
+ self.type = type
+
+ self.uid = uid
+
+ self.visibleFacetsKeys = visibleFacetsKeys
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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(CollectionSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode([String: Any].self, forKey: .action)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ isVisible = try container.decode(Bool.self, forKey: .isVisible)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ query = try container.decode([CollectionQuery].self, forKey: .query)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
+
+
+
+
+ try? container.encodeIfPresent(allowSort, forKey: .allowSort)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(badge, forKey: .badge)
+
+
+
+
+ try? container.encodeIfPresent(banners, forKey: .banners)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(isVisible, forKey: .isVisible)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(priority, forKey: .priority)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(query, forKey: .query)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index e997f8a094..0000000000
--- a/Sources/code/platform/Models/Catalog/GetCollectionDetailResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,1266 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetCollectionDetailResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionDetailResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var schedule: CollectionSchedule?
-
- public var action: [String: Any]?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: CollectionBadge?
-
- public var banners: ImageUrls?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var isVisible: Bool?
-
- public var logo: Media?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var published: Bool?
-
- public var query: [CollectionQuery]?
-
- public var seo: SeoDetail?
-
- public var slug: String?
-
- public var sortOn: String?
-
- public var tags: [String]?
-
- public var type: String?
-
- public var uid: String?
-
- public var id: String?
-
- public var visibleFacetsKeys: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case schedule = "_schedule"
-
- case action = "action"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case isVisible = "is_visible"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case published = "published"
-
- case query = "query"
-
- case seo = "seo"
-
- case slug = "slug"
-
- case sortOn = "sort_on"
-
- case tags = "tags"
-
- case type = "type"
-
- case uid = "uid"
-
- case id = "_id"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- }
-
- public init(action: [String: Any]? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.schedule = schedule
-
- self.action = action
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.description = description
-
- self.isActive = isActive
-
- self.isVisible = isVisible
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.published = published
-
- self.query = query
-
- self.seo = seo
-
- self.slug = slug
-
- self.sortOn = sortOn
-
- self.tags = tags
-
- self.type = type
-
- self.uid = uid
-
- self.id = id
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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(CollectionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode([String: Any].self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetCollectionDetailResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionDetailResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var schedule: CollectionSchedule?
-
- public var action: [String: Any]?
-
- public var allowFacets: Bool?
-
- public var allowSort: Bool?
-
- public var appId: String?
-
- public var badge: CollectionBadge?
-
- public var banners: ImageUrls?
-
- public var description: String?
-
- public var isActive: Bool?
-
- public var isVisible: Bool?
-
- public var logo: Media?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var priority: Int?
-
- public var published: Bool?
-
- public var query: [CollectionQuery]?
-
- public var seo: SeoDetail?
-
- public var slug: String?
-
- public var sortOn: String?
-
- public var tags: [String]?
-
- public var type: String?
-
- public var uid: String?
-
- public var id: String?
-
- public var visibleFacetsKeys: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case schedule = "_schedule"
-
- case action = "action"
-
- case allowFacets = "allow_facets"
-
- case allowSort = "allow_sort"
-
- case appId = "app_id"
-
- case badge = "badge"
-
- case banners = "banners"
-
- case description = "description"
-
- case isActive = "is_active"
-
- case isVisible = "is_visible"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case priority = "priority"
-
- case published = "published"
-
- case query = "query"
-
- case seo = "seo"
-
- case slug = "slug"
-
- case sortOn = "sort_on"
-
- case tags = "tags"
-
- case type = "type"
-
- case uid = "uid"
-
- case id = "_id"
-
- case visibleFacetsKeys = "visible_facets_keys"
-
- }
-
- public init(action: [String: Any]? = nil, allowFacets: Bool? = nil, allowSort: Bool? = nil, appId: String? = nil, badge: CollectionBadge? = nil, banners: ImageUrls? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: Media? = nil, meta: [String: Any]? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, uid: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, id: String? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.schedule = schedule
-
- self.action = action
-
- self.allowFacets = allowFacets
-
- self.allowSort = allowSort
-
- self.appId = appId
-
- self.badge = badge
-
- self.banners = banners
-
- self.description = description
-
- self.isActive = isActive
-
- self.isVisible = isVisible
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.priority = priority
-
- self.published = published
-
- self.query = query
-
- self.seo = seo
-
- self.slug = slug
-
- self.sortOn = sortOn
-
- self.tags = tags
-
- self.type = type
-
- self.uid = uid
-
- self.id = id
-
- self.visibleFacetsKeys = visibleFacetsKeys
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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(CollectionSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode([String: Any].self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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 {
- isVisible = try container.decode(Bool.self, forKey: .isVisible)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- query = try container.decode([CollectionQuery].self, forKey: .query)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(allowFacets, forKey: .allowFacets)
-
-
-
-
- try? container.encodeIfPresent(allowSort, forKey: .allowSort)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(badge, forKey: .badge)
-
-
-
-
- try? container.encodeIfPresent(banners, forKey: .banners)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isVisible, forKey: .isVisible)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(query, forKey: .query)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..42cb74e5d0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseCatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetCollectionItemsResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionItemsResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var items: [ProductListingDetail]?
+
+ public var page: Page?
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case page = "page"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, page: Page? = nil, sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.page = page
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetCollectionItemsResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionItemsResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var items: [ProductListingDetail]?
+
+ public var page: Page?
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case page = "page"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, items: [ProductListingDetail]? = nil, page: Page? = nil, sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.page = page
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b3aa5959a9..0000000000
--- a/Sources/code/platform/Models/Catalog/GetCollectionItemsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetCollectionItemsResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionItemsResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var items: [ApplicationProductsSchema]?
-
- public var page: Page?
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case page = "page"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, items: [ApplicationProductsSchema]? = nil, page: Page? = nil, sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.page = page
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ApplicationProductsSchema].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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetCollectionItemsResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionItemsResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var items: [ApplicationProductsSchema]?
-
- public var page: Page?
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case page = "page"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, items: [ApplicationProductsSchema]? = nil, page: Page? = nil, sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.page = page
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- items = try container.decode([ApplicationProductsSchema].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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..aa123ffd78
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetCollectionListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetCollectionListingResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionListingResponse: Codable {
+
+
+ public var filters: CollectionListingFilter?
+
+ public var items: [GetCollectionDetailNest]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetCollectionListingResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionListingResponse: Codable {
+
+
+ public var filters: CollectionListingFilter?
+
+ public var items: [GetCollectionDetailNest]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page? = nil) {
+
+ self.filters = filters
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 45eb71f078..0000000000
--- a/Sources/code/platform/Models/Catalog/GetCollectionListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetCollectionListingResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionListingResponseSchema: Codable {
-
-
- public var filters: CollectionListingFilter?
-
- public var items: [GetCollectionDetailNest]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetCollectionListingResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionListingResponseSchema: Codable {
-
-
- public var filters: CollectionListingFilter?
-
- public var items: [GetCollectionDetailNest]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(filters: CollectionListingFilter? = nil, items: [GetCollectionDetailNest]? = nil, page: Page? = nil) {
-
- self.filters = filters
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..a3a95058d2
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseCatalogPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetCollectionQueryOptionResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionQueryOptionResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetCollectionQueryOptionResponse
+ Used By: Catalog
+ */
+
+ class GetCollectionQueryOptionResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 7ea81b0e59..0000000000
--- a/Sources/code/platform/Models/Catalog/GetCollectionQueryOptionResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetCollectionQueryOptionResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionQueryOptionResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var operators: [String: Any]
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, operators: [String: Any], sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: Any].self, forKey: .operators)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetCollectionQueryOptionResponseSchema
- Used By: Catalog
- */
-
- class GetCollectionQueryOptionResponseSchema: Codable {
-
-
- public var filters: [ProductFilters]?
-
- public var operators: [String: Any]
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFilters]? = nil, operators: [String: Any], sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: Any].self, forKey: .operators)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCompanySchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCompanySchemaCatalogPlatformModel.swift
deleted file mode 100644
index 17702dc3fa..0000000000
--- a/Sources/code/platform/Models/Catalog/GetCompanySchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,668 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetCompanySchema
- Used By: Catalog
- */
-
- class GetCompanySchema: Codable {
-
-
- public var addresses: [GetAddressSchema]?
-
- public var businessType: String?
-
- public var companyType: String?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var rejectReason: String?
-
- public var stage: String?
-
- public var uid: Int?
-
- public var verifiedBy: UserSchema?
-
- public var verifiedOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addresses = "addresses"
-
- case businessType = "business_type"
-
- case companyType = "company_type"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case rejectReason = "reject_reason"
-
- case stage = "stage"
-
- case uid = "uid"
-
- case verifiedBy = "verified_by"
-
- case verifiedOn = "verified_on"
-
- }
-
- public init(addresses: [GetAddressSchema]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil) {
-
- self.addresses = addresses
-
- self.businessType = businessType
-
- self.companyType = companyType
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.rejectReason = rejectReason
-
- self.stage = stage
-
- self.uid = uid
-
- self.verifiedBy = verifiedBy
-
- self.verifiedOn = verifiedOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- addresses = try container.decode([GetAddressSchema].self, forKey: .addresses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(addresses, forKey: .addresses)
-
-
-
-
- try? container.encodeIfPresent(businessType, forKey: .businessType)
-
-
-
-
- try? container.encodeIfPresent(companyType, forKey: .companyType)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetCompanySchema
- Used By: Catalog
- */
-
- class GetCompanySchema: Codable {
-
-
- public var addresses: [GetAddressSchema]?
-
- public var businessType: String?
-
- public var companyType: String?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var rejectReason: String?
-
- public var stage: String?
-
- public var uid: Int?
-
- public var verifiedBy: UserSchema?
-
- public var verifiedOn: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case addresses = "addresses"
-
- case businessType = "business_type"
-
- case companyType = "company_type"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case rejectReason = "reject_reason"
-
- case stage = "stage"
-
- case uid = "uid"
-
- case verifiedBy = "verified_by"
-
- case verifiedOn = "verified_on"
-
- }
-
- public init(addresses: [GetAddressSchema]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil) {
-
- self.addresses = addresses
-
- self.businessType = businessType
-
- self.companyType = companyType
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.rejectReason = rejectReason
-
- self.stage = stage
-
- self.uid = uid
-
- self.verifiedBy = verifiedBy
-
- self.verifiedOn = verifiedOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- addresses = try container.decode([GetAddressSchema].self, forKey: .addresses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(addresses, forKey: .addresses)
-
-
-
-
- try? container.encodeIfPresent(businessType, forKey: .businessType)
-
-
-
-
- try? container.encodeIfPresent(companyType, forKey: .companyType)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetCompanySerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetCompanySerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..12b004139c
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetCompanySerializerCatalogPlatformModel.swift
@@ -0,0 +1,668 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetCompanySerializer
+ Used By: Catalog
+ */
+
+ class GetCompanySerializer: Codable {
+
+
+ public var addresses: [GetAddressSerializer]?
+
+ public var businessType: String?
+
+ public var companyType: String?
+
+ public var createdBy: UserSerializer2?
+
+ public var createdOn: String?
+
+ public var modifiedBy: UserSerializer2?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var rejectReason: String?
+
+ public var stage: String?
+
+ public var uid: Int?
+
+ public var verifiedBy: UserSerializer2?
+
+ public var verifiedOn: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case addresses = "addresses"
+
+ case businessType = "business_type"
+
+ case companyType = "company_type"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case rejectReason = "reject_reason"
+
+ case stage = "stage"
+
+ case uid = "uid"
+
+ case verifiedBy = "verified_by"
+
+ case verifiedOn = "verified_on"
+
+ }
+
+ public init(addresses: [GetAddressSerializer]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSerializer2? = nil, createdOn: String? = nil, modifiedBy: UserSerializer2? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSerializer2? = nil, verifiedOn: String? = nil) {
+
+ self.addresses = addresses
+
+ self.businessType = businessType
+
+ self.companyType = companyType
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.rejectReason = rejectReason
+
+ self.stage = stage
+
+ self.uid = uid
+
+ self.verifiedBy = verifiedBy
+
+ self.verifiedOn = verifiedOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(UserSerializer2.self, forKey: .createdBy)
+
+ } 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 {
+ modifiedBy = try container.decode(UserSerializer2.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ verifiedBy = try container.decode(UserSerializer2.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(addresses, forKey: .addresses)
+
+
+
+
+ try? container.encodeIfPresent(businessType, forKey: .businessType)
+
+
+
+
+ try? container.encodeIfPresent(companyType, forKey: .companyType)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetCompanySerializer
+ Used By: Catalog
+ */
+
+ class GetCompanySerializer: Codable {
+
+
+ public var addresses: [GetAddressSerializer]?
+
+ public var businessType: String?
+
+ public var companyType: String?
+
+ public var createdBy: UserSerializer2?
+
+ public var createdOn: String?
+
+ public var modifiedBy: UserSerializer2?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var rejectReason: String?
+
+ public var stage: String?
+
+ public var uid: Int?
+
+ public var verifiedBy: UserSerializer2?
+
+ public var verifiedOn: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case addresses = "addresses"
+
+ case businessType = "business_type"
+
+ case companyType = "company_type"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case rejectReason = "reject_reason"
+
+ case stage = "stage"
+
+ case uid = "uid"
+
+ case verifiedBy = "verified_by"
+
+ case verifiedOn = "verified_on"
+
+ }
+
+ public init(addresses: [GetAddressSerializer]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSerializer2? = nil, createdOn: String? = nil, modifiedBy: UserSerializer2? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSerializer2? = nil, verifiedOn: String? = nil) {
+
+ self.addresses = addresses
+
+ self.businessType = businessType
+
+ self.companyType = companyType
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.rejectReason = rejectReason
+
+ self.stage = stage
+
+ self.uid = uid
+
+ self.verifiedBy = verifiedBy
+
+ self.verifiedOn = verifiedOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(UserSerializer2.self, forKey: .createdBy)
+
+ } 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 {
+ modifiedBy = try container.decode(UserSerializer2.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ verifiedBy = try container.decode(UserSerializer2.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(addresses, forKey: .addresses)
+
+
+
+
+ try? container.encodeIfPresent(businessType, forKey: .businessType)
+
+
+
+
+ try? container.encodeIfPresent(companyType, forKey: .companyType)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..65201a0402
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseCatalogPlatformModel.swift
@@ -0,0 +1,240 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetConfigMetadataResponse
+ Used By: Catalog
+ */
+
+ class GetConfigMetadataResponse: Codable {
+
+
+ public var condition: [ConditionItem]?
+
+ public var data: [DataItem]
+
+ public var page: Page?
+
+ public var values: GetConfigMetadataValues?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case condition = "condition"
+
+ case data = "data"
+
+ case page = "page"
+
+ case values = "values"
+
+ }
+
+ public init(condition: [ConditionItem]? = nil, data: [DataItem], page: Page? = nil, values: GetConfigMetadataValues? = nil) {
+
+ self.condition = condition
+
+ self.data = data
+
+ self.page = page
+
+ self.values = values
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ condition = try container.decode([ConditionItem].self, forKey: .condition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ data = try container.decode([DataItem].self, forKey: .data)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ values = try container.decode(GetConfigMetadataValues.self, forKey: .values)
+
+ } 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(condition, forKey: .condition)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(values, forKey: .values)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetConfigMetadataResponse
+ Used By: Catalog
+ */
+
+ class GetConfigMetadataResponse: Codable {
+
+
+ public var condition: [ConditionItem]?
+
+ public var data: [DataItem]
+
+ public var page: Page?
+
+ public var values: GetConfigMetadataValues?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case condition = "condition"
+
+ case data = "data"
+
+ case page = "page"
+
+ case values = "values"
+
+ }
+
+ public init(condition: [ConditionItem]? = nil, data: [DataItem], page: Page? = nil, values: GetConfigMetadataValues? = nil) {
+
+ self.condition = condition
+
+ self.data = data
+
+ self.page = page
+
+ self.values = values
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ condition = try container.decode([ConditionItem].self, forKey: .condition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ data = try container.decode([DataItem].self, forKey: .data)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ values = try container.decode(GetConfigMetadataValues.self, forKey: .values)
+
+ } 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(condition, forKey: .condition)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(values, forKey: .values)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 7ab8563d74..0000000000
--- a/Sources/code/platform/Models/Catalog/GetConfigMetadataResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetConfigMetadataResponseSchema
- Used By: Catalog
- */
-
- class GetConfigMetadataResponseSchema: Codable {
-
-
- public var condition: [ConditionItem]?
-
- public var data: [DataItem]
-
- public var page: Page?
-
- public var values: GetConfigMetadataValues?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case condition = "condition"
-
- case data = "data"
-
- case page = "page"
-
- case values = "values"
-
- }
-
- public init(condition: [ConditionItem]? = nil, data: [DataItem], page: Page? = nil, values: GetConfigMetadataValues? = nil) {
-
- self.condition = condition
-
- self.data = data
-
- self.page = page
-
- self.values = values
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- condition = try container.decode([ConditionItem].self, forKey: .condition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- data = try container.decode([DataItem].self, forKey: .data)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- values = try container.decode(GetConfigMetadataValues.self, forKey: .values)
-
- } 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(condition, forKey: .condition)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetConfigMetadataResponseSchema
- Used By: Catalog
- */
-
- class GetConfigMetadataResponseSchema: Codable {
-
-
- public var condition: [ConditionItem]?
-
- public var data: [DataItem]
-
- public var page: Page?
-
- public var values: GetConfigMetadataValues?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case condition = "condition"
-
- case data = "data"
-
- case page = "page"
-
- case values = "values"
-
- }
-
- public init(condition: [ConditionItem]? = nil, data: [DataItem], page: Page? = nil, values: GetConfigMetadataValues? = nil) {
-
- self.condition = condition
-
- self.data = data
-
- self.page = page
-
- self.values = values
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- condition = try container.decode([ConditionItem].self, forKey: .condition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- data = try container.decode([DataItem].self, forKey: .data)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- values = try container.decode(GetConfigMetadataValues.self, forKey: .values)
-
- } 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(condition, forKey: .condition)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetConfigResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetConfigResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..32484018b4
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetConfigResponseCatalogPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetConfigResponse
+ Used By: Catalog
+ */
+
+ class GetConfigResponse: Codable {
+
+
+ public var data: [[String: Any]]
+
+ public var page: PageResponseType
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case page = "page"
+
+ }
+
+ public init(data: [[String: Any]], page: PageResponseType) {
+
+ self.data = data
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ page = try container.decode(PageResponseType.self, forKey: .page)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetConfigResponse
+ Used By: Catalog
+ */
+
+ class GetConfigResponse: Codable {
+
+
+ public var data: [[String: Any]]
+
+ public var page: PageResponseType
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case page = "page"
+
+ }
+
+ public init(data: [[String: Any]], page: PageResponseType) {
+
+ self.data = data
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ page = try container.decode(PageResponseType.self, forKey: .page)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetConfigResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetConfigResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index ac91b54e6f..0000000000
--- a/Sources/code/platform/Models/Catalog/GetConfigResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetConfigResponseSchema
- Used By: Catalog
- */
-
- class GetConfigResponseSchema: Codable {
-
-
- public var data: [ConfigItem]
-
- public var page: PageResponseType
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case page = "page"
-
- }
-
- public init(data: [ConfigItem], page: PageResponseType) {
-
- self.data = data
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([ConfigItem].self, forKey: .data)
-
-
-
-
- page = try container.decode(PageResponseType.self, forKey: .page)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetConfigResponseSchema
- Used By: Catalog
- */
-
- class GetConfigResponseSchema: Codable {
-
-
- public var data: [ConfigItem]
-
- public var page: PageResponseType
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case page = "page"
-
- }
-
- public init(data: [ConfigItem], page: PageResponseType) {
-
- self.data = data
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([ConfigItem].self, forKey: .data)
-
-
-
-
- page = try container.decode(PageResponseType.self, forKey: .page)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetDepartmentCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetDepartmentCatalogPlatformModel.swift
index 440d704074..086fc6472b 100644
--- a/Sources/code/platform/Models/Catalog/GetDepartmentCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/GetDepartmentCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class GetDepartment: Codable {
- public var createdBy: RequestUserSchema?
+ public var createdBy: RequestUserSerializer?
public var createdOn: String?
@@ -22,20 +22,24 @@ public extension PlatformClient.Catalog {
public var logo: String?
- public var modifiedBy: RequestUserSchema?
+ public var modifiedBy: RequestUserSerializer?
public var modifiedOn: String?
- public var id: String?
-
public var name: String?
- public var slug: String?
+ public var pageNo: Int?
- public var synonyms: [String]?
+ public var pageSize: Int?
public var priorityOrder: Int?
+ public var search: String?
+
+ public var slug: String?
+
+ public var synonyms: [String]?
+
public var uid: Int?
@@ -55,21 +59,25 @@ public extension PlatformClient.Catalog {
case modifiedOn = "modified_on"
- case id = "id"
-
case name = "name"
- case slug = "slug"
+ case pageNo = "page_no"
- case synonyms = "synonyms"
+ case pageSize = "page_size"
case priorityOrder = "priority_order"
+ case search = "search"
+
+ case slug = "slug"
+
+ case synonyms = "synonyms"
+
case uid = "uid"
}
- public init(createdBy: RequestUserSchema? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool? = nil, itemType: String? = nil, logo: String? = nil, modifiedBy: RequestUserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, synonyms: [String]? = nil, uid: Int? = nil) {
+ public init(createdBy: RequestUserSerializer? = nil, createdOn: String? = nil, isActive: Bool? = nil, itemType: String? = nil, logo: String? = nil, modifiedBy: RequestUserSerializer? = nil, modifiedOn: String? = nil, name: String? = nil, pageNo: Int? = nil, pageSize: Int? = nil, priorityOrder: Int? = nil, search: String? = nil, slug: String? = nil, synonyms: [String]? = nil, uid: Int? = nil) {
self.createdBy = createdBy
@@ -85,16 +93,20 @@ public extension PlatformClient.Catalog {
self.modifiedOn = modifiedOn
- self.id = id
-
self.name = name
- self.slug = slug
+ self.pageNo = pageNo
- self.synonyms = synonyms
+ self.pageSize = pageSize
self.priorityOrder = priorityOrder
+ self.search = search
+
+ self.slug = slug
+
+ self.synonyms = synonyms
+
self.uid = uid
}
@@ -104,7 +116,7 @@ public extension PlatformClient.Catalog {
do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -164,7 +176,7 @@ public extension PlatformClient.Catalog {
do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -188,7 +200,7 @@ public extension PlatformClient.Catalog {
do {
- id = try container.decode(String.self, forKey: .id)
+ name = try container.decode(String.self, forKey: .name)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -200,7 +212,7 @@ public extension PlatformClient.Catalog {
do {
- name = try container.decode(String.self, forKey: .name)
+ pageNo = try container.decode(Int.self, forKey: .pageNo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -212,7 +224,7 @@ public extension PlatformClient.Catalog {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ pageSize = try container.decode(Int.self, forKey: .pageSize)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -224,7 +236,7 @@ public extension PlatformClient.Catalog {
do {
- synonyms = try container.decode([String].self, forKey: .synonyms)
+ priorityOrder = try container.decode(Int.self, forKey: .priorityOrder)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -236,7 +248,31 @@ public extension PlatformClient.Catalog {
do {
- priorityOrder = try container.decode(Int.self, forKey: .priorityOrder)
+ 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 {
+
+ }
+
+
+
+ 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 {
+ synonyms = try container.decode([String].self, forKey: .synonyms)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -300,27 +336,37 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(name, forKey: .name)
- try? container.encodeIfPresent(name, forKey: .name)
+ try? container.encodeIfPresent(pageNo, forKey: .pageNo)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+ try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
- try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
@@ -344,7 +390,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class GetDepartment: Codable {
- public var createdBy: RequestUserSchema?
+ public var createdBy: RequestUserSerializer?
public var createdOn: String?
@@ -354,20 +400,24 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var logo: String?
- public var modifiedBy: RequestUserSchema?
+ public var modifiedBy: RequestUserSerializer?
public var modifiedOn: String?
- public var id: String?
-
public var name: String?
- public var slug: String?
+ public var pageNo: Int?
- public var synonyms: [String]?
+ public var pageSize: Int?
public var priorityOrder: Int?
+ public var search: String?
+
+ public var slug: String?
+
+ public var synonyms: [String]?
+
public var uid: Int?
@@ -387,21 +437,25 @@ public extension PlatformClient.ApplicationClient.Catalog {
case modifiedOn = "modified_on"
- case id = "id"
-
case name = "name"
- case slug = "slug"
+ case pageNo = "page_no"
- case synonyms = "synonyms"
+ case pageSize = "page_size"
case priorityOrder = "priority_order"
+ case search = "search"
+
+ case slug = "slug"
+
+ case synonyms = "synonyms"
+
case uid = "uid"
}
- public init(createdBy: RequestUserSchema? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool? = nil, itemType: String? = nil, logo: String? = nil, modifiedBy: RequestUserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, priorityOrder: Int? = nil, slug: String? = nil, synonyms: [String]? = nil, uid: Int? = nil) {
+ public init(createdBy: RequestUserSerializer? = nil, createdOn: String? = nil, isActive: Bool? = nil, itemType: String? = nil, logo: String? = nil, modifiedBy: RequestUserSerializer? = nil, modifiedOn: String? = nil, name: String? = nil, pageNo: Int? = nil, pageSize: Int? = nil, priorityOrder: Int? = nil, search: String? = nil, slug: String? = nil, synonyms: [String]? = nil, uid: Int? = nil) {
self.createdBy = createdBy
@@ -417,16 +471,20 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.modifiedOn = modifiedOn
- self.id = id
-
self.name = name
- self.slug = slug
+ self.pageNo = pageNo
- self.synonyms = synonyms
+ self.pageSize = pageSize
self.priorityOrder = priorityOrder
+ self.search = search
+
+ self.slug = slug
+
+ self.synonyms = synonyms
+
self.uid = uid
}
@@ -436,7 +494,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -496,7 +554,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -520,7 +578,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- id = try container.decode(String.self, forKey: .id)
+ name = try container.decode(String.self, forKey: .name)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -532,7 +590,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- name = try container.decode(String.self, forKey: .name)
+ pageNo = try container.decode(Int.self, forKey: .pageNo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -544,7 +602,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ pageSize = try container.decode(Int.self, forKey: .pageSize)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -556,7 +614,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- synonyms = try container.decode([String].self, forKey: .synonyms)
+ priorityOrder = try container.decode(Int.self, forKey: .priorityOrder)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -568,7 +626,31 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- priorityOrder = try container.decode(Int.self, forKey: .priorityOrder)
+ 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 {
+
+ }
+
+
+
+ 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 {
+ synonyms = try container.decode([String].self, forKey: .synonyms)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -632,27 +714,37 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(name, forKey: .name)
- try? container.encodeIfPresent(name, forKey: .name)
+ try? container.encodeIfPresent(pageNo, forKey: .pageNo)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+ try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
- try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder)
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
diff --git a/Sources/code/platform/Models/Catalog/GetInventoriesCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetInventoriesCatalogPlatformModel.swift
index 0a36471227..86707e001d 100644
--- a/Sources/code/platform/Models/Catalog/GetInventoriesCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/GetInventoriesCatalogPlatformModel.swift
@@ -18,17 +18,17 @@ public extension PlatformClient.Catalog {
public var countryOfOrigin: String?
- public var createdBy: RequestUserSchema?
+ public var createdBy: RequestUserSerializer?
public var dateMeta: DateMeta?
- public var dimension: InventoryDimensionResponseSchema?
+ public var dimension: InventoryDimensionResponse?
public var expirationDate: String?
public var id: String?
- public var identifier: Identifier?
+ public var identifier: [String: Any]?
public var inventoryUpdatedOn: String?
@@ -36,9 +36,9 @@ public extension PlatformClient.Catalog {
public var itemId: Int?
- public var manufacturer: InventoryManufacturerResponseSchema?
+ public var manufacturer: InventoryManufacturerResponse?
- public var modifiedBy: RequestUserSchema?
+ public var modifiedBy: RequestUserSerializer?
public var platforms: [String: Any]?
@@ -54,11 +54,11 @@ public extension PlatformClient.Catalog {
public var stage: String?
- public var store: ArticleStoreResponseSchema?
+ public var store: ArticleStoreResponse?
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var totalQuantity: Int?
@@ -66,11 +66,11 @@ public extension PlatformClient.Catalog {
public var trackInventory: Bool?
- public var trader: [TraderResponseSchema]?
+ public var trader: [TraderResponse]?
public var uid: String?
- public var weight: InventoryWeightResponseSchema?
+ public var weight: InventoryWeightResponse?
public enum CodingKeys: String, CodingKey {
@@ -137,7 +137,7 @@ public extension PlatformClient.Catalog {
}
- public init(brand: InventoryBrandMeta? = nil, company: InventoryCompanyMeta? = nil, countryOfOrigin: String? = nil, createdBy: RequestUserSchema? = nil, dateMeta: DateMeta? = nil, dimension: InventoryDimensionResponseSchema? = nil, expirationDate: String? = nil, id: String? = nil, identifier: Identifier? = nil, inventoryUpdatedOn: String? = nil, isSet: Bool? = nil, itemId: Int? = nil, manufacturer: InventoryManufacturerResponseSchema? = nil, modifiedBy: RequestUserSchema? = nil, platforms: [String: Any]? = nil, price: PriceArticle? = nil, quantities: QuantitiesArticle? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String? = nil, size: String? = nil, stage: String? = nil, store: ArticleStoreResponseSchema? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int? = nil, traceId: String? = nil, trackInventory: Bool? = nil, trader: [TraderResponseSchema]? = nil, uid: String? = nil, weight: InventoryWeightResponseSchema? = nil) {
+ public init(brand: InventoryBrandMeta? = nil, company: InventoryCompanyMeta? = nil, countryOfOrigin: String? = nil, createdBy: RequestUserSerializer? = nil, dateMeta: DateMeta? = nil, dimension: InventoryDimensionResponse? = nil, expirationDate: String? = nil, id: String? = nil, identifier: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, isSet: Bool? = nil, itemId: Int? = nil, manufacturer: InventoryManufacturerResponse? = nil, modifiedBy: RequestUserSerializer? = nil, platforms: [String: Any]? = nil, price: PriceArticle? = nil, quantities: QuantitiesArticle? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String? = nil, size: String? = nil, stage: String? = nil, store: ArticleStoreResponse? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, totalQuantity: Int? = nil, traceId: String? = nil, trackInventory: Bool? = nil, trader: [TraderResponse]? = nil, uid: String? = nil, weight: InventoryWeightResponse? = nil) {
self.brand = brand
@@ -242,7 +242,7 @@ public extension PlatformClient.Catalog {
do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -266,7 +266,7 @@ public extension PlatformClient.Catalog {
do {
- dimension = try container.decode(InventoryDimensionResponseSchema.self, forKey: .dimension)
+ dimension = try container.decode(InventoryDimensionResponse.self, forKey: .dimension)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -302,7 +302,7 @@ public extension PlatformClient.Catalog {
do {
- identifier = try container.decode(Identifier.self, forKey: .identifier)
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -350,7 +350,7 @@ public extension PlatformClient.Catalog {
do {
- manufacturer = try container.decode(InventoryManufacturerResponseSchema.self, forKey: .manufacturer)
+ manufacturer = try container.decode(InventoryManufacturerResponse.self, forKey: .manufacturer)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -362,7 +362,7 @@ public extension PlatformClient.Catalog {
do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -458,7 +458,7 @@ public extension PlatformClient.Catalog {
do {
- store = try container.decode(ArticleStoreResponseSchema.self, forKey: .store)
+ store = try container.decode(ArticleStoreResponse.self, forKey: .store)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -482,7 +482,7 @@ public extension PlatformClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -530,7 +530,7 @@ public extension PlatformClient.Catalog {
do {
- trader = try container.decode([TraderResponseSchema].self, forKey: .trader)
+ trader = try container.decode([TraderResponse].self, forKey: .trader)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -554,7 +554,7 @@ public extension PlatformClient.Catalog {
do {
- weight = try container.decode(InventoryWeightResponseSchema.self, forKey: .weight)
+ weight = try container.decode(InventoryWeightResponse.self, forKey: .weight)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -741,17 +741,17 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var countryOfOrigin: String?
- public var createdBy: RequestUserSchema?
+ public var createdBy: RequestUserSerializer?
public var dateMeta: DateMeta?
- public var dimension: InventoryDimensionResponseSchema?
+ public var dimension: InventoryDimensionResponse?
public var expirationDate: String?
public var id: String?
- public var identifier: Identifier?
+ public var identifier: [String: Any]?
public var inventoryUpdatedOn: String?
@@ -759,9 +759,9 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var itemId: Int?
- public var manufacturer: InventoryManufacturerResponseSchema?
+ public var manufacturer: InventoryManufacturerResponse?
- public var modifiedBy: RequestUserSchema?
+ public var modifiedBy: RequestUserSerializer?
public var platforms: [String: Any]?
@@ -777,11 +777,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var stage: String?
- public var store: ArticleStoreResponseSchema?
+ public var store: ArticleStoreResponse?
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var totalQuantity: Int?
@@ -789,11 +789,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var trackInventory: Bool?
- public var trader: [TraderResponseSchema]?
+ public var trader: [TraderResponse]?
public var uid: String?
- public var weight: InventoryWeightResponseSchema?
+ public var weight: InventoryWeightResponse?
public enum CodingKeys: String, CodingKey {
@@ -860,7 +860,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(brand: InventoryBrandMeta? = nil, company: InventoryCompanyMeta? = nil, countryOfOrigin: String? = nil, createdBy: RequestUserSchema? = nil, dateMeta: DateMeta? = nil, dimension: InventoryDimensionResponseSchema? = nil, expirationDate: String? = nil, id: String? = nil, identifier: Identifier? = nil, inventoryUpdatedOn: String? = nil, isSet: Bool? = nil, itemId: Int? = nil, manufacturer: InventoryManufacturerResponseSchema? = nil, modifiedBy: RequestUserSchema? = nil, platforms: [String: Any]? = nil, price: PriceArticle? = nil, quantities: QuantitiesArticle? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String? = nil, size: String? = nil, stage: String? = nil, store: ArticleStoreResponseSchema? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int? = nil, traceId: String? = nil, trackInventory: Bool? = nil, trader: [TraderResponseSchema]? = nil, uid: String? = nil, weight: InventoryWeightResponseSchema? = nil) {
+ public init(brand: InventoryBrandMeta? = nil, company: InventoryCompanyMeta? = nil, countryOfOrigin: String? = nil, createdBy: RequestUserSerializer? = nil, dateMeta: DateMeta? = nil, dimension: InventoryDimensionResponse? = nil, expirationDate: String? = nil, id: String? = nil, identifier: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, isSet: Bool? = nil, itemId: Int? = nil, manufacturer: InventoryManufacturerResponse? = nil, modifiedBy: RequestUserSerializer? = nil, platforms: [String: Any]? = nil, price: PriceArticle? = nil, quantities: QuantitiesArticle? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String? = nil, size: String? = nil, stage: String? = nil, store: ArticleStoreResponse? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, totalQuantity: Int? = nil, traceId: String? = nil, trackInventory: Bool? = nil, trader: [TraderResponse]? = nil, uid: String? = nil, weight: InventoryWeightResponse? = nil) {
self.brand = brand
@@ -965,7 +965,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -989,7 +989,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- dimension = try container.decode(InventoryDimensionResponseSchema.self, forKey: .dimension)
+ dimension = try container.decode(InventoryDimensionResponse.self, forKey: .dimension)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1025,7 +1025,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- identifier = try container.decode(Identifier.self, forKey: .identifier)
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1073,7 +1073,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- manufacturer = try container.decode(InventoryManufacturerResponseSchema.self, forKey: .manufacturer)
+ manufacturer = try container.decode(InventoryManufacturerResponse.self, forKey: .manufacturer)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1085,7 +1085,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1181,7 +1181,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- store = try container.decode(ArticleStoreResponseSchema.self, forKey: .store)
+ store = try container.decode(ArticleStoreResponse.self, forKey: .store)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1205,7 +1205,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1253,7 +1253,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- trader = try container.decode([TraderResponseSchema].self, forKey: .trader)
+ trader = try container.decode([TraderResponse].self, forKey: .trader)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1277,7 +1277,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- weight = try container.decode(InventoryWeightResponseSchema.self, forKey: .weight)
+ weight = try container.decode(InventoryWeightResponse.self, forKey: .weight)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/GetInventoriesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetInventoriesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2005e03295
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetInventoriesResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetInventoriesResponse
+ Used By: Catalog
+ */
+
+ class GetInventoriesResponse: Codable {
+
+
+ public var items: [GetInventories]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetInventories]? = nil, page: Page? = nil) {
+
+ 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([GetInventories].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetInventoriesResponse
+ Used By: Catalog
+ */
+
+ class GetInventoriesResponse: Codable {
+
+
+ public var items: [GetInventories]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetInventories]? = nil, page: Page? = nil) {
+
+ 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([GetInventories].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetInventoriesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetInventoriesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 3aeaa7c41d..0000000000
--- a/Sources/code/platform/Models/Catalog/GetInventoriesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetInventoriesResponseSchema
- Used By: Catalog
- */
-
- class GetInventoriesResponseSchema: Codable {
-
-
- public var items: [GetInventories]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetInventories]? = nil, page: Page? = nil) {
-
- 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([GetInventories].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetInventoriesResponseSchema
- Used By: Catalog
- */
-
- class GetInventoriesResponseSchema: Codable {
-
-
- public var items: [GetInventories]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetInventories]? = nil, page: Page? = nil) {
-
- 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([GetInventories].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetLocationSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetLocationSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 1af03372a4..0000000000
--- a/Sources/code/platform/Models/Catalog/GetLocationSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,1196 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetLocationSchema
- Used By: Catalog
- */
-
- class GetLocationSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var address: GetAddressSchema
-
- public var storeCode: String
-
- public var company: GetCompanySchema?
-
- public var contactNumbers: [SellerPhoneNumber]?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var displayName: String
-
- public var documents: [Document]?
-
- public var gstCredentials: InvoiceDetailsSchema?
-
- public var integrationType: LocationIntegrationType?
-
- public var manager: LocationManagerSchema?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var notificationEmails: [String]?
-
- public var phoneNumber: String
-
- public var productReturnConfig: ProductReturnConfigSchema?
-
- public var stage: String?
-
- public var storeType: String?
-
- public var timing: [LocationDayWiseSchema]?
-
- public var uid: Int?
-
- public var verifiedBy: UserSchema?
-
- public var verifiedOn: String?
-
- public var warnings: [String: Any]?
-
- public var companyId: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case address = "address"
-
- case storeCode = "store_code"
-
- case company = "company"
-
- case contactNumbers = "contact_numbers"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case displayName = "display_name"
-
- case documents = "documents"
-
- case gstCredentials = "gst_credentials"
-
- case integrationType = "integration_type"
-
- case manager = "manager"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case notificationEmails = "notification_emails"
-
- case phoneNumber = "phone_number"
-
- case productReturnConfig = "product_return_config"
-
- case stage = "stage"
-
- case storeType = "store_type"
-
- case timing = "timing"
-
- case uid = "uid"
-
- case verifiedBy = "verified_by"
-
- case verifiedOn = "verified_on"
-
- case warnings = "warnings"
-
- case companyId = "company_id"
-
- }
-
- public init(address: GetAddressSchema, company: GetCompanySchema? = nil, companyId: Int? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSchema? = nil, integrationType: LocationIntegrationType? = nil, manager: LocationManagerSchema? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, phoneNumber: String, productReturnConfig: ProductReturnConfigSchema? = nil, stage: String? = nil, storeCode: String, storeType: String? = nil, timing: [LocationDayWiseSchema]? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.address = address
-
- self.storeCode = storeCode
-
- self.company = company
-
- self.contactNumbers = contactNumbers
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.displayName = displayName
-
- self.documents = documents
-
- self.gstCredentials = gstCredentials
-
- self.integrationType = integrationType
-
- self.manager = manager
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.notificationEmails = notificationEmails
-
- self.phoneNumber = phoneNumber
-
- self.productReturnConfig = productReturnConfig
-
- self.stage = stage
-
- self.storeType = storeType
-
- self.timing = timing
-
- self.uid = uid
-
- self.verifiedBy = verifiedBy
-
- self.verifiedOn = verifiedOn
-
- self.warnings = warnings
-
- self.companyId = companyId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- address = try container.decode(GetAddressSchema.self, forKey: .address)
-
-
-
-
- storeCode = try container.decode(String.self, forKey: .storeCode)
-
-
-
-
- do {
- company = try container.decode(GetCompanySchema.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
-
- }
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(InvoiceDetailsSchema.self, forKey: .gstCredentials)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- manager = try container.decode(LocationManagerSchema.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigSchema.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- timing = try container.decode([LocationDayWiseSchema].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(storeCode, forKey: .storeCode)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetLocationSchema
- Used By: Catalog
- */
-
- class GetLocationSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var address: GetAddressSchema
-
- public var storeCode: String
-
- public var company: GetCompanySchema?
-
- public var contactNumbers: [SellerPhoneNumber]?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var displayName: String
-
- public var documents: [Document]?
-
- public var gstCredentials: InvoiceDetailsSchema?
-
- public var integrationType: LocationIntegrationType?
-
- public var manager: LocationManagerSchema?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var notificationEmails: [String]?
-
- public var phoneNumber: String
-
- public var productReturnConfig: ProductReturnConfigSchema?
-
- public var stage: String?
-
- public var storeType: String?
-
- public var timing: [LocationDayWiseSchema]?
-
- public var uid: Int?
-
- public var verifiedBy: UserSchema?
-
- public var verifiedOn: String?
-
- public var warnings: [String: Any]?
-
- public var companyId: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case address = "address"
-
- case storeCode = "store_code"
-
- case company = "company"
-
- case contactNumbers = "contact_numbers"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case displayName = "display_name"
-
- case documents = "documents"
-
- case gstCredentials = "gst_credentials"
-
- case integrationType = "integration_type"
-
- case manager = "manager"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case notificationEmails = "notification_emails"
-
- case phoneNumber = "phone_number"
-
- case productReturnConfig = "product_return_config"
-
- case stage = "stage"
-
- case storeType = "store_type"
-
- case timing = "timing"
-
- case uid = "uid"
-
- case verifiedBy = "verified_by"
-
- case verifiedOn = "verified_on"
-
- case warnings = "warnings"
-
- case companyId = "company_id"
-
- }
-
- public init(address: GetAddressSchema, company: GetCompanySchema? = nil, companyId: Int? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSchema? = nil, integrationType: LocationIntegrationType? = nil, manager: LocationManagerSchema? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, phoneNumber: String, productReturnConfig: ProductReturnConfigSchema? = nil, stage: String? = nil, storeCode: String, storeType: String? = nil, timing: [LocationDayWiseSchema]? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.address = address
-
- self.storeCode = storeCode
-
- self.company = company
-
- self.contactNumbers = contactNumbers
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.displayName = displayName
-
- self.documents = documents
-
- self.gstCredentials = gstCredentials
-
- self.integrationType = integrationType
-
- self.manager = manager
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.notificationEmails = notificationEmails
-
- self.phoneNumber = phoneNumber
-
- self.productReturnConfig = productReturnConfig
-
- self.stage = stage
-
- self.storeType = storeType
-
- self.timing = timing
-
- self.uid = uid
-
- self.verifiedBy = verifiedBy
-
- self.verifiedOn = verifiedOn
-
- self.warnings = warnings
-
- self.companyId = companyId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- address = try container.decode(GetAddressSchema.self, forKey: .address)
-
-
-
-
- storeCode = try container.decode(String.self, forKey: .storeCode)
-
-
-
-
- do {
- company = try container.decode(GetCompanySchema.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
-
- }
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(InvoiceDetailsSchema.self, forKey: .gstCredentials)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- manager = try container.decode(LocationManagerSchema.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigSchema.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- timing = try container.decode([LocationDayWiseSchema].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(storeCode, forKey: .storeCode)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetLocationSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetLocationSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..02a59ee63f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetLocationSerializerCatalogPlatformModel.swift
@@ -0,0 +1,1150 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetLocationSerializer
+ Used By: Catalog
+ */
+
+ class GetLocationSerializer: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var address: GetAddressSerializer
+
+ public var code: String
+
+ public var company: GetCompanySerializer?
+
+ public var contactNumbers: [SellerPhoneNumber]?
+
+ public var createdBy: UserSerializer3?
+
+ public var createdOn: String?
+
+ public var displayName: String
+
+ public var documents: [Document]?
+
+ public var gstCredentials: InvoiceDetailsSerializer?
+
+ public var integrationType: LocationIntegrationType?
+
+ public var manager: LocationManagerSerializer?
+
+ public var modifiedBy: UserSerializer3?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var notificationEmails: [String]?
+
+ public var phoneNumber: String
+
+ public var productReturnConfig: ProductReturnConfigSerializer?
+
+ public var stage: String?
+
+ public var storeType: String?
+
+ public var timing: [LocationDayWiseSerializer]?
+
+ public var uid: Int?
+
+ public var verifiedBy: UserSerializer3?
+
+ public var verifiedOn: String?
+
+ public var warnings: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case address = "address"
+
+ case code = "code"
+
+ case company = "company"
+
+ case contactNumbers = "contact_numbers"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case displayName = "display_name"
+
+ case documents = "documents"
+
+ case gstCredentials = "gst_credentials"
+
+ case integrationType = "integration_type"
+
+ case manager = "manager"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case notificationEmails = "notification_emails"
+
+ case phoneNumber = "phone_number"
+
+ case productReturnConfig = "product_return_config"
+
+ case stage = "stage"
+
+ case storeType = "store_type"
+
+ case timing = "timing"
+
+ case uid = "uid"
+
+ case verifiedBy = "verified_by"
+
+ case verifiedOn = "verified_on"
+
+ case warnings = "warnings"
+
+ }
+
+ public init(address: GetAddressSerializer, code: String, company: GetCompanySerializer? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSerializer3? = nil, createdOn: String? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSerializer? = nil, integrationType: LocationIntegrationType? = nil, manager: LocationManagerSerializer? = nil, modifiedBy: UserSerializer3? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, phoneNumber: String, productReturnConfig: ProductReturnConfigSerializer? = nil, stage: String? = nil, storeType: String? = nil, timing: [LocationDayWiseSerializer]? = nil, uid: Int? = nil, verifiedBy: UserSerializer3? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.address = address
+
+ self.code = code
+
+ self.company = company
+
+ self.contactNumbers = contactNumbers
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.displayName = displayName
+
+ self.documents = documents
+
+ self.gstCredentials = gstCredentials
+
+ self.integrationType = integrationType
+
+ self.manager = manager
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.notificationEmails = notificationEmails
+
+ self.phoneNumber = phoneNumber
+
+ self.productReturnConfig = productReturnConfig
+
+ self.stage = stage
+
+ self.storeType = storeType
+
+ self.timing = timing
+
+ self.uid = uid
+
+ self.verifiedBy = verifiedBy
+
+ self.verifiedOn = verifiedOn
+
+ self.warnings = warnings
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ address = try container.decode(GetAddressSerializer.self, forKey: .address)
+
+
+
+
+ code = try container.decode(String.self, forKey: .code)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(UserSerializer3.self, forKey: .createdBy)
+
+ } 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 {
+
+ }
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(UserSerializer3.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ verifiedBy = try container.decode(UserSerializer3.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetLocationSerializer
+ Used By: Catalog
+ */
+
+ class GetLocationSerializer: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var address: GetAddressSerializer
+
+ public var code: String
+
+ public var company: GetCompanySerializer?
+
+ public var contactNumbers: [SellerPhoneNumber]?
+
+ public var createdBy: UserSerializer3?
+
+ public var createdOn: String?
+
+ public var displayName: String
+
+ public var documents: [Document]?
+
+ public var gstCredentials: InvoiceDetailsSerializer?
+
+ public var integrationType: LocationIntegrationType?
+
+ public var manager: LocationManagerSerializer?
+
+ public var modifiedBy: UserSerializer3?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var notificationEmails: [String]?
+
+ public var phoneNumber: String
+
+ public var productReturnConfig: ProductReturnConfigSerializer?
+
+ public var stage: String?
+
+ public var storeType: String?
+
+ public var timing: [LocationDayWiseSerializer]?
+
+ public var uid: Int?
+
+ public var verifiedBy: UserSerializer3?
+
+ public var verifiedOn: String?
+
+ public var warnings: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case address = "address"
+
+ case code = "code"
+
+ case company = "company"
+
+ case contactNumbers = "contact_numbers"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case displayName = "display_name"
+
+ case documents = "documents"
+
+ case gstCredentials = "gst_credentials"
+
+ case integrationType = "integration_type"
+
+ case manager = "manager"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case notificationEmails = "notification_emails"
+
+ case phoneNumber = "phone_number"
+
+ case productReturnConfig = "product_return_config"
+
+ case stage = "stage"
+
+ case storeType = "store_type"
+
+ case timing = "timing"
+
+ case uid = "uid"
+
+ case verifiedBy = "verified_by"
+
+ case verifiedOn = "verified_on"
+
+ case warnings = "warnings"
+
+ }
+
+ public init(address: GetAddressSerializer, code: String, company: GetCompanySerializer? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSerializer3? = nil, createdOn: String? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSerializer? = nil, integrationType: LocationIntegrationType? = nil, manager: LocationManagerSerializer? = nil, modifiedBy: UserSerializer3? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, phoneNumber: String, productReturnConfig: ProductReturnConfigSerializer? = nil, stage: String? = nil, storeType: String? = nil, timing: [LocationDayWiseSerializer]? = nil, uid: Int? = nil, verifiedBy: UserSerializer3? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.address = address
+
+ self.code = code
+
+ self.company = company
+
+ self.contactNumbers = contactNumbers
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.displayName = displayName
+
+ self.documents = documents
+
+ self.gstCredentials = gstCredentials
+
+ self.integrationType = integrationType
+
+ self.manager = manager
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.notificationEmails = notificationEmails
+
+ self.phoneNumber = phoneNumber
+
+ self.productReturnConfig = productReturnConfig
+
+ self.stage = stage
+
+ self.storeType = storeType
+
+ self.timing = timing
+
+ self.uid = uid
+
+ self.verifiedBy = verifiedBy
+
+ self.verifiedOn = verifiedOn
+
+ self.warnings = warnings
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ address = try container.decode(GetAddressSerializer.self, forKey: .address)
+
+
+
+
+ code = try container.decode(String.self, forKey: .code)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(UserSerializer3.self, forKey: .createdBy)
+
+ } 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 {
+
+ }
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(UserSerializer3.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ verifiedBy = try container.decode(UserSerializer3.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e389242292
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseCatalogPlatformModel.swift
@@ -0,0 +1,690 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetProductBundleCreateResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleCreateResponse: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var id: String?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case id = "id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.id = id
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetProductBundleCreateResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleCreateResponse: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var id: String?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case id = "id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.id = id
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 00dea4ea53..0000000000
--- a/Sources/code/platform/Models/Catalog/GetProductBundleCreateResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,690 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetProductBundleCreateResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleCreateResponseSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var createdBy: CreatedBy?
-
- public var createdOn: String?
-
- public var id: String?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var modifiedBy: ModifiedBy?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case id = "id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, createdBy: CreatedBy? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: ModifiedBy? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.id = id
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } 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 {
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBy.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetProductBundleCreateResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleCreateResponseSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var createdBy: CreatedBy?
-
- public var createdOn: String?
-
- public var id: String?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var modifiedBy: ModifiedBy?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case id = "id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, createdBy: CreatedBy? = nil, createdOn: String? = nil, id: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: ModifiedBy? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.id = id
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } 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 {
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBy.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..9516ba254a
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetProductBundleListingResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleListingResponse: Codable {
+
+
+ public var items: [GetProductBundleCreateResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetProductBundleCreateResponse]? = nil, page: Page? = nil) {
+
+ 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([GetProductBundleCreateResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetProductBundleListingResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleListingResponse: Codable {
+
+
+ public var items: [GetProductBundleCreateResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetProductBundleCreateResponse]? = nil, page: Page? = nil) {
+
+ 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([GetProductBundleCreateResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 3458729f33..0000000000
--- a/Sources/code/platform/Models/Catalog/GetProductBundleListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetProductBundleListingResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleListingResponseSchema: Codable {
-
-
- public var items: [GetProductBundleCreateResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetProductBundleCreateResponseSchema]? = nil, page: Page? = nil) {
-
- 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([GetProductBundleCreateResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetProductBundleListingResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleListingResponseSchema: Codable {
-
-
- public var items: [GetProductBundleCreateResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetProductBundleCreateResponseSchema]? = nil, page: Page? = nil) {
-
- 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([GetProductBundleCreateResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..48ebca6d45
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetProductBundleResponseCatalogPlatformModel.swift
@@ -0,0 +1,530 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetProductBundleResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleResponse: Codable {
+
+
+ public var choice: String?
+
+ public var companyId: Int?
+
+ public var isActive: Bool?
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var pageVisibility: [String]?
+
+ public var products: [GetProducts]?
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String? = nil, companyId: Int? = nil, isActive: Bool? = nil, logo: String? = nil, meta: [String: Any]? = nil, name: String? = nil, pageVisibility: [String]? = nil, products: [GetProducts]? = nil, sameStoreAssignment: Bool? = nil, slug: String? = nil) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetProductBundleResponse
+ Used By: Catalog
+ */
+
+ class GetProductBundleResponse: Codable {
+
+
+ public var choice: String?
+
+ public var companyId: Int?
+
+ public var isActive: Bool?
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var name: String?
+
+ public var pageVisibility: [String]?
+
+ public var products: [GetProducts]?
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String? = nil, companyId: Int? = nil, isActive: Bool? = nil, logo: String? = nil, meta: [String: Any]? = nil, name: String? = nil, pageVisibility: [String]? = nil, products: [GetProducts]? = nil, sameStoreAssignment: Bool? = nil, slug: String? = nil) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetProductBundleResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductBundleResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 1370f0a6ce..0000000000
--- a/Sources/code/platform/Models/Catalog/GetProductBundleResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetProductBundleResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleResponseSchema: Codable {
-
-
- public var choice: String?
-
- public var companyId: Int?
-
- public var isActive: Bool?
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var pageVisibility: [String]?
-
- public var products: [GetProducts]?
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String? = nil, companyId: Int? = nil, isActive: Bool? = nil, logo: String? = nil, meta: [String: Any]? = nil, name: String? = nil, pageVisibility: [String]? = nil, products: [GetProducts]? = nil, sameStoreAssignment: Bool? = nil, slug: String? = nil) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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)
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetProductBundleResponseSchema
- Used By: Catalog
- */
-
- class GetProductBundleResponseSchema: Codable {
-
-
- public var choice: String?
-
- public var companyId: Int?
-
- public var isActive: Bool?
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var name: String?
-
- public var pageVisibility: [String]?
-
- public var products: [GetProducts]?
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String? = nil, companyId: Int? = nil, isActive: Bool? = nil, logo: String? = nil, meta: [String: Any]? = nil, name: String? = nil, pageVisibility: [String]? = nil, products: [GetProducts]? = nil, sameStoreAssignment: Bool? = nil, slug: String? = nil) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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)
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetProductsCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetProductsCatalogPlatformModel.swift
index 2742927e76..75140f6d13 100644
--- a/Sources/code/platform/Models/Catalog/GetProductsCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/GetProductsCatalogPlatformModel.swift
@@ -22,9 +22,13 @@ public extension PlatformClient.Catalog {
public var minQuantity: Int?
+ public var price: Price?
+
+ public var productDetails: LimitedProductData?
+
public var productUid: Int?
- public var productDetails: ProductDetails?
+ public var sizes: [Size]?
public enum CodingKeys: String, CodingKey {
@@ -39,13 +43,17 @@ public extension PlatformClient.Catalog {
case minQuantity = "min_quantity"
- case productUid = "product_uid"
+ case price = "price"
case productDetails = "product_details"
+ case productUid = "product_uid"
+
+ case sizes = "sizes"
+
}
- public init(allowRemove: Bool? = nil, autoAddToCart: Bool? = nil, autoSelect: Bool? = nil, maxQuantity: Int? = nil, minQuantity: Int? = nil, productDetails: ProductDetails? = nil, productUid: Int? = nil) {
+ public init(allowRemove: Bool? = nil, autoAddToCart: Bool? = nil, autoSelect: Bool? = nil, maxQuantity: Int? = nil, minQuantity: Int? = nil, price: Price? = nil, productDetails: LimitedProductData? = nil, productUid: Int? = nil, sizes: [Size]? = nil) {
self.allowRemove = allowRemove
@@ -57,10 +65,14 @@ public extension PlatformClient.Catalog {
self.minQuantity = minQuantity
- self.productUid = productUid
+ self.price = price
self.productDetails = productDetails
+ self.productUid = productUid
+
+ self.sizes = sizes
+
}
required public init(from decoder: Decoder) throws {
@@ -127,6 +139,30 @@ public extension PlatformClient.Catalog {
+ do {
+ price = try container.decode(Price.self, forKey: .price)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
do {
productUid = try container.decode(Int.self, forKey: .productUid)
@@ -140,7 +176,7 @@ public extension PlatformClient.Catalog {
do {
- productDetails = try container.decode(ProductDetails.self, forKey: .productDetails)
+ sizes = try container.decode([Size].self, forKey: .sizes)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -182,7 +218,7 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(productUid, forKey: .productUid)
+ try? container.encodeIfPresent(price, forKey: .price)
@@ -190,6 +226,16 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(productDetails, forKey: .productDetails)
+
+
+ try? container.encodeIfPresent(productUid, forKey: .productUid)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
}
}
@@ -216,9 +262,13 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var minQuantity: Int?
+ public var price: Price?
+
+ public var productDetails: LimitedProductData?
+
public var productUid: Int?
- public var productDetails: ProductDetails?
+ public var sizes: [Size]?
public enum CodingKeys: String, CodingKey {
@@ -233,13 +283,17 @@ public extension PlatformClient.ApplicationClient.Catalog {
case minQuantity = "min_quantity"
- case productUid = "product_uid"
+ case price = "price"
case productDetails = "product_details"
+ case productUid = "product_uid"
+
+ case sizes = "sizes"
+
}
- public init(allowRemove: Bool? = nil, autoAddToCart: Bool? = nil, autoSelect: Bool? = nil, maxQuantity: Int? = nil, minQuantity: Int? = nil, productDetails: ProductDetails? = nil, productUid: Int? = nil) {
+ public init(allowRemove: Bool? = nil, autoAddToCart: Bool? = nil, autoSelect: Bool? = nil, maxQuantity: Int? = nil, minQuantity: Int? = nil, price: Price? = nil, productDetails: LimitedProductData? = nil, productUid: Int? = nil, sizes: [Size]? = nil) {
self.allowRemove = allowRemove
@@ -251,10 +305,14 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.minQuantity = minQuantity
- self.productUid = productUid
+ self.price = price
self.productDetails = productDetails
+ self.productUid = productUid
+
+ self.sizes = sizes
+
}
required public init(from decoder: Decoder) throws {
@@ -321,6 +379,30 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ do {
+ price = try container.decode(Price.self, forKey: .price)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
do {
productUid = try container.decode(Int.self, forKey: .productUid)
@@ -334,7 +416,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- productDetails = try container.decode(ProductDetails.self, forKey: .productDetails)
+ sizes = try container.decode([Size].self, forKey: .sizes)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -376,7 +458,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(productUid, forKey: .productUid)
+ try? container.encodeIfPresent(price, forKey: .price)
@@ -384,6 +466,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(productDetails, forKey: .productDetails)
+
+
+ try? container.encodeIfPresent(productUid, forKey: .productUid)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
}
}
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..0cd638682f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseCatalogPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetQueryFiltersKeysResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersKeysResponse: Codable {
+
+
+ public var filters: [ProductFiltersKeysOnly]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFiltersKeysOnly]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ filters = try container.decode([ProductFiltersKeysOnly].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetQueryFiltersKeysResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersKeysResponse: Codable {
+
+
+ public var filters: [ProductFiltersKeysOnly]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFiltersKeysOnly]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ filters = try container.decode([ProductFiltersKeysOnly].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 28d21498f1..0000000000
--- a/Sources/code/platform/Models/Catalog/GetQueryFiltersKeysResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetQueryFiltersKeysResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersKeysResponseSchema: Codable {
-
-
- public var filters: [ProductFiltersKeysOnly]?
-
- public var operators: [String: String]
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFiltersKeysOnly]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- filters = try container.decode([ProductFiltersKeysOnly].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: String].self, forKey: .operators)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetQueryFiltersKeysResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersKeysResponseSchema: Codable {
-
-
- public var filters: [ProductFiltersKeysOnly]?
-
- public var operators: [String: String]
-
- public var sortOn: [ProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [ProductFiltersKeysOnly]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- filters = try container.decode([ProductFiltersKeysOnly].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: String].self, forKey: .operators)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..19553a0f71
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseCatalogPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetQueryFiltersResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetQueryFiltersResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersResponse: Codable {
+
+
+ public var filters: [ProductFilters]?
+
+ public var operators: [String: String]
+
+ public var sortOn: [ProductSortOn]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filters = "filters"
+
+ case operators = "operators"
+
+ case sortOn = "sort_on"
+
+ }
+
+ public init(filters: [ProductFilters]? = nil, operators: [String: String], sortOn: [ProductSortOn]? = nil) {
+
+ self.filters = filters
+
+ self.operators = operators
+
+ self.sortOn = sortOn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ operators = try container.decode([String: String].self, forKey: .operators)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(operators, forKey: .operators)
+
+
+
+
+ try? container.encodeIfPresent(sortOn, forKey: .sortOn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 223f7eaddf..0000000000
--- a/Sources/code/platform/Models/Catalog/GetQueryFiltersResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetQueryFiltersResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersResponseSchema: Codable {
-
-
- public var filters: [CollectionProductFilters]?
-
- public var operators: [String: String]
-
- public var sortOn: [CollectionProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [CollectionProductFilters]? = nil, operators: [String: String], sortOn: [CollectionProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- filters = try container.decode([CollectionProductFilters].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: String].self, forKey: .operators)
-
-
-
-
- do {
- sortOn = try container.decode([CollectionProductSortOn].self, forKey: .sortOn)
-
- } 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(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetQueryFiltersResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersResponseSchema: Codable {
-
-
- public var filters: [CollectionProductFilters]?
-
- public var operators: [String: String]
-
- public var sortOn: [CollectionProductSortOn]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case operators = "operators"
-
- case sortOn = "sort_on"
-
- }
-
- public init(filters: [CollectionProductFilters]? = nil, operators: [String: String], sortOn: [CollectionProductSortOn]? = nil) {
-
- self.filters = filters
-
- self.operators = operators
-
- self.sortOn = sortOn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- filters = try container.decode([CollectionProductFilters].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- operators = try container.decode([String: String].self, forKey: .operators)
-
-
-
-
- do {
- sortOn = try container.decode([CollectionProductSortOn].self, forKey: .sortOn)
-
- } 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(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(operators, forKey: .operators)
-
-
-
-
- try? container.encodeIfPresent(sortOn, forKey: .sortOn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..fc949a8254
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseCatalogPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetQueryFiltersValuesResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersValuesResponse: Codable {
+
+
+ public var values: [ProductFiltersValue]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case values = "values"
+
+ case page = "page"
+
+ }
+
+ public init(page: Page, values: [ProductFiltersValue]) {
+
+ self.values = values
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ values = try container.decode([ProductFiltersValue].self, forKey: .values)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(values, forKey: .values)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetQueryFiltersValuesResponse
+ Used By: Catalog
+ */
+
+ class GetQueryFiltersValuesResponse: Codable {
+
+
+ public var values: [ProductFiltersValue]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case values = "values"
+
+ case page = "page"
+
+ }
+
+ public init(page: Page, values: [ProductFiltersValue]) {
+
+ self.values = values
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ values = try container.decode([ProductFiltersValue].self, forKey: .values)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(values, forKey: .values)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 0f4c47ff9f..0000000000
--- a/Sources/code/platform/Models/Catalog/GetQueryFiltersValuesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetQueryFiltersValuesResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersValuesResponseSchema: Codable {
-
-
- public var values: [ProductQueryFiltersValue]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case values = "values"
-
- case page = "page"
-
- }
-
- public init(page: Page, values: [ProductQueryFiltersValue]) {
-
- self.values = values
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- values = try container.decode([ProductQueryFiltersValue].self, forKey: .values)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetQueryFiltersValuesResponseSchema
- Used By: Catalog
- */
-
- class GetQueryFiltersValuesResponseSchema: Codable {
-
-
- public var values: [ProductQueryFiltersValue]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case values = "values"
-
- case page = "page"
-
- }
-
- public init(page: Page, values: [ProductQueryFiltersValue]) {
-
- self.values = values
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- values = try container.decode([ProductQueryFiltersValue].self, forKey: .values)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(values, forKey: .values)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1e2e5a595e
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseCatalogPlatformModel.swift
@@ -0,0 +1,456 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class GetSearchConfigurationResponse: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class GetSearchConfigurationResponse: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 06f5ccec07..0000000000
--- a/Sources/code/platform/Models/Catalog/GetSearchConfigurationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class GetSearchConfigurationResponseSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class GetSearchConfigurationResponseSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..28b24118f0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetSearchWordsDetailResponse
+ Used By: Catalog
+ */
+
+ class GetSearchWordsDetailResponse: Codable {
+
+
+ public var items: GetSearchWordsData?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: GetSearchWordsData? = nil, page: Page? = nil) {
+
+ 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(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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetSearchWordsDetailResponse
+ Used By: Catalog
+ */
+
+ class GetSearchWordsDetailResponse: Codable {
+
+
+ public var items: GetSearchWordsData?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: GetSearchWordsData? = nil, page: Page? = nil) {
+
+ 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(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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b517fa863d..0000000000
--- a/Sources/code/platform/Models/Catalog/GetSearchWordsDetailResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetSearchWordsDetailResponseSchema
- Used By: Catalog
- */
-
- class GetSearchWordsDetailResponseSchema: Codable {
-
-
- public var items: GetSearchWordsData?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: GetSearchWordsData? = nil, page: Page? = nil) {
-
- 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(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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetSearchWordsDetailResponseSchema
- Used By: Catalog
- */
-
- class GetSearchWordsDetailResponseSchema: Codable {
-
-
- public var items: GetSearchWordsData?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: GetSearchWordsData? = nil, page: Page? = nil) {
-
- 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(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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/GetSearchWordsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchWordsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3882528be6
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/GetSearchWordsResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: GetSearchWordsResponse
+ Used By: Catalog
+ */
+
+ class GetSearchWordsResponse: Codable {
+
+
+ public var items: [GetSearchWordsData]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetSearchWordsData]? = nil, page: Page? = nil) {
+
+ 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([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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: GetSearchWordsResponse
+ Used By: Catalog
+ */
+
+ class GetSearchWordsResponse: Codable {
+
+
+ public var items: [GetSearchWordsData]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetSearchWordsData]? = nil, page: Page? = nil) {
+
+ 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([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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/GetSearchWordsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/GetSearchWordsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c2bcfd7ec5..0000000000
--- a/Sources/code/platform/Models/Catalog/GetSearchWordsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: GetSearchWordsResponseSchema
- Used By: Catalog
- */
-
- class GetSearchWordsResponseSchema: Codable {
-
-
- public var items: [GetSearchWordsData]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetSearchWordsData]? = nil, page: Page? = nil) {
-
- 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([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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: GetSearchWordsResponseSchema
- Used By: Catalog
- */
-
- class GetSearchWordsResponseSchema: Codable {
-
-
- public var items: [GetSearchWordsData]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetSearchWordsData]? = nil, page: Page? = nil) {
-
- 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([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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/HSNCodesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/HSNCodesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..16e0edab32
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/HSNCodesResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: HSNCodesResponse
+ Used By: Catalog
+ */
+
+ class HSNCodesResponse: Codable {
+
+
+ public var data: HSNData?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case message = "message"
+
+ }
+
+ public init(data: HSNData? = nil, message: String? = nil) {
+
+ self.data = data
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: HSNCodesResponse
+ Used By: Catalog
+ */
+
+ class HSNCodesResponse: Codable {
+
+
+ public var data: HSNData?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case message = "message"
+
+ }
+
+ public init(data: HSNData? = nil, message: String? = nil) {
+
+ self.data = data
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/HSNCodesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/HSNCodesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 50a5817184..0000000000
--- a/Sources/code/platform/Models/Catalog/HSNCodesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: HSNCodesResponseSchema
- Used By: Catalog
- */
-
- class HSNCodesResponseSchema: Codable {
-
-
- public var data: HSNData?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case message = "message"
-
- }
-
- public init(data: HSNData? = nil, message: String? = nil) {
-
- self.data = data
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: HSNCodesResponseSchema
- Used By: Catalog
- */
-
- class HSNCodesResponseSchema: Codable {
-
-
- public var data: HSNData?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case message = "message"
-
- }
-
- public init(data: HSNData? = nil, message: String? = nil) {
-
- self.data = data
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/HSNDataInsertV2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/HSNDataInsertV2CatalogPlatformModel.swift
index 072bf551c1..573a619ad9 100644
--- a/Sources/code/platform/Models/Catalog/HSNDataInsertV2CatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/HSNDataInsertV2CatalogPlatformModel.swift
@@ -14,9 +14,7 @@ public extension PlatformClient.Catalog {
public var countryCode: String
- public var createdBy: CreatedBySchema?
-
- public var modifiedBy: ModifiedBySchema?
+ public var createdBy: [String: Any]?
public var createdOn: String?
@@ -26,11 +24,11 @@ public extension PlatformClient.Catalog {
public var hsnCodeId: String?
- public var modifiedOn: String?
+ public var modifiedBy: [String: Any]?
- public var reportingHsn: [String: Any]
+ public var modifiedOn: String?
- public var id: String?
+ public var reportingHsn: String
public var taxes: [TaxSlab]
@@ -43,8 +41,6 @@ public extension PlatformClient.Catalog {
case createdBy = "created_by"
- case modifiedBy = "modified_by"
-
case createdOn = "created_on"
case description = "description"
@@ -53,26 +49,24 @@ public extension PlatformClient.Catalog {
case hsnCodeId = "hsn_code_id"
+ case modifiedBy = "modified_by"
+
case modifiedOn = "modified_on"
case reportingHsn = "reporting_hsn"
- case id = "id"
-
case taxes = "taxes"
case type = "type"
}
- public init(countryCode: String, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, description: String, hsnCode: String, hsnCodeId: String? = nil, id: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, reportingHsn: [String: Any], taxes: [TaxSlab], type: String) {
+ public init(countryCode: String, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String, hsnCode: String, hsnCodeId: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, reportingHsn: String, taxes: [TaxSlab], type: String) {
self.countryCode = countryCode
self.createdBy = createdBy
- self.modifiedBy = modifiedBy
-
self.createdOn = createdOn
self.description = description
@@ -81,12 +75,12 @@ public extension PlatformClient.Catalog {
self.hsnCodeId = hsnCodeId
+ self.modifiedBy = modifiedBy
+
self.modifiedOn = modifiedOn
self.reportingHsn = reportingHsn
- self.id = id
-
self.taxes = taxes
self.type = type
@@ -103,19 +97,7 @@ public extension PlatformClient.Catalog {
do {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
+ createdBy = try container.decode([String: Any].self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -161,7 +143,7 @@ public extension PlatformClient.Catalog {
do {
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+ modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -172,13 +154,8 @@ public extension PlatformClient.Catalog {
- reportingHsn = try container.decode([String: Any].self, forKey: .reportingHsn)
-
-
-
-
do {
- id = try container.decode(String.self, forKey: .id)
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -189,6 +166,11 @@ public extension PlatformClient.Catalog {
+ reportingHsn = try container.decode(String.self, forKey: .reportingHsn)
+
+
+
+
taxes = try container.decode([TaxSlab].self, forKey: .taxes)
@@ -215,11 +197,6 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
try? container.encodeIfPresent(createdOn, forKey: .createdOn)
@@ -240,17 +217,17 @@ public extension PlatformClient.Catalog {
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
- try? container.encodeIfPresent(reportingHsn, forKey: .reportingHsn)
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(reportingHsn, forKey: .reportingHsn)
@@ -281,9 +258,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var countryCode: String
- public var createdBy: CreatedBySchema?
-
- public var modifiedBy: ModifiedBySchema?
+ public var createdBy: [String: Any]?
public var createdOn: String?
@@ -293,11 +268,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var hsnCodeId: String?
- public var modifiedOn: String?
+ public var modifiedBy: [String: Any]?
- public var reportingHsn: [String: Any]
+ public var modifiedOn: String?
- public var id: String?
+ public var reportingHsn: String
public var taxes: [TaxSlab]
@@ -310,8 +285,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
case createdBy = "created_by"
- case modifiedBy = "modified_by"
-
case createdOn = "created_on"
case description = "description"
@@ -320,26 +293,24 @@ public extension PlatformClient.ApplicationClient.Catalog {
case hsnCodeId = "hsn_code_id"
+ case modifiedBy = "modified_by"
+
case modifiedOn = "modified_on"
case reportingHsn = "reporting_hsn"
- case id = "id"
-
case taxes = "taxes"
case type = "type"
}
- public init(countryCode: String, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, description: String, hsnCode: String, hsnCodeId: String? = nil, id: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, reportingHsn: [String: Any], taxes: [TaxSlab], type: String) {
+ public init(countryCode: String, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String, hsnCode: String, hsnCodeId: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, reportingHsn: String, taxes: [TaxSlab], type: String) {
self.countryCode = countryCode
self.createdBy = createdBy
- self.modifiedBy = modifiedBy
-
self.createdOn = createdOn
self.description = description
@@ -348,12 +319,12 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.hsnCodeId = hsnCodeId
+ self.modifiedBy = modifiedBy
+
self.modifiedOn = modifiedOn
self.reportingHsn = reportingHsn
- self.id = id
-
self.taxes = taxes
self.type = type
@@ -370,19 +341,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
+ createdBy = try container.decode([String: Any].self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -428,7 +387,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+ modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -439,13 +398,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
- reportingHsn = try container.decode([String: Any].self, forKey: .reportingHsn)
-
-
-
-
do {
- id = try container.decode(String.self, forKey: .id)
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -456,6 +410,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ reportingHsn = try container.decode(String.self, forKey: .reportingHsn)
+
+
+
+
taxes = try container.decode([TaxSlab].self, forKey: .taxes)
@@ -482,11 +441,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
try? container.encodeIfPresent(createdOn, forKey: .createdOn)
@@ -507,17 +461,17 @@ public extension PlatformClient.ApplicationClient.Catalog {
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
- try? container.encodeIfPresent(reportingHsn, forKey: .reportingHsn)
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(reportingHsn, forKey: .reportingHsn)
diff --git a/Sources/code/platform/Models/Catalog/HsnCodesListingResponseSchemaV2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/HsnCodesListingResponseSchemaV2CatalogPlatformModel.swift
index 10cdcba8f8..026d6d087d 100644
--- a/Sources/code/platform/Models/Catalog/HsnCodesListingResponseSchemaV2CatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/HsnCodesListingResponseSchemaV2CatalogPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Catalog {
public var items: [HSNDataInsertV2]?
- public var page: PageResponseSchema?
+ public var page: PageResponse?
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [HSNDataInsertV2]? = nil, page: PageResponseSchema? = nil) {
+ public init(items: [HSNDataInsertV2]? = nil, page: PageResponse? = nil) {
self.items = items
@@ -50,7 +50,7 @@ public extension PlatformClient.Catalog {
do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
+ page = try container.decode(PageResponse.self, forKey: .page)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -93,7 +93,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var items: [HSNDataInsertV2]?
- public var page: PageResponseSchema?
+ public var page: PageResponse?
public enum CodingKeys: String, CodingKey {
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [HSNDataInsertV2]? = nil, page: PageResponseSchema? = nil) {
+ public init(items: [HSNDataInsertV2]? = nil, page: PageResponse? = nil) {
self.items = items
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
+ page = try container.decode(PageResponse.self, forKey: .page)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/HsnUpsertCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/HsnUpsertCatalogPlatformModel.swift
index c5853c30bd..053a29bbdb 100644
--- a/Sources/code/platform/Models/Catalog/HsnUpsertCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/HsnUpsertCatalogPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Catalog {
public var companyId: Int
- public var hs2Code: String?
+ public var hs2Code: String
public var hsnCode: String
@@ -61,7 +61,7 @@ public extension PlatformClient.Catalog {
}
- public init(companyId: Int, hs2Code: String? = nil, hsnCode: String, isActive: Bool? = nil, tax1: Double, tax2: Double? = nil, taxOnEsp: Bool? = nil, taxOnMrp: Bool, threshold1: Double, threshold2: Double? = nil, uid: Int? = nil) {
+ public init(companyId: Int, hs2Code: String, hsnCode: String, isActive: Bool? = nil, tax1: Double, tax2: Double? = nil, taxOnEsp: Bool? = nil, taxOnMrp: Bool, threshold1: Double, threshold2: Double? = nil, uid: Int? = nil) {
self.companyId = companyId
@@ -96,18 +96,11 @@ public extension PlatformClient.Catalog {
- do {
- 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)
- } catch {
-
- }
+ hs2Code = try container.decode(String.self, forKey: .hs2Code)
+
hsnCode = try container.decode(String.self, forKey: .hsnCode)
@@ -265,7 +258,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var companyId: Int
- public var hs2Code: String?
+ public var hs2Code: String
public var hsnCode: String
@@ -312,7 +305,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(companyId: Int, hs2Code: String? = nil, hsnCode: String, isActive: Bool? = nil, tax1: Double, tax2: Double? = nil, taxOnEsp: Bool? = nil, taxOnMrp: Bool, threshold1: Double, threshold2: Double? = nil, uid: Int? = nil) {
+ public init(companyId: Int, hs2Code: String, hsnCode: String, isActive: Bool? = nil, tax1: Double, tax2: Double? = nil, taxOnEsp: Bool? = nil, taxOnMrp: Bool, threshold1: Double, threshold2: Double? = nil, uid: Int? = nil) {
self.companyId = companyId
@@ -347,18 +340,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
- do {
- 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)
- } catch {
-
- }
+ hs2Code = try container.decode(String.self, forKey: .hs2Code)
+
hsnCode = try container.decode(String.self, forKey: .hsnCode)
diff --git a/Sources/code/platform/Models/Catalog/IdentifierCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/IdentifierCatalogPlatformModel.swift
deleted file mode 100644
index 7657557c61..0000000000
--- a/Sources/code/platform/Models/Catalog/IdentifierCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: Identifier
- Used By: Catalog
- */
-
- class Identifier: Codable {
-
-
- public var primary: Bool?
-
- public var gtinValue: String?
-
- public var gtinType: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case primary = "primary"
-
- case gtinValue = "gtin_value"
-
- case gtinType = "gtin_type"
-
- }
-
- public init(gtinType: String? = nil, gtinValue: String? = nil, primary: Bool? = nil) {
-
- self.primary = primary
-
- self.gtinValue = gtinValue
-
- self.gtinType = gtinType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- gtinValue = try container.decode(String.self, forKey: .gtinValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gtinType = try container.decode(String.self, forKey: .gtinType)
-
- } 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(primary, forKey: .primary)
-
-
-
-
- try? container.encodeIfPresent(gtinValue, forKey: .gtinValue)
-
-
-
-
- try? container.encodeIfPresent(gtinType, forKey: .gtinType)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: Identifier
- Used By: Catalog
- */
-
- class Identifier: Codable {
-
-
- public var primary: Bool?
-
- public var gtinValue: String?
-
- public var gtinType: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case primary = "primary"
-
- case gtinValue = "gtin_value"
-
- case gtinType = "gtin_type"
-
- }
-
- public init(gtinType: String? = nil, gtinValue: String? = nil, primary: Bool? = nil) {
-
- self.primary = primary
-
- self.gtinValue = gtinValue
-
- self.gtinType = gtinType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- gtinValue = try container.decode(String.self, forKey: .gtinValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gtinType = try container.decode(String.self, forKey: .gtinType)
-
- } 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(primary, forKey: .primary)
-
-
-
-
- try? container.encodeIfPresent(gtinValue, forKey: .gtinValue)
-
-
-
-
- try? container.encodeIfPresent(gtinType, forKey: .gtinType)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryBulkRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryBulkRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..10f4140348
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryBulkRequestCatalogPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryBulkRequest
+ Used By: Catalog
+ */
+
+ class InventoryBulkRequest: Codable {
+
+
+ public var batchId: String
+
+ public var companyId: Int
+
+ public var sizes: [InventoryJobPayload]
+
+ public var user: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case companyId = "company_id"
+
+ case sizes = "sizes"
+
+ case user = "user"
+
+ }
+
+ public init(batchId: String, companyId: Int, sizes: [InventoryJobPayload], user: [String: Any]? = nil) {
+
+ self.batchId = batchId
+
+ self.companyId = companyId
+
+ self.sizes = sizes
+
+ self.user = user
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ sizes = try container.decode([InventoryJobPayload].self, forKey: .sizes)
+
+
+
+
+ do {
+ user = try container.decode([String: Any].self, forKey: .user)
+
+ } 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(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
+
+
+ try? container.encodeIfPresent(user, forKey: .user)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryBulkRequest
+ Used By: Catalog
+ */
+
+ class InventoryBulkRequest: Codable {
+
+
+ public var batchId: String
+
+ public var companyId: Int
+
+ public var sizes: [InventoryJobPayload]
+
+ public var user: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case batchId = "batch_id"
+
+ case companyId = "company_id"
+
+ case sizes = "sizes"
+
+ case user = "user"
+
+ }
+
+ public init(batchId: String, companyId: Int, sizes: [InventoryJobPayload], user: [String: Any]? = nil) {
+
+ self.batchId = batchId
+
+ self.companyId = companyId
+
+ self.sizes = sizes
+
+ self.user = user
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ sizes = try container.decode([InventoryJobPayload].self, forKey: .sizes)
+
+
+
+
+ do {
+ user = try container.decode([String: Any].self, forKey: .user)
+
+ } 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(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
+
+
+ try? container.encodeIfPresent(user, forKey: .user)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryBulkRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryBulkRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 2f4de379c4..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryBulkRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryBulkRequestSchema
- Used By: Catalog
- */
-
- class InventoryBulkRequestSchema: Codable {
-
-
- public var batchId: String
-
- public var companyId: Int
-
- public var sizes: [InventoryJobPayload]
-
- public var user: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case companyId = "company_id"
-
- case sizes = "sizes"
-
- case user = "user"
-
- }
-
- public init(batchId: String, companyId: Int, sizes: [InventoryJobPayload], user: [String: Any]? = nil) {
-
- self.batchId = batchId
-
- self.companyId = companyId
-
- self.sizes = sizes
-
- self.user = user
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- sizes = try container.decode([InventoryJobPayload].self, forKey: .sizes)
-
-
-
-
- do {
- user = try container.decode([String: Any].self, forKey: .user)
-
- } 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(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryBulkRequestSchema
- Used By: Catalog
- */
-
- class InventoryBulkRequestSchema: Codable {
-
-
- public var batchId: String
-
- public var companyId: Int
-
- public var sizes: [InventoryJobPayload]
-
- public var user: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case batchId = "batch_id"
-
- case companyId = "company_id"
-
- case sizes = "sizes"
-
- case user = "user"
-
- }
-
- public init(batchId: String, companyId: Int, sizes: [InventoryJobPayload], user: [String: Any]? = nil) {
-
- self.batchId = batchId
-
- self.companyId = companyId
-
- self.sizes = sizes
-
- self.user = user
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- sizes = try container.decode([InventoryJobPayload].self, forKey: .sizes)
-
-
-
-
- do {
- user = try container.decode([String: Any].self, forKey: .user)
-
- } 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(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryCreateRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryCreateRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..358db39053
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryCreateRequestCatalogPlatformModel.swift
@@ -0,0 +1,240 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryCreateRequest
+ Used By: Catalog
+ */
+
+ class InventoryCreateRequest: Codable {
+
+
+ public var data: [String]?
+
+ public var filters: InventoryExportFilter
+
+ public var notificationEmails: [String]?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case filters = "filters"
+
+ case notificationEmails = "notification_emails"
+
+ case type = "type"
+
+ }
+
+ public init(data: [String]? = nil, filters: InventoryExportFilter, notificationEmails: [String]? = nil, type: String? = nil) {
+
+ self.data = data
+
+ self.filters = filters
+
+ self.notificationEmails = notificationEmails
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(InventoryExportFilter.self, forKey: .filters)
+
+
+
+
+ do {
+ 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)
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryCreateRequest
+ Used By: Catalog
+ */
+
+ class InventoryCreateRequest: Codable {
+
+
+ public var data: [String]?
+
+ public var filters: InventoryExportFilter
+
+ public var notificationEmails: [String]?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case filters = "filters"
+
+ case notificationEmails = "notification_emails"
+
+ case type = "type"
+
+ }
+
+ public init(data: [String]? = nil, filters: InventoryExportFilter, notificationEmails: [String]? = nil, type: String? = nil) {
+
+ self.data = data
+
+ self.filters = filters
+
+ self.notificationEmails = notificationEmails
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(InventoryExportFilter.self, forKey: .filters)
+
+
+
+
+ do {
+ 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)
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryCreateRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryCreateRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 846ba762c2..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryCreateRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryCreateRequestSchema
- Used By: Catalog
- */
-
- class InventoryCreateRequestSchema: Codable {
-
-
- public var data: [String]?
-
- public var filters: InventoryExportFilter
-
- public var notificationEmails: [String]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case filters = "filters"
-
- case notificationEmails = "notification_emails"
-
- case type = "type"
-
- }
-
- public init(data: [String]? = nil, filters: InventoryExportFilter, notificationEmails: [String]? = nil, type: String? = nil) {
-
- self.data = data
-
- self.filters = filters
-
- self.notificationEmails = notificationEmails
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(InventoryExportFilter.self, forKey: .filters)
-
-
-
-
- do {
- 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)
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryCreateRequestSchema
- Used By: Catalog
- */
-
- class InventoryCreateRequestSchema: Codable {
-
-
- public var data: [String]?
-
- public var filters: InventoryExportFilter
-
- public var notificationEmails: [String]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case filters = "filters"
-
- case notificationEmails = "notification_emails"
-
- case type = "type"
-
- }
-
- public init(data: [String]? = nil, filters: InventoryExportFilter, notificationEmails: [String]? = nil, type: String? = nil) {
-
- self.data = data
-
- self.filters = filters
-
- self.notificationEmails = notificationEmails
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(InventoryExportFilter.self, forKey: .filters)
-
-
-
-
- do {
- 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)
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryDimensionResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryDimensionResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3c1f160670
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryDimensionResponseCatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryDimensionResponse
+ Used By: Catalog
+ */
+
+ class InventoryDimensionResponse: Codable {
+
+
+ public var height: Double?
+
+ public var length: Double?
+
+ public var unit: String?
+
+ public var width: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case height = "height"
+
+ case length = "length"
+
+ case unit = "unit"
+
+ case width = "width"
+
+ }
+
+ public init(height: Double? = nil, length: Double? = nil, unit: String? = nil, width: Double? = nil) {
+
+ self.height = height
+
+ self.length = length
+
+ self.unit = unit
+
+ self.width = width
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ height = try container.decode(Double.self, forKey: .height)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ length = try container.decode(Double.self, forKey: .length)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ width = try container.decode(Double.self, forKey: .width)
+
+ } 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(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryDimensionResponse
+ Used By: Catalog
+ */
+
+ class InventoryDimensionResponse: Codable {
+
+
+ public var height: Double?
+
+ public var length: Double?
+
+ public var unit: String?
+
+ public var width: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case height = "height"
+
+ case length = "length"
+
+ case unit = "unit"
+
+ case width = "width"
+
+ }
+
+ public init(height: Double? = nil, length: Double? = nil, unit: String? = nil, width: Double? = nil) {
+
+ self.height = height
+
+ self.length = length
+
+ self.unit = unit
+
+ self.width = width
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ height = try container.decode(Double.self, forKey: .height)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ length = try container.decode(Double.self, forKey: .length)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ width = try container.decode(Double.self, forKey: .width)
+
+ } 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(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryDimensionResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryDimensionResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index f8983a3b05..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryDimensionResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryDimensionResponseSchema
- Used By: Catalog
- */
-
- class InventoryDimensionResponseSchema: Codable {
-
-
- public var height: Double?
-
- public var length: Double?
-
- public var unit: String?
-
- public var width: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case height = "height"
-
- case length = "length"
-
- case unit = "unit"
-
- case width = "width"
-
- }
-
- public init(height: Double? = nil, length: Double? = nil, unit: String? = nil, width: Double? = nil) {
-
- self.height = height
-
- self.length = length
-
- self.unit = unit
-
- self.width = width
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- height = try container.decode(Double.self, forKey: .height)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- length = try container.decode(Double.self, forKey: .length)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- width = try container.decode(Double.self, forKey: .width)
-
- } 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(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryDimensionResponseSchema
- Used By: Catalog
- */
-
- class InventoryDimensionResponseSchema: Codable {
-
-
- public var height: Double?
-
- public var length: Double?
-
- public var unit: String?
-
- public var width: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case height = "height"
-
- case length = "length"
-
- case unit = "unit"
-
- case width = "width"
-
- }
-
- public init(height: Double? = nil, length: Double? = nil, unit: String? = nil, width: Double? = nil) {
-
- self.height = height
-
- self.length = length
-
- self.unit = unit
-
- self.width = width
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- height = try container.decode(Double.self, forKey: .height)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- length = try container.decode(Double.self, forKey: .length)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- width = try container.decode(Double.self, forKey: .width)
-
- } 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(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..71fe2bf2d4
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseCatalogPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryExportJobListResponse
+ Used By: Catalog
+ */
+
+ class InventoryExportJobListResponse: Codable {
+
+
+ public var items: InventoryJobDetailResponse
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: InventoryJobDetailResponse, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode(InventoryJobDetailResponse.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 {
+
+ }
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryExportJobListResponse
+ Used By: Catalog
+ */
+
+ class InventoryExportJobListResponse: Codable {
+
+
+ public var items: InventoryJobDetailResponse
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: InventoryJobDetailResponse, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode(InventoryJobDetailResponse.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 {
+
+ }
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 2ec4b6eef7..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryExportJobListResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryExportJobListResponseSchema
- Used By: Catalog
- */
-
- class InventoryExportJobListResponseSchema: Codable {
-
-
- public var items: InventoryJobDetailResponseSchema
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: InventoryJobDetailResponseSchema, page: Page? = nil) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode(InventoryJobDetailResponseSchema.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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryExportJobListResponseSchema
- Used By: Catalog
- */
-
- class InventoryExportJobListResponseSchema: Codable {
-
-
- public var items: InventoryJobDetailResponseSchema
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: InventoryJobDetailResponseSchema, page: Page? = nil) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode(InventoryJobDetailResponseSchema.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 {
-
- }
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..16c5bfefc9
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryExportRequestCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryExportRequest
+ Used By: Catalog
+ */
+
+ class InventoryExportRequest: Codable {
+
+
+ public var brand: [Int]?
+
+ public var store: [Int]?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brand = "brand"
+
+ case store = "store"
+
+ case type = "type"
+
+ }
+
+ public init(brand: [Int]? = nil, store: [Int]? = nil, type: String? = nil) {
+
+ self.brand = brand
+
+ self.store = store
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryExportRequest
+ Used By: Catalog
+ */
+
+ class InventoryExportRequest: Codable {
+
+
+ public var brand: [Int]?
+
+ public var store: [Int]?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brand = "brand"
+
+ case store = "store"
+
+ case type = "type"
+
+ }
+
+ public init(brand: [Int]? = nil, store: [Int]? = nil, type: String? = nil) {
+
+ self.brand = brand
+
+ self.store = store
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 065c76a754..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryExportRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryExportRequestSchema
- Used By: Catalog
- */
-
- class InventoryExportRequestSchema: Codable {
-
-
- public var brand: [Int]?
-
- public var store: [Int]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brand = "brand"
-
- case store = "store"
-
- case type = "type"
-
- }
-
- public init(brand: [Int]? = nil, store: [Int]? = nil, type: String? = nil) {
-
- self.brand = brand
-
- self.store = store
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryExportRequestSchema
- Used By: Catalog
- */
-
- class InventoryExportRequestSchema: Codable {
-
-
- public var brand: [Int]?
-
- public var store: [Int]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brand = "brand"
-
- case store = "store"
-
- case type = "type"
-
- }
-
- public init(brand: [Int]? = nil, store: [Int]? = nil, type: String? = nil) {
-
- self.brand = brand
-
- self.store = store
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..980a06bbcf
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryExportResponseCatalogPlatformModel.swift
@@ -0,0 +1,456 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryExportResponse
+ Used By: Catalog
+ */
+
+ class InventoryExportResponse: Codable {
+
+
+ public var createdBy: String?
+
+ public var createdOn: String?
+
+ public var filters: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case filters = "filters"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ }
+
+ public init(createdBy: String? = nil, createdOn: String? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil) {
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.filters = filters
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } 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 {
+ filters = try container.decode([String: Any].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryExportResponse
+ Used By: Catalog
+ */
+
+ class InventoryExportResponse: Codable {
+
+
+ public var createdBy: String?
+
+ public var createdOn: String?
+
+ public var filters: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case filters = "filters"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ }
+
+ public init(createdBy: String? = nil, createdOn: String? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil) {
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.filters = filters
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } 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 {
+ filters = try container.decode([String: Any].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryExportResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryExportResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 84f8681e65..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryExportResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryExportResponseSchema
- Used By: Catalog
- */
-
- class InventoryExportResponseSchema: Codable {
-
-
- public var createdBy: String?
-
- public var createdOn: String?
-
- public var filters: Filters?
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var taskId: String
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case filters = "filters"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case taskId = "task_id"
-
- case type = "type"
-
- }
-
- public init(createdBy: String? = nil, createdOn: String? = nil, filters: Filters? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil) {
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.filters = filters
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.taskId = taskId
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- createdBy = try container.decode(String.self, forKey: .createdBy)
-
- } 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 {
- filters = try container.decode(Filters.self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryExportResponseSchema
- Used By: Catalog
- */
-
- class InventoryExportResponseSchema: Codable {
-
-
- public var createdBy: String?
-
- public var createdOn: String?
-
- public var filters: Filters?
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var taskId: String
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case filters = "filters"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case taskId = "task_id"
-
- case type = "type"
-
- }
-
- public init(createdBy: String? = nil, createdOn: String? = nil, filters: Filters? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil) {
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.filters = filters
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.taskId = taskId
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- createdBy = try container.decode(String.self, forKey: .createdBy)
-
- } 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 {
- filters = try container.decode(Filters.self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2e429115dc
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseCatalogPlatformModel.swift
@@ -0,0 +1,644 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryJobDetailResponse
+ Used By: Catalog
+ */
+
+ class InventoryJobDetailResponse: Codable {
+
+
+ public var cancelledBy: UserDetail?
+
+ public var cancelledOn: String?
+
+ public var completedOn: String?
+
+ public var createdBy: UserDetail?
+
+ public var createdOn: String?
+
+ public var filters: InventoryJobFilters
+
+ public var id: String
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+ public var url: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cancelledBy = "cancelled_by"
+
+ case cancelledOn = "cancelled_on"
+
+ case completedOn = "completed_on"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case filters = "filters"
+
+ case id = "id"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(cancelledBy: UserDetail? = nil, cancelledOn: String? = nil, completedOn: String? = nil, createdBy: UserDetail? = nil, createdOn: String? = nil, filters: InventoryJobFilters, id: String, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String) {
+
+ self.cancelledBy = cancelledBy
+
+ self.cancelledOn = cancelledOn
+
+ self.completedOn = completedOn
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.filters = filters
+
+ self.id = id
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cancelledBy = try container.decode(UserDetail.self, forKey: .cancelledBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cancelledOn = try container.decode(String.self, forKey: .cancelledOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ filters = try container.decode(InventoryJobFilters.self, forKey: .filters)
+
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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(cancelledBy, forKey: .cancelledBy)
+
+
+
+
+ try? container.encodeIfPresent(cancelledOn, forKey: .cancelledOn)
+
+
+
+
+ try? container.encodeIfPresent(completedOn, forKey: .completedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryJobDetailResponse
+ Used By: Catalog
+ */
+
+ class InventoryJobDetailResponse: Codable {
+
+
+ public var cancelledBy: UserDetail?
+
+ public var cancelledOn: String?
+
+ public var completedOn: String?
+
+ public var createdBy: UserDetail?
+
+ public var createdOn: String?
+
+ public var filters: InventoryJobFilters
+
+ public var id: String
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+ public var url: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cancelledBy = "cancelled_by"
+
+ case cancelledOn = "cancelled_on"
+
+ case completedOn = "completed_on"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case filters = "filters"
+
+ case id = "id"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(cancelledBy: UserDetail? = nil, cancelledOn: String? = nil, completedOn: String? = nil, createdBy: UserDetail? = nil, createdOn: String? = nil, filters: InventoryJobFilters, id: String, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String) {
+
+ self.cancelledBy = cancelledBy
+
+ self.cancelledOn = cancelledOn
+
+ self.completedOn = completedOn
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.filters = filters
+
+ self.id = id
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cancelledBy = try container.decode(UserDetail.self, forKey: .cancelledBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cancelledOn = try container.decode(String.self, forKey: .cancelledOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ filters = try container.decode(InventoryJobFilters.self, forKey: .filters)
+
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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(cancelledBy, forKey: .cancelledBy)
+
+
+
+
+ try? container.encodeIfPresent(cancelledOn, forKey: .cancelledOn)
+
+
+
+
+ try? container.encodeIfPresent(completedOn, forKey: .completedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 8e129e5278..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryJobDetailResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,690 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryJobDetailResponseSchema
- Used By: Catalog
- */
-
- class InventoryJobDetailResponseSchema: Codable {
-
-
- public var cancelledBy: UserDetail?
-
- public var cancelledOn: String?
-
- public var completedOn: String?
-
- public var createdBy: UserDetail?
-
- public var createdOn: String?
-
- public var filters: InventoryJobFilters
-
- public var id: String
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var stats: [String: Any]?
-
- public var taskId: String
-
- public var type: String?
-
- public var url: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cancelledBy = "cancelled_by"
-
- case cancelledOn = "cancelled_on"
-
- case completedOn = "completed_on"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case filters = "filters"
-
- case id = "id"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case stats = "stats"
-
- case taskId = "task_id"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(cancelledBy: UserDetail? = nil, cancelledOn: String? = nil, completedOn: String? = nil, createdBy: UserDetail? = nil, createdOn: String? = nil, filters: InventoryJobFilters, id: String, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, stats: [String: Any]? = nil, status: String? = nil, taskId: String, type: String? = nil, url: String) {
-
- self.cancelledBy = cancelledBy
-
- self.cancelledOn = cancelledOn
-
- self.completedOn = completedOn
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.filters = filters
-
- self.id = id
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.stats = stats
-
- self.taskId = taskId
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cancelledBy = try container.decode(UserDetail.self, forKey: .cancelledBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cancelledOn = try container.decode(String.self, forKey: .cancelledOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- filters = try container.decode(InventoryJobFilters.self, forKey: .filters)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- stats = try container.decode([String: Any].self, forKey: .stats)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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(cancelledBy, forKey: .cancelledBy)
-
-
-
-
- try? container.encodeIfPresent(cancelledOn, forKey: .cancelledOn)
-
-
-
-
- try? container.encodeIfPresent(completedOn, forKey: .completedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(stats, forKey: .stats)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryJobDetailResponseSchema
- Used By: Catalog
- */
-
- class InventoryJobDetailResponseSchema: Codable {
-
-
- public var cancelledBy: UserDetail?
-
- public var cancelledOn: String?
-
- public var completedOn: String?
-
- public var createdBy: UserDetail?
-
- public var createdOn: String?
-
- public var filters: InventoryJobFilters
-
- public var id: String
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var stats: [String: Any]?
-
- public var taskId: String
-
- public var type: String?
-
- public var url: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cancelledBy = "cancelled_by"
-
- case cancelledOn = "cancelled_on"
-
- case completedOn = "completed_on"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case filters = "filters"
-
- case id = "id"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case stats = "stats"
-
- case taskId = "task_id"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(cancelledBy: UserDetail? = nil, cancelledOn: String? = nil, completedOn: String? = nil, createdBy: UserDetail? = nil, createdOn: String? = nil, filters: InventoryJobFilters, id: String, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, stats: [String: Any]? = nil, status: String? = nil, taskId: String, type: String? = nil, url: String) {
-
- self.cancelledBy = cancelledBy
-
- self.cancelledOn = cancelledOn
-
- self.completedOn = completedOn
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.filters = filters
-
- self.id = id
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.stats = stats
-
- self.taskId = taskId
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- cancelledBy = try container.decode(UserDetail.self, forKey: .cancelledBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cancelledOn = try container.decode(String.self, forKey: .cancelledOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- filters = try container.decode(InventoryJobFilters.self, forKey: .filters)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- stats = try container.decode([String: Any].self, forKey: .stats)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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(cancelledBy, forKey: .cancelledBy)
-
-
-
-
- try? container.encodeIfPresent(cancelledOn, forKey: .cancelledOn)
-
-
-
-
- try? container.encodeIfPresent(completedOn, forKey: .completedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(stats, forKey: .stats)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..899fcad63d
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryManufacturerResponse
+ Used By: Catalog
+ */
+
+ class InventoryManufacturerResponse: Codable {
+
+
+ public var address: String?
+
+ public var isDefault: Bool?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case isDefault = "is_default"
+
+ case name = "name"
+
+ }
+
+ public init(address: String? = nil, isDefault: Bool? = nil, name: String? = nil) {
+
+ self.address = address
+
+ self.isDefault = isDefault
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode(String.self, forKey: .address)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+ } 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryManufacturerResponse
+ Used By: Catalog
+ */
+
+ class InventoryManufacturerResponse: Codable {
+
+
+ public var address: String?
+
+ public var isDefault: Bool?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case isDefault = "is_default"
+
+ case name = "name"
+
+ }
+
+ public init(address: String? = nil, isDefault: Bool? = nil, name: String? = nil) {
+
+ self.address = address
+
+ self.isDefault = isDefault
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode(String.self, forKey: .address)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+ } 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 574e494248..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryManufacturerResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryManufacturerResponseSchema
- Used By: Catalog
- */
-
- class InventoryManufacturerResponseSchema: Codable {
-
-
- public var address: String?
-
- public var isDefault: Bool?
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- }
-
- public init(address: String? = nil, isDefault: Bool? = nil, name: String? = nil) {
-
- self.address = address
-
- self.isDefault = isDefault
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
- } 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryManufacturerResponseSchema
- Used By: Catalog
- */
-
- class InventoryManufacturerResponseSchema: Codable {
-
-
- public var address: String?
-
- public var isDefault: Bool?
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- }
-
- public init(address: String? = nil, isDefault: Bool? = nil, name: String? = nil) {
-
- self.address = address
-
- self.isDefault = isDefault
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
- } 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..a947956eb2
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryRequestCatalogPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryRequest
+ Used By: Catalog
+ */
+
+ class InventoryRequest: Codable {
+
+
+ public var companyId: Int
+
+ public var item: ItemQuery
+
+ public var sizes: [InvSize]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case item = "item"
+
+ case sizes = "sizes"
+
+ }
+
+ public init(companyId: Int, item: ItemQuery, sizes: [InvSize]) {
+
+ self.companyId = companyId
+
+ self.item = item
+
+ self.sizes = sizes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ item = try container.decode(ItemQuery.self, forKey: .item)
+
+
+
+
+ sizes = try container.decode([InvSize].self, forKey: .sizes)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(item, forKey: .item)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryRequest
+ Used By: Catalog
+ */
+
+ class InventoryRequest: Codable {
+
+
+ public var companyId: Int
+
+ public var item: ItemQuery
+
+ public var sizes: [InvSize]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case item = "item"
+
+ case sizes = "sizes"
+
+ }
+
+ public init(companyId: Int, item: ItemQuery, sizes: [InvSize]) {
+
+ self.companyId = companyId
+
+ self.item = item
+
+ self.sizes = sizes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ item = try container.decode(ItemQuery.self, forKey: .item)
+
+
+
+
+ sizes = try container.decode([InvSize].self, forKey: .sizes)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(item, forKey: .item)
+
+
+
+
+ try? container.encodeIfPresent(sizes, forKey: .sizes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 774bfcb278..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryRequestSchema
- Used By: Catalog
- */
-
- class InventoryRequestSchema: Codable {
-
-
- public var companyId: Int
-
- public var item: ItemQuery
-
- public var sizes: [InvSize]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case item = "item"
-
- case sizes = "sizes"
-
- }
-
- public init(companyId: Int, item: ItemQuery, sizes: [InvSize]) {
-
- self.companyId = companyId
-
- self.item = item
-
- self.sizes = sizes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- item = try container.decode(ItemQuery.self, forKey: .item)
-
-
-
-
- sizes = try container.decode([InvSize].self, forKey: .sizes)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(item, forKey: .item)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryRequestSchema
- Used By: Catalog
- */
-
- class InventoryRequestSchema: Codable {
-
-
- public var companyId: Int
-
- public var item: ItemQuery
-
- public var sizes: [InvSize]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case item = "item"
-
- case sizes = "sizes"
-
- }
-
- public init(companyId: Int, item: ItemQuery, sizes: [InvSize]) {
-
- self.companyId = companyId
-
- self.item = item
-
- self.sizes = sizes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- item = try container.decode(ItemQuery.self, forKey: .item)
-
-
-
-
- sizes = try container.decode([InvSize].self, forKey: .sizes)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(item, forKey: .item)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..350ef78354
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryResponseCatalogPlatformModel.swift
@@ -0,0 +1,668 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryResponse
+ Used By: Catalog
+ */
+
+ class InventoryResponse: Codable {
+
+
+ public var currency: String?
+
+ public var identifiers: [String: Any]?
+
+ public var inventoryUpdatedOn: String?
+
+ public var itemId: Int?
+
+ public var price: Double?
+
+ public var priceEffective: Double?
+
+ public var priceTransfer: Double?
+
+ public var quantity: Int?
+
+ public var sellableQuantity: Int?
+
+ public var sellerIdentifier: String?
+
+ public var size: String?
+
+ public var store: [String: Any]?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case currency = "currency"
+
+ case identifiers = "identifiers"
+
+ case inventoryUpdatedOn = "inventory_updated_on"
+
+ case itemId = "item_id"
+
+ case price = "price"
+
+ case priceEffective = "price_effective"
+
+ case priceTransfer = "price_transfer"
+
+ case quantity = "quantity"
+
+ case sellableQuantity = "sellable_quantity"
+
+ case sellerIdentifier = "seller_identifier"
+
+ case size = "size"
+
+ case store = "store"
+
+ case uid = "uid"
+
+ }
+
+ public init(currency: String? = nil, identifiers: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, itemId: Int? = nil, price: Double? = nil, priceEffective: Double? = nil, priceTransfer: Double? = nil, quantity: Int? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, store: [String: Any]? = nil, uid: String? = nil) {
+
+ self.currency = currency
+
+ self.identifiers = identifiers
+
+ self.inventoryUpdatedOn = inventoryUpdatedOn
+
+ self.itemId = itemId
+
+ self.price = price
+
+ self.priceEffective = priceEffective
+
+ self.priceTransfer = priceTransfer
+
+ self.quantity = quantity
+
+ self.sellableQuantity = sellableQuantity
+
+ self.sellerIdentifier = sellerIdentifier
+
+ self.size = size
+
+ self.store = store
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ inventoryUpdatedOn = try container.decode(String.self, forKey: .inventoryUpdatedOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ price = try container.decode(Double.self, forKey: .price)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceEffective = try container.decode(Double.self, forKey: .priceEffective)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ store = try container.decode([String: Any].self, forKey: .store)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(identifiers, forKey: .identifiers)
+
+
+
+
+ try? container.encodeIfPresent(inventoryUpdatedOn, forKey: .inventoryUpdatedOn)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(price, forKey: .price)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
+
+
+
+
+ try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryResponse
+ Used By: Catalog
+ */
+
+ class InventoryResponse: Codable {
+
+
+ public var currency: String?
+
+ public var identifiers: [String: Any]?
+
+ public var inventoryUpdatedOn: String?
+
+ public var itemId: Int?
+
+ public var price: Double?
+
+ public var priceEffective: Double?
+
+ public var priceTransfer: Double?
+
+ public var quantity: Int?
+
+ public var sellableQuantity: Int?
+
+ public var sellerIdentifier: String?
+
+ public var size: String?
+
+ public var store: [String: Any]?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case currency = "currency"
+
+ case identifiers = "identifiers"
+
+ case inventoryUpdatedOn = "inventory_updated_on"
+
+ case itemId = "item_id"
+
+ case price = "price"
+
+ case priceEffective = "price_effective"
+
+ case priceTransfer = "price_transfer"
+
+ case quantity = "quantity"
+
+ case sellableQuantity = "sellable_quantity"
+
+ case sellerIdentifier = "seller_identifier"
+
+ case size = "size"
+
+ case store = "store"
+
+ case uid = "uid"
+
+ }
+
+ public init(currency: String? = nil, identifiers: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, itemId: Int? = nil, price: Double? = nil, priceEffective: Double? = nil, priceTransfer: Double? = nil, quantity: Int? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, store: [String: Any]? = nil, uid: String? = nil) {
+
+ self.currency = currency
+
+ self.identifiers = identifiers
+
+ self.inventoryUpdatedOn = inventoryUpdatedOn
+
+ self.itemId = itemId
+
+ self.price = price
+
+ self.priceEffective = priceEffective
+
+ self.priceTransfer = priceTransfer
+
+ self.quantity = quantity
+
+ self.sellableQuantity = sellableQuantity
+
+ self.sellerIdentifier = sellerIdentifier
+
+ self.size = size
+
+ self.store = store
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ inventoryUpdatedOn = try container.decode(String.self, forKey: .inventoryUpdatedOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ price = try container.decode(Double.self, forKey: .price)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceEffective = try container.decode(Double.self, forKey: .priceEffective)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ store = try container.decode([String: Any].self, forKey: .store)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(identifiers, forKey: .identifiers)
+
+
+
+
+ try? container.encodeIfPresent(inventoryUpdatedOn, forKey: .inventoryUpdatedOn)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(price, forKey: .price)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
+
+
+
+
+ try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryResponsePaginatedCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryResponsePaginatedCatalogPlatformModel.swift
index 88cea698c4..1049ef1fff 100644
--- a/Sources/code/platform/Models/Catalog/InventoryResponsePaginatedCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/InventoryResponsePaginatedCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class InventoryResponsePaginated: Codable {
- public var items: [InventoryResponseSchema]?
+ public var items: [InventoryResponse]?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [InventoryResponseSchema]? = nil, page: Page? = nil) {
+ public init(items: [InventoryResponse]? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- items = try container.decode([InventoryResponseSchema].self, forKey: .items)
+ items = try container.decode([InventoryResponse].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class InventoryResponsePaginated: Codable {
- public var items: [InventoryResponseSchema]?
+ public var items: [InventoryResponse]?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [InventoryResponseSchema]? = nil, page: Page? = nil) {
+ public init(items: [InventoryResponse]? = nil, page: Page? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- items = try container.decode([InventoryResponseSchema].self, forKey: .items)
+ items = try container.decode([InventoryResponse].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/InventoryResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 63a8e7621f..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,852 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryResponseSchema
- Used By: Catalog
- */
-
- class InventoryResponseSchema: Codable {
-
-
- public var currency: String?
-
- public var identifiers: [String: Any]?
-
- public var inventoryUpdatedOn: String?
-
- public var itemId: Int?
-
- public var price: Double?
-
- public var priceEffective: Double?
-
- public var priceTransfer: Double?
-
- public var quantity: Int?
-
- public var sellableQuantity: Int?
-
- public var sellerIdentifier: String?
-
- public var size: String?
-
- public var store: [String: Any]?
-
- public var uid: String?
-
- public var createdBy: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var expirationDate: String?
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currency = "currency"
-
- case identifiers = "identifiers"
-
- case inventoryUpdatedOn = "inventory_updated_on"
-
- case itemId = "item_id"
-
- case price = "price"
-
- case priceEffective = "price_effective"
-
- case priceTransfer = "price_transfer"
-
- case quantity = "quantity"
-
- case sellableQuantity = "sellable_quantity"
-
- case sellerIdentifier = "seller_identifier"
-
- case size = "size"
-
- case store = "store"
-
- case uid = "uid"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case expirationDate = "expiration_date"
-
- case tags = "tags"
-
- }
-
- public init(createdBy: [String: Any]? = nil, currency: String? = nil, expirationDate: String? = nil, identifiers: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, itemId: Int? = nil, modifiedBy: [String: Any]? = nil, price: Double? = nil, priceEffective: Double? = nil, priceTransfer: Double? = nil, quantity: Int? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, store: [String: Any]? = nil, tags: [String]? = nil, uid: String? = nil) {
-
- self.currency = currency
-
- self.identifiers = identifiers
-
- self.inventoryUpdatedOn = inventoryUpdatedOn
-
- self.itemId = itemId
-
- self.price = price
-
- self.priceEffective = priceEffective
-
- self.priceTransfer = priceTransfer
-
- self.quantity = quantity
-
- self.sellableQuantity = sellableQuantity
-
- self.sellerIdentifier = sellerIdentifier
-
- self.size = size
-
- self.store = store
-
- self.uid = uid
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.expirationDate = expirationDate
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- inventoryUpdatedOn = try container.decode(String.self, forKey: .inventoryUpdatedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- price = try container.decode(Double.self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- store = try container.decode([String: Any].self, forKey: .store)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(inventoryUpdatedOn, forKey: .inventoryUpdatedOn)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryResponseSchema
- Used By: Catalog
- */
-
- class InventoryResponseSchema: Codable {
-
-
- public var currency: String?
-
- public var identifiers: [String: Any]?
-
- public var inventoryUpdatedOn: String?
-
- public var itemId: Int?
-
- public var price: Double?
-
- public var priceEffective: Double?
-
- public var priceTransfer: Double?
-
- public var quantity: Int?
-
- public var sellableQuantity: Int?
-
- public var sellerIdentifier: String?
-
- public var size: String?
-
- public var store: [String: Any]?
-
- public var uid: String?
-
- public var createdBy: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var expirationDate: String?
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currency = "currency"
-
- case identifiers = "identifiers"
-
- case inventoryUpdatedOn = "inventory_updated_on"
-
- case itemId = "item_id"
-
- case price = "price"
-
- case priceEffective = "price_effective"
-
- case priceTransfer = "price_transfer"
-
- case quantity = "quantity"
-
- case sellableQuantity = "sellable_quantity"
-
- case sellerIdentifier = "seller_identifier"
-
- case size = "size"
-
- case store = "store"
-
- case uid = "uid"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- case expirationDate = "expiration_date"
-
- case tags = "tags"
-
- }
-
- public init(createdBy: [String: Any]? = nil, currency: String? = nil, expirationDate: String? = nil, identifiers: [String: Any]? = nil, inventoryUpdatedOn: String? = nil, itemId: Int? = nil, modifiedBy: [String: Any]? = nil, price: Double? = nil, priceEffective: Double? = nil, priceTransfer: Double? = nil, quantity: Int? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, store: [String: Any]? = nil, tags: [String]? = nil, uid: String? = nil) {
-
- self.currency = currency
-
- self.identifiers = identifiers
-
- self.inventoryUpdatedOn = inventoryUpdatedOn
-
- self.itemId = itemId
-
- self.price = price
-
- self.priceEffective = priceEffective
-
- self.priceTransfer = priceTransfer
-
- self.quantity = quantity
-
- self.sellableQuantity = sellableQuantity
-
- self.sellerIdentifier = sellerIdentifier
-
- self.size = size
-
- self.store = store
-
- self.uid = uid
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- self.expirationDate = expirationDate
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- inventoryUpdatedOn = try container.decode(String.self, forKey: .inventoryUpdatedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- price = try container.decode(Double.self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- store = try container.decode([String: Any].self, forKey: .store)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(inventoryUpdatedOn, forKey: .inventoryUpdatedOn)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryReturnConfigCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryReturnConfigCatalogPlatformModel.swift
deleted file mode 100644
index 5c1c2a7fc3..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryReturnConfigCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryReturnConfig
- Used By: Catalog
- */
-
- class InventoryReturnConfig: Codable {
-
-
- public var returnable: Bool?
-
- public var time: Int?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- time = try container.decode(Int.self, forKey: .time)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryReturnConfig
- Used By: Catalog
- */
-
- class InventoryReturnConfig: Codable {
-
-
- public var returnable: Bool?
-
- public var time: Int?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- time = try container.decode(Int.self, forKey: .time)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift
index e068c54e4b..414b2d9917 100644
--- a/Sources/code/platform/Models/Catalog/InventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/InventorySellerIdentifierResponsePaginatedCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class InventorySellerIdentifierResponsePaginated: Codable {
- public var items: [InventorySellerResponseSchema]?
+ public var items: [InventorySellerResponse]?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [InventorySellerResponseSchema]? = nil, page: Page? = nil) {
+ public init(items: [InventorySellerResponse]? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- items = try container.decode([InventorySellerResponseSchema].self, forKey: .items)
+ items = try container.decode([InventorySellerResponse].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class InventorySellerIdentifierResponsePaginated: Codable {
- public var items: [InventorySellerResponseSchema]?
+ public var items: [InventorySellerResponse]?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [InventorySellerResponseSchema]? = nil, page: Page? = nil) {
+ public init(items: [InventorySellerResponse]? = nil, page: Page? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- items = try container.decode([InventorySellerResponseSchema].self, forKey: .items)
+ items = try container.decode([InventorySellerResponse].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/InventorySellerResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventorySellerResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..65924b54c5
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventorySellerResponseCatalogPlatformModel.swift
@@ -0,0 +1,1488 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventorySellerResponse
+ Used By: Catalog
+ */
+
+ class InventorySellerResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var addedOnStore: String?
+
+ public var brand: BrandMeta
+
+ public var company: CompanyMeta
+
+ public var countryOfOrigin: String
+
+ public var createdBy: RequestUserSerializer?
+
+ public var dimension: DimensionResponse
+
+ public var expirationDate: String?
+
+ public var fragile: Bool
+
+ public var fyndArticleCode: String
+
+ public var fyndItemCode: String
+
+ public var fyndMeta: [String: Any]?
+
+ public var identifier: [String: Any]
+
+ public var isActive: Bool?
+
+ public var isSet: Bool?
+
+ public var itemId: Int
+
+ public var manufacturer: ManufacturerResponse
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: RequestUserSerializer?
+
+ public var price: PriceMeta
+
+ public var quantities: Quantities?
+
+ public var rawMeta: [String: Any]?
+
+ public var returnConfig: ReturnConfig1?
+
+ public var sellerIdentifier: String
+
+ public var set: InventorySet?
+
+ public var size: String
+
+ public var stage: String?
+
+ public var store: StoreMeta
+
+ public var tags: [String]?
+
+ public var taxIdentifier: [String: Any]?
+
+ public var totalQuantity: Int
+
+ public var traceId: String?
+
+ public var trackInventory: Bool?
+
+ public var trader: [Trader1]?
+
+ public var uid: String
+
+ public var weight: WeightResponse
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case addedOnStore = "added_on_store"
+
+ case brand = "brand"
+
+ case company = "company"
+
+ case countryOfOrigin = "country_of_origin"
+
+ case createdBy = "created_by"
+
+ case dimension = "dimension"
+
+ case expirationDate = "expiration_date"
+
+ case fragile = "fragile"
+
+ case fyndArticleCode = "fynd_article_code"
+
+ case fyndItemCode = "fynd_item_code"
+
+ case fyndMeta = "fynd_meta"
+
+ case identifier = "identifier"
+
+ case isActive = "is_active"
+
+ case isSet = "is_set"
+
+ case itemId = "item_id"
+
+ case manufacturer = "manufacturer"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case price = "price"
+
+ case quantities = "quantities"
+
+ case rawMeta = "raw_meta"
+
+ case returnConfig = "return_config"
+
+ case sellerIdentifier = "seller_identifier"
+
+ case set = "set"
+
+ case size = "size"
+
+ case stage = "stage"
+
+ case store = "store"
+
+ case tags = "tags"
+
+ case taxIdentifier = "tax_identifier"
+
+ case totalQuantity = "total_quantity"
+
+ case traceId = "trace_id"
+
+ case trackInventory = "track_inventory"
+
+ case trader = "trader"
+
+ case uid = "uid"
+
+ case weight = "weight"
+
+ }
+
+ public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSerializer? = nil, dimension: DimensionResponse, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponse, meta: [String: Any]? = nil, modifiedBy: RequestUserSerializer? = nil, price: PriceMeta, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: ReturnConfig1? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader1]? = nil, uid: String, weight: WeightResponse, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.addedOnStore = addedOnStore
+
+ self.brand = brand
+
+ self.company = company
+
+ self.countryOfOrigin = countryOfOrigin
+
+ self.createdBy = createdBy
+
+ self.dimension = dimension
+
+ self.expirationDate = expirationDate
+
+ self.fragile = fragile
+
+ self.fyndArticleCode = fyndArticleCode
+
+ self.fyndItemCode = fyndItemCode
+
+ self.fyndMeta = fyndMeta
+
+ self.identifier = identifier
+
+ self.isActive = isActive
+
+ self.isSet = isSet
+
+ self.itemId = itemId
+
+ self.manufacturer = manufacturer
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.price = price
+
+ self.quantities = quantities
+
+ self.rawMeta = rawMeta
+
+ self.returnConfig = returnConfig
+
+ self.sellerIdentifier = sellerIdentifier
+
+ self.set = set
+
+ self.size = size
+
+ self.stage = stage
+
+ self.store = store
+
+ self.tags = tags
+
+ self.taxIdentifier = taxIdentifier
+
+ self.totalQuantity = totalQuantity
+
+ self.traceId = traceId
+
+ self.trackInventory = trackInventory
+
+ self.trader = trader
+
+ self.uid = uid
+
+ self.weight = weight
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ brand = try container.decode(BrandMeta.self, forKey: .brand)
+
+
+
+
+ company = try container.decode(CompanyMeta.self, forKey: .company)
+
+
+
+
+ countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
+
+
+
+
+ do {
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ dimension = try container.decode(DimensionResponse.self, forKey: .dimension)
+
+
+
+
+ do {
+ expirationDate = try container.decode(String.self, forKey: .expirationDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ fragile = try container.decode(Bool.self, forKey: .fragile)
+
+
+
+
+ fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
+
+
+
+
+ fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
+
+
+
+
+ do {
+ fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ manufacturer = try container.decode(ManufacturerResponse.self, forKey: .manufacturer)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ price = try container.decode(PriceMeta.self, forKey: .price)
+
+
+
+
+ do {
+ quantities = try container.decode(Quantities.self, forKey: .quantities)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ returnConfig = try container.decode(ReturnConfig1.self, forKey: .returnConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ store = try container.decode(StoreMeta.self, forKey: .store)
+
+
+
+
+ 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 {
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
+
+
+
+
+ do {
+ traceId = try container.decode(String.self, forKey: .traceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ trader = try container.decode([Trader1].self, forKey: .trader)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ uid = try container.decode(String.self, forKey: .uid)
+
+
+
+
+ weight = try container.decode(WeightResponse.self, forKey: .weight)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
+
+
+
+
+ try? container.encodeIfPresent(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(dimension, forKey: .dimension)
+
+
+
+
+ try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
+
+
+
+
+ try? container.encodeIfPresent(fragile, forKey: .fragile)
+
+
+
+
+ try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
+
+
+
+
+ try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
+
+
+
+
+ try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
+
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(isSet, forKey: .isSet)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(price, forKey: .price)
+
+
+
+
+ try? container.encodeIfPresent(quantities, forKey: .quantities)
+
+
+
+
+ try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
+
+
+
+
+ try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
+
+
+
+
+ try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(set, forKey: .set)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
+
+
+
+
+ try? container.encodeIfPresent(traceId, forKey: .traceId)
+
+
+
+
+ try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
+
+
+
+
+ try? container.encodeIfPresent(trader, forKey: .trader)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(weight, forKey: .weight)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventorySellerResponse
+ Used By: Catalog
+ */
+
+ class InventorySellerResponse: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var addedOnStore: String?
+
+ public var brand: BrandMeta
+
+ public var company: CompanyMeta
+
+ public var countryOfOrigin: String
+
+ public var createdBy: RequestUserSerializer?
+
+ public var dimension: DimensionResponse
+
+ public var expirationDate: String?
+
+ public var fragile: Bool
+
+ public var fyndArticleCode: String
+
+ public var fyndItemCode: String
+
+ public var fyndMeta: [String: Any]?
+
+ public var identifier: [String: Any]
+
+ public var isActive: Bool?
+
+ public var isSet: Bool?
+
+ public var itemId: Int
+
+ public var manufacturer: ManufacturerResponse
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: RequestUserSerializer?
+
+ public var price: PriceMeta
+
+ public var quantities: Quantities?
+
+ public var rawMeta: [String: Any]?
+
+ public var returnConfig: ReturnConfig1?
+
+ public var sellerIdentifier: String
+
+ public var set: InventorySet?
+
+ public var size: String
+
+ public var stage: String?
+
+ public var store: StoreMeta
+
+ public var tags: [String]?
+
+ public var taxIdentifier: [String: Any]?
+
+ public var totalQuantity: Int
+
+ public var traceId: String?
+
+ public var trackInventory: Bool?
+
+ public var trader: [Trader1]?
+
+ public var uid: String
+
+ public var weight: WeightResponse
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case addedOnStore = "added_on_store"
+
+ case brand = "brand"
+
+ case company = "company"
+
+ case countryOfOrigin = "country_of_origin"
+
+ case createdBy = "created_by"
+
+ case dimension = "dimension"
+
+ case expirationDate = "expiration_date"
+
+ case fragile = "fragile"
+
+ case fyndArticleCode = "fynd_article_code"
+
+ case fyndItemCode = "fynd_item_code"
+
+ case fyndMeta = "fynd_meta"
+
+ case identifier = "identifier"
+
+ case isActive = "is_active"
+
+ case isSet = "is_set"
+
+ case itemId = "item_id"
+
+ case manufacturer = "manufacturer"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case price = "price"
+
+ case quantities = "quantities"
+
+ case rawMeta = "raw_meta"
+
+ case returnConfig = "return_config"
+
+ case sellerIdentifier = "seller_identifier"
+
+ case set = "set"
+
+ case size = "size"
+
+ case stage = "stage"
+
+ case store = "store"
+
+ case tags = "tags"
+
+ case taxIdentifier = "tax_identifier"
+
+ case totalQuantity = "total_quantity"
+
+ case traceId = "trace_id"
+
+ case trackInventory = "track_inventory"
+
+ case trader = "trader"
+
+ case uid = "uid"
+
+ case weight = "weight"
+
+ }
+
+ public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSerializer? = nil, dimension: DimensionResponse, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponse, meta: [String: Any]? = nil, modifiedBy: RequestUserSerializer? = nil, price: PriceMeta, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: ReturnConfig1? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader1]? = nil, uid: String, weight: WeightResponse, customJson: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.addedOnStore = addedOnStore
+
+ self.brand = brand
+
+ self.company = company
+
+ self.countryOfOrigin = countryOfOrigin
+
+ self.createdBy = createdBy
+
+ self.dimension = dimension
+
+ self.expirationDate = expirationDate
+
+ self.fragile = fragile
+
+ self.fyndArticleCode = fyndArticleCode
+
+ self.fyndItemCode = fyndItemCode
+
+ self.fyndMeta = fyndMeta
+
+ self.identifier = identifier
+
+ self.isActive = isActive
+
+ self.isSet = isSet
+
+ self.itemId = itemId
+
+ self.manufacturer = manufacturer
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.price = price
+
+ self.quantities = quantities
+
+ self.rawMeta = rawMeta
+
+ self.returnConfig = returnConfig
+
+ self.sellerIdentifier = sellerIdentifier
+
+ self.set = set
+
+ self.size = size
+
+ self.stage = stage
+
+ self.store = store
+
+ self.tags = tags
+
+ self.taxIdentifier = taxIdentifier
+
+ self.totalQuantity = totalQuantity
+
+ self.traceId = traceId
+
+ self.trackInventory = trackInventory
+
+ self.trader = trader
+
+ self.uid = uid
+
+ self.weight = weight
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ brand = try container.decode(BrandMeta.self, forKey: .brand)
+
+
+
+
+ company = try container.decode(CompanyMeta.self, forKey: .company)
+
+
+
+
+ countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
+
+
+
+
+ do {
+ createdBy = try container.decode(RequestUserSerializer.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ dimension = try container.decode(DimensionResponse.self, forKey: .dimension)
+
+
+
+
+ do {
+ expirationDate = try container.decode(String.self, forKey: .expirationDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ fragile = try container.decode(Bool.self, forKey: .fragile)
+
+
+
+
+ fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
+
+
+
+
+ fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
+
+
+
+
+ do {
+ fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ identifier = try container.decode([String: Any].self, forKey: .identifier)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ manufacturer = try container.decode(ManufacturerResponse.self, forKey: .manufacturer)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(RequestUserSerializer.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ price = try container.decode(PriceMeta.self, forKey: .price)
+
+
+
+
+ do {
+ quantities = try container.decode(Quantities.self, forKey: .quantities)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ returnConfig = try container.decode(ReturnConfig1.self, forKey: .returnConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ store = try container.decode(StoreMeta.self, forKey: .store)
+
+
+
+
+ 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 {
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
+
+
+
+
+ do {
+ traceId = try container.decode(String.self, forKey: .traceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ trader = try container.decode([Trader1].self, forKey: .trader)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ uid = try container.decode(String.self, forKey: .uid)
+
+
+
+
+ weight = try container.decode(WeightResponse.self, forKey: .weight)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
+
+
+
+
+ try? container.encodeIfPresent(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(dimension, forKey: .dimension)
+
+
+
+
+ try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
+
+
+
+
+ try? container.encodeIfPresent(fragile, forKey: .fragile)
+
+
+
+
+ try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
+
+
+
+
+ try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
+
+
+
+
+ try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
+
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(isSet, forKey: .isSet)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(price, forKey: .price)
+
+
+
+
+ try? container.encodeIfPresent(quantities, forKey: .quantities)
+
+
+
+
+ try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
+
+
+
+
+ try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
+
+
+
+
+ try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(set, forKey: .set)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
+
+
+
+
+ try? container.encodeIfPresent(traceId, forKey: .traceId)
+
+
+
+
+ try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
+
+
+
+
+ try? container.encodeIfPresent(trader, forKey: .trader)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(weight, forKey: .weight)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventorySellerResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventorySellerResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index f21f34d583..0000000000
--- a/Sources/code/platform/Models/Catalog/InventorySellerResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,1488 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventorySellerResponseSchema
- Used By: Catalog
- */
-
- class InventorySellerResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var addedOnStore: String?
-
- public var brand: BrandMeta
-
- public var company: CompanyMeta
-
- public var countryOfOrigin: String
-
- public var createdBy: RequestUserSchema?
-
- public var dimension: DimensionResponseSchema
-
- public var expirationDate: String?
-
- public var fragile: Bool
-
- public var fyndArticleCode: String
-
- public var fyndItemCode: String
-
- public var fyndMeta: [String: Any]?
-
- public var identifier: [String: Any]
-
- public var isActive: Bool?
-
- public var isSet: Bool?
-
- public var itemId: Int
-
- public var manufacturer: ManufacturerResponseSchema
-
- public var meta: [String: Any]?
-
- public var modifiedBy: RequestUserSchema?
-
- public var price: PriceMeta
-
- public var quantities: Quantities?
-
- public var rawMeta: [String: Any]?
-
- public var returnConfig: InventoryReturnConfig?
-
- public var sellerIdentifier: String
-
- public var set: InventorySet?
-
- public var size: String
-
- public var stage: String?
-
- public var store: StoreMeta
-
- public var tags: [String]?
-
- public var taxIdentifier: TaxIdentifier?
-
- public var totalQuantity: Int
-
- public var traceId: String?
-
- public var trackInventory: Bool?
-
- public var trader: [Trader]?
-
- public var uid: String
-
- public var weight: WeightResponseSchema
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case addedOnStore = "added_on_store"
-
- case brand = "brand"
-
- case company = "company"
-
- case countryOfOrigin = "country_of_origin"
-
- case createdBy = "created_by"
-
- case dimension = "dimension"
-
- case expirationDate = "expiration_date"
-
- case fragile = "fragile"
-
- case fyndArticleCode = "fynd_article_code"
-
- case fyndItemCode = "fynd_item_code"
-
- case fyndMeta = "fynd_meta"
-
- case identifier = "identifier"
-
- case isActive = "is_active"
-
- case isSet = "is_set"
-
- case itemId = "item_id"
-
- case manufacturer = "manufacturer"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case price = "price"
-
- case quantities = "quantities"
-
- case rawMeta = "raw_meta"
-
- case returnConfig = "return_config"
-
- case sellerIdentifier = "seller_identifier"
-
- case set = "set"
-
- case size = "size"
-
- case stage = "stage"
-
- case store = "store"
-
- case tags = "tags"
-
- case taxIdentifier = "tax_identifier"
-
- case totalQuantity = "total_quantity"
-
- case traceId = "trace_id"
-
- case trackInventory = "track_inventory"
-
- case trader = "trader"
-
- case uid = "uid"
-
- case weight = "weight"
-
- }
-
- public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSchema? = nil, dimension: DimensionResponseSchema, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponseSchema, meta: [String: Any]? = nil, modifiedBy: RequestUserSchema? = nil, price: PriceMeta, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: InventoryReturnConfig? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader]? = nil, uid: String, weight: WeightResponseSchema, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.addedOnStore = addedOnStore
-
- self.brand = brand
-
- self.company = company
-
- self.countryOfOrigin = countryOfOrigin
-
- self.createdBy = createdBy
-
- self.dimension = dimension
-
- self.expirationDate = expirationDate
-
- self.fragile = fragile
-
- self.fyndArticleCode = fyndArticleCode
-
- self.fyndItemCode = fyndItemCode
-
- self.fyndMeta = fyndMeta
-
- self.identifier = identifier
-
- self.isActive = isActive
-
- self.isSet = isSet
-
- self.itemId = itemId
-
- self.manufacturer = manufacturer
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.price = price
-
- self.quantities = quantities
-
- self.rawMeta = rawMeta
-
- self.returnConfig = returnConfig
-
- self.sellerIdentifier = sellerIdentifier
-
- self.set = set
-
- self.size = size
-
- self.stage = stage
-
- self.store = store
-
- self.tags = tags
-
- self.taxIdentifier = taxIdentifier
-
- self.totalQuantity = totalQuantity
-
- self.traceId = traceId
-
- self.trackInventory = trackInventory
-
- self.trader = trader
-
- self.uid = uid
-
- self.weight = weight
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brand = try container.decode(BrandMeta.self, forKey: .brand)
-
-
-
-
- company = try container.decode(CompanyMeta.self, forKey: .company)
-
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- dimension = try container.decode(DimensionResponseSchema.self, forKey: .dimension)
-
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- fragile = try container.decode(Bool.self, forKey: .fragile)
-
-
-
-
- fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
-
-
-
-
- fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
-
-
-
-
- do {
- fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- manufacturer = try container.decode(ManufacturerResponseSchema.self, forKey: .manufacturer)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- price = try container.decode(PriceMeta.self, forKey: .price)
-
-
-
-
- do {
- quantities = try container.decode(Quantities.self, forKey: .quantities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnConfig = try container.decode(InventoryReturnConfig.self, forKey: .returnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- store = try container.decode(StoreMeta.self, forKey: .store)
-
-
-
-
- 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 {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
-
-
-
- do {
- traceId = try container.decode(String.self, forKey: .traceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
-
- weight = try container.decode(WeightResponseSchema.self, forKey: .weight)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(fragile, forKey: .fragile)
-
-
-
-
- try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
-
-
-
-
- try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
-
-
-
-
- try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isSet, forKey: .isSet)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(quantities, forKey: .quantities)
-
-
-
-
- try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(set, forKey: .set)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(traceId, forKey: .traceId)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(trader, forKey: .trader)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventorySellerResponseSchema
- Used By: Catalog
- */
-
- class InventorySellerResponseSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var addedOnStore: String?
-
- public var brand: BrandMeta
-
- public var company: CompanyMeta
-
- public var countryOfOrigin: String
-
- public var createdBy: RequestUserSchema?
-
- public var dimension: DimensionResponseSchema
-
- public var expirationDate: String?
-
- public var fragile: Bool
-
- public var fyndArticleCode: String
-
- public var fyndItemCode: String
-
- public var fyndMeta: [String: Any]?
-
- public var identifier: [String: Any]
-
- public var isActive: Bool?
-
- public var isSet: Bool?
-
- public var itemId: Int
-
- public var manufacturer: ManufacturerResponseSchema
-
- public var meta: [String: Any]?
-
- public var modifiedBy: RequestUserSchema?
-
- public var price: PriceMeta
-
- public var quantities: Quantities?
-
- public var rawMeta: [String: Any]?
-
- public var returnConfig: InventoryReturnConfig?
-
- public var sellerIdentifier: String
-
- public var set: InventorySet?
-
- public var size: String
-
- public var stage: String?
-
- public var store: StoreMeta
-
- public var tags: [String]?
-
- public var taxIdentifier: TaxIdentifier?
-
- public var totalQuantity: Int
-
- public var traceId: String?
-
- public var trackInventory: Bool?
-
- public var trader: [Trader]?
-
- public var uid: String
-
- public var weight: WeightResponseSchema
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case addedOnStore = "added_on_store"
-
- case brand = "brand"
-
- case company = "company"
-
- case countryOfOrigin = "country_of_origin"
-
- case createdBy = "created_by"
-
- case dimension = "dimension"
-
- case expirationDate = "expiration_date"
-
- case fragile = "fragile"
-
- case fyndArticleCode = "fynd_article_code"
-
- case fyndItemCode = "fynd_item_code"
-
- case fyndMeta = "fynd_meta"
-
- case identifier = "identifier"
-
- case isActive = "is_active"
-
- case isSet = "is_set"
-
- case itemId = "item_id"
-
- case manufacturer = "manufacturer"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case price = "price"
-
- case quantities = "quantities"
-
- case rawMeta = "raw_meta"
-
- case returnConfig = "return_config"
-
- case sellerIdentifier = "seller_identifier"
-
- case set = "set"
-
- case size = "size"
-
- case stage = "stage"
-
- case store = "store"
-
- case tags = "tags"
-
- case taxIdentifier = "tax_identifier"
-
- case totalQuantity = "total_quantity"
-
- case traceId = "trace_id"
-
- case trackInventory = "track_inventory"
-
- case trader = "trader"
-
- case uid = "uid"
-
- case weight = "weight"
-
- }
-
- public init(addedOnStore: String? = nil, brand: BrandMeta, company: CompanyMeta, countryOfOrigin: String, createdBy: RequestUserSchema? = nil, dimension: DimensionResponseSchema, expirationDate: String? = nil, fragile: Bool, fyndArticleCode: String, fyndItemCode: String, fyndMeta: [String: Any]? = nil, identifier: [String: Any], isActive: Bool? = nil, isSet: Bool? = nil, itemId: Int, manufacturer: ManufacturerResponseSchema, meta: [String: Any]? = nil, modifiedBy: RequestUserSchema? = nil, price: PriceMeta, quantities: Quantities? = nil, rawMeta: [String: Any]? = nil, returnConfig: InventoryReturnConfig? = nil, sellerIdentifier: String, set: InventorySet? = nil, size: String, stage: String? = nil, store: StoreMeta, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, totalQuantity: Int, traceId: String? = nil, trackInventory: Bool? = nil, trader: [Trader]? = nil, uid: String, weight: WeightResponseSchema, customJson: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.addedOnStore = addedOnStore
-
- self.brand = brand
-
- self.company = company
-
- self.countryOfOrigin = countryOfOrigin
-
- self.createdBy = createdBy
-
- self.dimension = dimension
-
- self.expirationDate = expirationDate
-
- self.fragile = fragile
-
- self.fyndArticleCode = fyndArticleCode
-
- self.fyndItemCode = fyndItemCode
-
- self.fyndMeta = fyndMeta
-
- self.identifier = identifier
-
- self.isActive = isActive
-
- self.isSet = isSet
-
- self.itemId = itemId
-
- self.manufacturer = manufacturer
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.price = price
-
- self.quantities = quantities
-
- self.rawMeta = rawMeta
-
- self.returnConfig = returnConfig
-
- self.sellerIdentifier = sellerIdentifier
-
- self.set = set
-
- self.size = size
-
- self.stage = stage
-
- self.store = store
-
- self.tags = tags
-
- self.taxIdentifier = taxIdentifier
-
- self.totalQuantity = totalQuantity
-
- self.traceId = traceId
-
- self.trackInventory = trackInventory
-
- self.trader = trader
-
- self.uid = uid
-
- self.weight = weight
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- addedOnStore = try container.decode(String.self, forKey: .addedOnStore)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- brand = try container.decode(BrandMeta.self, forKey: .brand)
-
-
-
-
- company = try container.decode(CompanyMeta.self, forKey: .company)
-
-
-
-
- countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin)
-
-
-
-
- do {
- createdBy = try container.decode(RequestUserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- dimension = try container.decode(DimensionResponseSchema.self, forKey: .dimension)
-
-
-
-
- do {
- expirationDate = try container.decode(String.self, forKey: .expirationDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- fragile = try container.decode(Bool.self, forKey: .fragile)
-
-
-
-
- fyndArticleCode = try container.decode(String.self, forKey: .fyndArticleCode)
-
-
-
-
- fyndItemCode = try container.decode(String.self, forKey: .fyndItemCode)
-
-
-
-
- do {
- fyndMeta = try container.decode([String: Any].self, forKey: .fyndMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- manufacturer = try container.decode(ManufacturerResponseSchema.self, forKey: .manufacturer)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(RequestUserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- price = try container.decode(PriceMeta.self, forKey: .price)
-
-
-
-
- do {
- quantities = try container.decode(Quantities.self, forKey: .quantities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rawMeta = try container.decode([String: Any].self, forKey: .rawMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnConfig = try container.decode(InventoryReturnConfig.self, forKey: .returnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- store = try container.decode(StoreMeta.self, forKey: .store)
-
-
-
-
- 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 {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
-
-
-
- do {
- traceId = try container.decode(String.self, forKey: .traceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
-
- weight = try container.decode(WeightResponseSchema.self, forKey: .weight)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(addedOnStore, forKey: .addedOnStore)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(expirationDate, forKey: .expirationDate)
-
-
-
-
- try? container.encodeIfPresent(fragile, forKey: .fragile)
-
-
-
-
- try? container.encodeIfPresent(fyndArticleCode, forKey: .fyndArticleCode)
-
-
-
-
- try? container.encodeIfPresent(fyndItemCode, forKey: .fyndItemCode)
-
-
-
-
- try? container.encodeIfPresent(fyndMeta, forKey: .fyndMeta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(isSet, forKey: .isSet)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(manufacturer, forKey: .manufacturer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(quantities, forKey: .quantities)
-
-
-
-
- try? container.encodeIfPresent(rawMeta, forKey: .rawMeta)
-
-
-
-
- try? container.encodeIfPresent(returnConfig, forKey: .returnConfig)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(set, forKey: .set)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(taxIdentifier, forKey: .taxIdentifier)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(traceId, forKey: .traceId)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(trader, forKey: .trader)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryStockResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryStockResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..57835a108c
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryStockResponseCatalogPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryStockResponse
+ Used By: Catalog
+ */
+
+ class InventoryStockResponse: Codable {
+
+
+ public var items: [[String: Any]]?
+
+ public var page: InventoryPage
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, page: InventoryPage) {
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ page = try container.decode(InventoryPage.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryStockResponse
+ Used By: Catalog
+ */
+
+ class InventoryStockResponse: Codable {
+
+
+ public var items: [[String: Any]]?
+
+ public var page: InventoryPage
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, page: InventoryPage) {
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ page = try container.decode(InventoryPage.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryStockResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryStockResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 573b4b89e7..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryStockResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryStockResponseSchema
- Used By: Catalog
- */
-
- class InventoryStockResponseSchema: Codable {
-
-
- public var items: [[String: Any]]?
-
- public var page: InventoryPage
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [[String: Any]]? = nil, page: InventoryPage) {
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- page = try container.decode(InventoryPage.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryStockResponseSchema
- Used By: Catalog
- */
-
- class InventoryStockResponseSchema: Codable {
-
-
- public var items: [[String: Any]]?
-
- public var page: InventoryPage
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [[String: Any]]? = nil, page: InventoryPage) {
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- page = try container.decode(InventoryPage.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryUpdateResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryUpdateResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..d70947122b
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryUpdateResponseCatalogPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryUpdateResponse
+ Used By: Catalog
+ */
+
+ class InventoryUpdateResponse: Codable {
+
+
+ public var items: [InventoryResponseItem]?
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case message = "message"
+
+ }
+
+ public init(items: [InventoryResponseItem]? = nil, message: String) {
+
+ self.items = items
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([InventoryResponseItem].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryUpdateResponse
+ Used By: Catalog
+ */
+
+ class InventoryUpdateResponse: Codable {
+
+
+ public var items: [InventoryResponseItem]?
+
+ public var message: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case message = "message"
+
+ }
+
+ public init(items: [InventoryResponseItem]? = nil, message: String) {
+
+ self.items = items
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([InventoryResponseItem].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryUpdateResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryUpdateResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index d1dc7daa4a..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryUpdateResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryUpdateResponseSchema
- Used By: Catalog
- */
-
- class InventoryUpdateResponseSchema: Codable {
-
-
- public var items: [InventoryResponseItem]?
-
- public var message: String
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(items: [InventoryResponseItem]? = nil, message: String, success: Bool? = nil) {
-
- self.items = items
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([InventoryResponseItem].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- 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(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryUpdateResponseSchema
- Used By: Catalog
- */
-
- class InventoryUpdateResponseSchema: Codable {
-
-
- public var items: [InventoryResponseItem]?
-
- public var message: String
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(items: [InventoryResponseItem]? = nil, message: String, success: Bool? = nil) {
-
- self.items = items
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([InventoryResponseItem].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- 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(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryValidationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryValidationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..fa476efa2f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryValidationResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryValidationResponse
+ Used By: Catalog
+ */
+
+ class InventoryValidationResponse: Codable {
+
+
+ public var data: [String: Any]?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case message = "message"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String? = nil) {
+
+ self.data = data
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } 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)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryValidationResponse
+ Used By: Catalog
+ */
+
+ class InventoryValidationResponse: Codable {
+
+
+ public var data: [String: Any]?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case message = "message"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String? = nil) {
+
+ self.data = data
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } 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)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryValidationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryValidationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index e55d008c55..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryValidationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryValidationResponseSchema
- Used By: Catalog
- */
-
- class InventoryValidationResponseSchema: Codable {
-
-
- public var data: [String: Any]?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case message = "message"
-
- }
-
- public init(data: [String: Any]? = nil, message: String? = nil) {
-
- self.data = data
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } 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)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryValidationResponseSchema
- Used By: Catalog
- */
-
- class InventoryValidationResponseSchema: Codable {
-
-
- public var data: [String: Any]?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case message = "message"
-
- }
-
- public init(data: [String: Any]? = nil, message: String? = nil) {
-
- self.data = data
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } 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)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InventoryWeightResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryWeightResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..20165a33cd
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InventoryWeightResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InventoryWeightResponse
+ Used By: Catalog
+ */
+
+ class InventoryWeightResponse: Codable {
+
+
+ public var shipping: Double?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipping = "shipping"
+
+ case unit = "unit"
+
+ }
+
+ public init(shipping: Double? = nil, unit: String? = nil) {
+
+ self.shipping = shipping
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipping = try container.decode(Double.self, forKey: .shipping)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(shipping, forKey: .shipping)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InventoryWeightResponse
+ Used By: Catalog
+ */
+
+ class InventoryWeightResponse: Codable {
+
+
+ public var shipping: Double?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipping = "shipping"
+
+ case unit = "unit"
+
+ }
+
+ public init(shipping: Double? = nil, unit: String? = nil) {
+
+ self.shipping = shipping
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipping = try container.decode(Double.self, forKey: .shipping)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(shipping, forKey: .shipping)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InventoryWeightResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InventoryWeightResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 99577d43a2..0000000000
--- a/Sources/code/platform/Models/Catalog/InventoryWeightResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InventoryWeightResponseSchema
- Used By: Catalog
- */
-
- class InventoryWeightResponseSchema: Codable {
-
-
- public var shipping: Double?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipping = "shipping"
-
- case unit = "unit"
-
- }
-
- public init(shipping: Double? = nil, unit: String? = nil) {
-
- self.shipping = shipping
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipping = try container.decode(Double.self, forKey: .shipping)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(shipping, forKey: .shipping)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InventoryWeightResponseSchema
- Used By: Catalog
- */
-
- class InventoryWeightResponseSchema: Codable {
-
-
- public var shipping: Double?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipping = "shipping"
-
- case unit = "unit"
-
- }
-
- public init(shipping: Double? = nil, unit: String? = nil) {
-
- self.shipping = shipping
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipping = try container.decode(Double.self, forKey: .shipping)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(shipping, forKey: .shipping)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InvoiceCredSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InvoiceCredSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 6e36275b64..0000000000
--- a/Sources/code/platform/Models/Catalog/InvoiceCredSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InvoiceCredSchema
- Used By: Catalog
- */
-
- class InvoiceCredSchema: Codable {
-
-
- public var enabled: Bool?
-
- public var password: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- case password = "password"
-
- case username = "username"
-
- }
-
- public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
-
- self.enabled = enabled
-
- self.password = password
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- password = try container.decode(String.self, forKey: .password)
-
- } 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) {
- 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(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(password, forKey: .password)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InvoiceCredSchema
- Used By: Catalog
- */
-
- class InvoiceCredSchema: Codable {
-
-
- public var enabled: Bool?
-
- public var password: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- case password = "password"
-
- case username = "username"
-
- }
-
- public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
-
- self.enabled = enabled
-
- self.password = password
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- password = try container.decode(String.self, forKey: .password)
-
- } 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) {
- 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(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(password, forKey: .password)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InvoiceCredSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InvoiceCredSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..66966455b6
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InvoiceCredSerializerCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InvoiceCredSerializer
+ Used By: Catalog
+ */
+
+ class InvoiceCredSerializer: Codable {
+
+
+ public var enabled: Bool?
+
+ public var password: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ case password = "password"
+
+ case username = "username"
+
+ }
+
+ public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
+
+ self.enabled = enabled
+
+ self.password = password
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ password = try container.decode(String.self, forKey: .password)
+
+ } 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) {
+ 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(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(password, forKey: .password)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InvoiceCredSerializer
+ Used By: Catalog
+ */
+
+ class InvoiceCredSerializer: Codable {
+
+
+ public var enabled: Bool?
+
+ public var password: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ case password = "password"
+
+ case username = "username"
+
+ }
+
+ public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
+
+ self.enabled = enabled
+
+ self.password = password
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ password = try container.decode(String.self, forKey: .password)
+
+ } 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) {
+ 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(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(password, forKey: .password)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/InvoiceDetailsSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InvoiceDetailsSchemaCatalogPlatformModel.swift
deleted file mode 100644
index cfd14d4f42..0000000000
--- a/Sources/code/platform/Models/Catalog/InvoiceDetailsSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: InvoiceDetailsSchema
- Used By: Catalog
- */
-
- class InvoiceDetailsSchema: Codable {
-
-
- public var eInvoice: InvoiceCredSchema?
-
- public var eWaybill: InvoiceCredSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eInvoice = "e_invoice"
-
- case eWaybill = "e_waybill"
-
- }
-
- public init(eInvoice: InvoiceCredSchema? = nil, eWaybill: InvoiceCredSchema? = nil) {
-
- self.eInvoice = eInvoice
-
- self.eWaybill = eWaybill
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eInvoice = try container.decode(InvoiceCredSchema.self, forKey: .eInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eWaybill = try container.decode(InvoiceCredSchema.self, forKey: .eWaybill)
-
- } 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(eInvoice, forKey: .eInvoice)
-
-
-
-
- try? container.encodeIfPresent(eWaybill, forKey: .eWaybill)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: InvoiceDetailsSchema
- Used By: Catalog
- */
-
- class InvoiceDetailsSchema: Codable {
-
-
- public var eInvoice: InvoiceCredSchema?
-
- public var eWaybill: InvoiceCredSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eInvoice = "e_invoice"
-
- case eWaybill = "e_waybill"
-
- }
-
- public init(eInvoice: InvoiceCredSchema? = nil, eWaybill: InvoiceCredSchema? = nil) {
-
- self.eInvoice = eInvoice
-
- self.eWaybill = eWaybill
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eInvoice = try container.decode(InvoiceCredSchema.self, forKey: .eInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eWaybill = try container.decode(InvoiceCredSchema.self, forKey: .eWaybill)
-
- } 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(eInvoice, forKey: .eInvoice)
-
-
-
-
- try? container.encodeIfPresent(eWaybill, forKey: .eWaybill)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/InvoiceDetailsSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/InvoiceDetailsSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1b26cdb538
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/InvoiceDetailsSerializerCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: InvoiceDetailsSerializer
+ Used By: Catalog
+ */
+
+ class InvoiceDetailsSerializer: Codable {
+
+
+ public var eInvoice: InvoiceCredSerializer?
+
+ public var eWaybill: InvoiceCredSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case eInvoice = "e_invoice"
+
+ case eWaybill = "e_waybill"
+
+ }
+
+ public init(eInvoice: InvoiceCredSerializer? = nil, eWaybill: InvoiceCredSerializer? = nil) {
+
+ self.eInvoice = eInvoice
+
+ self.eWaybill = eWaybill
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: InvoiceDetailsSerializer
+ Used By: Catalog
+ */
+
+ class InvoiceDetailsSerializer: Codable {
+
+
+ public var eInvoice: InvoiceCredSerializer?
+
+ public var eWaybill: InvoiceCredSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case eInvoice = "e_invoice"
+
+ case eWaybill = "e_waybill"
+
+ }
+
+ public init(eInvoice: InvoiceCredSerializer? = nil, eWaybill: InvoiceCredSerializer? = nil) {
+
+ self.eInvoice = eInvoice
+
+ self.eWaybill = eWaybill
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/LatLongCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LatLongCatalogPlatformModel.swift
deleted file mode 100644
index c656cd5534..0000000000
--- a/Sources/code/platform/Models/Catalog/LatLongCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: LatLong
- Used By: Catalog
- */
-
- class LatLong: Codable {
-
-
- public var type: String
-
- public var coordinates: [Double]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case coordinates = "coordinates"
-
- }
-
- public init(coordinates: [Double], type: String) {
-
- self.type = type
-
- self.coordinates = coordinates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- coordinates = try container.decode([Double].self, forKey: .coordinates)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(coordinates, forKey: .coordinates)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: LatLong
- Used By: Catalog
- */
-
- class LatLong: Codable {
-
-
- public var type: String
-
- public var coordinates: [Double]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case coordinates = "coordinates"
-
- }
-
- public init(coordinates: [Double], type: String) {
-
- self.type = type
-
- self.coordinates = coordinates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- coordinates = try container.decode([Double].self, forKey: .coordinates)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(coordinates, forKey: .coordinates)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ListSizeGuideCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ListSizeGuideCatalogPlatformModel.swift
index ca2d4e845b..84d9372578 100644
--- a/Sources/code/platform/Models/Catalog/ListSizeGuideCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ListSizeGuideCatalogPlatformModel.swift
@@ -12,9 +12,9 @@ public extension PlatformClient.Catalog {
class ListSizeGuide: Codable {
- public var items: [SizeGuideItem]?
+ public var items: [[String: Any]]?
- public var page: PageResponseSchema?
+ public var page: [String: Any]?
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [SizeGuideItem]? = nil, page: PageResponseSchema? = nil) {
+ public init(items: [[String: Any]]? = nil, page: [String: Any]? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- items = try container.decode([SizeGuideItem].self, forKey: .items)
+ items = try container.decode([[String: Any]].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -50,7 +50,7 @@ public extension PlatformClient.Catalog {
do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
+ page = try container.decode([String: Any].self, forKey: .page)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,9 +91,9 @@ public extension PlatformClient.ApplicationClient.Catalog {
class ListSizeGuide: Codable {
- public var items: [SizeGuideItem]?
+ public var items: [[String: Any]]?
- public var page: PageResponseSchema?
+ public var page: [String: Any]?
public enum CodingKeys: String, CodingKey {
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [SizeGuideItem]? = nil, page: PageResponseSchema? = nil) {
+ public init(items: [[String: Any]]? = nil, page: [String: Any]? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- items = try container.decode([SizeGuideItem].self, forKey: .items)
+ items = try container.decode([[String: Any]].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- page = try container.decode(PageResponseSchema.self, forKey: .page)
+ page = try container.decode([String: Any].self, forKey: .page)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/LocationDayWiseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationDayWiseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 95787c78dd..0000000000
--- a/Sources/code/platform/Models/Catalog/LocationDayWiseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,226 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: LocationDayWiseSchema
- Used By: Catalog
- */
-
- class LocationDayWiseSchema: Codable {
-
-
- public var closing: LocationTimingSchema?
-
- public var open: Bool
-
- public var opening: LocationTimingSchema?
-
- public var weekday: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case closing = "closing"
-
- case open = "open"
-
- case opening = "opening"
-
- case weekday = "weekday"
-
- }
-
- public init(closing: LocationTimingSchema? = nil, open: Bool, opening: LocationTimingSchema? = nil, weekday: String) {
-
- self.closing = closing
-
- self.open = open
-
- self.opening = opening
-
- self.weekday = weekday
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- closing = try container.decode(LocationTimingSchema.self, forKey: .closing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- open = try container.decode(Bool.self, forKey: .open)
-
-
-
-
- do {
- opening = try container.decode(LocationTimingSchema.self, forKey: .opening)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- weekday = try container.decode(String.self, forKey: .weekday)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(closing, forKey: .closing)
-
-
-
-
- try? container.encodeIfPresent(open, forKey: .open)
-
-
-
-
- try? container.encodeIfPresent(opening, forKey: .opening)
-
-
-
-
- try? container.encodeIfPresent(weekday, forKey: .weekday)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: LocationDayWiseSchema
- Used By: Catalog
- */
-
- class LocationDayWiseSchema: Codable {
-
-
- public var closing: LocationTimingSchema?
-
- public var open: Bool
-
- public var opening: LocationTimingSchema?
-
- public var weekday: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case closing = "closing"
-
- case open = "open"
-
- case opening = "opening"
-
- case weekday = "weekday"
-
- }
-
- public init(closing: LocationTimingSchema? = nil, open: Bool, opening: LocationTimingSchema? = nil, weekday: String) {
-
- self.closing = closing
-
- self.open = open
-
- self.opening = opening
-
- self.weekday = weekday
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- closing = try container.decode(LocationTimingSchema.self, forKey: .closing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- open = try container.decode(Bool.self, forKey: .open)
-
-
-
-
- do {
- opening = try container.decode(LocationTimingSchema.self, forKey: .opening)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- weekday = try container.decode(String.self, forKey: .weekday)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(closing, forKey: .closing)
-
-
-
-
- try? container.encodeIfPresent(open, forKey: .open)
-
-
-
-
- try? container.encodeIfPresent(opening, forKey: .opening)
-
-
-
-
- try? container.encodeIfPresent(weekday, forKey: .weekday)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/LocationDayWiseSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationDayWiseSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..b7a35555b1
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/LocationDayWiseSerializerCatalogPlatformModel.swift
@@ -0,0 +1,226 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: LocationDayWiseSerializer
+ Used By: Catalog
+ */
+
+ class LocationDayWiseSerializer: Codable {
+
+
+ public var closing: LocationTimingSerializer?
+
+ public var open: Bool
+
+ public var opening: LocationTimingSerializer?
+
+ public var weekday: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case closing = "closing"
+
+ case open = "open"
+
+ case opening = "opening"
+
+ case weekday = "weekday"
+
+ }
+
+ public init(closing: LocationTimingSerializer? = nil, open: Bool, opening: LocationTimingSerializer? = nil, weekday: String) {
+
+ self.closing = closing
+
+ self.open = open
+
+ self.opening = opening
+
+ self.weekday = weekday
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ weekday = try container.decode(String.self, forKey: .weekday)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(closing, forKey: .closing)
+
+
+
+
+ try? container.encodeIfPresent(open, forKey: .open)
+
+
+
+
+ try? container.encodeIfPresent(opening, forKey: .opening)
+
+
+
+
+ try? container.encodeIfPresent(weekday, forKey: .weekday)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: LocationDayWiseSerializer
+ Used By: Catalog
+ */
+
+ class LocationDayWiseSerializer: Codable {
+
+
+ public var closing: LocationTimingSerializer?
+
+ public var open: Bool
+
+ public var opening: LocationTimingSerializer?
+
+ public var weekday: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case closing = "closing"
+
+ case open = "open"
+
+ case opening = "opening"
+
+ case weekday = "weekday"
+
+ }
+
+ public init(closing: LocationTimingSerializer? = nil, open: Bool, opening: LocationTimingSerializer? = nil, weekday: String) {
+
+ self.closing = closing
+
+ self.open = open
+
+ self.opening = opening
+
+ self.weekday = weekday
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ weekday = try container.decode(String.self, forKey: .weekday)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(closing, forKey: .closing)
+
+
+
+
+ try? container.encodeIfPresent(open, forKey: .open)
+
+
+
+
+ try? container.encodeIfPresent(opening, forKey: .opening)
+
+
+
+
+ try? container.encodeIfPresent(weekday, forKey: .weekday)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/LocationListSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationListSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 53b7316907..0000000000
--- a/Sources/code/platform/Models/Catalog/LocationListSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: LocationListSchema
- Used By: Catalog
- */
-
- class LocationListSchema: Codable {
-
-
- public var items: [GetLocationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetLocationSchema]? = nil, page: Page? = nil) {
-
- 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([GetLocationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: LocationListSchema
- Used By: Catalog
- */
-
- class LocationListSchema: Codable {
-
-
- public var items: [GetLocationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetLocationSchema]? = nil, page: Page? = nil) {
-
- 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([GetLocationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/LocationListSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationListSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2e3de496d5
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/LocationListSerializerCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: LocationListSerializer
+ Used By: Catalog
+ */
+
+ class LocationListSerializer: Codable {
+
+
+ public var items: [GetLocationSerializer]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetLocationSerializer]? = nil, page: Page? = nil) {
+
+ 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([GetLocationSerializer].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: LocationListSerializer
+ Used By: Catalog
+ */
+
+ class LocationListSerializer: Codable {
+
+
+ public var items: [GetLocationSerializer]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetLocationSerializer]? = nil, page: Page? = nil) {
+
+ 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([GetLocationSerializer].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/LocationManagerSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationManagerSchemaCatalogPlatformModel.swift
deleted file mode 100644
index fd97eba994..0000000000
--- a/Sources/code/platform/Models/Catalog/LocationManagerSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: LocationManagerSchema
- Used By: Catalog
- */
-
- class LocationManagerSchema: Codable {
-
-
- public var email: String?
-
- public var mobileNo: SellerPhoneNumber
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- case name = "name"
-
- }
-
- public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
-
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: LocationManagerSchema
- Used By: Catalog
- */
-
- class LocationManagerSchema: Codable {
-
-
- public var email: String?
-
- public var mobileNo: SellerPhoneNumber
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- case name = "name"
-
- }
-
- public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
-
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/LocationManagerSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationManagerSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e3f7b0fa5e
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/LocationManagerSerializerCatalogPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: LocationManagerSerializer
+ Used By: Catalog
+ */
+
+ class LocationManagerSerializer: Codable {
+
+
+ public var email: String?
+
+ public var mobileNo: SellerPhoneNumber
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ case name = "name"
+
+ }
+
+ public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
+
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: LocationManagerSerializer
+ Used By: Catalog
+ */
+
+ class LocationManagerSerializer: Codable {
+
+
+ public var email: String?
+
+ public var mobileNo: SellerPhoneNumber
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ case name = "name"
+
+ }
+
+ public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
+
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/LocationTimingSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationTimingSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 70f14c500a..0000000000
--- a/Sources/code/platform/Models/Catalog/LocationTimingSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: LocationTimingSchema
- Used By: Catalog
- */
-
- class LocationTimingSchema: Codable {
-
-
- public var hour: Int?
-
- public var minute: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case hour = "hour"
-
- case minute = "minute"
-
- }
-
- public init(hour: Int? = nil, minute: Int? = nil) {
-
- self.hour = hour
-
- self.minute = minute
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(hour, forKey: .hour)
-
-
-
-
- try? container.encodeIfPresent(minute, forKey: .minute)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: LocationTimingSchema
- Used By: Catalog
- */
-
- class LocationTimingSchema: Codable {
-
-
- public var hour: Int?
-
- public var minute: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case hour = "hour"
-
- case minute = "minute"
-
- }
-
- public init(hour: Int? = nil, minute: Int? = nil) {
-
- self.hour = hour
-
- self.minute = minute
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(hour, forKey: .hour)
-
-
-
-
- try? container.encodeIfPresent(minute, forKey: .minute)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/LocationTimingSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/LocationTimingSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3c69ec2d68
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/LocationTimingSerializerCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: LocationTimingSerializer
+ Used By: Catalog
+ */
+
+ class LocationTimingSerializer: Codable {
+
+
+ public var hour: Int?
+
+ public var minute: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case hour = "hour"
+
+ case minute = "minute"
+
+ }
+
+ public init(hour: Int? = nil, minute: Int? = nil) {
+
+ self.hour = hour
+
+ self.minute = minute
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(hour, forKey: .hour)
+
+
+
+
+ try? container.encodeIfPresent(minute, forKey: .minute)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: LocationTimingSerializer
+ Used By: Catalog
+ */
+
+ class LocationTimingSerializer: Codable {
+
+
+ public var hour: Int?
+
+ public var minute: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case hour = "hour"
+
+ case minute = "minute"
+
+ }
+
+ public init(hour: Int? = nil, minute: Int? = nil) {
+
+ self.hour = hour
+
+ self.minute = minute
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(hour, forKey: .hour)
+
+
+
+
+ try? container.encodeIfPresent(minute, forKey: .minute)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ManufacturerResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ManufacturerResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..4e88e735f0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ManufacturerResponseCatalogPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ManufacturerResponse
+ Used By: Catalog
+ */
+
+ class ManufacturerResponse: Codable {
+
+
+ public var address: String
+
+ public var isDefault: Bool
+
+ public var name: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case isDefault = "is_default"
+
+ case name = "name"
+
+ }
+
+ public init(address: String, isDefault: Bool, name: String) {
+
+ self.address = address
+
+ self.isDefault = isDefault
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ address = try container.decode(String.self, forKey: .address)
+
+
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ 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(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ManufacturerResponse
+ Used By: Catalog
+ */
+
+ class ManufacturerResponse: Codable {
+
+
+ public var address: String
+
+ public var isDefault: Bool
+
+ public var name: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case isDefault = "is_default"
+
+ case name = "name"
+
+ }
+
+ public init(address: String, isDefault: Bool, name: String) {
+
+ self.address = address
+
+ self.isDefault = isDefault
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ address = try container.decode(String.self, forKey: .address)
+
+
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ 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(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ManufacturerResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ManufacturerResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 328ef8ba3f..0000000000
--- a/Sources/code/platform/Models/Catalog/ManufacturerResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ManufacturerResponseSchema
- Used By: Catalog
- */
-
- class ManufacturerResponseSchema: Codable {
-
-
- public var address: String
-
- public var isDefault: Bool
-
- public var name: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- }
-
- public init(address: String, isDefault: Bool, name: String) {
-
- self.address = address
-
- self.isDefault = isDefault
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- address = try container.decode(String.self, forKey: .address)
-
-
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ManufacturerResponseSchema
- Used By: Catalog
- */
-
- class ManufacturerResponseSchema: Codable {
-
-
- public var address: String
-
- public var isDefault: Bool
-
- public var name: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case isDefault = "is_default"
-
- case name = "name"
-
- }
-
- public init(address: String, isDefault: Bool, name: String) {
-
- self.address = address
-
- self.isDefault = isDefault
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- address = try container.decode(String.self, forKey: .address)
-
-
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/Media2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/Media2CatalogPlatformModel.swift
new file mode 100644
index 0000000000..4dc2dabfbd
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/Media2CatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: Media2
+ Used By: Catalog
+ */
+
+ class Media2: Codable {
+
+
+ public var aspectRatio: String?
+
+ public var type: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aspectRatio = "aspect_ratio"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(aspectRatio: String? = nil, type: String? = nil, url: String? = nil) {
+
+ self.aspectRatio = aspectRatio
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: Media2
+ Used By: Catalog
+ */
+
+ class Media2: Codable {
+
+
+ public var aspectRatio: String?
+
+ public var type: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aspectRatio = "aspect_ratio"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(aspectRatio: String? = nil, type: String? = nil, url: String? = nil) {
+
+ self.aspectRatio = aspectRatio
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MediaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MediaCatalogPlatformModel.swift
index 86e85e1566..aebb370bcb 100644
--- a/Sources/code/platform/Models/Catalog/MediaCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/MediaCatalogPlatformModel.swift
@@ -18,10 +18,6 @@ public extension PlatformClient.Catalog {
public var url: String
- public var alt: String?
-
- public var thumbnail: String?
-
public enum CodingKeys: String, CodingKey {
@@ -31,13 +27,9 @@ public extension PlatformClient.Catalog {
case url = "url"
- case alt = "alt"
-
- case thumbnail = "thumbnail"
-
}
- public init(alt: String? = nil, meta: [String: Any]? = nil, thumbnail: String? = nil, type: String? = nil, url: String) {
+ public init(meta: [String: Any]? = nil, type: String? = nil, url: String) {
self.meta = meta
@@ -45,10 +37,6 @@ public extension PlatformClient.Catalog {
self.url = url
- self.alt = alt
-
- self.thumbnail = thumbnail
-
}
required public init(from decoder: Decoder) throws {
@@ -83,30 +71,6 @@ public extension PlatformClient.Catalog {
-
- do {
- alt = try container.decode(String.self, forKey: .alt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- thumbnail = try container.decode(String.self, forKey: .thumbnail)
-
- } 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 {
@@ -127,16 +91,6 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(url, forKey: .url)
-
-
- try? container.encodeIfPresent(alt, forKey: .alt)
-
-
-
-
- try? container.encodeIfPresent(thumbnail, forKey: .thumbnail)
-
-
}
}
@@ -159,10 +113,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var url: String
- public var alt: String?
-
- public var thumbnail: String?
-
public enum CodingKeys: String, CodingKey {
@@ -172,13 +122,9 @@ public extension PlatformClient.ApplicationClient.Catalog {
case url = "url"
- case alt = "alt"
-
- case thumbnail = "thumbnail"
-
}
- public init(alt: String? = nil, meta: [String: Any]? = nil, thumbnail: String? = nil, type: String? = nil, url: String) {
+ public init(meta: [String: Any]? = nil, type: String? = nil, url: String) {
self.meta = meta
@@ -186,10 +132,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.url = url
- self.alt = alt
-
- self.thumbnail = thumbnail
-
}
required public init(from decoder: Decoder) throws {
@@ -224,30 +166,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
-
- do {
- alt = try container.decode(String.self, forKey: .alt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- thumbnail = try container.decode(String.self, forKey: .thumbnail)
-
- } 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 {
@@ -268,16 +186,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(url, forKey: .url)
-
-
- try? container.encodeIfPresent(alt, forKey: .alt)
-
-
-
-
- try? container.encodeIfPresent(thumbnail, forKey: .thumbnail)
-
-
}
}
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..f7f176a29f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseCatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: MetaDataListingFilterMetaResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingFilterMetaResponse: Codable {
+
+
+ public var display: String?
+
+ public var filterTypes: [String]?
+
+ public var key: String?
+
+ public var units: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case display = "display"
+
+ case filterTypes = "filter_types"
+
+ case key = "key"
+
+ case units = "units"
+
+ }
+
+ public init(display: String? = nil, filterTypes: [String]? = nil, key: String? = nil, units: [[String: Any]]? = nil) {
+
+ self.display = display
+
+ self.filterTypes = filterTypes
+
+ self.key = key
+
+ self.units = units
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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 {
+
+ }
+
+
+ }
+
+ 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(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(units, forKey: .units)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: MetaDataListingFilterMetaResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingFilterMetaResponse: Codable {
+
+
+ public var display: String?
+
+ public var filterTypes: [String]?
+
+ public var key: String?
+
+ public var units: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case display = "display"
+
+ case filterTypes = "filter_types"
+
+ case key = "key"
+
+ case units = "units"
+
+ }
+
+ public init(display: String? = nil, filterTypes: [String]? = nil, key: String? = nil, units: [[String: Any]]? = nil) {
+
+ self.display = display
+
+ self.filterTypes = filterTypes
+
+ self.key = key
+
+ self.units = units
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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 {
+
+ }
+
+
+ }
+
+ 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(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(units, forKey: .units)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 9a7522ebf9..0000000000
--- a/Sources/code/platform/Models/Catalog/MetaDataListingFilterMetaResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MetaDataListingFilterMetaResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingFilterMetaResponseSchema: Codable {
-
-
- public var display: String?
-
- public var filterTypes: [String]?
-
- public var key: String?
-
- public var units: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case filterTypes = "filter_types"
-
- case key = "key"
-
- case units = "units"
-
- }
-
- public init(display: String? = nil, filterTypes: [String]? = nil, key: String? = nil, units: [[String: Any]]? = nil) {
-
- self.display = display
-
- self.filterTypes = filterTypes
-
- self.key = key
-
- self.units = units
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
-
- }
-
-
- }
-
- 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(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(units, forKey: .units)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MetaDataListingFilterMetaResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingFilterMetaResponseSchema: Codable {
-
-
- public var display: String?
-
- public var filterTypes: [String]?
-
- public var key: String?
-
- public var units: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case filterTypes = "filter_types"
-
- case key = "key"
-
- case units = "units"
-
- }
-
- public init(display: String? = nil, filterTypes: [String]? = nil, key: String? = nil, units: [[String: Any]]? = nil) {
-
- self.display = display
-
- self.filterTypes = filterTypes
-
- self.key = key
-
- self.units = units
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
-
- }
-
-
- }
-
- 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(key, forKey: .key)
-
-
-
-
- try? container.encodeIfPresent(units, forKey: .units)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..f4a6ffa25f
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: MetaDataListingFilterResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingFilterResponse: Codable {
+
+
+ public var data: [MetaDataListingFilterMetaResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [MetaDataListingFilterMetaResponse]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: MetaDataListingFilterResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingFilterResponse: Codable {
+
+
+ public var data: [MetaDataListingFilterMetaResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [MetaDataListingFilterMetaResponse]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index eab98ae5c7..0000000000
--- a/Sources/code/platform/Models/Catalog/MetaDataListingFilterResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MetaDataListingFilterResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingFilterResponseSchema: Codable {
-
-
- public var data: [MetaDataListingFilterMetaResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [MetaDataListingFilterMetaResponseSchema]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([MetaDataListingFilterMetaResponseSchema].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MetaDataListingFilterResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingFilterResponseSchema: Codable {
-
-
- public var data: [MetaDataListingFilterMetaResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [MetaDataListingFilterMetaResponseSchema]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([MetaDataListingFilterMetaResponseSchema].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..063e35c353
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/MetaDataListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: MetaDataListingResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingResponse: Codable {
+
+
+ public var filter: MetaDataListingFilterResponse
+
+ public var sort: MetaDataListingSortResponse
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filter = "filter"
+
+ case sort = "sort"
+
+ }
+
+ public init(filter: MetaDataListingFilterResponse, sort: MetaDataListingSortResponse) {
+
+ self.filter = filter
+
+ self.sort = sort
+
+ }
+
+ 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: MetaDataListingResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingResponse: Codable {
+
+
+ public var filter: MetaDataListingFilterResponse
+
+ public var sort: MetaDataListingSortResponse
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filter = "filter"
+
+ case sort = "sort"
+
+ }
+
+ public init(filter: MetaDataListingFilterResponse, sort: MetaDataListingSortResponse) {
+
+ self.filter = filter
+
+ self.sort = sort
+
+ }
+
+ 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)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index acfe9658e0..0000000000
--- a/Sources/code/platform/Models/Catalog/MetaDataListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MetaDataListingResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingResponseSchema: Codable {
-
-
- public var filter: MetaDataListingFilterResponseSchema
-
- public var sort: MetaDataListingSortResponseSchema
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filter = "filter"
-
- case sort = "sort"
-
- }
-
- public init(filter: MetaDataListingFilterResponseSchema, sort: MetaDataListingSortResponseSchema) {
-
- self.filter = filter
-
- self.sort = sort
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- filter = try container.decode(MetaDataListingFilterResponseSchema.self, forKey: .filter)
-
-
-
-
- sort = try container.decode(MetaDataListingSortResponseSchema.self, forKey: .sort)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MetaDataListingResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingResponseSchema: Codable {
-
-
- public var filter: MetaDataListingFilterResponseSchema
-
- public var sort: MetaDataListingSortResponseSchema
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filter = "filter"
-
- case sort = "sort"
-
- }
-
- public init(filter: MetaDataListingFilterResponseSchema, sort: MetaDataListingSortResponseSchema) {
-
- self.filter = filter
-
- self.sort = sort
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- filter = try container.decode(MetaDataListingFilterResponseSchema.self, forKey: .filter)
-
-
-
-
- sort = try container.decode(MetaDataListingSortResponseSchema.self, forKey: .sort)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..dd9f971662
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: MetaDataListingSortMetaResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingSortMetaResponse: Codable {
+
+
+ public var display: String?
+
+ public var key: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case display = "display"
+
+ case key = "key"
+
+ }
+
+ public init(display: String? = nil, key: String? = nil) {
+
+ self.display = display
+
+ self.key = key
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(display, forKey: .display)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: MetaDataListingSortMetaResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingSortMetaResponse: Codable {
+
+
+ public var display: String?
+
+ public var key: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case display = "display"
+
+ case key = "key"
+
+ }
+
+ public init(display: String? = nil, key: String? = nil) {
+
+ self.display = display
+
+ self.key = key
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(display, forKey: .display)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 4668fe7507..0000000000
--- a/Sources/code/platform/Models/Catalog/MetaDataListingSortMetaResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MetaDataListingSortMetaResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingSortMetaResponseSchema: Codable {
-
-
- public var display: String?
-
- public var key: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case key = "key"
-
- }
-
- public init(display: String? = nil, key: String? = nil) {
-
- self.display = display
-
- self.key = key
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(display, forKey: .display)
-
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MetaDataListingSortMetaResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingSortMetaResponseSchema: Codable {
-
-
- public var display: String?
-
- public var key: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case key = "key"
-
- }
-
- public init(display: String? = nil, key: String? = nil) {
-
- self.display = display
-
- self.key = key
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(display, forKey: .display)
-
-
-
-
- try? container.encodeIfPresent(key, forKey: .key)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..36fd87e94d
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: MetaDataListingSortResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingSortResponse: Codable {
+
+
+ public var data: [MetaDataListingSortMetaResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [MetaDataListingSortMetaResponse]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: MetaDataListingSortResponse
+ Used By: Catalog
+ */
+
+ class MetaDataListingSortResponse: Codable {
+
+
+ public var data: [MetaDataListingSortMetaResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [MetaDataListingSortMetaResponse]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 9767af3cea..0000000000
--- a/Sources/code/platform/Models/Catalog/MetaDataListingSortResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MetaDataListingSortResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingSortResponseSchema: Codable {
-
-
- public var data: [MetaDataListingSortMetaResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [MetaDataListingSortMetaResponseSchema]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([MetaDataListingSortMetaResponseSchema].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MetaDataListingSortResponseSchema
- Used By: Catalog
- */
-
- class MetaDataListingSortResponseSchema: Codable {
-
-
- public var data: [MetaDataListingSortMetaResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [MetaDataListingSortMetaResponseSchema]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([MetaDataListingSortMetaResponseSchema].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ModifiedByCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ModifiedByCatalogPlatformModel.swift
deleted file mode 100644
index d629693e99..0000000000
--- a/Sources/code/platform/Models/Catalog/ModifiedByCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ModifiedBy
- Used By: Catalog
- */
-
- class ModifiedBy: Codable {
-
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ModifiedBy
- Used By: Catalog
- */
-
- class ModifiedBy: Codable {
-
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ModifiedBySchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ModifiedBySchemaCatalogPlatformModel.swift
deleted file mode 100644
index e221be1ac7..0000000000
--- a/Sources/code/platform/Models/Catalog/ModifiedBySchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ModifiedBySchema
- Used By: Catalog
- */
-
- class ModifiedBySchema: Codable {
-
-
- public var userId: String
-
- public var username: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String, userId: String) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- username = try container.decode(String.self, forKey: .username)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ModifiedBySchema
- Used By: Catalog
- */
-
- class ModifiedBySchema: Codable {
-
-
- public var userId: String
-
- public var username: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(username: String, userId: String) {
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- username = try container.decode(String.self, forKey: .username)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/MultiCategoriesSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/MultiCategoriesSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 4231dc99f1..0000000000
--- a/Sources/code/platform/Models/Catalog/MultiCategoriesSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: MultiCategoriesSchema
- Used By: Catalog
- */
-
- class MultiCategoriesSchema: Codable {
-
-
- public var l1: Int?
-
- public var l2: Int?
-
- public var l3: Int?
-
- public var isActive: Bool?
-
- public var department: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case l1 = "l1"
-
- case l2 = "l2"
-
- case l3 = "l3"
-
- case isActive = "is_active"
-
- case department = "department"
-
- }
-
- public init(department: Int? = nil, isActive: Bool? = nil, l1: Int? = nil, l2: Int? = nil, l3: Int? = nil) {
-
- self.l1 = l1
-
- self.l2 = l2
-
- self.l3 = l3
-
- self.isActive = isActive
-
- self.department = department
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- l1 = try container.decode(Int.self, forKey: .l1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l2 = try container.decode(Int.self, forKey: .l2)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l3 = try container.decode(Int.self, forKey: .l3)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- department = try container.decode(Int.self, forKey: .department)
-
- } 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(l3, forKey: .l3)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(department, forKey: .department)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: MultiCategoriesSchema
- Used By: Catalog
- */
-
- class MultiCategoriesSchema: Codable {
-
-
- public var l1: Int?
-
- public var l2: Int?
-
- public var l3: Int?
-
- public var isActive: Bool?
-
- public var department: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case l1 = "l1"
-
- case l2 = "l2"
-
- case l3 = "l3"
-
- case isActive = "is_active"
-
- case department = "department"
-
- }
-
- public init(department: Int? = nil, isActive: Bool? = nil, l1: Int? = nil, l2: Int? = nil, l3: Int? = nil) {
-
- self.l1 = l1
-
- self.l2 = l2
-
- self.l3 = l3
-
- self.isActive = isActive
-
- self.department = department
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- l1 = try container.decode(Int.self, forKey: .l1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l2 = try container.decode(Int.self, forKey: .l2)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l3 = try container.decode(Int.self, forKey: .l3)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- department = try container.decode(Int.self, forKey: .department)
-
- } 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(l3, forKey: .l3)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(department, forKey: .department)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/NetQuantityResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/NetQuantityResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3ff1d89f71
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/NetQuantityResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: NetQuantityResponse
+ Used By: Catalog
+ */
+
+ class NetQuantityResponse: Codable {
+
+
+ public var unit: String?
+
+ public var value: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case unit = "unit"
+
+ case value = "value"
+
+ }
+
+ public init(unit: String? = nil, value: Double? = nil) {
+
+ self.unit = unit
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ value = try container.decode(Double.self, forKey: .value)
+
+ } 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(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: NetQuantityResponse
+ Used By: Catalog
+ */
+
+ class NetQuantityResponse: Codable {
+
+
+ public var unit: String?
+
+ public var value: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case unit = "unit"
+
+ case value = "value"
+
+ }
+
+ public init(unit: String? = nil, value: Double? = nil) {
+
+ self.unit = unit
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ value = try container.decode(Double.self, forKey: .value)
+
+ } 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(unit, forKey: .unit)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/NetQuantityResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/NetQuantityResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 8982c15a05..0000000000
--- a/Sources/code/platform/Models/Catalog/NetQuantityResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: NetQuantityResponseSchema
- Used By: Catalog
- */
-
- class NetQuantityResponseSchema: Codable {
-
-
- public var unit: String?
-
- public var value: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case unit = "unit"
-
- case value = "value"
-
- }
-
- public init(unit: String? = nil, value: Double? = nil) {
-
- self.unit = unit
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- value = try container.decode(Double.self, forKey: .value)
-
- } 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(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: NetQuantityResponseSchema
- Used By: Catalog
- */
-
- class NetQuantityResponseSchema: Codable {
-
-
- public var unit: String?
-
- public var value: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case unit = "unit"
-
- case value = "value"
-
- }
-
- public init(unit: String? = nil, value: Double? = nil) {
-
- self.unit = unit
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- value = try container.decode(Double.self, forKey: .value)
-
- } 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(unit, forKey: .unit)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/OptInPostRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/OptInPostRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..39d2b1aa69
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/OptInPostRequestCatalogPlatformModel.swift
@@ -0,0 +1,332 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: OptInPostRequest
+ Used By: Catalog
+ */
+
+ class OptInPostRequest: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var enabled: Bool?
+
+ public var optLevel: String
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ }
+
+ public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: OptInPostRequest
+ Used By: Catalog
+ */
+
+ class OptInPostRequest: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var enabled: Bool?
+
+ public var optLevel: String
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ }
+
+ public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/OptInPostRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/OptInPostRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index fc1c1ff1f1..0000000000
--- a/Sources/code/platform/Models/Catalog/OptInPostRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: OptInPostRequestSchema
- Used By: Catalog
- */
-
- class OptInPostRequestSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var enabled: Bool?
-
- public var optLevel: String
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- }
-
- public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: OptInPostRequestSchema
- Used By: Catalog
- */
-
- class OptInPostRequestSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var enabled: Bool?
-
- public var optLevel: String
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- }
-
- public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/OwnerAppItemResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/OwnerAppItemResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..c16029de48
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/OwnerAppItemResponseCatalogPlatformModel.swift
@@ -0,0 +1,392 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: OwnerAppItemResponse
+ Used By: Catalog
+ */
+
+ class OwnerAppItemResponse: Codable {
+
+
+ public var altText: [String: Any]?
+
+ public var isCod: Bool?
+
+ public var isGift: Bool?
+
+ public var moq: MOQData?
+
+ public var seo: SEOData?
+
+ public var customJson: [String: Any]?
+
+ public var customMeta: [MetaFields]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case altText = "alt_text"
+
+ case isCod = "is_cod"
+
+ case isGift = "is_gift"
+
+ case moq = "moq"
+
+ case seo = "seo"
+
+ case customJson = "_custom_json"
+
+ case customMeta = "_custom_meta"
+
+ }
+
+ public init(altText: [String: Any]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, moq: MOQData? = nil, seo: SEOData? = nil, customJson: [String: Any]? = nil, customMeta: [MetaFields]? = nil) {
+
+ self.altText = altText
+
+ self.isCod = isCod
+
+ self.isGift = isGift
+
+ self.moq = moq
+
+ self.seo = seo
+
+ self.customJson = customJson
+
+ self.customMeta = customMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ altText = try container.decode([String: Any].self, forKey: .altText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCod = try container.decode(Bool.self, forKey: .isCod)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isGift = try container.decode(Bool.self, forKey: .isGift)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ moq = try container.decode(MOQData.self, forKey: .moq)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ seo = try container.decode(SEOData.self, forKey: .seo)
+
+ } 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 {
+ customMeta = try container.decode([MetaFields].self, forKey: .customMeta)
+
+ } 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(altText, forKey: .altText)
+
+
+
+
+ try? container.encodeIfPresent(isCod, forKey: .isCod)
+
+
+
+
+ try? container.encodeIfPresent(isGift, forKey: .isGift)
+
+
+
+
+ try? container.encodeIfPresent(moq, forKey: .moq)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(customMeta, forKey: .customMeta)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: OwnerAppItemResponse
+ Used By: Catalog
+ */
+
+ class OwnerAppItemResponse: Codable {
+
+
+ public var altText: [String: Any]?
+
+ public var isCod: Bool?
+
+ public var isGift: Bool?
+
+ public var moq: MOQData?
+
+ public var seo: SEOData?
+
+ public var customJson: [String: Any]?
+
+ public var customMeta: [MetaFields]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case altText = "alt_text"
+
+ case isCod = "is_cod"
+
+ case isGift = "is_gift"
+
+ case moq = "moq"
+
+ case seo = "seo"
+
+ case customJson = "_custom_json"
+
+ case customMeta = "_custom_meta"
+
+ }
+
+ public init(altText: [String: Any]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, moq: MOQData? = nil, seo: SEOData? = nil, customJson: [String: Any]? = nil, customMeta: [MetaFields]? = nil) {
+
+ self.altText = altText
+
+ self.isCod = isCod
+
+ self.isGift = isGift
+
+ self.moq = moq
+
+ self.seo = seo
+
+ self.customJson = customJson
+
+ self.customMeta = customMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ altText = try container.decode([String: Any].self, forKey: .altText)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCod = try container.decode(Bool.self, forKey: .isCod)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isGift = try container.decode(Bool.self, forKey: .isGift)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ moq = try container.decode(MOQData.self, forKey: .moq)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ seo = try container.decode(SEOData.self, forKey: .seo)
+
+ } 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 {
+ customMeta = try container.decode([MetaFields].self, forKey: .customMeta)
+
+ } 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(altText, forKey: .altText)
+
+
+
+
+ try? container.encodeIfPresent(isCod, forKey: .isCod)
+
+
+
+
+ try? container.encodeIfPresent(isGift, forKey: .isGift)
+
+
+
+
+ try? container.encodeIfPresent(moq, forKey: .moq)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(customMeta, forKey: .customMeta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/OwnerAppItemResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/OwnerAppItemResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 33a788f0ce..0000000000
--- a/Sources/code/platform/Models/Catalog/OwnerAppItemResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: OwnerAppItemResponseSchema
- Used By: Catalog
- */
-
- class OwnerAppItemResponseSchema: Codable {
-
-
- public var altText: [String: Any]?
-
- public var isCod: Bool?
-
- public var isGift: Bool?
-
- public var moq: MOQData?
-
- public var seo: SEOData?
-
- public var customJson: [String: Any]?
-
- public var customMeta: [MetaFields]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case altText = "alt_text"
-
- case isCod = "is_cod"
-
- case isGift = "is_gift"
-
- case moq = "moq"
-
- case seo = "seo"
-
- case customJson = "_custom_json"
-
- case customMeta = "_custom_meta"
-
- }
-
- public init(altText: [String: Any]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, moq: MOQData? = nil, seo: SEOData? = nil, customJson: [String: Any]? = nil, customMeta: [MetaFields]? = nil) {
-
- self.altText = altText
-
- self.isCod = isCod
-
- self.isGift = isGift
-
- self.moq = moq
-
- self.seo = seo
-
- self.customJson = customJson
-
- self.customMeta = customMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- altText = try container.decode([String: Any].self, forKey: .altText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- moq = try container.decode(MOQData.self, forKey: .moq)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(SEOData.self, forKey: .seo)
-
- } 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 {
- customMeta = try container.decode([MetaFields].self, forKey: .customMeta)
-
- } 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(altText, forKey: .altText)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: OwnerAppItemResponseSchema
- Used By: Catalog
- */
-
- class OwnerAppItemResponseSchema: Codable {
-
-
- public var altText: [String: Any]?
-
- public var isCod: Bool?
-
- public var isGift: Bool?
-
- public var moq: MOQData?
-
- public var seo: SEOData?
-
- public var customJson: [String: Any]?
-
- public var customMeta: [MetaFields]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case altText = "alt_text"
-
- case isCod = "is_cod"
-
- case isGift = "is_gift"
-
- case moq = "moq"
-
- case seo = "seo"
-
- case customJson = "_custom_json"
-
- case customMeta = "_custom_meta"
-
- }
-
- public init(altText: [String: Any]? = nil, isCod: Bool? = nil, isGift: Bool? = nil, moq: MOQData? = nil, seo: SEOData? = nil, customJson: [String: Any]? = nil, customMeta: [MetaFields]? = nil) {
-
- self.altText = altText
-
- self.isCod = isCod
-
- self.isGift = isGift
-
- self.moq = moq
-
- self.seo = seo
-
- self.customJson = customJson
-
- self.customMeta = customMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- altText = try container.decode([String: Any].self, forKey: .altText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCod = try container.decode(Bool.self, forKey: .isCod)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isGift = try container.decode(Bool.self, forKey: .isGift)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- moq = try container.decode(MOQData.self, forKey: .moq)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(SEOData.self, forKey: .seo)
-
- } 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 {
- customMeta = try container.decode([MetaFields].self, forKey: .customMeta)
-
- } 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(altText, forKey: .altText)
-
-
-
-
- try? container.encodeIfPresent(isCod, forKey: .isCod)
-
-
-
-
- try? container.encodeIfPresent(isGift, forKey: .isGift)
-
-
-
-
- try? container.encodeIfPresent(moq, forKey: .moq)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/PTErrorResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PTErrorResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3c2350d121
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/PTErrorResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: PTErrorResponse
+ Used By: Catalog
+ */
+
+ class PTErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var errors: [String: Any]?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case errors = "errors"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.errors = errors
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(errors, forKey: .errors)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: PTErrorResponse
+ Used By: Catalog
+ */
+
+ class PTErrorResponse: Codable {
+
+
+ public var code: String?
+
+ public var errors: [String: Any]?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case errors = "errors"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case status = "status"
+
+ }
+
+ public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.code = code
+
+ self.errors = errors
+
+ self.message = message
+
+ self.meta = meta
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(errors, forKey: .errors)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/PTErrorResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PTErrorResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index cdb8a374fc..0000000000
--- a/Sources/code/platform/Models/Catalog/PTErrorResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: PTErrorResponseSchema
- Used By: Catalog
- */
-
- class PTErrorResponseSchema: Codable {
-
-
- public var code: String?
-
- public var errors: [String: Any]?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case errors = "errors"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.errors = errors
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: PTErrorResponseSchema
- Used By: Catalog
- */
-
- class PTErrorResponseSchema: Codable {
-
-
- public var code: String?
-
- public var errors: [String: Any]?
-
- public var message: String?
-
- public var meta: [String: Any]?
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case errors = "errors"
-
- case message = "message"
-
- case meta = "meta"
-
- case status = "status"
-
- }
-
- public init(code: String? = nil, errors: [String: Any]? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.code = code
-
- self.errors = errors
-
- self.message = message
-
- self.meta = meta
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/PageActionCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PageActionCatalogPlatformModel.swift
deleted file mode 100644
index b07fd0399f..0000000000
--- a/Sources/code/platform/Models/Catalog/PageActionCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: PageAction
- Used By: Catalog
- */
-
- class PageAction: Codable {
-
-
- public var page: ActionObject?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case type = "type"
-
- }
-
- public init(page: ActionObject? = nil, type: String? = nil) {
-
- self.page = page
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(ActionObject.self, forKey: .page)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: PageAction
- Used By: Catalog
- */
-
- class PageAction: Codable {
-
-
- public var page: ActionObject?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case type = "type"
-
- }
-
- public init(page: ActionObject? = nil, type: String? = nil) {
-
- self.page = page
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(ActionObject.self, forKey: .page)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/PageQueryCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PageQueryCatalogPlatformModel.swift
deleted file mode 100644
index 8a7b357f0a..0000000000
--- a/Sources/code/platform/Models/Catalog/PageQueryCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: PageQuery
- Used By: Catalog
- */
-
- class PageQuery: Codable {
-
-
- public var brand: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brand = "brand"
-
- }
-
- public init(brand: [String]? = nil) {
-
- self.brand = brand
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brand = try container.decode([String].self, forKey: .brand)
-
- } 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(brand, forKey: .brand)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: PageQuery
- Used By: Catalog
- */
-
- class PageQuery: Codable {
-
-
- public var brand: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brand = "brand"
-
- }
-
- public init(brand: [String]? = nil) {
-
- self.brand = brand
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brand = try container.decode([String].self, forKey: .brand)
-
- } 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(brand, forKey: .brand)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/PageResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PageResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..49c5797364
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/PageResponseCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ 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? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil) {
+
+ 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 {
+
+ }
+
+
+
+ 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(current, forKey: .current)
+
+
+
+
+ try? container.encodeIfPresent(hasNext, forKey: .hasNext)
+
+
+
+
+ try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
+
+
+
+
+ try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ 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? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil) {
+
+ 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 {
+
+ }
+
+
+
+ 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(current, forKey: .current)
+
+
+
+
+ try? container.encodeIfPresent(hasNext, forKey: .hasNext)
+
+
+
+
+ try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
+
+
+
+
+ try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/PageResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/PageResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index fe235bbd65..0000000000
--- a/Sources/code/platform/Models/Catalog/PageResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: PageResponseSchema
- Used By: Catalog
- */
-
- class PageResponseSchema: Codable {
-
-
- public var current: Int?
-
- 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: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil) {
-
- 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(Int.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 {
-
- }
-
-
-
- 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(current, forKey: .current)
-
-
-
-
- try? container.encodeIfPresent(hasNext, forKey: .hasNext)
-
-
-
-
- try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
-
-
-
-
- try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: PageResponseSchema
- Used By: Catalog
- */
-
- class PageResponseSchema: Codable {
-
-
- public var current: Int?
-
- 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: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil) {
-
- 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(Int.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 {
-
- }
-
-
-
- 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(current, forKey: .current)
-
-
-
-
- try? container.encodeIfPresent(hasNext, forKey: .hasNext)
-
-
-
-
- try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
-
-
-
-
- try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/Price1CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/Price1CatalogPlatformModel.swift
index f541e5ad5a..fa912f0894 100644
--- a/Sources/code/platform/Models/Catalog/Price1CatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/Price1CatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class Price1: Codable {
- public var currencyCode: CurrencyCodeEnum?
+ public var currencyCode: String?
public var currencySymbol: String?
@@ -33,7 +33,7 @@ public extension PlatformClient.Catalog {
}
- public init(currencyCode: CurrencyCodeEnum? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
+ public init(currencyCode: String? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
self.currencyCode = currencyCode
@@ -50,7 +50,7 @@ public extension PlatformClient.Catalog {
do {
- currencyCode = try container.decode(CurrencyCodeEnum.self, forKey: .currencyCode)
+ currencyCode = try container.decode(String.self, forKey: .currencyCode)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -137,7 +137,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class Price1: Codable {
- public var currencyCode: CurrencyCodeEnum?
+ public var currencyCode: String?
public var currencySymbol: String?
@@ -158,7 +158,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(currencyCode: CurrencyCodeEnum? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
+ public init(currencyCode: String? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
self.currencyCode = currencyCode
@@ -175,7 +175,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- currencyCode = try container.decode(CurrencyCodeEnum.self, forKey: .currencyCode)
+ currencyCode = try container.decode(String.self, forKey: .currencyCode)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..f9cdba7129
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProdcutTemplateCategoriesResponse
+ Used By: Catalog
+ */
+
+ class ProdcutTemplateCategoriesResponse: Codable {
+
+
+ public var items: [CategoriesResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CategoriesResponse]? = nil, page: Page? = nil) {
+
+ 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([CategoriesResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProdcutTemplateCategoriesResponse
+ Used By: Catalog
+ */
+
+ class ProdcutTemplateCategoriesResponse: Codable {
+
+
+ public var items: [CategoriesResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CategoriesResponse]? = nil, page: Page? = nil) {
+
+ 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([CategoriesResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c88cb0efcf..0000000000
--- a/Sources/code/platform/Models/Catalog/ProdcutTemplateCategoriesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProdcutTemplateCategoriesResponseSchema
- Used By: Catalog
- */
-
- class ProdcutTemplateCategoriesResponseSchema: Codable {
-
-
- public var items: [CategoriesResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CategoriesResponseSchema]? = nil, page: Page? = nil) {
-
- 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([CategoriesResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProdcutTemplateCategoriesResponseSchema
- Used By: Catalog
- */
-
- class ProdcutTemplateCategoriesResponseSchema: Codable {
-
-
- public var items: [CategoriesResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CategoriesResponseSchema]? = nil, page: Page? = nil) {
-
- 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([CategoriesResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductAttributesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductAttributesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3176f8c5f8
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductAttributesResponseCatalogPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductAttributesResponse
+ Used By: Catalog
+ */
+
+ class ProductAttributesResponse: Codable {
+
+
+ public var items: [AttributeMasterSerializer]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [AttributeMasterSerializer]) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([AttributeMasterSerializer].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductAttributesResponse
+ Used By: Catalog
+ */
+
+ class ProductAttributesResponse: Codable {
+
+
+ public var items: [AttributeMasterSerializer]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [AttributeMasterSerializer]) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([AttributeMasterSerializer].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductAttributesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductAttributesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b7eff4b727..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductAttributesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductAttributesResponseSchema
- Used By: Catalog
- */
-
- class ProductAttributesResponseSchema: Codable {
-
-
- public var items: [AttributeMasterSchema]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [AttributeMasterSchema]) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([AttributeMasterSchema].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductAttributesResponseSchema
- Used By: Catalog
- */
-
- class ProductAttributesResponseSchema: Codable {
-
-
- public var items: [AttributeMasterSchema]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [AttributeMasterSchema]) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([AttributeMasterSchema].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductBulkRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBulkRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3241f57371
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductBulkRequestCatalogPlatformModel.swift
@@ -0,0 +1,806 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductBulkRequest
+ Used By: Catalog
+ */
+
+ class ProductBulkRequest: Codable {
+
+
+ public var cancelled: Int?
+
+ public var cancelledRecords: [[String: Any]]?
+
+ public var companyId: Int?
+
+ public var createdBy: UserDetail1?
+
+ public var createdOn: String?
+
+ public var failed: Int?
+
+ public var failedRecords: [[String: Any]]?
+
+ public var filePath: String?
+
+ public var isActive: Bool?
+
+ public var modifiedBy: UserDetail1?
+
+ public var modifiedOn: String?
+
+ public var stage: String?
+
+ public var succeed: Int?
+
+ public var template: ProductTemplate?
+
+ public var templateTag: String?
+
+ public var total: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cancelled = "cancelled"
+
+ case cancelledRecords = "cancelled_records"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case failed = "failed"
+
+ case failedRecords = "failed_records"
+
+ case filePath = "file_path"
+
+ case isActive = "is_active"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case stage = "stage"
+
+ case succeed = "succeed"
+
+ case template = "template"
+
+ case templateTag = "template_tag"
+
+ case total = "total"
+
+ }
+
+ public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int? = nil, createdBy: UserDetail1? = nil, createdOn: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserDetail1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, template: ProductTemplate? = nil, templateTag: String? = nil, total: Int? = nil) {
+
+ self.cancelled = cancelled
+
+ self.cancelledRecords = cancelledRecords
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.failed = failed
+
+ self.failedRecords = failedRecords
+
+ self.filePath = filePath
+
+ self.isActive = isActive
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.stage = stage
+
+ self.succeed = succeed
+
+ self.template = template
+
+ self.templateTag = templateTag
+
+ self.total = total
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ createdBy = try container.decode(UserDetail1.self, forKey: .createdBy)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(UserDetail1.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(cancelled, forKey: .cancelled)
+
+
+
+
+ try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(failed, forKey: .failed)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(succeed, forKey: .succeed)
+
+
+
+
+ try? container.encodeIfPresent(template, forKey: .template)
+
+
+
+
+ try? container.encodeIfPresent(templateTag, forKey: .templateTag)
+
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductBulkRequest
+ Used By: Catalog
+ */
+
+ class ProductBulkRequest: Codable {
+
+
+ public var cancelled: Int?
+
+ public var cancelledRecords: [[String: Any]]?
+
+ public var companyId: Int?
+
+ public var createdBy: UserDetail1?
+
+ public var createdOn: String?
+
+ public var failed: Int?
+
+ public var failedRecords: [[String: Any]]?
+
+ public var filePath: String?
+
+ public var isActive: Bool?
+
+ public var modifiedBy: UserDetail1?
+
+ public var modifiedOn: String?
+
+ public var stage: String?
+
+ public var succeed: Int?
+
+ public var template: ProductTemplate?
+
+ public var templateTag: String?
+
+ public var total: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cancelled = "cancelled"
+
+ case cancelledRecords = "cancelled_records"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case failed = "failed"
+
+ case failedRecords = "failed_records"
+
+ case filePath = "file_path"
+
+ case isActive = "is_active"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case stage = "stage"
+
+ case succeed = "succeed"
+
+ case template = "template"
+
+ case templateTag = "template_tag"
+
+ case total = "total"
+
+ }
+
+ public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int? = nil, createdBy: UserDetail1? = nil, createdOn: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserDetail1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, template: ProductTemplate? = nil, templateTag: String? = nil, total: Int? = nil) {
+
+ self.cancelled = cancelled
+
+ self.cancelledRecords = cancelledRecords
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.failed = failed
+
+ self.failedRecords = failedRecords
+
+ self.filePath = filePath
+
+ self.isActive = isActive
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.stage = stage
+
+ self.succeed = succeed
+
+ self.template = template
+
+ self.templateTag = templateTag
+
+ self.total = total
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ createdBy = try container.decode(UserDetail1.self, forKey: .createdBy)
+
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(UserDetail1.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(cancelled, forKey: .cancelled)
+
+
+
+
+ try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(failed, forKey: .failed)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(succeed, forKey: .succeed)
+
+
+
+
+ try? container.encodeIfPresent(template, forKey: .template)
+
+
+
+
+ try? container.encodeIfPresent(templateTag, forKey: .templateTag)
+
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductBulkRequestListCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBulkRequestListCatalogPlatformModel.swift
index f3d6206e73..923717230f 100644
--- a/Sources/code/platform/Models/Catalog/ProductBulkRequestListCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductBulkRequestListCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class ProductBulkRequestList: Codable {
- public var items: [String: Any]?
+ public var items: [ProductBulkRequest]?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Catalog {
}
- public init(items: [String: Any]? = nil, page: Page? = nil) {
+ public init(items: [ProductBulkRequest]? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Catalog {
do {
- items = try container.decode([String: Any].self, forKey: .items)
+ items = try container.decode([ProductBulkRequest].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class ProductBulkRequestList: Codable {
- public var items: [String: Any]?
+ public var items: [ProductBulkRequest]?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(items: [String: Any]? = nil, page: Page? = nil) {
+ public init(items: [ProductBulkRequest]? = nil, page: Page? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- items = try container.decode([String: Any].self, forKey: .items)
+ items = try container.decode([ProductBulkRequest].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ProductBulkRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBulkRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 7e2569f414..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductBulkRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,806 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductBulkRequestSchema
- Used By: Catalog
- */
-
- class ProductBulkRequestSchema: Codable {
-
-
- public var cancelled: Int?
-
- public var cancelledRecords: [[String: Any]]?
-
- public var companyId: Int?
-
- public var createdBy: UserDetail1?
-
- public var createdOn: String?
-
- public var failed: Int?
-
- public var failedRecords: [[String: Any]]?
-
- public var filePath: String?
-
- public var isActive: Bool?
-
- public var modifiedBy: UserDetail1?
-
- public var modifiedOn: String?
-
- public var stage: String?
-
- public var succeed: Int?
-
- public var template: ProductTemplate?
-
- public var templateTag: String?
-
- public var total: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cancelled = "cancelled"
-
- case cancelledRecords = "cancelled_records"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case failed = "failed"
-
- case failedRecords = "failed_records"
-
- case filePath = "file_path"
-
- case isActive = "is_active"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case stage = "stage"
-
- case succeed = "succeed"
-
- case template = "template"
-
- case templateTag = "template_tag"
-
- case total = "total"
-
- }
-
- public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int? = nil, createdBy: UserDetail1? = nil, createdOn: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserDetail1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, template: ProductTemplate? = nil, templateTag: String? = nil, total: Int? = nil) {
-
- self.cancelled = cancelled
-
- self.cancelledRecords = cancelledRecords
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.failed = failed
-
- self.failedRecords = failedRecords
-
- self.filePath = filePath
-
- self.isActive = isActive
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.stage = stage
-
- self.succeed = succeed
-
- self.template = template
-
- self.templateTag = templateTag
-
- self.total = total
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(UserDetail1.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserDetail1.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(cancelled, forKey: .cancelled)
-
-
-
-
- try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(failed, forKey: .failed)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(succeed, forKey: .succeed)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductBulkRequestSchema
- Used By: Catalog
- */
-
- class ProductBulkRequestSchema: Codable {
-
-
- public var cancelled: Int?
-
- public var cancelledRecords: [[String: Any]]?
-
- public var companyId: Int?
-
- public var createdBy: UserDetail1?
-
- public var createdOn: String?
-
- public var failed: Int?
-
- public var failedRecords: [[String: Any]]?
-
- public var filePath: String?
-
- public var isActive: Bool?
-
- public var modifiedBy: UserDetail1?
-
- public var modifiedOn: String?
-
- public var stage: String?
-
- public var succeed: Int?
-
- public var template: ProductTemplate?
-
- public var templateTag: String?
-
- public var total: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case cancelled = "cancelled"
-
- case cancelledRecords = "cancelled_records"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case failed = "failed"
-
- case failedRecords = "failed_records"
-
- case filePath = "file_path"
-
- case isActive = "is_active"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case stage = "stage"
-
- case succeed = "succeed"
-
- case template = "template"
-
- case templateTag = "template_tag"
-
- case total = "total"
-
- }
-
- public init(cancelled: Int? = nil, cancelledRecords: [[String: Any]]? = nil, companyId: Int? = nil, createdBy: UserDetail1? = nil, createdOn: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, isActive: Bool? = nil, modifiedBy: UserDetail1? = nil, modifiedOn: String? = nil, stage: String? = nil, succeed: Int? = nil, template: ProductTemplate? = nil, templateTag: String? = nil, total: Int? = nil) {
-
- self.cancelled = cancelled
-
- self.cancelledRecords = cancelledRecords
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.failed = failed
-
- self.failedRecords = failedRecords
-
- self.filePath = filePath
-
- self.isActive = isActive
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.stage = stage
-
- self.succeed = succeed
-
- self.template = template
-
- self.templateTag = templateTag
-
- self.total = total
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(UserDetail1.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserDetail1.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(cancelled, forKey: .cancelled)
-
-
-
-
- try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(failed, forKey: .failed)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(succeed, forKey: .succeed)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(templateTag, forKey: .templateTag)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductBundleRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBundleRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..7bff4b7b97
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductBundleRequestCatalogPlatformModel.swift
@@ -0,0 +1,644 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductBundleRequest
+ Used By: Catalog
+ */
+
+ class ProductBundleRequest: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductBundleRequest
+ Used By: Catalog
+ */
+
+ class ProductBundleRequest: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductBundleRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBundleRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 23aa4ed61e..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductBundleRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,644 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductBundleRequestSchema
- Used By: Catalog
- */
-
- class ProductBundleRequestSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var createdBy: [String: Any]?
-
- public var createdOn: String?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductBundleRequestSchema
- Used By: Catalog
- */
-
- class ProductBundleRequestSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var createdBy: [String: Any]?
-
- public var createdOn: String?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..6c83961869
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestCatalogPlatformModel.swift
@@ -0,0 +1,552 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductBundleUpdateRequest
+ Used By: Catalog
+ */
+
+ class ProductBundleUpdateRequest: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductBundleUpdateRequest
+ Used By: Catalog
+ */
+
+ class ProductBundleUpdateRequest: Codable {
+
+
+ public var choice: String
+
+ public var companyId: Int?
+
+ public var isActive: Bool
+
+ public var logo: String?
+
+ public var meta: [String: Any]?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String
+
+ public var pageVisibility: [String]?
+
+ public var products: [ProductBundleItem]
+
+ public var sameStoreAssignment: Bool?
+
+ public var slug: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case choice = "choice"
+
+ case companyId = "company_id"
+
+ case isActive = "is_active"
+
+ case logo = "logo"
+
+ case meta = "meta"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case pageVisibility = "page_visibility"
+
+ case products = "products"
+
+ case sameStoreAssignment = "same_store_assignment"
+
+ case slug = "slug"
+
+ }
+
+ public init(choice: String, companyId: Int? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
+
+ self.choice = choice
+
+ self.companyId = companyId
+
+ self.isActive = isActive
+
+ self.logo = logo
+
+ self.meta = meta
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.pageVisibility = pageVisibility
+
+ self.products = products
+
+ self.sameStoreAssignment = sameStoreAssignment
+
+ self.slug = slug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ choice = try container.decode(String.self, forKey: .choice)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ products = try container.decode([ProductBundleItem].self, forKey: .products)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ slug = try container.decode(String.self, forKey: .slug)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(choice, forKey: .choice)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 73c54efb96..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductBundleUpdateRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,460 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductBundleUpdateRequestSchema
- Used By: Catalog
- */
-
- class ProductBundleUpdateRequestSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductBundleUpdateRequestSchema
- Used By: Catalog
- */
-
- class ProductBundleUpdateRequestSchema: Codable {
-
-
- public var choice: String
-
- public var companyId: Int?
-
- public var isActive: Bool
-
- public var logo: String?
-
- public var meta: [String: Any]?
-
- public var name: String
-
- public var pageVisibility: [String]?
-
- public var products: [ProductBundleItem]
-
- public var sameStoreAssignment: Bool?
-
- public var slug: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case choice = "choice"
-
- case companyId = "company_id"
-
- case isActive = "is_active"
-
- case logo = "logo"
-
- case meta = "meta"
-
- case name = "name"
-
- case pageVisibility = "page_visibility"
-
- case products = "products"
-
- case sameStoreAssignment = "same_store_assignment"
-
- case slug = "slug"
-
- }
-
- public init(choice: String, companyId: Int? = nil, isActive: Bool, logo: String? = nil, meta: [String: Any]? = nil, name: String, pageVisibility: [String]? = nil, products: [ProductBundleItem], sameStoreAssignment: Bool? = nil, slug: String) {
-
- self.choice = choice
-
- self.companyId = companyId
-
- self.isActive = isActive
-
- self.logo = logo
-
- self.meta = meta
-
- self.name = name
-
- self.pageVisibility = pageVisibility
-
- self.products = products
-
- self.sameStoreAssignment = sameStoreAssignment
-
- self.slug = slug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- choice = try container.decode(String.self, forKey: .choice)
-
-
-
-
- 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 {
-
- }
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- products = try container.decode([ProductBundleItem].self, forKey: .products)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- slug = try container.decode(String.self, forKey: .slug)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(choice, forKey: .choice)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductCatalogPlatformModel.swift
index 7704070c33..0f0b4baa29 100644
--- a/Sources/code/platform/Models/Catalog/ProductCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductCatalogPlatformModel.swift
@@ -86,9 +86,11 @@ public extension PlatformClient.Catalog {
public var moq: [String: Any]?
+ public var multiSize: Bool?
+
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -100,7 +102,7 @@ public extension PlatformClient.Catalog {
public var productPublish: ProductPublished?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
@@ -114,7 +116,7 @@ public extension PlatformClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -211,6 +213,8 @@ public extension PlatformClient.Catalog {
case moq = "moq"
+ case multiSize = "multi_size"
+
case name = "name"
case netQuantity = "net_quantity"
@@ -261,7 +265,7 @@ public extension PlatformClient.Catalog {
}
- public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -337,6 +341,8 @@ public extension PlatformClient.Catalog {
self.moq = moq
+ self.multiSize = multiSize
+
self.name = name
self.netQuantity = netQuantity
@@ -835,6 +841,18 @@ public extension PlatformClient.Catalog {
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
do {
name = try container.decode(String.self, forKey: .name)
@@ -848,7 +866,7 @@ public extension PlatformClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -920,7 +938,7 @@ public extension PlatformClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1004,7 +1022,7 @@ public extension PlatformClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1314,6 +1332,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(multiSize, forKey: .multiSize)
+
+
+
+
try? container.encodeIfPresent(name, forKey: .name)
@@ -1522,9 +1545,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var moq: [String: Any]?
+ public var multiSize: Bool?
+
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -1536,7 +1561,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var productPublish: ProductPublished?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
@@ -1550,7 +1575,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -1647,6 +1672,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case moq = "moq"
+ case multiSize = "multi_size"
+
case name = "name"
case netQuantity = "net_quantity"
@@ -1697,7 +1724,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -1773,6 +1800,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.moq = moq
+ self.multiSize = multiSize
+
self.name = name
self.netQuantity = netQuantity
@@ -2271,6 +2300,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
do {
name = try container.decode(String.self, forKey: .name)
@@ -2284,7 +2325,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2356,7 +2397,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2440,7 +2481,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2750,6 +2791,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(multiSize, forKey: .multiSize)
+
+
+
+
try? container.encodeIfPresent(name, forKey: .name)
diff --git a/Sources/code/platform/Models/Catalog/ProductCategoryCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductCategoryCatalogPlatformModel.swift
deleted file mode 100644
index f9e21ddbaf..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductCategoryCatalogPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductCategory
- Used By: Catalog
- */
-
- class ProductCategory: Codable {
-
-
- public var id: Int?
-
- public var uid: Int?
-
- public var name: String?
-
- public var slug: String?
-
- public var logo: Logo?
-
- public var action: Action?
-
- public var customJson: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case uid = "uid"
-
- case name = "name"
-
- case slug = "slug"
-
- case logo = "logo"
-
- case action = "action"
-
- case customJson = "_custom_json"
-
- }
-
- public init(action: Action? = nil, id: Int? = nil, logo: Logo? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
-
- self.id = id
-
- self.uid = uid
-
- self.name = name
-
- self.slug = slug
-
- self.logo = logo
-
- self.action = action
-
- self.customJson = customJson
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- logo = try container.decode(Logo.self, forKey: .logo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(Action.self, forKey: .action)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductCategory
- Used By: Catalog
- */
-
- class ProductCategory: Codable {
-
-
- public var id: Int?
-
- public var uid: Int?
-
- public var name: String?
-
- public var slug: String?
-
- public var logo: Logo?
-
- public var action: Action?
-
- public var customJson: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case uid = "uid"
-
- case name = "name"
-
- case slug = "slug"
-
- case logo = "logo"
-
- case action = "action"
-
- case customJson = "_custom_json"
-
- }
-
- public init(action: Action? = nil, id: Int? = nil, logo: Logo? = nil, name: String? = nil, slug: String? = nil, uid: Int? = nil, customJson: [String: Any]? = nil) {
-
- self.id = id
-
- self.uid = uid
-
- self.name = name
-
- self.slug = slug
-
- self.logo = logo
-
- self.action = action
-
- self.customJson = customJson
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- id = try container.decode(Int.self, forKey: .id)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- logo = try container.decode(Logo.self, forKey: .logo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(Action.self, forKey: .action)
-
- } 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductCreateUpdateSchemaV2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductCreateUpdateSchemaV2CatalogPlatformModel.swift
index b6df254de1..9050cb22bf 100644
--- a/Sources/code/platform/Models/Catalog/ProductCreateUpdateSchemaV2CatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductCreateUpdateSchemaV2CatalogPlatformModel.swift
@@ -64,7 +64,7 @@ public extension PlatformClient.Catalog {
public var productGroupTag: [String]?
- public var productPublish: ProductPublish?
+ public var productPublish: ProductPublish1?
public var requester: String?
@@ -185,7 +185,7 @@ public extension PlatformClient.Catalog {
}
- public init(action: String? = nil, attributes: [String: Any]? = nil, brandUid: Int, bulkJobId: String? = nil, categorySlug: String, changeRequestId: String? = nil, companyId: Int, countryOfOrigin: String, currency: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, highlights: [String]? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isImageLessProduct: Bool? = nil, isSet: Bool? = nil, itemCode: String, itemType: String, media: [Media]? = nil, multiSize: Bool? = nil, name: String, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, requester: String? = nil, returnConfig: ReturnConfig, shortDescription: String? = nil, sizes: [[String: Any]], sizeGuide: String? = nil, slug: String, tags: [String]? = nil, taxIdentifier: TaxIdentifier, teaserTag: TeaserTag? = nil, templateTag: String, trader: [Trader], uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+ public init(action: String? = nil, attributes: [String: Any]? = nil, brandUid: Int, bulkJobId: String? = nil, categorySlug: String, changeRequestId: String? = nil, companyId: Int, countryOfOrigin: String, currency: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, highlights: [String]? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isImageLessProduct: Bool? = nil, isSet: Bool? = nil, itemCode: String, itemType: String, media: [Media]? = nil, multiSize: Bool? = nil, name: String, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish1? = nil, requester: String? = nil, returnConfig: ReturnConfig, shortDescription: String? = nil, sizes: [[String: Any]], sizeGuide: String? = nil, slug: String, tags: [String]? = nil, taxIdentifier: TaxIdentifier, teaserTag: TeaserTag? = nil, templateTag: String, trader: [Trader], uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -527,7 +527,7 @@ public extension PlatformClient.Catalog {
do {
- productPublish = try container.decode(ProductPublish.self, forKey: .productPublish)
+ productPublish = try container.decode(ProductPublish1.self, forKey: .productPublish)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -958,7 +958,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var productGroupTag: [String]?
- public var productPublish: ProductPublish?
+ public var productPublish: ProductPublish1?
public var requester: String?
@@ -1079,7 +1079,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(action: String? = nil, attributes: [String: Any]? = nil, brandUid: Int, bulkJobId: String? = nil, categorySlug: String, changeRequestId: String? = nil, companyId: Int, countryOfOrigin: String, currency: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, highlights: [String]? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isImageLessProduct: Bool? = nil, isSet: Bool? = nil, itemCode: String, itemType: String, media: [Media]? = nil, multiSize: Bool? = nil, name: String, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, requester: String? = nil, returnConfig: ReturnConfig, shortDescription: String? = nil, sizes: [[String: Any]], sizeGuide: String? = nil, slug: String, tags: [String]? = nil, taxIdentifier: TaxIdentifier, teaserTag: TeaserTag? = nil, templateTag: String, trader: [Trader], uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+ public init(action: String? = nil, attributes: [String: Any]? = nil, brandUid: Int, bulkJobId: String? = nil, categorySlug: String, changeRequestId: String? = nil, companyId: Int, countryOfOrigin: String, currency: String, customOrder: CustomOrder? = nil, departments: [Int], description: String? = nil, highlights: [String]? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isImageLessProduct: Bool? = nil, isSet: Bool? = nil, itemCode: String, itemType: String, media: [Media]? = nil, multiSize: Bool? = nil, name: String, netQuantity: NetQuantity? = nil, noOfBoxes: Int? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish1? = nil, requester: String? = nil, returnConfig: ReturnConfig, shortDescription: String? = nil, sizes: [[String: Any]], sizeGuide: String? = nil, slug: String, tags: [String]? = nil, taxIdentifier: TaxIdentifier, teaserTag: TeaserTag? = nil, templateTag: String, trader: [Trader], uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -1421,7 +1421,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- productPublish = try container.decode(ProductPublish.self, forKey: .productPublish)
+ productPublish = try container.decode(ProductPublish1.self, forKey: .productPublish)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ProductDetailCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductDetailCatalogPlatformModel.swift
index 6a6c3812e6..c35caf2851 100644
--- a/Sources/code/platform/Models/Catalog/ProductDetailCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductDetailCatalogPlatformModel.swift
@@ -16,6 +16,8 @@ public extension PlatformClient.Catalog {
public var brand: ProductBrand?
+ public var color: String?
+
public var description: String?
public var groupedAttributes: [ProductDetailGroupedAttribute]?
@@ -56,16 +58,6 @@ public extension PlatformClient.Catalog {
public var uid: Int?
- public var countryOfOrigin: String?
-
- public var categories: [ApplicationProductCategoryItem]?
-
- public var tags: [String]?
-
- public var noOfBoxes: Int?
-
- public var customOrder: CustomOrder?
-
public enum CodingKeys: String, CodingKey {
@@ -73,6 +65,8 @@ public extension PlatformClient.Catalog {
case brand = "brand"
+ case color = "color"
+
case description = "description"
case groupedAttributes = "grouped_attributes"
@@ -113,24 +107,16 @@ public extension PlatformClient.Catalog {
case uid = "uid"
- case countryOfOrigin = "country_of_origin"
-
- case categories = "categories"
-
- case tags = "tags"
-
- case noOfBoxes = "no_of_boxes"
-
- case customOrder = "custom_order"
-
}
- public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ApplicationProductCategoryItem]? = nil, countryOfOrigin: String? = nil, customOrder: CustomOrder? = nil, description: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, noOfBoxes: Int? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
+ public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, color: String? = nil, description: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
self.attributes = attributes
self.brand = brand
+ self.color = color
+
self.description = description
self.groupedAttributes = groupedAttributes
@@ -171,16 +157,6 @@ public extension PlatformClient.Catalog {
self.uid = uid
- self.countryOfOrigin = countryOfOrigin
-
- self.categories = categories
-
- self.tags = tags
-
- self.noOfBoxes = noOfBoxes
-
- self.customOrder = customOrder
-
}
required public init(from decoder: Decoder) throws {
@@ -211,6 +187,18 @@ public extension PlatformClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
description = try container.decode(String.self, forKey: .description)
@@ -443,66 +431,6 @@ public extension PlatformClient.Catalog {
}
-
- 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 {
-
- }
-
-
-
- do {
- categories = try container.decode([ApplicationProductCategoryItem].self, forKey: .categories)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -520,6 +448,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
@@ -618,31 +551,6 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
}
}
@@ -663,6 +571,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var brand: ProductBrand?
+ public var color: String?
+
public var description: String?
public var groupedAttributes: [ProductDetailGroupedAttribute]?
@@ -703,16 +613,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var uid: Int?
- public var countryOfOrigin: String?
-
- public var categories: [ApplicationProductCategoryItem]?
-
- public var tags: [String]?
-
- public var noOfBoxes: Int?
-
- public var customOrder: CustomOrder?
-
public enum CodingKeys: String, CodingKey {
@@ -720,6 +620,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case brand = "brand"
+ case color = "color"
+
case description = "description"
case groupedAttributes = "grouped_attributes"
@@ -760,24 +662,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
case uid = "uid"
- case countryOfOrigin = "country_of_origin"
-
- case categories = "categories"
-
- case tags = "tags"
-
- case noOfBoxes = "no_of_boxes"
-
- case customOrder = "custom_order"
-
}
- public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ApplicationProductCategoryItem]? = nil, countryOfOrigin: String? = nil, customOrder: CustomOrder? = nil, description: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, noOfBoxes: Int? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, tags: [String]? = nil, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
+ public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, color: String? = nil, description: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
self.attributes = attributes
self.brand = brand
+ self.color = color
+
self.description = description
self.groupedAttributes = groupedAttributes
@@ -818,16 +712,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.uid = uid
- self.countryOfOrigin = countryOfOrigin
-
- self.categories = categories
-
- self.tags = tags
-
- self.noOfBoxes = noOfBoxes
-
- self.customOrder = customOrder
-
}
required public init(from decoder: Decoder) throws {
@@ -858,6 +742,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
description = try container.decode(String.self, forKey: .description)
@@ -1090,66 +986,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
-
- 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 {
-
- }
-
-
-
- do {
- categories = try container.decode([ApplicationProductCategoryItem].self, forKey: .categories)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -1167,6 +1003,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
@@ -1265,31 +1106,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes)
-
-
-
-
- try? container.encodeIfPresent(customOrder, forKey: .customOrder)
-
-
}
}
diff --git a/Sources/code/platform/Models/Catalog/ProductDetailsCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductDetailsCatalogPlatformModel.swift
deleted file mode 100644
index 5c760dca20..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductDetailsCatalogPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductDetails
- Used By: Catalog
- */
-
- class ProductDetails: Codable {
-
-
- public var slug: String?
-
- public var quantity: Int?
-
- public var attributes: [String: Any]?
-
- public var price: Price?
-
- public var images: [String]?
-
- public var uid: Int?
-
- public var itemCode: String?
-
- public var identifier: [String: Any]?
-
- public var sizes: [String]?
-
- public var countryOfOrigin: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case quantity = "quantity"
-
- case attributes = "attributes"
-
- case price = "price"
-
- case images = "images"
-
- case uid = "uid"
-
- case itemCode = "item_code"
-
- case identifier = "identifier"
-
- case sizes = "sizes"
-
- case countryOfOrigin = "country_of_origin"
-
- }
-
- public init(attributes: [String: Any]? = nil, countryOfOrigin: String? = nil, identifier: [String: Any]? = nil, images: [String]? = nil, itemCode: String? = nil, price: Price? = nil, quantity: Int? = nil, sizes: [String]? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.slug = slug
-
- self.quantity = quantity
-
- self.attributes = attributes
-
- self.price = price
-
- self.images = images
-
- self.uid = uid
-
- self.itemCode = itemCode
-
- self.identifier = identifier
-
- self.sizes = sizes
-
- self.countryOfOrigin = countryOfOrigin
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- price = try container.decode(Price.self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- do {
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(images, forKey: .images)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductDetails
- Used By: Catalog
- */
-
- class ProductDetails: Codable {
-
-
- public var slug: String?
-
- public var quantity: Int?
-
- public var attributes: [String: Any]?
-
- public var price: Price?
-
- public var images: [String]?
-
- public var uid: Int?
-
- public var itemCode: String?
-
- public var identifier: [String: Any]?
-
- public var sizes: [String]?
-
- public var countryOfOrigin: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case quantity = "quantity"
-
- case attributes = "attributes"
-
- case price = "price"
-
- case images = "images"
-
- case uid = "uid"
-
- case itemCode = "item_code"
-
- case identifier = "identifier"
-
- case sizes = "sizes"
-
- case countryOfOrigin = "country_of_origin"
-
- }
-
- public init(attributes: [String: Any]? = nil, countryOfOrigin: String? = nil, identifier: [String: Any]? = nil, images: [String]? = nil, itemCode: String? = nil, price: Price? = nil, quantity: Int? = nil, sizes: [String]? = nil, slug: String? = nil, uid: Int? = nil) {
-
- self.slug = slug
-
- self.quantity = quantity
-
- self.attributes = attributes
-
- self.price = price
-
- self.images = images
-
- self.uid = uid
-
- self.itemCode = itemCode
-
- self.identifier = identifier
-
- self.sizes = sizes
-
- self.countryOfOrigin = countryOfOrigin
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- price = try container.decode(Price.self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- do {
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(images, forKey: .images)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(itemCode, forKey: .itemCode)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(sizes, forKey: .sizes)
-
-
-
-
- try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductDownloadsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductDownloadsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..79b1245fdc
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductDownloadsResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductDownloadsResponse
+ Used By: Catalog
+ */
+
+ class ProductDownloadsResponse: Codable {
+
+
+ public var items: [ProductTemplateExportResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ProductTemplateExportResponse]? = nil, page: Page? = nil) {
+
+ 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([ProductTemplateExportResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductDownloadsResponse
+ Used By: Catalog
+ */
+
+ class ProductDownloadsResponse: Codable {
+
+
+ public var items: [ProductTemplateExportResponse]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ProductTemplateExportResponse]? = nil, page: Page? = nil) {
+
+ 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([ProductTemplateExportResponse].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductDownloadsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductDownloadsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 01c971c148..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductDownloadsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductDownloadsResponseSchema
- Used By: Catalog
- */
-
- class ProductDownloadsResponseSchema: Codable {
-
-
- public var items: [ProductTemplateExportResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ProductTemplateExportResponseSchema]? = nil, page: Page? = nil) {
-
- 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([ProductTemplateExportResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductDownloadsResponseSchema
- Used By: Catalog
- */
-
- class ProductDownloadsResponseSchema: Codable {
-
-
- public var items: [ProductTemplateExportResponseSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ProductTemplateExportResponseSchema]? = nil, page: Page? = nil) {
-
- 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([ProductTemplateExportResponseSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductListingDetailCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductListingDetailCatalogPlatformModel.swift
index e90447cb4d..cdefc2201b 100644
--- a/Sources/code/platform/Models/Catalog/ProductListingDetailCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductListingDetailCatalogPlatformModel.swift
@@ -16,6 +16,8 @@ public extension PlatformClient.Catalog {
public var brand: ProductBrand?
+ public var color: String?
+
public var description: String?
public var discount: String?
@@ -52,7 +54,7 @@ public extension PlatformClient.Catalog {
public var similars: [String]?
- public var slug: String?
+ public var slug: String
public var teaserTag: [String: Any]?
@@ -62,20 +64,6 @@ public extension PlatformClient.Catalog {
public var uid: Int?
- public var categories: [ApplicationCategoryItem]?
-
- public var customMeta: [String]?
-
- public var action: PageAction?
-
- public var isTryout: Bool?
-
- public var allCompanyIds: [Int]?
-
- public var isCustomOrder: Bool?
-
- public var collections: [String]?
-
public enum CodingKeys: String, CodingKey {
@@ -83,6 +71,8 @@ public extension PlatformClient.Catalog {
case brand = "brand"
+ case color = "color"
+
case description = "description"
case discount = "discount"
@@ -129,28 +119,16 @@ public extension PlatformClient.Catalog {
case uid = "uid"
- case categories = "categories"
-
- case customMeta = "_custom_meta"
-
- case action = "action"
-
- case isTryout = "is_tryout"
-
- case allCompanyIds = "all_company_ids"
-
- case isCustomOrder = "is_custom_order"
-
- case collections = "collections"
-
}
- public init(action: PageAction? = nil, allCompanyIds: [Int]? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ApplicationCategoryItem]? = nil, collections: [String]? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, isCustomOrder: Bool? = nil, isTryout: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, price: ProductListingPrice? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String? = nil, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, customMeta: [String]? = nil) {
+ public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, color: String? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, price: ProductListingPrice? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
self.attributes = attributes
self.brand = brand
+ self.color = color
+
self.description = description
self.discount = discount
@@ -197,20 +175,6 @@ public extension PlatformClient.Catalog {
self.uid = uid
- self.categories = categories
-
- self.customMeta = customMeta
-
- self.action = action
-
- self.isTryout = isTryout
-
- self.allCompanyIds = allCompanyIds
-
- self.isCustomOrder = isCustomOrder
-
- self.collections = collections
-
}
required public init(from decoder: Decoder) throws {
@@ -241,6 +205,18 @@ public extension PlatformClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
description = try container.decode(String.self, forKey: .description)
@@ -457,18 +433,11 @@ public extension PlatformClient.Catalog {
- 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 {
-
- }
+ slug = try container.decode(String.self, forKey: .slug)
+
do {
teaserTag = try container.decode([String: Any].self, forKey: .teaserTag)
@@ -516,90 +485,6 @@ public extension PlatformClient.Catalog {
}
-
- do {
- categories = try container.decode([ApplicationCategoryItem].self, forKey: .categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([String].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(PageAction.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isTryout = try container.decode(Bool.self, forKey: .isTryout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allCompanyIds = try container.decode([Int].self, forKey: .allCompanyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- collections = try container.decode([String].self, forKey: .collections)
-
- } 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 {
@@ -617,6 +502,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
@@ -730,41 +620,6 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(isTryout, forKey: .isTryout)
-
-
-
-
- try? container.encodeIfPresent(allCompanyIds, forKey: .allCompanyIds)
-
-
-
-
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
-
-
-
-
- try? container.encodeIfPresent(collections, forKey: .collections)
-
-
}
}
@@ -785,6 +640,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var brand: ProductBrand?
+ public var color: String?
+
public var description: String?
public var discount: String?
@@ -821,7 +678,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var similars: [String]?
- public var slug: String?
+ public var slug: String
public var teaserTag: [String: Any]?
@@ -831,20 +688,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var uid: Int?
- public var categories: [ApplicationCategoryItem]?
-
- public var customMeta: [String]?
-
- public var action: PageAction?
-
- public var isTryout: Bool?
-
- public var allCompanyIds: [Int]?
-
- public var isCustomOrder: Bool?
-
- public var collections: [String]?
-
public enum CodingKeys: String, CodingKey {
@@ -852,6 +695,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case brand = "brand"
+ case color = "color"
+
case description = "description"
case discount = "discount"
@@ -898,28 +743,16 @@ public extension PlatformClient.ApplicationClient.Catalog {
case uid = "uid"
- case categories = "categories"
-
- case customMeta = "_custom_meta"
-
- case action = "action"
-
- case isTryout = "is_tryout"
-
- case allCompanyIds = "all_company_ids"
-
- case isCustomOrder = "is_custom_order"
-
- case collections = "collections"
-
}
- public init(action: PageAction? = nil, allCompanyIds: [Int]? = nil, attributes: [String: Any]? = nil, brand: ProductBrand? = nil, categories: [ApplicationCategoryItem]? = nil, collections: [String]? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, isCustomOrder: Bool? = nil, isTryout: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, price: ProductListingPrice? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String? = nil, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil, customMeta: [String]? = nil) {
+ public init(attributes: [String: Any]? = nil, brand: ProductBrand? = nil, color: String? = nil, description: String? = nil, discount: String? = nil, groupedAttributes: [ProductDetailGroupedAttribute]? = nil, hasVariant: Bool? = nil, highlights: [String]? = nil, imageNature: String? = nil, itemCode: String? = nil, itemType: String? = nil, medias: [Media]? = nil, name: String? = nil, price: ProductListingPrice? = nil, productOnlineDate: String? = nil, promoMeta: [String: Any]? = nil, rating: Double? = nil, ratingCount: Int? = nil, sellable: Bool? = nil, shortDescription: String? = nil, similars: [String]? = nil, slug: String, teaserTag: [String: Any]? = nil, tryouts: [String]? = nil, type: String? = nil, uid: Int? = nil) {
self.attributes = attributes
self.brand = brand
+ self.color = color
+
self.description = description
self.discount = discount
@@ -966,20 +799,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.uid = uid
- self.categories = categories
-
- self.customMeta = customMeta
-
- self.action = action
-
- self.isTryout = isTryout
-
- self.allCompanyIds = allCompanyIds
-
- self.isCustomOrder = isCustomOrder
-
- self.collections = collections
-
}
required public init(from decoder: Decoder) throws {
@@ -1010,6 +829,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
description = try container.decode(String.self, forKey: .description)
@@ -1226,18 +1057,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
- 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 {
-
- }
+ slug = try container.decode(String.self, forKey: .slug)
+
do {
teaserTag = try container.decode([String: Any].self, forKey: .teaserTag)
@@ -1285,90 +1109,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
-
- do {
- categories = try container.decode([ApplicationCategoryItem].self, forKey: .categories)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customMeta = try container.decode([String].self, forKey: .customMeta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(PageAction.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isTryout = try container.decode(Bool.self, forKey: .isTryout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allCompanyIds = try container.decode([Int].self, forKey: .allCompanyIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- collections = try container.decode([String].self, forKey: .collections)
-
- } 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 {
@@ -1386,6 +1126,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
@@ -1499,41 +1244,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- try? container.encodeIfPresent(categories, forKey: .categories)
-
-
-
-
- try? container.encodeIfPresent(customMeta, forKey: .customMeta)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(isTryout, forKey: .isTryout)
-
-
-
-
- try? container.encodeIfPresent(allCompanyIds, forKey: .allCompanyIds)
-
-
-
-
- try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder)
-
-
-
-
- try? container.encodeIfPresent(collections, forKey: .collections)
-
-
}
}
diff --git a/Sources/code/platform/Models/Catalog/ProductListingDetailPriceCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductListingDetailPriceCatalogPlatformModel.swift
deleted file mode 100644
index cf8f071112..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductListingDetailPriceCatalogPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductListingDetailPrice
- Used By: Catalog
- */
-
- class ProductListingDetailPrice: Codable {
-
-
- public var currencyCode: String?
-
- public var currencySymbol: String?
-
- public var max: Double?
-
- public var min: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case currencySymbol = "currency_symbol"
-
- case max = "max"
-
- case min = "min"
-
- }
-
- public init(currencyCode: String? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
-
- self.currencyCode = currencyCode
-
- self.currencySymbol = currencySymbol
-
- self.max = max
-
- self.min = min
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductListingDetailPrice
- Used By: Catalog
- */
-
- class ProductListingDetailPrice: Codable {
-
-
- public var currencyCode: String?
-
- public var currencySymbol: String?
-
- public var max: Double?
-
- public var min: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case currencySymbol = "currency_symbol"
-
- case max = "max"
-
- case min = "min"
-
- }
-
- public init(currencyCode: String? = nil, currencySymbol: String? = nil, max: Double? = nil, min: Double? = nil) {
-
- self.currencyCode = currencyCode
-
- self.currencySymbol = currencySymbol
-
- self.max = max
-
- self.min = min
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductListingPriceCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductListingPriceCatalogPlatformModel.swift
index f70d112c6c..c9ac27808b 100644
--- a/Sources/code/platform/Models/Catalog/ProductListingPriceCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductListingPriceCatalogPlatformModel.swift
@@ -16,8 +16,6 @@ public extension PlatformClient.Catalog {
public var marked: Price1?
- public var selling: Price1?
-
public enum CodingKeys: String, CodingKey {
@@ -25,18 +23,14 @@ public extension PlatformClient.Catalog {
case marked = "marked"
- case selling = "selling"
-
}
- public init(effective: Price1? = nil, marked: Price1? = nil, selling: Price1? = nil) {
+ public init(effective: Price1? = nil, marked: Price1? = nil) {
self.effective = effective
self.marked = marked
- self.selling = selling
-
}
required public init(from decoder: Decoder) throws {
@@ -66,18 +60,6 @@ public extension PlatformClient.Catalog {
}
-
- do {
- selling = try container.decode(Price1.self, forKey: .selling)
-
- } 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 {
@@ -93,11 +75,6 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(marked, forKey: .marked)
-
-
- try? container.encodeIfPresent(selling, forKey: .selling)
-
-
}
}
@@ -118,8 +95,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var marked: Price1?
- public var selling: Price1?
-
public enum CodingKeys: String, CodingKey {
@@ -127,18 +102,14 @@ public extension PlatformClient.ApplicationClient.Catalog {
case marked = "marked"
- case selling = "selling"
-
}
- public init(effective: Price1? = nil, marked: Price1? = nil, selling: Price1? = nil) {
+ public init(effective: Price1? = nil, marked: Price1? = nil) {
self.effective = effective
self.marked = marked
- self.selling = selling
-
}
required public init(from decoder: Decoder) throws {
@@ -168,18 +139,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
-
- do {
- selling = try container.decode(Price1.self, forKey: .selling)
-
- } 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 {
@@ -195,11 +154,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(marked, forKey: .marked)
-
-
- try? container.encodeIfPresent(selling, forKey: .selling)
-
-
}
}
diff --git a/Sources/code/platform/Models/Catalog/ProductListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1b4bac7af8
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductListingResponse
+ Used By: Catalog
+ */
+
+ class ProductListingResponse: Codable {
+
+
+ public var items: [Product]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Product]? = nil, page: Page? = nil) {
+
+ 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([Product].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductListingResponse
+ Used By: Catalog
+ */
+
+ class ProductListingResponse: Codable {
+
+
+ public var items: [Product]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Product]? = nil, page: Page? = nil) {
+
+ 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([Product].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 6eef17dbc6..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductListingResponseSchema
- Used By: Catalog
- */
-
- class ProductListingResponseSchema: Codable {
-
-
- public var items: [Product]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Product]? = nil, page: Page? = nil) {
-
- 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([Product].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductListingResponseSchema
- Used By: Catalog
- */
-
- class ProductListingResponseSchema: Codable {
-
-
- public var items: [Product]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Product]? = nil, page: Page? = nil) {
-
- 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([Product].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductPublish1CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductPublish1CatalogPlatformModel.swift
new file mode 100644
index 0000000000..69f2e3bcc1
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductPublish1CatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductPublish1
+ Used By: Catalog
+ */
+
+ class ProductPublish1: Codable {
+
+
+ public var isSet: Bool?
+
+ public var productOnlineDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isSet = "is_set"
+
+ case productOnlineDate = "product_online_date"
+
+ }
+
+ public init(isSet: Bool? = nil, productOnlineDate: String? = nil) {
+
+ self.isSet = isSet
+
+ self.productOnlineDate = productOnlineDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isSet, forKey: .isSet)
+
+
+
+
+ try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductPublish1
+ Used By: Catalog
+ */
+
+ class ProductPublish1: Codable {
+
+
+ public var isSet: Bool?
+
+ public var productOnlineDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isSet = "is_set"
+
+ case productOnlineDate = "product_online_date"
+
+ }
+
+ public init(isSet: Bool? = nil, productOnlineDate: String? = nil) {
+
+ self.isSet = isSet
+
+ self.productOnlineDate = productOnlineDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isSet, forKey: .isSet)
+
+
+
+
+ try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductQueryFiltersValueCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductQueryFiltersValueCatalogPlatformModel.swift
deleted file mode 100644
index c856921576..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductQueryFiltersValueCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductQueryFiltersValue
- Used By: Catalog
- */
-
- class ProductQueryFiltersValue: Codable {
-
-
- public var display: String?
-
- public var count: Int?
-
- public var isSelected: Bool?
-
- public var value: String?
-
- public var logo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case count = "count"
-
- case isSelected = "is_selected"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(count: Int? = nil, display: String? = nil, isSelected: Bool? = nil, logo: String? = nil, value: String? = nil) {
-
- self.display = display
-
- self.count = count
-
- self.isSelected = isSelected
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(display, forKey: .display)
-
-
-
-
- try? container.encodeIfPresent(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductQueryFiltersValue
- Used By: Catalog
- */
-
- class ProductQueryFiltersValue: Codable {
-
-
- public var display: String?
-
- public var count: Int?
-
- public var isSelected: Bool?
-
- public var value: String?
-
- public var logo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case display = "display"
-
- case count = "count"
-
- case isSelected = "is_selected"
-
- case value = "value"
-
- case logo = "logo"
-
- }
-
- public init(count: Int? = nil, display: String? = nil, isSelected: Bool? = nil, logo: String? = nil, value: String? = nil) {
-
- self.display = display
-
- self.count = count
-
- self.isSelected = isSelected
-
- self.value = value
-
- self.logo = logo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(display, forKey: .display)
-
-
-
-
- try? container.encodeIfPresent(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(isSelected, forKey: .isSelected)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 3582f1a218..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductReturnConfigBaseSchema
- Used By: Catalog
- */
-
- class ProductReturnConfigBaseSchema: Codable {
-
-
- public var returnable: Bool
-
- public var time: Int
-
- public var unit: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool, time: Int, unit: String) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
-
-
-
- time = try container.decode(Int.self, forKey: .time)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductReturnConfigBaseSchema
- Used By: Catalog
- */
-
- class ProductReturnConfigBaseSchema: Codable {
-
-
- public var returnable: Bool
-
- public var time: Int
-
- public var unit: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool, time: Int, unit: String) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
-
-
-
- time = try container.decode(Int.self, forKey: .time)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..61c36fcecb
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductReturnConfigBaseSerializerCatalogPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductReturnConfigBaseSerializer
+ Used By: Catalog
+ */
+
+ class ProductReturnConfigBaseSerializer: Codable {
+
+
+ public var returnable: Bool
+
+ public var time: Int
+
+ public var unit: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool, time: Int, unit: String) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+
+
+
+ time = try container.decode(Int.self, forKey: .time)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductReturnConfigBaseSerializer
+ Used By: Catalog
+ */
+
+ class ProductReturnConfigBaseSerializer: Codable {
+
+
+ public var returnable: Bool
+
+ public var time: Int
+
+ public var unit: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool, time: Int, unit: String) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+
+
+
+ time = try container.decode(Int.self, forKey: .time)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductReturnConfigSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductReturnConfigSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 0e9ce4421e..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductReturnConfigSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductReturnConfigSchema
- Used By: Catalog
- */
-
- class ProductReturnConfigSchema: 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? = nil, storeUid: Int? = nil) {
-
- 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 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 extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductReturnConfigSchema
- Used By: Catalog
- */
-
- class ProductReturnConfigSchema: 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? = nil, storeUid: Int? = nil) {
-
- 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 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductReturnConfigSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductReturnConfigSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..f0c4db9135
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductReturnConfigSerializerCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductReturnConfigSerializer
+ Used By: Catalog
+ */
+
+ 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? = nil, storeUid: Int? = nil) {
+
+ 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 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 extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductReturnConfigSerializer
+ Used By: Catalog
+ */
+
+ 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? = nil, storeUid: Int? = nil) {
+
+ 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 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductSchemaV2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductSchemaV2CatalogPlatformModel.swift
index 26de5ae855..b472a20817 100644
--- a/Sources/code/platform/Models/Catalog/ProductSchemaV2CatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductSchemaV2CatalogPlatformModel.swift
@@ -40,6 +40,8 @@ public extension PlatformClient.Catalog {
public var createdBy: [String: Any]?
+ public var createdOn: String?
+
public var currency: String?
public var customOrder: [String: Any]?
@@ -88,7 +90,7 @@ public extension PlatformClient.Catalog {
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -100,13 +102,13 @@ public extension PlatformClient.Catalog {
public var productPublish: ProductPublish?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
public var sizeGuide: String?
- public var sizes: [SizeDetails]?
+ public var sizes: [[String: Any]]?
public var slug: String?
@@ -114,7 +116,7 @@ public extension PlatformClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -165,6 +167,8 @@ public extension PlatformClient.Catalog {
case createdBy = "created_by"
+ case createdOn = "created_on"
+
case currency = "currency"
case customOrder = "custom_order"
@@ -261,7 +265,7 @@ public extension PlatformClient.Catalog {
}
- public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [SizeDetails]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -291,6 +295,8 @@ public extension PlatformClient.Catalog {
self.createdBy = createdBy
+ self.createdOn = createdOn
+
self.currency = currency
self.customOrder = customOrder
@@ -559,6 +565,18 @@ public extension PlatformClient.Catalog {
+ 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 {
currency = try container.decode(String.self, forKey: .currency)
@@ -848,7 +866,7 @@ public extension PlatformClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -920,7 +938,7 @@ public extension PlatformClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -956,7 +974,7 @@ public extension PlatformClient.Catalog {
do {
- sizes = try container.decode([SizeDetails].self, forKey: .sizes)
+ sizes = try container.decode([[String: Any]].self, forKey: .sizes)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1004,7 +1022,7 @@ public extension PlatformClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1199,6 +1217,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
try? container.encodeIfPresent(currency, forKey: .currency)
@@ -1476,6 +1499,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var createdBy: [String: Any]?
+ public var createdOn: String?
+
public var currency: String?
public var customOrder: [String: Any]?
@@ -1524,7 +1549,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -1536,13 +1561,13 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var productPublish: ProductPublish?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
public var sizeGuide: String?
- public var sizes: [SizeDetails]?
+ public var sizes: [[String: Any]]?
public var slug: String?
@@ -1550,7 +1575,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -1601,6 +1626,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case createdBy = "created_by"
+ case createdOn = "created_on"
+
case currency = "currency"
case customOrder = "custom_order"
@@ -1697,7 +1724,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [SizeDetails]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [Image]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublish? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -1727,6 +1754,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.createdBy = createdBy
+ self.createdOn = createdOn
+
self.currency = currency
self.customOrder = customOrder
@@ -1995,6 +2024,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ 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 {
currency = try container.decode(String.self, forKey: .currency)
@@ -2284,7 +2325,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2356,7 +2397,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2392,7 +2433,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- sizes = try container.decode([SizeDetails].self, forKey: .sizes)
+ sizes = try container.decode([[String: Any]].self, forKey: .sizes)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2440,7 +2481,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2635,6 +2676,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
try? container.encodeIfPresent(currency, forKey: .currency)
diff --git a/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..bce693bdc2
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductSizeDeleteDataResponse
+ Used By: Catalog
+ */
+
+ class ProductSizeDeleteDataResponse: Codable {
+
+
+ public var companyId: Int?
+
+ public var itemId: Int?
+
+ public var size: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case itemId = "item_id"
+
+ case size = "size"
+
+ }
+
+ public init(companyId: Int? = nil, itemId: Int? = nil, size: String? = nil) {
+
+ self.companyId = companyId
+
+ self.itemId = itemId
+
+ self.size = size
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductSizeDeleteDataResponse
+ Used By: Catalog
+ */
+
+ class ProductSizeDeleteDataResponse: Codable {
+
+
+ public var companyId: Int?
+
+ public var itemId: Int?
+
+ public var size: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case itemId = "item_id"
+
+ case size = "size"
+
+ }
+
+ public init(companyId: Int? = nil, itemId: Int? = nil, size: String? = nil) {
+
+ self.companyId = companyId
+
+ self.itemId = itemId
+
+ self.size = size
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 9d8d9df559..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductSizeDeleteDataResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductSizeDeleteDataResponseSchema
- Used By: Catalog
- */
-
- class ProductSizeDeleteDataResponseSchema: Codable {
-
-
- public var companyId: Int?
-
- public var itemId: Int?
-
- public var size: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case itemId = "item_id"
-
- case size = "size"
-
- }
-
- public init(companyId: Int? = nil, itemId: Int? = nil, size: String? = nil) {
-
- self.companyId = companyId
-
- self.itemId = itemId
-
- self.size = size
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductSizeDeleteDataResponseSchema
- Used By: Catalog
- */
-
- class ProductSizeDeleteDataResponseSchema: Codable {
-
-
- public var companyId: Int?
-
- public var itemId: Int?
-
- public var size: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case itemId = "item_id"
-
- case size = "size"
-
- }
-
- public init(companyId: Int? = nil, itemId: Int? = nil, size: String? = nil) {
-
- self.companyId = companyId
-
- self.itemId = itemId
-
- self.size = size
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..5eced6ad04
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductSizeDeleteResponse
+ Used By: Catalog
+ */
+
+ class ProductSizeDeleteResponse: Codable {
+
+
+ public var data: ProductSizeDeleteDataResponse?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ProductSizeDeleteDataResponse? = nil, success: Bool? = nil) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(ProductSizeDeleteDataResponse.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductSizeDeleteResponse
+ Used By: Catalog
+ */
+
+ class ProductSizeDeleteResponse: Codable {
+
+
+ public var data: ProductSizeDeleteDataResponse?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ProductSizeDeleteDataResponse? = nil, success: Bool? = nil) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(ProductSizeDeleteDataResponse.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index df78bc8619..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductSizeDeleteResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductSizeDeleteResponseSchema
- Used By: Catalog
- */
-
- class ProductSizeDeleteResponseSchema: Codable {
-
-
- public var data: ProductSizeDeleteDataResponseSchema?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ProductSizeDeleteDataResponseSchema? = nil, success: Bool? = nil) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(ProductSizeDeleteDataResponseSchema.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductSizeDeleteResponseSchema
- Used By: Catalog
- */
-
- class ProductSizeDeleteResponseSchema: Codable {
-
-
- public var data: ProductSizeDeleteDataResponseSchema?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ProductSizeDeleteDataResponseSchema? = nil, success: Bool? = nil) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(ProductSizeDeleteDataResponseSchema.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductTagsViewResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTagsViewResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..060ca70fb0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductTagsViewResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductTagsViewResponse
+ Used By: Catalog
+ */
+
+ class ProductTagsViewResponse: Codable {
+
+
+ public var items: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [String]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([String].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductTagsViewResponse
+ Used By: Catalog
+ */
+
+ class ProductTagsViewResponse: Codable {
+
+
+ public var items: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [String]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([String].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductTagsViewResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTagsViewResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 9dfe4f7e78..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductTagsViewResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductTagsViewResponseSchema
- Used By: Catalog
- */
-
- class ProductTagsViewResponseSchema: Codable {
-
-
- public var items: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [String]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([String].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductTagsViewResponseSchema
- Used By: Catalog
- */
-
- class ProductTagsViewResponseSchema: Codable {
-
-
- public var items: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [String]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([String].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateCatalogPlatformModel.swift
index b1ea5fe8ca..e4f6e18569 100644
--- a/Sources/code/platform/Models/Catalog/ProductTemplateCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductTemplateCatalogPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.Catalog {
public var categories: [String]?
- public var createdBy: CreatedBy?
+ public var createdBy: [String: Any]?
public var createdOn: String?
@@ -34,7 +34,7 @@ public extension PlatformClient.Catalog {
public var logo: String?
- public var modifiedBy: ModifiedBy?
+ public var modifiedBy: [String: Any]?
public var modifiedOn: String?
@@ -81,7 +81,7 @@ public extension PlatformClient.Catalog {
}
- public init(attributes: [String]? = nil, categories: [String]? = nil, createdBy: CreatedBy? = nil, createdOn: String? = nil, departments: [String]? = nil, description: String? = nil, isActive: Bool? = nil, isArchived: Bool? = nil, isExpirable: Bool, isPhysical: Bool, logo: String? = nil, modifiedBy: ModifiedBy? = nil, modifiedOn: String? = nil, name: String? = nil, slug: String, tag: String? = nil) {
+ public init(attributes: [String]? = nil, categories: [String]? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String]? = nil, description: String? = nil, isActive: Bool? = nil, isArchived: Bool? = nil, isExpirable: Bool, isPhysical: Bool, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, slug: String, tag: String? = nil) {
self.attributes = attributes
@@ -146,7 +146,7 @@ public extension PlatformClient.Catalog {
do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+ createdBy = try container.decode([String: Any].self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -240,7 +240,7 @@ public extension PlatformClient.Catalog {
do {
- modifiedBy = try container.decode(ModifiedBy.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -396,7 +396,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var categories: [String]?
- public var createdBy: CreatedBy?
+ public var createdBy: [String: Any]?
public var createdOn: String?
@@ -414,7 +414,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var logo: String?
- public var modifiedBy: ModifiedBy?
+ public var modifiedBy: [String: Any]?
public var modifiedOn: String?
@@ -461,7 +461,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(attributes: [String]? = nil, categories: [String]? = nil, createdBy: CreatedBy? = nil, createdOn: String? = nil, departments: [String]? = nil, description: String? = nil, isActive: Bool? = nil, isArchived: Bool? = nil, isExpirable: Bool, isPhysical: Bool, logo: String? = nil, modifiedBy: ModifiedBy? = nil, modifiedOn: String? = nil, name: String? = nil, slug: String, tag: String? = nil) {
+ public init(attributes: [String]? = nil, categories: [String]? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, departments: [String]? = nil, description: String? = nil, isActive: Bool? = nil, isArchived: Bool? = nil, isExpirable: Bool, isPhysical: Bool, logo: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, slug: String, tag: String? = nil) {
self.attributes = attributes
@@ -526,7 +526,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+ createdBy = try container.decode([String: Any].self, forKey: .createdBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -620,7 +620,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- modifiedBy = try container.decode(ModifiedBy.self, forKey: .modifiedBy)
+ modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateDownloadsExportCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateDownloadsExportCatalogPlatformModel.swift
index 062548c310..51f1c38f78 100644
--- a/Sources/code/platform/Models/Catalog/ProductTemplateDownloadsExportCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ProductTemplateDownloadsExportCatalogPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Catalog {
class ProductTemplateDownloadsExport: Codable {
- public var filters: ProductTemplateExportFilterRequestSchema?
+ public var filters: ProductTemplateExportFilterRequest?
public var notificationEmails: [String]?
@@ -29,7 +29,7 @@ public extension PlatformClient.Catalog {
}
- public init(filters: ProductTemplateExportFilterRequestSchema? = nil, notificationEmails: [String]? = nil, type: String? = nil) {
+ public init(filters: ProductTemplateExportFilterRequest? = nil, notificationEmails: [String]? = nil, type: String? = nil) {
self.filters = filters
@@ -44,7 +44,7 @@ public extension PlatformClient.Catalog {
do {
- filters = try container.decode(ProductTemplateExportFilterRequestSchema.self, forKey: .filters)
+ filters = try container.decode(ProductTemplateExportFilterRequest.self, forKey: .filters)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -114,7 +114,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
class ProductTemplateDownloadsExport: Codable {
- public var filters: ProductTemplateExportFilterRequestSchema?
+ public var filters: ProductTemplateExportFilterRequest?
public var notificationEmails: [String]?
@@ -131,7 +131,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(filters: ProductTemplateExportFilterRequestSchema? = nil, notificationEmails: [String]? = nil, type: String? = nil) {
+ public init(filters: ProductTemplateExportFilterRequest? = nil, notificationEmails: [String]? = nil, type: String? = nil) {
self.filters = filters
@@ -146,7 +146,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- filters = try container.decode(ProductTemplateExportFilterRequestSchema.self, forKey: .filters)
+ filters = try container.decode(ProductTemplateExportFilterRequest.self, forKey: .filters)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..af7b9c56bb
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestCatalogPlatformModel.swift
@@ -0,0 +1,272 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductTemplateExportFilterRequest
+ Used By: Catalog
+ */
+
+ class ProductTemplateExportFilterRequest: Codable {
+
+
+ public var brands: [String]?
+
+ public var catalogueTypes: [String]
+
+ public var fromDate: String?
+
+ public var templates: [String]
+
+ public var toDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ case catalogueTypes = "catalogue_types"
+
+ case fromDate = "from_date"
+
+ case templates = "templates"
+
+ case toDate = "to_date"
+
+ }
+
+ public init(brands: [String]? = nil, catalogueTypes: [String], fromDate: String? = nil, templates: [String], toDate: String? = nil) {
+
+ self.brands = brands
+
+ self.catalogueTypes = catalogueTypes
+
+ self.fromDate = fromDate
+
+ self.templates = templates
+
+ self.toDate = toDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brands = try container.decode([String].self, forKey: .brands)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ catalogueTypes = try container.decode([String].self, forKey: .catalogueTypes)
+
+
+
+
+ do {
+ fromDate = try container.decode(String.self, forKey: .fromDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ templates = try container.decode([String].self, forKey: .templates)
+
+
+
+
+ do {
+ toDate = try container.decode(String.self, forKey: .toDate)
+
+ } 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(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(catalogueTypes, forKey: .catalogueTypes)
+
+
+
+
+ try? container.encodeIfPresent(fromDate, forKey: .fromDate)
+
+
+
+
+ try? container.encodeIfPresent(templates, forKey: .templates)
+
+
+
+
+ try? container.encodeIfPresent(toDate, forKey: .toDate)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductTemplateExportFilterRequest
+ Used By: Catalog
+ */
+
+ class ProductTemplateExportFilterRequest: Codable {
+
+
+ public var brands: [String]?
+
+ public var catalogueTypes: [String]
+
+ public var fromDate: String?
+
+ public var templates: [String]
+
+ public var toDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ case catalogueTypes = "catalogue_types"
+
+ case fromDate = "from_date"
+
+ case templates = "templates"
+
+ case toDate = "to_date"
+
+ }
+
+ public init(brands: [String]? = nil, catalogueTypes: [String], fromDate: String? = nil, templates: [String], toDate: String? = nil) {
+
+ self.brands = brands
+
+ self.catalogueTypes = catalogueTypes
+
+ self.fromDate = fromDate
+
+ self.templates = templates
+
+ self.toDate = toDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brands = try container.decode([String].self, forKey: .brands)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ catalogueTypes = try container.decode([String].self, forKey: .catalogueTypes)
+
+
+
+
+ do {
+ fromDate = try container.decode(String.self, forKey: .fromDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ templates = try container.decode([String].self, forKey: .templates)
+
+
+
+
+ do {
+ toDate = try container.decode(String.self, forKey: .toDate)
+
+ } 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(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(catalogueTypes, forKey: .catalogueTypes)
+
+
+
+
+ try? container.encodeIfPresent(fromDate, forKey: .fromDate)
+
+
+
+
+ try? container.encodeIfPresent(templates, forKey: .templates)
+
+
+
+
+ try? container.encodeIfPresent(toDate, forKey: .toDate)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 780379f97d..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductTemplateExportFilterRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,272 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductTemplateExportFilterRequestSchema
- Used By: Catalog
- */
-
- class ProductTemplateExportFilterRequestSchema: Codable {
-
-
- public var brands: [String]?
-
- public var catalogueTypes: [String]
-
- public var fromDate: String?
-
- public var templates: [String]
-
- public var toDate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case catalogueTypes = "catalogue_types"
-
- case fromDate = "from_date"
-
- case templates = "templates"
-
- case toDate = "to_date"
-
- }
-
- public init(brands: [String]? = nil, catalogueTypes: [String], fromDate: String? = nil, templates: [String], toDate: String? = nil) {
-
- self.brands = brands
-
- self.catalogueTypes = catalogueTypes
-
- self.fromDate = fromDate
-
- self.templates = templates
-
- self.toDate = toDate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([String].self, forKey: .brands)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- catalogueTypes = try container.decode([String].self, forKey: .catalogueTypes)
-
-
-
-
- do {
- fromDate = try container.decode(String.self, forKey: .fromDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- templates = try container.decode([String].self, forKey: .templates)
-
-
-
-
- do {
- toDate = try container.decode(String.self, forKey: .toDate)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(catalogueTypes, forKey: .catalogueTypes)
-
-
-
-
- try? container.encodeIfPresent(fromDate, forKey: .fromDate)
-
-
-
-
- try? container.encodeIfPresent(templates, forKey: .templates)
-
-
-
-
- try? container.encodeIfPresent(toDate, forKey: .toDate)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductTemplateExportFilterRequestSchema
- Used By: Catalog
- */
-
- class ProductTemplateExportFilterRequestSchema: Codable {
-
-
- public var brands: [String]?
-
- public var catalogueTypes: [String]
-
- public var fromDate: String?
-
- public var templates: [String]
-
- public var toDate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case catalogueTypes = "catalogue_types"
-
- case fromDate = "from_date"
-
- case templates = "templates"
-
- case toDate = "to_date"
-
- }
-
- public init(brands: [String]? = nil, catalogueTypes: [String], fromDate: String? = nil, templates: [String], toDate: String? = nil) {
-
- self.brands = brands
-
- self.catalogueTypes = catalogueTypes
-
- self.fromDate = fromDate
-
- self.templates = templates
-
- self.toDate = toDate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([String].self, forKey: .brands)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- catalogueTypes = try container.decode([String].self, forKey: .catalogueTypes)
-
-
-
-
- do {
- fromDate = try container.decode(String.self, forKey: .fromDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- templates = try container.decode([String].self, forKey: .templates)
-
-
-
-
- do {
- toDate = try container.decode(String.self, forKey: .toDate)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(catalogueTypes, forKey: .catalogueTypes)
-
-
-
-
- try? container.encodeIfPresent(fromDate, forKey: .fromDate)
-
-
-
-
- try? container.encodeIfPresent(templates, forKey: .templates)
-
-
-
-
- try? container.encodeIfPresent(toDate, forKey: .toDate)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..2c27bcee71
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseCatalogPlatformModel.swift
@@ -0,0 +1,502 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductTemplateExportResponse
+ Used By: Catalog
+ */
+
+ class ProductTemplateExportResponse: Codable {
+
+
+ public var completedOn: String?
+
+ public var createdBy: UserInfo1?
+
+ public var filters: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case completedOn = "completed_on"
+
+ case createdBy = "created_by"
+
+ case filters = "filters"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(completedOn: String? = nil, createdBy: UserInfo1? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String? = nil) {
+
+ self.completedOn = completedOn
+
+ self.createdBy = createdBy
+
+ self.filters = filters
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode([String: Any].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(completedOn, forKey: .completedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductTemplateExportResponse
+ Used By: Catalog
+ */
+
+ class ProductTemplateExportResponse: Codable {
+
+
+ public var completedOn: String?
+
+ public var createdBy: UserInfo1?
+
+ public var filters: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var notificationEmails: [String]?
+
+ public var sellerId: Int
+
+ public var status: String?
+
+ public var taskId: String
+
+ public var type: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case completedOn = "completed_on"
+
+ case createdBy = "created_by"
+
+ case filters = "filters"
+
+ case modifiedOn = "modified_on"
+
+ case notificationEmails = "notification_emails"
+
+ case sellerId = "seller_id"
+
+ case status = "status"
+
+ case taskId = "task_id"
+
+ case type = "type"
+
+ case url = "url"
+
+ }
+
+ public init(completedOn: String? = nil, createdBy: UserInfo1? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String? = nil) {
+
+ self.completedOn = completedOn
+
+ self.createdBy = createdBy
+
+ self.filters = filters
+
+ self.modifiedOn = modifiedOn
+
+ self.notificationEmails = notificationEmails
+
+ self.sellerId = sellerId
+
+ self.status = status
+
+ self.taskId = taskId
+
+ self.type = type
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode([String: Any].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ taskId = try container.decode(String.self, forKey: .taskId)
+
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(completedOn, forKey: .completedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(taskId, forKey: .taskId)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 757b4098c0..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductTemplateExportResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,502 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductTemplateExportResponseSchema
- Used By: Catalog
- */
-
- class ProductTemplateExportResponseSchema: Codable {
-
-
- public var completedOn: String?
-
- public var createdBy: UserInfo?
-
- public var filters: [String: Any]?
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var taskId: String
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case completedOn = "completed_on"
-
- case createdBy = "created_by"
-
- case filters = "filters"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case taskId = "task_id"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(completedOn: String? = nil, createdBy: UserInfo? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String? = nil) {
-
- self.completedOn = completedOn
-
- self.createdBy = createdBy
-
- self.filters = filters
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.taskId = taskId
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
- filters = try container.decode([String: Any].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(completedOn, forKey: .completedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductTemplateExportResponseSchema
- Used By: Catalog
- */
-
- class ProductTemplateExportResponseSchema: Codable {
-
-
- public var completedOn: String?
-
- public var createdBy: UserInfo?
-
- public var filters: [String: Any]?
-
- public var modifiedOn: String?
-
- public var notificationEmails: [String]?
-
- public var sellerId: Int
-
- public var status: String?
-
- public var taskId: String
-
- public var type: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case completedOn = "completed_on"
-
- case createdBy = "created_by"
-
- case filters = "filters"
-
- case modifiedOn = "modified_on"
-
- case notificationEmails = "notification_emails"
-
- case sellerId = "seller_id"
-
- case status = "status"
-
- case taskId = "task_id"
-
- case type = "type"
-
- case url = "url"
-
- }
-
- public init(completedOn: String? = nil, createdBy: UserInfo? = nil, filters: [String: Any]? = nil, modifiedOn: String? = nil, notificationEmails: [String]? = nil, sellerId: Int, status: String? = nil, taskId: String, type: String? = nil, url: String? = nil) {
-
- self.completedOn = completedOn
-
- self.createdBy = createdBy
-
- self.filters = filters
-
- self.modifiedOn = modifiedOn
-
- self.notificationEmails = notificationEmails
-
- self.sellerId = sellerId
-
- self.status = status
-
- self.taskId = taskId
-
- self.type = type
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
- filters = try container.decode([String: Any].self, forKey: .filters)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- taskId = try container.decode(String.self, forKey: .taskId)
-
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(completedOn, forKey: .completedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(taskId, forKey: .taskId)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ProductVariantsResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductVariantsResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..01aff1229b
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ProductVariantsResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ProductVariantsResponse
+ Used By: Catalog
+ */
+
+ class ProductVariantsResponse: Codable {
+
+
+ public var page: Page?
+
+ public var variants: [ProductVariants]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case variants = "variants"
+
+ }
+
+ public init(page: Page? = nil, variants: [ProductVariants]? = nil) {
+
+ self.page = page
+
+ self.variants = variants
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ variants = try container.decode([ProductVariants].self, forKey: .variants)
+
+ } 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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(variants, forKey: .variants)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ProductVariantsResponse
+ Used By: Catalog
+ */
+
+ class ProductVariantsResponse: Codable {
+
+
+ public var page: Page?
+
+ public var variants: [ProductVariants]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case variants = "variants"
+
+ }
+
+ public init(page: Page? = nil, variants: [ProductVariants]? = nil) {
+
+ self.page = page
+
+ self.variants = variants
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ variants = try container.decode([ProductVariants].self, forKey: .variants)
+
+ } 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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(variants, forKey: .variants)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ProductVariantsResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ProductVariantsResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index a8dfc024d0..0000000000
--- a/Sources/code/platform/Models/Catalog/ProductVariantsResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ProductVariantsResponseSchema
- Used By: Catalog
- */
-
- class ProductVariantsResponseSchema: Codable {
-
-
- public var page: Page?
-
- public var variants: [ProductVariants]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case variants = "variants"
-
- }
-
- public init(page: Page? = nil, variants: [ProductVariants]? = nil) {
-
- self.page = page
-
- self.variants = variants
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- variants = try container.decode([ProductVariants].self, forKey: .variants)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(variants, forKey: .variants)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ProductVariantsResponseSchema
- Used By: Catalog
- */
-
- class ProductVariantsResponseSchema: Codable {
-
-
- public var page: Page?
-
- public var variants: [ProductVariants]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case variants = "variants"
-
- }
-
- public init(page: Page? = nil, variants: [ProductVariants]? = nil) {
-
- self.page = page
-
- self.variants = variants
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- variants = try container.decode([ProductVariants].self, forKey: .variants)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(variants, forKey: .variants)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/RawProductCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/RawProductCatalogPlatformModel.swift
index 15cb22664d..02681f66db 100644
--- a/Sources/code/platform/Models/Catalog/RawProductCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/RawProductCatalogPlatformModel.swift
@@ -32,6 +32,8 @@ public extension PlatformClient.Catalog {
public var categoryUid: Int?
+ public var color: String?
+
public var companyId: Int?
public var countryOfOrigin: String?
@@ -88,7 +90,7 @@ public extension PlatformClient.Catalog {
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -100,7 +102,7 @@ public extension PlatformClient.Catalog {
public var productPublish: ProductPublished?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
@@ -114,7 +116,7 @@ public extension PlatformClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -136,8 +138,6 @@ public extension PlatformClient.Catalog {
public var storeIdList: [String]?
- public var action: String?
-
public enum CodingKeys: String, CodingKey {
@@ -161,6 +161,8 @@ public extension PlatformClient.Catalog {
case categoryUid = "category_uid"
+ case color = "color"
+
case companyId = "company_id"
case countryOfOrigin = "country_of_origin"
@@ -265,11 +267,9 @@ public extension PlatformClient.Catalog {
case storeIdList = "store_id_list"
- case action = "action"
-
}
- public init(action: String? = nil, allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [String]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, storeIdList: [String]? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [String]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, storeIdList: [String]? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -291,6 +291,8 @@ public extension PlatformClient.Catalog {
self.categoryUid = categoryUid
+ self.color = color
+
self.companyId = companyId
self.countryOfOrigin = countryOfOrigin
@@ -395,8 +397,6 @@ public extension PlatformClient.Catalog {
self.storeIdList = storeIdList
- self.action = action
-
}
required public init(from decoder: Decoder) throws {
@@ -523,6 +523,18 @@ public extension PlatformClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
companyId = try container.decode(Int.self, forKey: .companyId)
@@ -860,7 +872,7 @@ public extension PlatformClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -932,7 +944,7 @@ public extension PlatformClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1016,7 +1028,7 @@ public extension PlatformClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1146,18 +1158,6 @@ public extension PlatformClient.Catalog {
}
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } 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 {
@@ -1215,6 +1215,11 @@ public extension PlatformClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(companyId, forKey: .companyId)
@@ -1473,11 +1478,6 @@ public extension PlatformClient.Catalog {
try? container.encodeIfPresent(storeIdList, forKey: .storeIdList)
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
}
}
@@ -1514,6 +1514,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var categoryUid: Int?
+ public var color: String?
+
public var companyId: Int?
public var countryOfOrigin: String?
@@ -1570,7 +1572,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var name: String?
- public var netQuantity: NetQuantityResponseSchema?
+ public var netQuantity: NetQuantityResponse?
public var noOfBoxes: Int?
@@ -1582,7 +1584,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var productPublish: ProductPublished?
- public var returnConfig: ReturnConfigResponseSchema?
+ public var returnConfig: ReturnConfigResponse?
public var shortDescription: String?
@@ -1596,7 +1598,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var tags: [String]?
- public var taxIdentifier: TaxIdentifier?
+ public var taxIdentifier: [String: Any]?
public var teaserTag: [String: Any]?
@@ -1618,8 +1620,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var storeIdList: [String]?
- public var action: String?
-
public enum CodingKeys: String, CodingKey {
@@ -1643,6 +1643,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
case categoryUid = "category_uid"
+ case color = "color"
+
case companyId = "company_id"
case countryOfOrigin = "country_of_origin"
@@ -1747,11 +1749,9 @@ public extension PlatformClient.ApplicationClient.Catalog {
case storeIdList = "store_id_list"
- case action = "action"
-
}
- public init(action: String? = nil, allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [String]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponseSchema? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponseSchema? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, storeIdList: [String]? = nil, tags: [String]? = nil, taxIdentifier: TaxIdentifier? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+ public init(allCompanyIds: [Int]? = nil, allIdentifiers: [String]? = nil, allSizes: [[String: Any]]? = nil, attributes: [String: Any]? = nil, brand: Brand? = nil, brandUid: Int? = nil, category: [String: Any]? = nil, categorySlug: String? = nil, categoryUid: Int? = nil, color: String? = nil, companyId: Int? = nil, countryOfOrigin: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, currency: String? = nil, customOrder: [String: Any]? = nil, departments: [Int]? = nil, description: String? = nil, highlights: [String]? = nil, hsnCode: String? = nil, id: String? = nil, images: [String]? = nil, imageNature: String? = nil, isActive: Bool? = nil, isDependent: Bool? = nil, isExpirable: Bool? = nil, isImageLessProduct: Bool? = nil, isPhysical: Bool? = nil, isSet: Bool? = nil, itemCode: String? = nil, itemType: String? = nil, l3Mapping: [String]? = nil, media: [Media]? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, moq: [String: Any]? = nil, multiSize: Bool? = nil, name: String? = nil, netQuantity: NetQuantityResponse? = nil, noOfBoxes: Int? = nil, pending: String? = nil, primaryColor: String? = nil, productGroupTag: [String]? = nil, productPublish: ProductPublished? = nil, returnConfig: ReturnConfigResponse? = nil, shortDescription: String? = nil, sizes: [[String: Any]]? = nil, sizeGuide: String? = nil, slug: String? = nil, stage: String? = nil, storeIdList: [String]? = nil, tags: [String]? = nil, taxIdentifier: [String: Any]? = nil, teaserTag: [String: Any]? = nil, templateTag: String? = nil, trader: [Trader]? = nil, uid: Int? = nil, variants: [String: Any]? = nil, variantGroup: [String: Any]? = nil, variantMedia: [String: Any]? = nil, verifiedBy: VerifiedBy? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
self.customJson = customJson
@@ -1773,6 +1773,8 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.categoryUid = categoryUid
+ self.color = color
+
self.companyId = companyId
self.countryOfOrigin = countryOfOrigin
@@ -1877,8 +1879,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
self.storeIdList = storeIdList
- self.action = action
-
}
required public init(from decoder: Decoder) throws {
@@ -2005,6 +2005,18 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ 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 {
+
+ }
+
+
+
do {
companyId = try container.decode(Int.self, forKey: .companyId)
@@ -2342,7 +2354,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- netQuantity = try container.decode(NetQuantityResponseSchema.self, forKey: .netQuantity)
+ netQuantity = try container.decode(NetQuantityResponse.self, forKey: .netQuantity)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2414,7 +2426,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- returnConfig = try container.decode(ReturnConfigResponseSchema.self, forKey: .returnConfig)
+ returnConfig = try container.decode(ReturnConfigResponse.self, forKey: .returnConfig)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2498,7 +2510,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- taxIdentifier = try container.decode(TaxIdentifier.self, forKey: .taxIdentifier)
+ taxIdentifier = try container.decode([String: Any].self, forKey: .taxIdentifier)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2628,18 +2640,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } 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 {
@@ -2697,6 +2697,11 @@ public extension PlatformClient.ApplicationClient.Catalog {
+ try? container.encodeIfPresent(color, forKey: .color)
+
+
+
+
try? container.encodeIfPresent(companyId, forKey: .companyId)
@@ -2955,11 +2960,6 @@ public extension PlatformClient.ApplicationClient.Catalog {
try? container.encodeIfPresent(storeIdList, forKey: .storeIdList)
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
}
}
diff --git a/Sources/code/platform/Models/Catalog/RawProductListingResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/RawProductListingResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e9191c7e6e
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/RawProductListingResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: RawProductListingResponse
+ Used By: Catalog
+ */
+
+ class RawProductListingResponse: Codable {
+
+
+ public var items: [RawProduct]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [RawProduct]? = nil, page: Page? = nil) {
+
+ 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([RawProduct].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: RawProductListingResponse
+ Used By: Catalog
+ */
+
+ class RawProductListingResponse: Codable {
+
+
+ public var items: [RawProduct]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [RawProduct]? = nil, page: Page? = nil) {
+
+ 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([RawProduct].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/RawProductListingResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/RawProductListingResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 858d203a4f..0000000000
--- a/Sources/code/platform/Models/Catalog/RawProductListingResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: RawProductListingResponseSchema
- Used By: Catalog
- */
-
- class RawProductListingResponseSchema: Codable {
-
-
- public var items: [RawProduct]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [RawProduct]? = nil, page: Page? = nil) {
-
- 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([RawProduct].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: RawProductListingResponseSchema
- Used By: Catalog
- */
-
- class RawProductListingResponseSchema: Codable {
-
-
- public var items: [RawProduct]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [RawProduct]? = nil, page: Page? = nil) {
-
- 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([RawProduct].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/RequestUserSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/RequestUserSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 24b22959d5..0000000000
--- a/Sources/code/platform/Models/Catalog/RequestUserSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: RequestUserSchema
- Used By: Catalog
- */
-
- class RequestUserSchema: Codable {
-
-
- public var id: String?
-
- public var contact: String?
-
- public var uid: String?
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case contact = "contact"
-
- case uid = "uid"
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(contact: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.contact = contact
-
- self.uid = uid
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: RequestUserSchema
- Used By: Catalog
- */
-
- class RequestUserSchema: Codable {
-
-
- public var id: String?
-
- public var contact: String?
-
- public var uid: String?
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case contact = "contact"
-
- case uid = "uid"
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(contact: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.contact = contact
-
- self.uid = uid
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/RequestUserSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/RequestUserSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..3809c06862
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/RequestUserSerializerCatalogPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: RequestUserSerializer
+ Used By: Catalog
+ */
+
+ class RequestUserSerializer: Codable {
+
+
+ public var id: String?
+
+ public var contact: String?
+
+ public var uid: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case contact = "contact"
+
+ case uid = "uid"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.contact = contact
+
+ self.uid = uid
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: RequestUserSerializer
+ Used By: Catalog
+ */
+
+ class RequestUserSerializer: Codable {
+
+
+ public var id: String?
+
+ public var contact: String?
+
+ public var uid: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case contact = "contact"
+
+ case uid = "uid"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.contact = contact
+
+ self.uid = uid
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ReturnConfig1CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ReturnConfig1CatalogPlatformModel.swift
new file mode 100644
index 0000000000..67787b6f60
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ReturnConfig1CatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ReturnConfig1
+ Used By: Catalog
+ */
+
+ class ReturnConfig1: Codable {
+
+
+ public var returnable: Bool?
+
+ public var time: Int?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ time = try container.decode(Int.self, forKey: .time)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ReturnConfig1
+ Used By: Catalog
+ */
+
+ class ReturnConfig1: Codable {
+
+
+ public var returnable: Bool?
+
+ public var time: Int?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ time = try container.decode(Int.self, forKey: .time)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ReturnConfigResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ReturnConfigResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..83ad952a82
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/ReturnConfigResponseCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: ReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class ReturnConfigResponse: Codable {
+
+
+ public var returnable: Bool?
+
+ public var time: Int?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ time = try container.decode(Int.self, forKey: .time)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: ReturnConfigResponse
+ Used By: Catalog
+ */
+
+ class ReturnConfigResponse: Codable {
+
+
+ public var returnable: Bool?
+
+ public var time: Int?
+
+ public var unit: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case returnable = "returnable"
+
+ case time = "time"
+
+ case unit = "unit"
+
+ }
+
+ public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
+
+ self.returnable = returnable
+
+ self.time = time
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ returnable = try container.decode(Bool.self, forKey: .returnable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ time = try container.decode(Int.self, forKey: .time)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(returnable, forKey: .returnable)
+
+
+
+
+ try? container.encodeIfPresent(time, forKey: .time)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ReturnConfigResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ReturnConfigResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 38eb37192a..0000000000
--- a/Sources/code/platform/Models/Catalog/ReturnConfigResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class ReturnConfigResponseSchema: Codable {
-
-
- public var returnable: Bool?
-
- public var time: Int?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- time = try container.decode(Int.self, forKey: .time)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ReturnConfigResponseSchema
- Used By: Catalog
- */
-
- class ReturnConfigResponseSchema: Codable {
-
-
- public var returnable: Bool?
-
- public var time: Int?
-
- public var unit: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case returnable = "returnable"
-
- case time = "time"
-
- case unit = "unit"
-
- }
-
- public init(returnable: Bool? = nil, time: Int? = nil, unit: String? = nil) {
-
- self.returnable = returnable
-
- self.time = time
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- returnable = try container.decode(Bool.self, forKey: .returnable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- time = try container.decode(Int.self, forKey: .time)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(returnable, forKey: .returnable)
-
-
-
-
- try? container.encodeIfPresent(time, forKey: .time)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SingleCategoryResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SingleCategoryResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..0a8f774e70
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/SingleCategoryResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: SingleCategoryResponse
+ Used By: Catalog
+ */
+
+ class SingleCategoryResponse: Codable {
+
+
+ public var data: Category?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: Category? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(Category.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: SingleCategoryResponse
+ Used By: Catalog
+ */
+
+ class SingleCategoryResponse: Codable {
+
+
+ public var data: Category?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: Category? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(Category.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/SingleCategoryResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SingleCategoryResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index be3c096967..0000000000
--- a/Sources/code/platform/Models/Catalog/SingleCategoryResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SingleCategoryResponseSchema
- Used By: Catalog
- */
-
- class SingleCategoryResponseSchema: Codable {
-
-
- public var data: Category?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: Category? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(Category.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SingleCategoryResponseSchema
- Used By: Catalog
- */
-
- class SingleCategoryResponseSchema: Codable {
-
-
- public var data: Category?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: Category? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(Category.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SingleProductResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SingleProductResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..93b8abe460
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/SingleProductResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: SingleProductResponse
+ Used By: Catalog
+ */
+
+ class SingleProductResponse: Codable {
+
+
+ public var data: ProductSchemaV2?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: ProductSchemaV2? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(ProductSchemaV2.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: SingleProductResponse
+ Used By: Catalog
+ */
+
+ class SingleProductResponse: Codable {
+
+
+ public var data: ProductSchemaV2?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: ProductSchemaV2? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(ProductSchemaV2.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/SingleProductResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SingleProductResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index c27a3a0636..0000000000
--- a/Sources/code/platform/Models/Catalog/SingleProductResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SingleProductResponseSchema
- Used By: Catalog
- */
-
- class SingleProductResponseSchema: Codable {
-
-
- public var data: ProductSchemaV2?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: ProductSchemaV2? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(ProductSchemaV2.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SingleProductResponseSchema
- Used By: Catalog
- */
-
- class SingleProductResponseSchema: Codable {
-
-
- public var data: ProductSchemaV2?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: ProductSchemaV2? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(ProductSchemaV2.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SizeDetailsCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SizeDetailsCatalogPlatformModel.swift
deleted file mode 100644
index 7baa8347ec..0000000000
--- a/Sources/code/platform/Models/Catalog/SizeDetailsCatalogPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SizeDetails
- Used By: Catalog
- */
-
- class SizeDetails: Codable {
-
-
- public var size: String?
-
- public var storeCount: Int?
-
- public var sellableQuantity: Int?
-
- public var sellable: Bool?
-
- public var sizePriority: Int?
-
- public var identifiers: [Identifier]?
-
- public var price: [String: Any]?
-
- public var sellerIdentifier: String?
-
- public var priceTransfer: Double?
-
- public var trackInventory: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case size = "size"
-
- case storeCount = "store_count"
-
- case sellableQuantity = "sellable_quantity"
-
- case sellable = "sellable"
-
- case sizePriority = "size_priority"
-
- case identifiers = "identifiers"
-
- case price = "price"
-
- case sellerIdentifier = "seller_identifier"
-
- case priceTransfer = "price_transfer"
-
- case trackInventory = "track_inventory"
-
- }
-
- public init(identifiers: [Identifier]? = nil, price: [String: Any]? = nil, priceTransfer: Double? = nil, sellable: Bool? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, sizePriority: Int? = nil, storeCount: Int? = nil, trackInventory: Bool? = nil) {
-
- self.size = size
-
- self.storeCount = storeCount
-
- self.sellableQuantity = sellableQuantity
-
- self.sellable = sellable
-
- self.sizePriority = sizePriority
-
- self.identifiers = identifiers
-
- self.price = price
-
- self.sellerIdentifier = sellerIdentifier
-
- self.priceTransfer = priceTransfer
-
- self.trackInventory = trackInventory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- storeCount = try container.decode(Int.self, forKey: .storeCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sizePriority = try container.decode(Int.self, forKey: .sizePriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifiers = try container.decode([Identifier].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- price = try container.decode([String: Any].self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } 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(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(storeCount, forKey: .storeCount)
-
-
-
-
- try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(sizePriority, forKey: .sizePriority)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SizeDetails
- Used By: Catalog
- */
-
- class SizeDetails: Codable {
-
-
- public var size: String?
-
- public var storeCount: Int?
-
- public var sellableQuantity: Int?
-
- public var sellable: Bool?
-
- public var sizePriority: Int?
-
- public var identifiers: [Identifier]?
-
- public var price: [String: Any]?
-
- public var sellerIdentifier: String?
-
- public var priceTransfer: Double?
-
- public var trackInventory: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case size = "size"
-
- case storeCount = "store_count"
-
- case sellableQuantity = "sellable_quantity"
-
- case sellable = "sellable"
-
- case sizePriority = "size_priority"
-
- case identifiers = "identifiers"
-
- case price = "price"
-
- case sellerIdentifier = "seller_identifier"
-
- case priceTransfer = "price_transfer"
-
- case trackInventory = "track_inventory"
-
- }
-
- public init(identifiers: [Identifier]? = nil, price: [String: Any]? = nil, priceTransfer: Double? = nil, sellable: Bool? = nil, sellableQuantity: Int? = nil, sellerIdentifier: String? = nil, size: String? = nil, sizePriority: Int? = nil, storeCount: Int? = nil, trackInventory: Bool? = nil) {
-
- self.size = size
-
- self.storeCount = storeCount
-
- self.sellableQuantity = sellableQuantity
-
- self.sellable = sellable
-
- self.sizePriority = sizePriority
-
- self.identifiers = identifiers
-
- self.price = price
-
- self.sellerIdentifier = sellerIdentifier
-
- self.priceTransfer = priceTransfer
-
- self.trackInventory = trackInventory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- storeCount = try container.decode(Int.self, forKey: .storeCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellableQuantity = try container.decode(Int.self, forKey: .sellableQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- sizePriority = try container.decode(Int.self, forKey: .sizePriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifiers = try container.decode([Identifier].self, forKey: .identifiers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- price = try container.decode([String: Any].self, forKey: .price)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } 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(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(storeCount, forKey: .storeCount)
-
-
-
-
- try? container.encodeIfPresent(sellableQuantity, forKey: .sellableQuantity)
-
-
-
-
- try? container.encodeIfPresent(sellable, forKey: .sellable)
-
-
-
-
- try? container.encodeIfPresent(sizePriority, forKey: .sizePriority)
-
-
-
-
- try? container.encodeIfPresent(identifiers, forKey: .identifiers)
-
-
-
-
- try? container.encodeIfPresent(price, forKey: .price)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SizeGuideItemCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SizeGuideItemCatalogPlatformModel.swift
deleted file mode 100644
index 019d9a00c0..0000000000
--- a/Sources/code/platform/Models/Catalog/SizeGuideItemCatalogPlatformModel.swift
+++ /dev/null
@@ -1,760 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SizeGuideItem
- Used By: Catalog
- */
-
- class SizeGuideItem: Codable {
-
-
- public var active: Bool?
-
- public var brandId: Int?
-
- public var companyId: Int?
-
- public var createdBy: CreatedBySchema?
-
- public var createdOn: String?
-
- public var guide: Guide?
-
- public var id: String?
-
- public var modifiedBy: ModifiedBySchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var subtitle: String?
-
- public var tag: String?
-
- public var title: String?
-
- public var description: String?
-
- public var image: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case active = "active"
-
- case brandId = "brand_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case guide = "guide"
-
- case id = "id"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case subtitle = "subtitle"
-
- case tag = "tag"
-
- case title = "title"
-
- case description = "description"
-
- case image = "image"
-
- }
-
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
-
- self.active = active
-
- self.brandId = brandId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.guide = guide
-
- self.id = id
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.subtitle = subtitle
-
- self.tag = tag
-
- self.title = title
-
- self.description = description
-
- self.image = image
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(guide, forKey: .guide)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SizeGuideItem
- Used By: Catalog
- */
-
- class SizeGuideItem: Codable {
-
-
- public var active: Bool?
-
- public var brandId: Int?
-
- public var companyId: Int?
-
- public var createdBy: CreatedBySchema?
-
- public var createdOn: String?
-
- public var guide: Guide?
-
- public var id: String?
-
- public var modifiedBy: ModifiedBySchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var subtitle: String?
-
- public var tag: String?
-
- public var title: String?
-
- public var description: String?
-
- public var image: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case active = "active"
-
- case brandId = "brand_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case guide = "guide"
-
- case id = "id"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case subtitle = "subtitle"
-
- case tag = "tag"
-
- case title = "title"
-
- case description = "description"
-
- case image = "image"
-
- }
-
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
-
- self.active = active
-
- self.brandId = brandId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.guide = guide
-
- self.id = id
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.subtitle = subtitle
-
- self.tag = tag
-
- self.title = title
-
- self.description = description
-
- self.image = image
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(guide, forKey: .guide)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SizeGuideResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SizeGuideResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..bec4250fba
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/SizeGuideResponseCatalogPlatformModel.swift
@@ -0,0 +1,668 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: SizeGuideResponse
+ Used By: Catalog
+ */
+
+ class SizeGuideResponse: Codable {
+
+
+ public var active: Bool?
+
+ public var brandId: Int?
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var guide: [String: Any]?
+
+ public var id: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var subtitle: String?
+
+ public var tag: String?
+
+ public var title: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case active = "active"
+
+ case brandId = "brand_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case guide = "guide"
+
+ case id = "id"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case subtitle = "subtitle"
+
+ case tag = "tag"
+
+ case title = "title"
+
+ }
+
+ public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, guide: [String: Any]? = nil, id: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
+
+ self.active = active
+
+ self.brandId = brandId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.guide = guide
+
+ self.id = id
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.subtitle = subtitle
+
+ self.tag = tag
+
+ self.title = title
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ guide = try container.decode([String: Any].self, forKey: .guide)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(active, forKey: .active)
+
+
+
+
+ try? container.encodeIfPresent(brandId, forKey: .brandId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(guide, forKey: .guide)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(subtitle, forKey: .subtitle)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: SizeGuideResponse
+ Used By: Catalog
+ */
+
+ class SizeGuideResponse: Codable {
+
+
+ public var active: Bool?
+
+ public var brandId: Int?
+
+ public var companyId: Int?
+
+ public var createdBy: [String: Any]?
+
+ public var createdOn: String?
+
+ public var guide: [String: Any]?
+
+ public var id: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var subtitle: String?
+
+ public var tag: String?
+
+ public var title: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case active = "active"
+
+ case brandId = "brand_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case guide = "guide"
+
+ case id = "id"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case subtitle = "subtitle"
+
+ case tag = "tag"
+
+ case title = "title"
+
+ }
+
+ public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, guide: [String: Any]? = nil, id: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
+
+ self.active = active
+
+ self.brandId = brandId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.guide = guide
+
+ self.id = id
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.subtitle = subtitle
+
+ self.tag = tag
+
+ self.title = title
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+ guide = try container.decode([String: Any].self, forKey: .guide)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(active, forKey: .active)
+
+
+
+
+ try? container.encodeIfPresent(brandId, forKey: .brandId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(guide, forKey: .guide)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(subtitle, forKey: .subtitle)
+
+
+
+
+ try? container.encodeIfPresent(tag, forKey: .tag)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/SizeGuideResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SizeGuideResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 96039966af..0000000000
--- a/Sources/code/platform/Models/Catalog/SizeGuideResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,714 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SizeGuideResponseSchema
- Used By: Catalog
- */
-
- class SizeGuideResponseSchema: Codable {
-
-
- public var active: Bool?
-
- public var brandId: Int?
-
- public var companyId: Int?
-
- public var createdBy: CreatedBySchema?
-
- public var createdOn: String?
-
- public var guide: [String: Any]?
-
- public var id: String?
-
- public var image: String?
-
- public var modifiedBy: ModifiedBySchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var subtitle: String?
-
- public var tag: String?
-
- public var title: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case active = "active"
-
- case brandId = "brand_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case guide = "guide"
-
- case id = "id"
-
- case image = "image"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case subtitle = "subtitle"
-
- case tag = "tag"
-
- case title = "title"
-
- }
-
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, guide: [String: Any]? = nil, id: String? = nil, image: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
-
- self.active = active
-
- self.brandId = brandId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.guide = guide
-
- self.id = id
-
- self.image = image
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.subtitle = subtitle
-
- self.tag = tag
-
- self.title = title
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } 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 {
- guide = try container.decode([String: Any].self, forKey: .guide)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(guide, forKey: .guide)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SizeGuideResponseSchema
- Used By: Catalog
- */
-
- class SizeGuideResponseSchema: Codable {
-
-
- public var active: Bool?
-
- public var brandId: Int?
-
- public var companyId: Int?
-
- public var createdBy: CreatedBySchema?
-
- public var createdOn: String?
-
- public var guide: [String: Any]?
-
- public var id: String?
-
- public var image: String?
-
- public var modifiedBy: ModifiedBySchema?
-
- public var modifiedOn: String?
-
- public var name: String?
-
- public var subtitle: String?
-
- public var tag: String?
-
- public var title: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case active = "active"
-
- case brandId = "brand_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case guide = "guide"
-
- case id = "id"
-
- case image = "image"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case subtitle = "subtitle"
-
- case tag = "tag"
-
- case title = "title"
-
- }
-
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: CreatedBySchema? = nil, createdOn: String? = nil, guide: [String: Any]? = nil, id: String? = nil, image: String? = nil, modifiedBy: ModifiedBySchema? = nil, modifiedOn: String? = nil, name: String? = nil, subtitle: String? = nil, tag: String? = nil, title: String? = nil) {
-
- self.active = active
-
- self.brandId = brandId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.guide = guide
-
- self.id = id
-
- self.image = image
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.subtitle = subtitle
-
- self.tag = tag
-
- self.title = title
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedBySchema.self, forKey: .createdBy)
-
- } 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 {
- guide = try container.decode([String: Any].self, forKey: .guide)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedBySchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(guide, forKey: .guide)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(subtitle, forKey: .subtitle)
-
-
-
-
- try? container.encodeIfPresent(tag, forKey: .tag)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/StoreAssignResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/StoreAssignResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e6203f31de
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/StoreAssignResponseCatalogPlatformModel.swift
@@ -0,0 +1,782 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: StoreAssignResponse
+ Used By: Catalog
+ */
+
+ class StoreAssignResponse: Codable {
+
+
+ public var id: String?
+
+ public var articleAssignment: ArticleAssignment1
+
+ public var companyId: Int?
+
+ public var groupId: String?
+
+ public var index: Int?
+
+ public var itemId: Int
+
+ public var meta: [String: Any]?
+
+ public var priceEffective: Int?
+
+ public var priceMarked: Int?
+
+ public var quantity: Int
+
+ public var sCity: String?
+
+ public var size: String
+
+ public var status: Bool
+
+ public var storeId: Int?
+
+ public var storePincode: Int?
+
+ public var strategyWiseListing: [[String: Any]]?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case articleAssignment = "article_assignment"
+
+ case companyId = "company_id"
+
+ case groupId = "group_id"
+
+ case index = "index"
+
+ case itemId = "item_id"
+
+ case meta = "meta"
+
+ case priceEffective = "price_effective"
+
+ case priceMarked = "price_marked"
+
+ case quantity = "quantity"
+
+ case sCity = "s_city"
+
+ case size = "size"
+
+ case status = "status"
+
+ case storeId = "store_id"
+
+ case storePincode = "store_pincode"
+
+ case strategyWiseListing = "strategy_wise_listing"
+
+ case uid = "uid"
+
+ }
+
+ public init(articleAssignment: ArticleAssignment1, companyId: Int? = nil, groupId: String? = nil, index: Int? = nil, itemId: Int, meta: [String: Any]? = nil, priceEffective: Int? = nil, priceMarked: Int? = nil, quantity: Int, size: String, status: Bool, storeId: Int? = nil, storePincode: Int? = nil, strategyWiseListing: [[String: Any]]? = nil, sCity: String? = nil, uid: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.articleAssignment = articleAssignment
+
+ self.companyId = companyId
+
+ self.groupId = groupId
+
+ self.index = index
+
+ self.itemId = itemId
+
+ self.meta = meta
+
+ self.priceEffective = priceEffective
+
+ self.priceMarked = priceMarked
+
+ self.quantity = quantity
+
+ self.sCity = sCity
+
+ self.size = size
+
+ self.status = status
+
+ self.storeId = storeId
+
+ self.storePincode = storePincode
+
+ self.strategyWiseListing = strategyWiseListing
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ articleAssignment = try container.decode(ArticleAssignment1.self, forKey: .articleAssignment)
+
+
+
+
+ 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 {
+ groupId = try container.decode(String.self, forKey: .groupId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ index = try container.decode(Int.self, forKey: .index)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceEffective = try container.decode(Int.self, forKey: .priceEffective)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceMarked = try container.decode(Int.self, forKey: .priceMarked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ quantity = try container.decode(Int.self, forKey: .quantity)
+
+
+
+
+ do {
+ sCity = try container.decode(String.self, forKey: .sCity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ status = try container.decode(Bool.self, forKey: .status)
+
+
+
+
+ do {
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storePincode = try container.decode(Int.self, forKey: .storePincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ strategyWiseListing = try container.decode([[String: Any]].self, forKey: .strategyWiseListing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(groupId, forKey: .groupId)
+
+
+
+
+ try? container.encodeIfPresent(index, forKey: .index)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(sCity, forKey: .sCity)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(storePincode, forKey: .storePincode)
+
+
+
+
+ try? container.encodeIfPresent(strategyWiseListing, forKey: .strategyWiseListing)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: StoreAssignResponse
+ Used By: Catalog
+ */
+
+ class StoreAssignResponse: Codable {
+
+
+ public var id: String?
+
+ public var articleAssignment: ArticleAssignment1
+
+ public var companyId: Int?
+
+ public var groupId: String?
+
+ public var index: Int?
+
+ public var itemId: Int
+
+ public var meta: [String: Any]?
+
+ public var priceEffective: Int?
+
+ public var priceMarked: Int?
+
+ public var quantity: Int
+
+ public var sCity: String?
+
+ public var size: String
+
+ public var status: Bool
+
+ public var storeId: Int?
+
+ public var storePincode: Int?
+
+ public var strategyWiseListing: [[String: Any]]?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case articleAssignment = "article_assignment"
+
+ case companyId = "company_id"
+
+ case groupId = "group_id"
+
+ case index = "index"
+
+ case itemId = "item_id"
+
+ case meta = "meta"
+
+ case priceEffective = "price_effective"
+
+ case priceMarked = "price_marked"
+
+ case quantity = "quantity"
+
+ case sCity = "s_city"
+
+ case size = "size"
+
+ case status = "status"
+
+ case storeId = "store_id"
+
+ case storePincode = "store_pincode"
+
+ case strategyWiseListing = "strategy_wise_listing"
+
+ case uid = "uid"
+
+ }
+
+ public init(articleAssignment: ArticleAssignment1, companyId: Int? = nil, groupId: String? = nil, index: Int? = nil, itemId: Int, meta: [String: Any]? = nil, priceEffective: Int? = nil, priceMarked: Int? = nil, quantity: Int, size: String, status: Bool, storeId: Int? = nil, storePincode: Int? = nil, strategyWiseListing: [[String: Any]]? = nil, sCity: String? = nil, uid: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.articleAssignment = articleAssignment
+
+ self.companyId = companyId
+
+ self.groupId = groupId
+
+ self.index = index
+
+ self.itemId = itemId
+
+ self.meta = meta
+
+ self.priceEffective = priceEffective
+
+ self.priceMarked = priceMarked
+
+ self.quantity = quantity
+
+ self.sCity = sCity
+
+ self.size = size
+
+ self.status = status
+
+ self.storeId = storeId
+
+ self.storePincode = storePincode
+
+ self.strategyWiseListing = strategyWiseListing
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ articleAssignment = try container.decode(ArticleAssignment1.self, forKey: .articleAssignment)
+
+
+
+
+ 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 {
+ groupId = try container.decode(String.self, forKey: .groupId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ index = try container.decode(Int.self, forKey: .index)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceEffective = try container.decode(Int.self, forKey: .priceEffective)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ priceMarked = try container.decode(Int.self, forKey: .priceMarked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ quantity = try container.decode(Int.self, forKey: .quantity)
+
+
+
+
+ do {
+ sCity = try container.decode(String.self, forKey: .sCity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ status = try container.decode(Bool.self, forKey: .status)
+
+
+
+
+ do {
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storePincode = try container.decode(Int.self, forKey: .storePincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ strategyWiseListing = try container.decode([[String: Any]].self, forKey: .strategyWiseListing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(groupId, forKey: .groupId)
+
+
+
+
+ try? container.encodeIfPresent(index, forKey: .index)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(sCity, forKey: .sCity)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(storePincode, forKey: .storePincode)
+
+
+
+
+ try? container.encodeIfPresent(strategyWiseListing, forKey: .strategyWiseListing)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/StoreAssignResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/StoreAssignResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 0d4ba052dc..0000000000
--- a/Sources/code/platform/Models/Catalog/StoreAssignResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,782 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: StoreAssignResponseSchema
- Used By: Catalog
- */
-
- class StoreAssignResponseSchema: Codable {
-
-
- public var id: String?
-
- public var articleAssignment: ArticleAssignment1
-
- public var companyId: Int?
-
- public var groupId: String?
-
- public var index: Int?
-
- public var itemId: Int
-
- public var meta: [String: Any]?
-
- public var priceEffective: Int?
-
- public var priceMarked: Int?
-
- public var quantity: Int
-
- public var sCity: String?
-
- public var size: String
-
- public var status: Bool
-
- public var storeId: Int?
-
- public var storePincode: Int?
-
- public var strategyWiseListing: [[String: Any]]?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case articleAssignment = "article_assignment"
-
- case companyId = "company_id"
-
- case groupId = "group_id"
-
- case index = "index"
-
- case itemId = "item_id"
-
- case meta = "meta"
-
- case priceEffective = "price_effective"
-
- case priceMarked = "price_marked"
-
- case quantity = "quantity"
-
- case sCity = "s_city"
-
- case size = "size"
-
- case status = "status"
-
- case storeId = "store_id"
-
- case storePincode = "store_pincode"
-
- case strategyWiseListing = "strategy_wise_listing"
-
- case uid = "uid"
-
- }
-
- public init(articleAssignment: ArticleAssignment1, companyId: Int? = nil, groupId: String? = nil, index: Int? = nil, itemId: Int, meta: [String: Any]? = nil, priceEffective: Int? = nil, priceMarked: Int? = nil, quantity: Int, size: String, status: Bool, storeId: Int? = nil, storePincode: Int? = nil, strategyWiseListing: [[String: Any]]? = nil, sCity: String? = nil, uid: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.articleAssignment = articleAssignment
-
- self.companyId = companyId
-
- self.groupId = groupId
-
- self.index = index
-
- self.itemId = itemId
-
- self.meta = meta
-
- self.priceEffective = priceEffective
-
- self.priceMarked = priceMarked
-
- self.quantity = quantity
-
- self.sCity = sCity
-
- self.size = size
-
- self.status = status
-
- self.storeId = storeId
-
- self.storePincode = storePincode
-
- self.strategyWiseListing = strategyWiseListing
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- articleAssignment = try container.decode(ArticleAssignment1.self, forKey: .articleAssignment)
-
-
-
-
- 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 {
- groupId = try container.decode(String.self, forKey: .groupId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- index = try container.decode(Int.self, forKey: .index)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Int.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Int.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- do {
- sCity = try container.decode(String.self, forKey: .sCity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- status = try container.decode(Bool.self, forKey: .status)
-
-
-
-
- do {
- storeId = try container.decode(Int.self, forKey: .storeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storePincode = try container.decode(Int.self, forKey: .storePincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- strategyWiseListing = try container.decode([[String: Any]].self, forKey: .strategyWiseListing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(groupId, forKey: .groupId)
-
-
-
-
- try? container.encodeIfPresent(index, forKey: .index)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(sCity, forKey: .sCity)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(storePincode, forKey: .storePincode)
-
-
-
-
- try? container.encodeIfPresent(strategyWiseListing, forKey: .strategyWiseListing)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: StoreAssignResponseSchema
- Used By: Catalog
- */
-
- class StoreAssignResponseSchema: Codable {
-
-
- public var id: String?
-
- public var articleAssignment: ArticleAssignment1
-
- public var companyId: Int?
-
- public var groupId: String?
-
- public var index: Int?
-
- public var itemId: Int
-
- public var meta: [String: Any]?
-
- public var priceEffective: Int?
-
- public var priceMarked: Int?
-
- public var quantity: Int
-
- public var sCity: String?
-
- public var size: String
-
- public var status: Bool
-
- public var storeId: Int?
-
- public var storePincode: Int?
-
- public var strategyWiseListing: [[String: Any]]?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case articleAssignment = "article_assignment"
-
- case companyId = "company_id"
-
- case groupId = "group_id"
-
- case index = "index"
-
- case itemId = "item_id"
-
- case meta = "meta"
-
- case priceEffective = "price_effective"
-
- case priceMarked = "price_marked"
-
- case quantity = "quantity"
-
- case sCity = "s_city"
-
- case size = "size"
-
- case status = "status"
-
- case storeId = "store_id"
-
- case storePincode = "store_pincode"
-
- case strategyWiseListing = "strategy_wise_listing"
-
- case uid = "uid"
-
- }
-
- public init(articleAssignment: ArticleAssignment1, companyId: Int? = nil, groupId: String? = nil, index: Int? = nil, itemId: Int, meta: [String: Any]? = nil, priceEffective: Int? = nil, priceMarked: Int? = nil, quantity: Int, size: String, status: Bool, storeId: Int? = nil, storePincode: Int? = nil, strategyWiseListing: [[String: Any]]? = nil, sCity: String? = nil, uid: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.articleAssignment = articleAssignment
-
- self.companyId = companyId
-
- self.groupId = groupId
-
- self.index = index
-
- self.itemId = itemId
-
- self.meta = meta
-
- self.priceEffective = priceEffective
-
- self.priceMarked = priceMarked
-
- self.quantity = quantity
-
- self.sCity = sCity
-
- self.size = size
-
- self.status = status
-
- self.storeId = storeId
-
- self.storePincode = storePincode
-
- self.strategyWiseListing = strategyWiseListing
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- articleAssignment = try container.decode(ArticleAssignment1.self, forKey: .articleAssignment)
-
-
-
-
- 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 {
- groupId = try container.decode(String.self, forKey: .groupId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- index = try container.decode(Int.self, forKey: .index)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Int.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Int.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- do {
- sCity = try container.decode(String.self, forKey: .sCity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- status = try container.decode(Bool.self, forKey: .status)
-
-
-
-
- do {
- storeId = try container.decode(Int.self, forKey: .storeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storePincode = try container.decode(Int.self, forKey: .storePincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- strategyWiseListing = try container.decode([[String: Any]].self, forKey: .strategyWiseListing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(groupId, forKey: .groupId)
-
-
-
-
- try? container.encodeIfPresent(index, forKey: .index)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(sCity, forKey: .sCity)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(storePincode, forKey: .storePincode)
-
-
-
-
- try? container.encodeIfPresent(strategyWiseListing, forKey: .strategyWiseListing)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/SuccessResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SuccessResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..cc65c7e942
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/SuccessResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: SuccessResponse
+ Used By: Catalog
+ */
+
+ class SuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: SuccessResponse
+ Used By: Catalog
+ */
+
+ class SuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/SuccessResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/SuccessResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b9e214d612..0000000000
--- a/Sources/code/platform/Models/Catalog/SuccessResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: SuccessResponseSchema
- Used By: Catalog
- */
-
- class SuccessResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: SuccessResponseSchema
- Used By: Catalog
- */
-
- class SuccessResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/TemplateGlobalValidationDataCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplateGlobalValidationDataCatalogPlatformModel.swift
deleted file mode 100644
index 72aff8d43c..0000000000
--- a/Sources/code/platform/Models/Catalog/TemplateGlobalValidationDataCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: TemplateGlobalValidationData
- Used By: Catalog
- */
-
- class TemplateGlobalValidationData: Codable {
-
-
- public var globalValidation: GlobalValidation?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case globalValidation = "global_validation"
-
- }
-
- public init(globalValidation: GlobalValidation? = nil) {
-
- self.globalValidation = globalValidation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- globalValidation = try container.decode(GlobalValidation.self, forKey: .globalValidation)
-
- } 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(globalValidation, forKey: .globalValidation)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: TemplateGlobalValidationData
- Used By: Catalog
- */
-
- class TemplateGlobalValidationData: Codable {
-
-
- public var globalValidation: GlobalValidation?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case globalValidation = "global_validation"
-
- }
-
- public init(globalValidation: GlobalValidation? = nil) {
-
- self.globalValidation = globalValidation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- globalValidation = try container.decode(GlobalValidation.self, forKey: .globalValidation)
-
- } 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(globalValidation, forKey: .globalValidation)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/TemplatesGlobalValidationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplatesGlobalValidationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index ff4e95b8df..0000000000
--- a/Sources/code/platform/Models/Catalog/TemplatesGlobalValidationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: TemplatesGlobalValidationResponseSchema
- Used By: Catalog
- */
-
- class TemplatesGlobalValidationResponseSchema: Codable {
-
-
- public var data: TemplateGlobalValidationData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: TemplateGlobalValidationData? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(TemplateGlobalValidationData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: TemplatesGlobalValidationResponseSchema
- Used By: Catalog
- */
-
- class TemplatesGlobalValidationResponseSchema: Codable {
-
-
- public var data: TemplateGlobalValidationData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: TemplateGlobalValidationData? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(TemplateGlobalValidationData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/TemplatesResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplatesResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..0aa1638a4c
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/TemplatesResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: TemplatesResponse
+ Used By: Catalog
+ */
+
+ class TemplatesResponse: Codable {
+
+
+ public var items: ProductTemplate?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: ProductTemplate? = nil, page: Page? = nil) {
+
+ 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(ProductTemplate.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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: TemplatesResponse
+ Used By: Catalog
+ */
+
+ class TemplatesResponse: Codable {
+
+
+ public var items: ProductTemplate?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: ProductTemplate? = nil, page: Page? = nil) {
+
+ 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(ProductTemplate.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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/TemplatesResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplatesResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 8287c1d007..0000000000
--- a/Sources/code/platform/Models/Catalog/TemplatesResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: TemplatesResponseSchema
- Used By: Catalog
- */
-
- class TemplatesResponseSchema: Codable {
-
-
- public var items: [ProductTemplate]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ProductTemplate]? = nil, page: Page? = nil) {
-
- 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([ProductTemplate].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: TemplatesResponseSchema
- Used By: Catalog
- */
-
- class TemplatesResponseSchema: Codable {
-
-
- public var items: [ProductTemplate]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [ProductTemplate]? = nil, page: Page? = nil) {
-
- 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([ProductTemplate].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/TemplatesValidationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplatesValidationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..538b4c0dae
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/TemplatesValidationResponseCatalogPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: TemplatesValidationResponse
+ Used By: Catalog
+ */
+
+ class TemplatesValidationResponse: Codable {
+
+
+ public var data: TemplateValidationData?
+
+ public var templateDetails: TemplateDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case templateDetails = "template_details"
+
+ }
+
+ public init(data: TemplateValidationData? = nil, templateDetails: TemplateDetails? = nil) {
+
+ self.data = data
+
+ self.templateDetails = templateDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(TemplateValidationData.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ templateDetails = try container.decode(TemplateDetails.self, forKey: .templateDetails)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(templateDetails, forKey: .templateDetails)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: TemplatesValidationResponse
+ Used By: Catalog
+ */
+
+ class TemplatesValidationResponse: Codable {
+
+
+ public var data: TemplateValidationData?
+
+ public var templateDetails: TemplateDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case templateDetails = "template_details"
+
+ }
+
+ public init(data: TemplateValidationData? = nil, templateDetails: TemplateDetails? = nil) {
+
+ self.data = data
+
+ self.templateDetails = templateDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(TemplateValidationData.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ templateDetails = try container.decode(TemplateDetails.self, forKey: .templateDetails)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(templateDetails, forKey: .templateDetails)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/TemplatesValidationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TemplatesValidationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index cd146b5295..0000000000
--- a/Sources/code/platform/Models/Catalog/TemplatesValidationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: TemplatesValidationResponseSchema
- Used By: Catalog
- */
-
- class TemplatesValidationResponseSchema: Codable {
-
-
- public var data: TemplateValidationData?
-
- public var templateDetails: TemplateDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case templateDetails = "template_details"
-
- }
-
- public init(data: TemplateValidationData? = nil, templateDetails: TemplateDetails? = nil) {
-
- self.data = data
-
- self.templateDetails = templateDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(TemplateValidationData.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- templateDetails = try container.decode(TemplateDetails.self, forKey: .templateDetails)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(templateDetails, forKey: .templateDetails)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: TemplatesValidationResponseSchema
- Used By: Catalog
- */
-
- class TemplatesValidationResponseSchema: Codable {
-
-
- public var data: TemplateValidationData?
-
- public var templateDetails: TemplateDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case templateDetails = "template_details"
-
- }
-
- public init(data: TemplateValidationData? = nil, templateDetails: TemplateDetails? = nil) {
-
- self.data = data
-
- self.templateDetails = templateDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(TemplateValidationData.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- templateDetails = try container.decode(TemplateDetails.self, forKey: .templateDetails)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(templateDetails, forKey: .templateDetails)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/TraderResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TraderResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..fc9036d58c
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/TraderResponseCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: TraderResponse
+ Used By: Catalog
+ */
+
+ class TraderResponse: Codable {
+
+
+ public var address: [String]?
+
+ public var name: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case name = "name"
+
+ case type = "type"
+
+ }
+
+ public init(address: [String]? = nil, name: String? = nil, type: String? = nil) {
+
+ self.address = address
+
+ self.name = name
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode([String].self, forKey: .address)
+
+ } 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 {
+
+ }
+
+
+
+ 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(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: TraderResponse
+ Used By: Catalog
+ */
+
+ class TraderResponse: Codable {
+
+
+ public var address: [String]?
+
+ public var name: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case address = "address"
+
+ case name = "name"
+
+ case type = "type"
+
+ }
+
+ public init(address: [String]? = nil, name: String? = nil, type: String? = nil) {
+
+ self.address = address
+
+ self.name = name
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ address = try container.decode([String].self, forKey: .address)
+
+ } 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 {
+
+ }
+
+
+
+ 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(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/TraderResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/TraderResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 0d5f90628d..0000000000
--- a/Sources/code/platform/Models/Catalog/TraderResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: TraderResponseSchema
- Used By: Catalog
- */
-
- class TraderResponseSchema: Codable {
-
-
- public var address: [String]?
-
- public var name: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case name = "name"
-
- case type = "type"
-
- }
-
- public init(address: [String]? = nil, name: String? = nil, type: String? = nil) {
-
- self.address = address
-
- self.name = name
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode([String].self, forKey: .address)
-
- } 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 {
-
- }
-
-
-
- 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: TraderResponseSchema
- Used By: Catalog
- */
-
- class TraderResponseSchema: Codable {
-
-
- public var address: [String]?
-
- public var name: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case name = "name"
-
- case type = "type"
-
- }
-
- public init(address: [String]? = nil, name: String? = nil, type: String? = nil) {
-
- self.address = address
-
- self.name = name
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode([String].self, forKey: .address)
-
- } 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 {
-
- }
-
-
-
- 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UpdateCollectionCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateCollectionCatalogPlatformModel.swift
index bc5abd8783..e3544799ce 100644
--- a/Sources/code/platform/Models/Catalog/UpdateCollectionCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/UpdateCollectionCatalogPlatformModel.swift
@@ -46,7 +46,7 @@ public extension PlatformClient.Catalog {
public var query: [CollectionQuery]?
- public var seo: CollectionSeoDetail?
+ public var seo: SeoDetail?
public var slug: String?
@@ -109,7 +109,7 @@ public extension PlatformClient.Catalog {
}
- public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, badge: CollectionBadge? = nil, banners: CollectionBanner? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: CollectionImage? = nil, meta: [String: Any]? = nil, modifiedBy: UserInfo? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: CollectionSeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+ public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, badge: CollectionBadge? = nil, banners: CollectionBanner? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: CollectionImage? = nil, meta: [String: Any]? = nil, modifiedBy: UserInfo? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
self.customJson = customJson
@@ -368,7 +368,7 @@ public extension PlatformClient.Catalog {
do {
- seo = try container.decode(CollectionSeoDetail.self, forKey: .seo)
+ seo = try container.decode(SeoDetail.self, forKey: .seo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -608,7 +608,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var query: [CollectionQuery]?
- public var seo: CollectionSeoDetail?
+ public var seo: SeoDetail?
public var slug: String?
@@ -671,7 +671,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, badge: CollectionBadge? = nil, banners: CollectionBanner? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: CollectionImage? = nil, meta: [String: Any]? = nil, modifiedBy: UserInfo? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: CollectionSeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
+ public init(allowFacets: Bool? = nil, allowSort: Bool? = nil, badge: CollectionBadge? = nil, banners: CollectionBanner? = nil, description: String? = nil, isActive: Bool? = nil, isVisible: Bool? = nil, logo: CollectionImage? = nil, meta: [String: Any]? = nil, modifiedBy: UserInfo? = nil, name: String? = nil, priority: Int? = nil, published: Bool? = nil, query: [CollectionQuery]? = nil, seo: SeoDetail? = nil, slug: String? = nil, sortOn: String? = nil, tags: [String]? = nil, type: String? = nil, visibleFacetsKeys: [String]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil, schedule: CollectionSchedule? = nil) {
self.customJson = customJson
@@ -930,7 +930,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- seo = try container.decode(CollectionSeoDetail.self, forKey: .seo)
+ seo = try container.decode(SeoDetail.self, forKey: .seo)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1c6f43cae9
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestCatalogPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UpdateMarketplaceOptinRequest
+ Used By: Catalog
+ */
+
+ class UpdateMarketplaceOptinRequest: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var enabled: Bool?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ }
+
+ public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UpdateMarketplaceOptinRequest
+ Used By: Catalog
+ */
+
+ class UpdateMarketplaceOptinRequest: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var enabled: Bool?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ }
+
+ public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 1b975b5d55..0000000000
--- a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: UpdateMarketplaceOptinRequestSchema
- Used By: Catalog
- */
-
- class UpdateMarketplaceOptinRequestSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var enabled: Bool?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- }
-
- public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: UpdateMarketplaceOptinRequestSchema
- Used By: Catalog
- */
-
- class UpdateMarketplaceOptinRequestSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var enabled: Bool?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- }
-
- public init(brandIds: [Int]? = nil, companyId: Int? = nil, enabled: Bool? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..403c174768
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseCatalogPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UpdateMarketplaceOptinResponse
+ Used By: Catalog
+ */
+
+ class UpdateMarketplaceOptinResponse: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var appId: String?
+
+ public var enabled: Bool?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+ public var createdBy: CreatedBy?
+
+ public var modifiedBy: CreatedBy?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case appId = "app_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.appId = appId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
+
+ } 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(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UpdateMarketplaceOptinResponse
+ Used By: Catalog
+ */
+
+ class UpdateMarketplaceOptinResponse: Codable {
+
+
+ public var brandIds: [Int]?
+
+ public var companyId: Int?
+
+ public var appId: String?
+
+ public var enabled: Bool?
+
+ public var optLevel: String?
+
+ public var platform: String?
+
+ public var storeIds: [Int]?
+
+ public var createdBy: CreatedBy?
+
+ public var modifiedBy: CreatedBy?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brandIds = "brand_ids"
+
+ case companyId = "company_id"
+
+ case appId = "app_id"
+
+ case enabled = "enabled"
+
+ case optLevel = "opt_level"
+
+ case platform = "platform"
+
+ case storeIds = "store_ids"
+
+ case createdBy = "created_by"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
+
+ self.brandIds = brandIds
+
+ self.companyId = companyId
+
+ self.appId = appId
+
+ self.enabled = enabled
+
+ self.optLevel = optLevel
+
+ self.platform = platform
+
+ self.storeIds = storeIds
+
+ self.createdBy = createdBy
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ optLevel = try container.decode(String.self, forKey: .optLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
+
+ } 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(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(optLevel, forKey: .optLevel)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 0e5f0bd980..0000000000
--- a/Sources/code/platform/Models/Catalog/UpdateMarketplaceOptinResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: UpdateMarketplaceOptinResponseSchema
- Used By: Catalog
- */
-
- class UpdateMarketplaceOptinResponseSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var appId: String?
-
- public var enabled: Bool?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
- public var createdBy: CreatedBy?
-
- public var modifiedBy: CreatedBy?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case appId = "app_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.appId = appId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
-
- } 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(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: UpdateMarketplaceOptinResponseSchema
- Used By: Catalog
- */
-
- class UpdateMarketplaceOptinResponseSchema: Codable {
-
-
- public var brandIds: [Int]?
-
- public var companyId: Int?
-
- public var appId: String?
-
- public var enabled: Bool?
-
- public var optLevel: String?
-
- public var platform: String?
-
- public var storeIds: [Int]?
-
- public var createdBy: CreatedBy?
-
- public var modifiedBy: CreatedBy?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brandIds = "brand_ids"
-
- case companyId = "company_id"
-
- case appId = "app_id"
-
- case enabled = "enabled"
-
- case optLevel = "opt_level"
-
- case platform = "platform"
-
- case storeIds = "store_ids"
-
- case createdBy = "created_by"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(appId: String? = nil, brandIds: [Int]? = nil, companyId: Int? = nil, createdBy: CreatedBy? = nil, enabled: Bool? = nil, modifiedBy: CreatedBy? = nil, optLevel: String? = nil, platform: String? = nil, storeIds: [Int]? = nil) {
-
- self.brandIds = brandIds
-
- self.companyId = companyId
-
- self.appId = appId
-
- self.enabled = enabled
-
- self.optLevel = optLevel
-
- self.platform = platform
-
- self.storeIds = storeIds
-
- self.createdBy = createdBy
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- optLevel = try container.decode(String.self, forKey: .optLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(CreatedBy.self, forKey: .modifiedBy)
-
- } 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(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(optLevel, forKey: .optLevel)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestCatalogPlatformModel.swift
new file mode 100644
index 0000000000..260d6383a0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestCatalogPlatformModel.swift
@@ -0,0 +1,456 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UpdateSearchConfigurationRequest
+ Used By: Catalog
+ */
+
+ class UpdateSearchConfigurationRequest: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UpdateSearchConfigurationRequest
+ Used By: Catalog
+ */
+
+ class UpdateSearchConfigurationRequest: Codable {
+
+
+ public var applicationId: String
+
+ public var companyId: Int
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var isProximityEnabled: Bool?
+
+ public var modifiedBy: UserSerializer?
+
+ public var modifiedOn: String?
+
+ public var proximity: Int?
+
+ public var searchableAttributes: [SearchableAttribute]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case isProximityEnabled = "is_proximity_enabled"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case proximity = "proximity"
+
+ case searchableAttributes = "searchable_attributes"
+
+ }
+
+ public init(applicationId: String, companyId: Int, createdBy: UserSerializer? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.isProximityEnabled = isProximityEnabled
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.proximity = proximity
+
+ self.searchableAttributes = searchableAttributes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ proximity = try container.decode(Int.self, forKey: .proximity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
+
+ } 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(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(proximity, forKey: .proximity)
+
+
+
+
+ try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 791f2f1406..0000000000
--- a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationRequestSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: UpdateSearchConfigurationRequestSchema
- Used By: Catalog
- */
-
- class UpdateSearchConfigurationRequestSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: UpdateSearchConfigurationRequestSchema
- Used By: Catalog
- */
-
- class UpdateSearchConfigurationRequestSchema: Codable {
-
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var isProximityEnabled: Bool?
-
- public var modifiedBy: UserSchema?
-
- public var modifiedOn: String?
-
- public var proximity: Int?
-
- public var searchableAttributes: [SearchableAttribute]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case isProximityEnabled = "is_proximity_enabled"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case proximity = "proximity"
-
- case searchableAttributes = "searchable_attributes"
-
- }
-
- public init(applicationId: String, companyId: Int, createdBy: UserSchema? = nil, createdOn: String? = nil, isProximityEnabled: Bool? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, proximity: Int? = nil, searchableAttributes: [SearchableAttribute]? = nil) {
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.isProximityEnabled = isProximityEnabled
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.proximity = proximity
-
- self.searchableAttributes = searchableAttributes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- isProximityEnabled = try container.decode(Bool.self, forKey: .isProximityEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- proximity = try container.decode(Int.self, forKey: .proximity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- searchableAttributes = try container.decode([SearchableAttribute].self, forKey: .searchableAttributes)
-
- } 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(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(isProximityEnabled, forKey: .isProximityEnabled)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(proximity, forKey: .proximity)
-
-
-
-
- try? container.encodeIfPresent(searchableAttributes, forKey: .searchableAttributes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..9aeaf912a9
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseCatalogPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UpdateSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class UpdateSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UpdateSearchConfigurationResponse
+ Used By: Catalog
+ */
+
+ class UpdateSearchConfigurationResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 07c8f390b1..0000000000
--- a/Sources/code/platform/Models/Catalog/UpdateSearchConfigurationResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: UpdateSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class UpdateSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: UpdateSearchConfigurationResponseSchema
- Used By: Catalog
- */
-
- class UpdateSearchConfigurationResponseSchema: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UserInfo1CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UserInfo1CatalogPlatformModel.swift
new file mode 100644
index 0000000000..8906e1665e
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UserInfo1CatalogPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UserInfo1
+ Used By: Catalog
+ */
+
+ class UserInfo1: Codable {
+
+
+ public var email: String?
+
+ public var uid: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case uid = "uid"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(email: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.email = email
+
+ self.uid = uid
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UserInfo1
+ Used By: Catalog
+ */
+
+ class UserInfo1: Codable {
+
+
+ public var email: String?
+
+ public var uid: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case uid = "uid"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(email: String? = nil, uid: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.email = email
+
+ self.uid = uid
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UserSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UserSchemaCatalogPlatformModel.swift
deleted file mode 100644
index 201723caf7..0000000000
--- a/Sources/code/platform/Models/Catalog/UserSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: UserSchema
- Used By: Catalog
- */
-
- class UserSchema: Codable {
-
-
- public var contact: String?
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case contact = "contact"
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
-
- self.contact = contact
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: UserSchema
- Used By: Catalog
- */
-
- class UserSchema: Codable {
-
-
- public var contact: String?
-
- public var userId: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case contact = "contact"
-
- case userId = "user_id"
-
- case username = "username"
-
- }
-
- public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
-
- self.contact = contact
-
- self.userId = userId
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/UserSerializer2CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UserSerializer2CatalogPlatformModel.swift
new file mode 100644
index 0000000000..ea29d3c18e
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UserSerializer2CatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UserSerializer2
+ Used By: Catalog
+ */
+
+ class UserSerializer2: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UserSerializer2
+ Used By: Catalog
+ */
+
+ class UserSerializer2: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UserSerializer3CatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UserSerializer3CatalogPlatformModel.swift
new file mode 100644
index 0000000000..59699b3df0
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UserSerializer3CatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UserSerializer3
+ Used By: Catalog
+ */
+
+ class UserSerializer3: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UserSerializer3
+ Used By: Catalog
+ */
+
+ class UserSerializer3: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/UserSerializerCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/UserSerializerCatalogPlatformModel.swift
new file mode 100644
index 0000000000..1b240c2e39
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/UserSerializerCatalogPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: UserSerializer
+ Used By: Catalog
+ */
+
+ class UserSerializer: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: UserSerializer
+ Used By: Catalog
+ */
+
+ class UserSerializer: Codable {
+
+
+ public var contact: String?
+
+ public var userId: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case contact = "contact"
+
+ case userId = "user_id"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.contact = contact
+
+ self.userId = userId
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/ValidateSizeGuideCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ValidateSizeGuideCatalogPlatformModel.swift
index 7abe4ad397..fbee93815e 100644
--- a/Sources/code/platform/Models/Catalog/ValidateSizeGuideCatalogPlatformModel.swift
+++ b/Sources/code/platform/Models/Catalog/ValidateSizeGuideCatalogPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.Catalog {
public var brandId: Int?
- public var companyId: String?
+ public var companyId: Int?
public var createdBy: [String: Any]?
@@ -77,7 +77,7 @@ public extension PlatformClient.Catalog {
}
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, subtitle: String? = nil, tag: String? = nil, title: String) {
+ public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, subtitle: String? = nil, tag: String? = nil, title: String) {
self.active = active
@@ -140,7 +140,7 @@ public extension PlatformClient.Catalog {
do {
- companyId = try container.decode(String.self, forKey: .companyId)
+ companyId = try container.decode(Int.self, forKey: .companyId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -380,7 +380,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
public var brandId: Int?
- public var companyId: String?
+ public var companyId: Int?
public var createdBy: [String: Any]?
@@ -441,7 +441,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
}
- public init(active: Bool? = nil, brandId: Int? = nil, companyId: String? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, subtitle: String? = nil, tag: String? = nil, title: String) {
+ public init(active: Bool? = nil, brandId: Int? = nil, companyId: Int? = nil, createdBy: [String: Any]? = nil, createdOn: String? = nil, description: String? = nil, guide: Guide? = nil, id: String? = nil, image: String? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, subtitle: String? = nil, tag: String? = nil, title: String) {
self.active = active
@@ -504,7 +504,7 @@ public extension PlatformClient.ApplicationClient.Catalog {
do {
- companyId = try container.decode(String.self, forKey: .companyId)
+ companyId = try container.decode(Int.self, forKey: .companyId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Catalog/ValidationErrorCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ValidationErrorCatalogPlatformModel.swift
deleted file mode 100644
index ffe7ab9726..0000000000
--- a/Sources/code/platform/Models/Catalog/ValidationErrorCatalogPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ValidationError
- Used By: Catalog
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ValidationError
- Used By: Catalog
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/ValidationErrorsCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/ValidationErrorsCatalogPlatformModel.swift
deleted file mode 100644
index cac24b4a08..0000000000
--- a/Sources/code/platform/Models/Catalog/ValidationErrorsCatalogPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: ValidationErrors
- Used By: Catalog
- */
-
- class ValidationErrors: Codable {
-
-
- public var errors: [ValidationError]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [ValidationError]) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- errors = try container.decode([ValidationError].self, forKey: .errors)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: ValidationErrors
- Used By: Catalog
- */
-
- class ValidationErrors: Codable {
-
-
- public var errors: [ValidationError]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [ValidationError]) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- errors = try container.decode([ValidationError].self, forKey: .errors)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Catalog/WeightResponseCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/WeightResponseCatalogPlatformModel.swift
new file mode 100644
index 0000000000..e16c2e328c
--- /dev/null
+++ b/Sources/code/platform/Models/Catalog/WeightResponseCatalogPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Catalog {
+ /*
+ Model: WeightResponse
+ Used By: Catalog
+ */
+
+ class WeightResponse: Codable {
+
+
+ public var isDefault: Bool
+
+ public var shipping: Double
+
+ public var unit: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case shipping = "shipping"
+
+ case unit = "unit"
+
+ }
+
+ public init(isDefault: Bool, shipping: Double, unit: String) {
+
+ self.isDefault = isDefault
+
+ self.shipping = shipping
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ shipping = try container.decode(Double.self, forKey: .shipping)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(shipping, forKey: .shipping)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Catalog {
+ /*
+ Model: WeightResponse
+ Used By: Catalog
+ */
+
+ class WeightResponse: Codable {
+
+
+ public var isDefault: Bool
+
+ public var shipping: Double
+
+ public var unit: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case shipping = "shipping"
+
+ case unit = "unit"
+
+ }
+
+ public init(isDefault: Bool, shipping: Double, unit: String) {
+
+ self.isDefault = isDefault
+
+ self.shipping = shipping
+
+ self.unit = unit
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ shipping = try container.decode(Double.self, forKey: .shipping)
+
+
+
+
+ unit = try container.decode(String.self, forKey: .unit)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(shipping, forKey: .shipping)
+
+
+
+
+ try? container.encodeIfPresent(unit, forKey: .unit)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Catalog/WeightResponseSchemaCatalogPlatformModel.swift b/Sources/code/platform/Models/Catalog/WeightResponseSchemaCatalogPlatformModel.swift
deleted file mode 100644
index b813791f0e..0000000000
--- a/Sources/code/platform/Models/Catalog/WeightResponseSchemaCatalogPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Catalog {
- /*
- Model: WeightResponseSchema
- Used By: Catalog
- */
-
- class WeightResponseSchema: Codable {
-
-
- public var isDefault: Bool
-
- public var shipping: Double
-
- public var unit: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case shipping = "shipping"
-
- case unit = "unit"
-
- }
-
- public init(isDefault: Bool, shipping: Double, unit: String) {
-
- self.isDefault = isDefault
-
- self.shipping = shipping
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- shipping = try container.decode(Double.self, forKey: .shipping)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(shipping, forKey: .shipping)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Catalog {
- /*
- Model: WeightResponseSchema
- Used By: Catalog
- */
-
- class WeightResponseSchema: Codable {
-
-
- public var isDefault: Bool
-
- public var shipping: Double
-
- public var unit: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case shipping = "shipping"
-
- case unit = "unit"
-
- }
-
- public init(isDefault: Bool, shipping: Double, unit: String) {
-
- self.isDefault = isDefault
-
- self.shipping = shipping
-
- self.unit = unit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- shipping = try container.decode(Double.self, forKey: .shipping)
-
-
-
-
- unit = try container.decode(String.self, forKey: .unit)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(shipping, forKey: .shipping)
-
-
-
-
- try? container.encodeIfPresent(unit, forKey: .unit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Common/ApplicationResponseCommonPlatformModel.swift b/Sources/code/platform/Models/Common/ApplicationResponseCommonPlatformModel.swift
new file mode 100644
index 0000000000..16b1822417
--- /dev/null
+++ b/Sources/code/platform/Models/Common/ApplicationResponseCommonPlatformModel.swift
@@ -0,0 +1,246 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Common {
+ /*
+ Model: ApplicationResponse
+ Used By: Common
+ */
+
+ class ApplicationResponse: Codable {
+
+
+ public var application: Application?
+
+ public var id: String?
+
+ public var isActive: Bool?
+
+ public var name: String?
+
+ public var code: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+ public var decimalDigits: Int?
+
+ public var symbol: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case application = "application"
+
+ case id = "_id"
+
+ case isActive = "is_active"
+
+ case name = "name"
+
+ case code = "code"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ case decimalDigits = "decimal_digits"
+
+ case symbol = "symbol"
+
+ }
+
+ public init(application: Application? = nil, code: String? = nil, createdAt: String? = nil, decimalDigits: Int? = nil, isActive: Bool? = nil, name: String? = nil, symbol: String? = nil, updatedAt: String? = nil, id: String? = nil) {
+
+ self.application = application
+
+ self.id = id
+
+ self.isActive = isActive
+
+ self.name = name
+
+ self.code = code
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ self.decimalDigits = decimalDigits
+
+ self.symbol = symbol
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ application = try container.decode(Application.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ decimalDigits = try container.decode(Int.self, forKey: .decimalDigits)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ symbol = try container.decode(String.self, forKey: .symbol)
+
+ } 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(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
+ try? container.encodeIfPresent(decimalDigits, forKey: .decimalDigits)
+
+
+
+
+ try? container.encodeIfPresent(symbol, forKey: .symbol)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Common/ApplicationResponseSchemaCommonPlatformModel.swift b/Sources/code/platform/Models/Common/ApplicationResponseSchemaCommonPlatformModel.swift
deleted file mode 100644
index a1450c389a..0000000000
--- a/Sources/code/platform/Models/Common/ApplicationResponseSchemaCommonPlatformModel.swift
+++ /dev/null
@@ -1,246 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Common {
- /*
- Model: ApplicationResponseSchema
- Used By: Common
- */
-
- class ApplicationResponseSchema: Codable {
-
-
- public var application: Application?
-
- public var id: String?
-
- public var isActive: Bool?
-
- public var name: String?
-
- public var code: String?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
- public var decimalDigits: Int?
-
- public var symbol: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case application = "application"
-
- case id = "_id"
-
- case isActive = "is_active"
-
- case name = "name"
-
- case code = "code"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- case decimalDigits = "decimal_digits"
-
- case symbol = "symbol"
-
- }
-
- public init(application: Application? = nil, code: String? = nil, createdAt: String? = nil, decimalDigits: Int? = nil, isActive: Bool? = nil, name: String? = nil, symbol: String? = nil, updatedAt: String? = nil, id: String? = nil) {
-
- self.application = application
-
- self.id = id
-
- self.isActive = isActive
-
- self.name = name
-
- self.code = code
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- self.decimalDigits = decimalDigits
-
- self.symbol = symbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- application = try container.decode(Application.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- decimalDigits = try container.decode(Int.self, forKey: .decimalDigits)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- symbol = try container.decode(String.self, forKey: .symbol)
-
- } 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(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(decimalDigits, forKey: .decimalDigits)
-
-
-
-
- try? container.encodeIfPresent(symbol, forKey: .symbol)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Common/BadRequestCommonPlatformModel.swift b/Sources/code/platform/Models/Common/BadRequestCommonPlatformModel.swift
new file mode 100644
index 0000000000..7bcaddefde
--- /dev/null
+++ b/Sources/code/platform/Models/Common/BadRequestCommonPlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Common {
+ /*
+ Model: BadRequest
+ Used By: Common
+ */
+
+ class BadRequest: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Common/BadRequestSchemaCommonPlatformModel.swift b/Sources/code/platform/Models/Common/BadRequestSchemaCommonPlatformModel.swift
deleted file mode 100644
index e29638ffb1..0000000000
--- a/Sources/code/platform/Models/Common/BadRequestSchemaCommonPlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Common {
- /*
- Model: BadRequestSchema
- Used By: Common
- */
-
- class BadRequestSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Communication/CreateGlobalVariablesResultCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/CreateGlobalVariablesResultCommunicationPlatformModel.swift
deleted file mode 100644
index 84129e5646..0000000000
--- a/Sources/code/platform/Models/Communication/CreateGlobalVariablesResultCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: CreateGlobalVariablesResult
- Used By: Communication
- */
-
- class CreateGlobalVariablesResult: Codable {
-
-
- public var id: String?
-
- public var category: String?
-
- public var application: String?
-
- public var globalVariables: [String: Any]?
-
- public var createdAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case category = "category"
-
- case application = "application"
-
- case globalVariables = "global_variables"
-
- case createdAt = "created_at"
-
- }
-
- public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, globalVariables: [String: Any]? = nil, id: String? = nil) {
-
- self.id = id
-
- self.category = category
-
- self.application = application
-
- self.globalVariables = globalVariables
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalVariables = try container.decode([String: Any].self, forKey: .globalVariables)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(globalVariables, forKey: .globalVariables)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: CreateGlobalVariablesResult
- Used By: Communication
- */
-
- class CreateGlobalVariablesResult: Codable {
-
-
- public var id: String?
-
- public var category: String?
-
- public var application: String?
-
- public var globalVariables: [String: Any]?
-
- public var createdAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case category = "category"
-
- case application = "application"
-
- case globalVariables = "global_variables"
-
- case createdAt = "created_at"
-
- }
-
- public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, globalVariables: [String: Any]? = nil, id: String? = nil) {
-
- self.id = id
-
- self.category = category
-
- self.application = application
-
- self.globalVariables = globalVariables
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalVariables = try container.decode([String: Any].self, forKey: .globalVariables)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(globalVariables, forKey: .globalVariables)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/EnginePayloadCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EnginePayloadCommunicationPlatformModel.swift
deleted file mode 100644
index ed1649f1df..0000000000
--- a/Sources/code/platform/Models/Communication/EnginePayloadCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: EnginePayload
- Used By: Communication
- */
-
- class EnginePayload: Codable {
-
-
- public var payload: PayloadStructure?
-
- public var meta: MetaStructure?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case payload = "payload"
-
- case meta = "meta"
-
- }
-
- public init(meta: MetaStructure? = nil, payload: PayloadStructure? = nil) {
-
- self.payload = payload
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- payload = try container.decode(PayloadStructure.self, forKey: .payload)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(MetaStructure.self, forKey: .meta)
-
- } 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(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: EnginePayload
- Used By: Communication
- */
-
- class EnginePayload: Codable {
-
-
- public var payload: PayloadStructure?
-
- public var meta: MetaStructure?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case payload = "payload"
-
- case meta = "meta"
-
- }
-
- public init(meta: MetaStructure? = nil, payload: PayloadStructure? = nil) {
-
- self.payload = payload
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- payload = try container.decode(PayloadStructure.self, forKey: .payload)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(MetaStructure.self, forKey: .meta)
-
- } 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(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/EngineRequestCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EngineRequestCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..363065d979
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/EngineRequestCommunicationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: EngineRequest
+ Used By: Communication
+ */
+
+ class EngineRequest: Codable {
+
+
+ public var payload: PayloadStructure?
+
+ public var meta: MetaStructure?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case payload = "payload"
+
+ case meta = "meta"
+
+ }
+
+ public init(meta: MetaStructure? = nil, payload: PayloadStructure? = nil) {
+
+ self.payload = payload
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ payload = try container.decode(PayloadStructure.self, forKey: .payload)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(MetaStructure.self, forKey: .meta)
+
+ } 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(payload, forKey: .payload)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: EngineRequest
+ Used By: Communication
+ */
+
+ class EngineRequest: Codable {
+
+
+ public var payload: PayloadStructure?
+
+ public var meta: MetaStructure?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case payload = "payload"
+
+ case meta = "meta"
+
+ }
+
+ public init(meta: MetaStructure? = nil, payload: PayloadStructure? = nil) {
+
+ self.payload = payload
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ payload = try container.decode(PayloadStructure.self, forKey: .payload)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(MetaStructure.self, forKey: .meta)
+
+ } 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(payload, forKey: .payload)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/EngineResponseCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EngineResponseCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..477ddb471e
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/EngineResponseCommunicationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: EngineResponse
+ Used By: Communication
+ */
+
+ class EngineResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: EngineResponse
+ Used By: Communication
+ */
+
+ class EngineResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/EngineResultCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EngineResultCommunicationPlatformModel.swift
deleted file mode 100644
index cc92919369..0000000000
--- a/Sources/code/platform/Models/Communication/EngineResultCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: EngineResult
- Used By: Communication
- */
-
- class EngineResult: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: EngineResult
- Used By: Communication
- */
-
- class EngineResult: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdatePayloadCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdatePayloadCommunicationPlatformModel.swift
deleted file mode 100644
index 4d7d19de1b..0000000000
--- a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdatePayloadCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: EventSubscriptionsBulkUpdatePayload
- Used By: Communication
- */
-
- class EventSubscriptionsBulkUpdatePayload: Codable {
-
-
- public var subscriptions: [SubscriptionsObject]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subscriptions = "subscriptions"
-
- }
-
- public init(subscriptions: [SubscriptionsObject]? = nil) {
-
- self.subscriptions = subscriptions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- subscriptions = try container.decode([SubscriptionsObject].self, forKey: .subscriptions)
-
- } 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(subscriptions, forKey: .subscriptions)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: EventSubscriptionsBulkUpdatePayload
- Used By: Communication
- */
-
- class EventSubscriptionsBulkUpdatePayload: Codable {
-
-
- public var subscriptions: [SubscriptionsObject]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subscriptions = "subscriptions"
-
- }
-
- public init(subscriptions: [SubscriptionsObject]? = nil) {
-
- self.subscriptions = subscriptions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- subscriptions = try container.decode([SubscriptionsObject].self, forKey: .subscriptions)
-
- } 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(subscriptions, forKey: .subscriptions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateRequestCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateRequestCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..425d352692
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateRequestCommunicationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: EventSubscriptionsBulkUpdateRequest
+ Used By: Communication
+ */
+
+ class EventSubscriptionsBulkUpdateRequest: Codable {
+
+
+ public var subscriptions: [SubscriptionsObject]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subscriptions = "subscriptions"
+
+ }
+
+ public init(subscriptions: [SubscriptionsObject]? = nil) {
+
+ self.subscriptions = subscriptions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subscriptions = try container.decode([SubscriptionsObject].self, forKey: .subscriptions)
+
+ } 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(subscriptions, forKey: .subscriptions)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: EventSubscriptionsBulkUpdateRequest
+ Used By: Communication
+ */
+
+ class EventSubscriptionsBulkUpdateRequest: Codable {
+
+
+ public var subscriptions: [SubscriptionsObject]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subscriptions = "subscriptions"
+
+ }
+
+ public init(subscriptions: [SubscriptionsObject]? = nil) {
+
+ self.subscriptions = subscriptions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subscriptions = try container.decode([SubscriptionsObject].self, forKey: .subscriptions)
+
+ } 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(subscriptions, forKey: .subscriptions)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResponseCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResponseCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..ff51ab3368
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResponseCommunicationPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: EventSubscriptionsBulkUpdateResponse
+ Used By: Communication
+ */
+
+ class EventSubscriptionsBulkUpdateResponse: Codable {
+
+
+ public var template: EventSubscriptionTemplate?
+
+ public var id: String?
+
+ public var application: String?
+
+ public var event: String?
+
+ public var slug: String?
+
+ public var category: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+ public var v: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case template = "template"
+
+ case id = "_id"
+
+ case application = "application"
+
+ case event = "event"
+
+ case slug = "slug"
+
+ case category = "category"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ case v = "__v"
+
+ }
+
+ public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, event: String? = nil, slug: String? = nil, template: EventSubscriptionTemplate? = nil, updatedAt: String? = nil, id: String? = nil, v: Int? = nil) {
+
+ self.template = template
+
+ self.id = id
+
+ self.application = application
+
+ self.event = event
+
+ self.slug = slug
+
+ self.category = category
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ self.v = v
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ template = try container.decode(EventSubscriptionTemplate.self, forKey: .template)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ event = try container.decode(String.self, forKey: .event)
+
+ } 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 {
+ category = try container.decode(String.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Int.self, forKey: .v)
+
+ } 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(template, forKey: .template)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(event, forKey: .event)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: EventSubscriptionsBulkUpdateResponse
+ Used By: Communication
+ */
+
+ class EventSubscriptionsBulkUpdateResponse: Codable {
+
+
+ public var template: EventSubscriptionTemplate?
+
+ public var id: String?
+
+ public var application: String?
+
+ public var event: String?
+
+ public var slug: String?
+
+ public var category: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+ public var v: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case template = "template"
+
+ case id = "_id"
+
+ case application = "application"
+
+ case event = "event"
+
+ case slug = "slug"
+
+ case category = "category"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ case v = "__v"
+
+ }
+
+ public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, event: String? = nil, slug: String? = nil, template: EventSubscriptionTemplate? = nil, updatedAt: String? = nil, id: String? = nil, v: Int? = nil) {
+
+ self.template = template
+
+ self.id = id
+
+ self.application = application
+
+ self.event = event
+
+ self.slug = slug
+
+ self.category = category
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ self.v = v
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ template = try container.decode(EventSubscriptionTemplate.self, forKey: .template)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ event = try container.decode(String.self, forKey: .event)
+
+ } 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 {
+ category = try container.decode(String.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Int.self, forKey: .v)
+
+ } 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(template, forKey: .template)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(event, forKey: .event)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResultCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResultCommunicationPlatformModel.swift
deleted file mode 100644
index 5444caa8a2..0000000000
--- a/Sources/code/platform/Models/Communication/EventSubscriptionsBulkUpdateResultCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: EventSubscriptionsBulkUpdateResult
- Used By: Communication
- */
-
- class EventSubscriptionsBulkUpdateResult: Codable {
-
-
- public var template: EventSubscriptionTemplate?
-
- public var id: String?
-
- public var application: String?
-
- public var event: String?
-
- public var slug: String?
-
- public var category: String?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case template = "template"
-
- case id = "_id"
-
- case application = "application"
-
- case event = "event"
-
- case slug = "slug"
-
- case category = "category"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- case v = "__v"
-
- }
-
- public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, event: String? = nil, slug: String? = nil, template: EventSubscriptionTemplate? = nil, updatedAt: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.template = template
-
- self.id = id
-
- self.application = application
-
- self.event = event
-
- self.slug = slug
-
- self.category = category
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- template = try container.decode(EventSubscriptionTemplate.self, forKey: .template)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- event = try container.decode(String.self, forKey: .event)
-
- } 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 {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(event, forKey: .event)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: EventSubscriptionsBulkUpdateResult
- Used By: Communication
- */
-
- class EventSubscriptionsBulkUpdateResult: Codable {
-
-
- public var template: EventSubscriptionTemplate?
-
- public var id: String?
-
- public var application: String?
-
- public var event: String?
-
- public var slug: String?
-
- public var category: String?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case template = "template"
-
- case id = "_id"
-
- case application = "application"
-
- case event = "event"
-
- case slug = "slug"
-
- case category = "category"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- case v = "__v"
-
- }
-
- public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, event: String? = nil, slug: String? = nil, template: EventSubscriptionTemplate? = nil, updatedAt: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.template = template
-
- self.id = id
-
- self.application = application
-
- self.event = event
-
- self.slug = slug
-
- self.category = category
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- template = try container.decode(EventSubscriptionTemplate.self, forKey: .template)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- event = try container.decode(String.self, forKey: .event)
-
- } 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 {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(event, forKey: .event)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/GetGlobalVariablesResultCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/GetGlobalVariablesResultCommunicationPlatformModel.swift
deleted file mode 100644
index 08b0458741..0000000000
--- a/Sources/code/platform/Models/Communication/GetGlobalVariablesResultCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: GetGlobalVariablesResult
- Used By: Communication
- */
-
- class GetGlobalVariablesResult: Codable {
-
-
- public var readOnly: [String: Any]?
-
- public var editable: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case readOnly = "read_only"
-
- case editable = "editable"
-
- }
-
- public init(editable: [String: Any]? = nil, readOnly: [String: Any]? = nil) {
-
- self.readOnly = readOnly
-
- self.editable = editable
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- readOnly = try container.decode([String: Any].self, forKey: .readOnly)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- editable = try container.decode([String: Any].self, forKey: .editable)
-
- } 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(readOnly, forKey: .readOnly)
-
-
-
-
- try? container.encodeIfPresent(editable, forKey: .editable)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: GetGlobalVariablesResult
- Used By: Communication
- */
-
- class GetGlobalVariablesResult: Codable {
-
-
- public var readOnly: [String: Any]?
-
- public var editable: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case readOnly = "read_only"
-
- case editable = "editable"
-
- }
-
- public init(editable: [String: Any]? = nil, readOnly: [String: Any]? = nil) {
-
- self.readOnly = readOnly
-
- self.editable = editable
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- readOnly = try container.decode([String: Any].self, forKey: .readOnly)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- editable = try container.decode([String: Any].self, forKey: .editable)
-
- } 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(readOnly, forKey: .readOnly)
-
-
-
-
- try? container.encodeIfPresent(editable, forKey: .editable)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/GlobalVariablesGetResponseCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/GlobalVariablesGetResponseCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..0f4120fd41
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/GlobalVariablesGetResponseCommunicationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: GlobalVariablesGetResponse
+ Used By: Communication
+ */
+
+ class GlobalVariablesGetResponse: Codable {
+
+
+ public var readOnly: [String: Any]?
+
+ public var editable: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case readOnly = "read_only"
+
+ case editable = "editable"
+
+ }
+
+ public init(editable: [String: Any]? = nil, readOnly: [String: Any]? = nil) {
+
+ self.readOnly = readOnly
+
+ self.editable = editable
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ readOnly = try container.decode([String: Any].self, forKey: .readOnly)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ editable = try container.decode([String: Any].self, forKey: .editable)
+
+ } 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(readOnly, forKey: .readOnly)
+
+
+
+
+ try? container.encodeIfPresent(editable, forKey: .editable)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: GlobalVariablesGetResponse
+ Used By: Communication
+ */
+
+ class GlobalVariablesGetResponse: Codable {
+
+
+ public var readOnly: [String: Any]?
+
+ public var editable: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case readOnly = "read_only"
+
+ case editable = "editable"
+
+ }
+
+ public init(editable: [String: Any]? = nil, readOnly: [String: Any]? = nil) {
+
+ self.readOnly = readOnly
+
+ self.editable = editable
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ readOnly = try container.decode([String: Any].self, forKey: .readOnly)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ editable = try container.decode([String: Any].self, forKey: .editable)
+
+ } 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(readOnly, forKey: .readOnly)
+
+
+
+
+ try? container.encodeIfPresent(editable, forKey: .editable)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/GlobalVariablesPostResponseCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/GlobalVariablesPostResponseCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..412312e0ed
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/GlobalVariablesPostResponseCommunicationPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: GlobalVariablesPostResponse
+ Used By: Communication
+ */
+
+ class GlobalVariablesPostResponse: Codable {
+
+
+ public var id: String?
+
+ public var category: String?
+
+ public var application: String?
+
+ public var globalVariables: [String: Any]?
+
+ public var createdAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case category = "category"
+
+ case application = "application"
+
+ case globalVariables = "global_variables"
+
+ case createdAt = "created_at"
+
+ }
+
+ public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, globalVariables: [String: Any]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.category = category
+
+ self.application = application
+
+ self.globalVariables = globalVariables
+
+ self.createdAt = createdAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ category = try container.decode(String.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalVariables = try container.decode([String: Any].self, forKey: .globalVariables)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(globalVariables, forKey: .globalVariables)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: GlobalVariablesPostResponse
+ Used By: Communication
+ */
+
+ class GlobalVariablesPostResponse: Codable {
+
+
+ public var id: String?
+
+ public var category: String?
+
+ public var application: String?
+
+ public var globalVariables: [String: Any]?
+
+ public var createdAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case category = "category"
+
+ case application = "application"
+
+ case globalVariables = "global_variables"
+
+ case createdAt = "created_at"
+
+ }
+
+ public init(application: String? = nil, category: String? = nil, createdAt: String? = nil, globalVariables: [String: Any]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.category = category
+
+ self.application = application
+
+ self.globalVariables = globalVariables
+
+ self.createdAt = createdAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ category = try container.decode(String.self, forKey: .category)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalVariables = try container.decode([String: Any].self, forKey: .globalVariables)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(category, forKey: .category)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(globalVariables, forKey: .globalVariables)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/SmsProviderReqCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/SmsProviderReqCommunicationPlatformModel.swift
index a9549144af..926207cf8f 100644
--- a/Sources/code/platform/Models/Communication/SmsProviderReqCommunicationPlatformModel.swift
+++ b/Sources/code/platform/Models/Communication/SmsProviderReqCommunicationPlatformModel.swift
@@ -52,10 +52,6 @@ public extension PlatformClient.Communication {
public var apiKey: String?
- public var tenantName1: String?
-
- public var tenantName2: String?
-
public enum CodingKeys: String, CodingKey {
@@ -99,13 +95,9 @@ public extension PlatformClient.Communication {
case apiKey = "api_key"
- case tenantName1 = "tenant_name_1"
-
- case tenantName2 = "tenant_name_2"
-
}
- public init(apikey: String? = nil, apiKey: String? = nil, authkey: String? = nil, description: String? = nil, entityid: String? = nil, entityId: String? = nil, feedid: String? = nil, host: String? = nil, name: String? = nil, overrideDnd: Bool? = nil, password: String? = nil, port: Int? = nil, provider: String? = nil, sender: String? = nil, senderid: String? = nil, senderId: String? = nil, tenantName1: String? = nil, tenantName2: String? = nil, token: String? = nil, type: String? = nil, username: String? = nil, versionId: Int? = nil) {
+ public init(apikey: String? = nil, apiKey: String? = nil, authkey: String? = nil, description: String? = nil, entityid: String? = nil, entityId: String? = nil, feedid: String? = nil, host: String? = nil, name: String? = nil, overrideDnd: Bool? = nil, password: String? = nil, port: Int? = nil, provider: String? = nil, sender: String? = nil, senderid: String? = nil, senderId: String? = nil, token: String? = nil, type: String? = nil, username: String? = nil, versionId: Int? = nil) {
self.name = name
@@ -147,10 +139,6 @@ public extension PlatformClient.Communication {
self.apiKey = apiKey
- self.tenantName1 = tenantName1
-
- self.tenantName2 = tenantName2
-
}
required public init(from decoder: Decoder) throws {
@@ -396,30 +384,6 @@ public extension PlatformClient.Communication {
}
-
- do {
- tenantName1 = try container.decode(String.self, forKey: .tenantName1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- tenantName2 = try container.decode(String.self, forKey: .tenantName2)
-
- } 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 {
@@ -525,16 +489,6 @@ public extension PlatformClient.Communication {
try? container.encodeIfPresent(apiKey, forKey: .apiKey)
-
-
- try? container.encodeIfPresent(tenantName1, forKey: .tenantName1)
-
-
-
-
- try? container.encodeIfPresent(tenantName2, forKey: .tenantName2)
-
-
}
}
@@ -591,10 +545,6 @@ public extension PlatformClient.ApplicationClient.Communication {
public var apiKey: String?
- public var tenantName1: String?
-
- public var tenantName2: String?
-
public enum CodingKeys: String, CodingKey {
@@ -638,13 +588,9 @@ public extension PlatformClient.ApplicationClient.Communication {
case apiKey = "api_key"
- case tenantName1 = "tenant_name_1"
-
- case tenantName2 = "tenant_name_2"
-
}
- public init(apikey: String? = nil, apiKey: String? = nil, authkey: String? = nil, description: String? = nil, entityid: String? = nil, entityId: String? = nil, feedid: String? = nil, host: String? = nil, name: String? = nil, overrideDnd: Bool? = nil, password: String? = nil, port: Int? = nil, provider: String? = nil, sender: String? = nil, senderid: String? = nil, senderId: String? = nil, tenantName1: String? = nil, tenantName2: String? = nil, token: String? = nil, type: String? = nil, username: String? = nil, versionId: Int? = nil) {
+ public init(apikey: String? = nil, apiKey: String? = nil, authkey: String? = nil, description: String? = nil, entityid: String? = nil, entityId: String? = nil, feedid: String? = nil, host: String? = nil, name: String? = nil, overrideDnd: Bool? = nil, password: String? = nil, port: Int? = nil, provider: String? = nil, sender: String? = nil, senderid: String? = nil, senderId: String? = nil, token: String? = nil, type: String? = nil, username: String? = nil, versionId: Int? = nil) {
self.name = name
@@ -686,10 +632,6 @@ public extension PlatformClient.ApplicationClient.Communication {
self.apiKey = apiKey
- self.tenantName1 = tenantName1
-
- self.tenantName2 = tenantName2
-
}
required public init(from decoder: Decoder) throws {
@@ -935,30 +877,6 @@ public extension PlatformClient.ApplicationClient.Communication {
}
-
- do {
- tenantName1 = try container.decode(String.self, forKey: .tenantName1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- tenantName2 = try container.decode(String.self, forKey: .tenantName2)
-
- } 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 {
@@ -1064,16 +982,6 @@ public extension PlatformClient.ApplicationClient.Communication {
try? container.encodeIfPresent(apiKey, forKey: .apiKey)
-
-
- try? container.encodeIfPresent(tenantName1, forKey: .tenantName1)
-
-
-
-
- try? container.encodeIfPresent(tenantName2, forKey: .tenantName2)
-
-
}
}
diff --git a/Sources/code/platform/Models/Communication/TriggerJobPayloadCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/TriggerJobPayloadCommunicationPlatformModel.swift
deleted file mode 100644
index 1dc5e7c0dd..0000000000
--- a/Sources/code/platform/Models/Communication/TriggerJobPayloadCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: TriggerJobPayload
- Used By: Communication
- */
-
- class TriggerJobPayload: Codable {
-
-
- public var jobId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case jobId = "job_id"
-
- }
-
- public init(jobId: String? = nil) {
-
- self.jobId = jobId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- jobId = try container.decode(String.self, forKey: .jobId)
-
- } 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(jobId, forKey: .jobId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: TriggerJobPayload
- Used By: Communication
- */
-
- class TriggerJobPayload: Codable {
-
-
- public var jobId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case jobId = "job_id"
-
- }
-
- public init(jobId: String? = nil) {
-
- self.jobId = jobId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- jobId = try container.decode(String.self, forKey: .jobId)
-
- } 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(jobId, forKey: .jobId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Communication/TriggerJobRequestCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/TriggerJobRequestCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..5bcfb7ec38
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/TriggerJobRequestCommunicationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: TriggerJobRequest
+ Used By: Communication
+ */
+
+ class TriggerJobRequest: Codable {
+
+
+ public var jobId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case jobId = "job_id"
+
+ }
+
+ public init(jobId: String? = nil) {
+
+ self.jobId = jobId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ jobId = try container.decode(String.self, forKey: .jobId)
+
+ } 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(jobId, forKey: .jobId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: TriggerJobRequest
+ Used By: Communication
+ */
+
+ class TriggerJobRequest: Codable {
+
+
+ public var jobId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case jobId = "job_id"
+
+ }
+
+ public init(jobId: String? = nil) {
+
+ self.jobId = jobId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ jobId = try container.decode(String.self, forKey: .jobId)
+
+ } 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(jobId, forKey: .jobId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/TriggerJobResponseCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/TriggerJobResponseCommunicationPlatformModel.swift
new file mode 100644
index 0000000000..3528b4a4f4
--- /dev/null
+++ b/Sources/code/platform/Models/Communication/TriggerJobResponseCommunicationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Communication {
+ /*
+ Model: TriggerJobResponse
+ Used By: Communication
+ */
+
+ class TriggerJobResponse: Codable {
+
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ }
+
+ public init(status: Int? = nil) {
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Communication {
+ /*
+ Model: TriggerJobResponse
+ Used By: Communication
+ */
+
+ class TriggerJobResponse: Codable {
+
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ }
+
+ public init(status: Int? = nil) {
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Communication/TriggerJobResultCommunicationPlatformModel.swift b/Sources/code/platform/Models/Communication/TriggerJobResultCommunicationPlatformModel.swift
deleted file mode 100644
index ca8fb19758..0000000000
--- a/Sources/code/platform/Models/Communication/TriggerJobResultCommunicationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Communication {
- /*
- Model: TriggerJobResult
- Used By: Communication
- */
-
- class TriggerJobResult: Codable {
-
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- }
-
- public init(status: Int? = nil) {
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Communication {
- /*
- Model: TriggerJobResult
- Used By: Communication
- */
-
- class TriggerJobResult: Codable {
-
-
- public var status: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- }
-
- public init(status: Int? = nil) {
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/AddressSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/AddressSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 8bbcf104ed..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/AddressSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,317 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: AddressSchema
- Used By: CompanyProfile
- */
-
- class AddressSchema: Codable {
-
-
- public var landmark: String?
-
- public var countryCode: String
-
- public var pincode: Int?
-
- public var addressType: String?
-
- public var longitude: Double
-
- public var country: String?
-
- public var address2: String?
-
- public var state: String?
-
- public var sector: String?
-
- public var stateCode: String?
-
- public var address1: String?
-
- public var city: String?
-
- public var latitude: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case landmark = "landmark"
-
- case countryCode = "country_code"
-
- case pincode = "pincode"
-
- case addressType = "address_type"
-
- case longitude = "longitude"
-
- case country = "country"
-
- case address2 = "address2"
-
- case state = "state"
-
- case sector = "sector"
-
- case stateCode = "state_code"
-
- case address1 = "address1"
-
- case city = "city"
-
- case latitude = "latitude"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil) {
-
- self.landmark = landmark
-
- self.countryCode = countryCode
-
- self.pincode = pincode
-
- self.addressType = addressType
-
- self.longitude = longitude
-
- self.country = country
-
- self.address2 = address2
-
- self.state = state
-
- self.sector = sector
-
- self.stateCode = stateCode
-
- self.address1 = address1
-
- self.city = city
-
- self.latitude = latitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- longitude = try container.decode(Double.self, forKey: .longitude)
-
-
-
-
- do {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- sector = try container.decode(String.self, forKey: .sector)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- latitude = try container.decode(Double.self, forKey: .latitude)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(sector, forKey: .sector)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/AddressSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/AddressSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..3f69282fc4
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/AddressSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,317 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: AddressSerializer
+ Used By: CompanyProfile
+ */
+
+ class AddressSerializer: Codable {
+
+
+ public var landmark: String?
+
+ public var countryCode: String
+
+ public var pincode: Int?
+
+ public var addressType: String?
+
+ public var longitude: Double
+
+ public var country: String?
+
+ public var address2: String?
+
+ public var state: String?
+
+ public var sector: String?
+
+ public var stateCode: String?
+
+ public var address1: String?
+
+ public var city: String?
+
+ public var latitude: Double
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case landmark = "landmark"
+
+ case countryCode = "country_code"
+
+ case pincode = "pincode"
+
+ case addressType = "address_type"
+
+ case longitude = "longitude"
+
+ case country = "country"
+
+ case address2 = "address2"
+
+ case state = "state"
+
+ case sector = "sector"
+
+ case stateCode = "state_code"
+
+ case address1 = "address1"
+
+ case city = "city"
+
+ case latitude = "latitude"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil) {
+
+ self.landmark = landmark
+
+ self.countryCode = countryCode
+
+ self.pincode = pincode
+
+ self.addressType = addressType
+
+ self.longitude = longitude
+
+ self.country = country
+
+ self.address2 = address2
+
+ self.state = state
+
+ self.sector = sector
+
+ self.stateCode = stateCode
+
+ self.address1 = address1
+
+ self.city = city
+
+ self.latitude = latitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ countryCode = try container.decode(String.self, forKey: .countryCode)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ longitude = try container.decode(Double.self, forKey: .longitude)
+
+
+
+
+ do {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ sector = try container.decode(String.self, forKey: .sector)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stateCode = try container.decode(String.self, forKey: .stateCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ latitude = try container.decode(Double.self, forKey: .latitude)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(sector, forKey: .sector)
+
+
+
+
+ try? container.encodeIfPresent(stateCode, forKey: .stateCode)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/BrandBannerSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/BrandBannerSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index d9c3d2d8ef..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/BrandBannerSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: BrandBannerSchema
- Used By: CompanyProfile
- */
-
- class BrandBannerSchema: Codable {
-
-
- public var portrait: String
-
- public var landscape: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case portrait = "portrait"
-
- case landscape = "landscape"
-
- }
-
- public init(landscape: String, portrait: String) {
-
- self.portrait = portrait
-
- self.landscape = landscape
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- portrait = try container.decode(String.self, forKey: .portrait)
-
-
-
-
- landscape = try container.decode(String.self, forKey: .landscape)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(portrait, forKey: .portrait)
-
-
-
-
- try? container.encodeIfPresent(landscape, forKey: .landscape)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/BrandBannerSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/BrandBannerSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..03d98fbbc2
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/BrandBannerSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,71 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: BrandBannerSerializer
+ Used By: CompanyProfile
+ */
+
+ class BrandBannerSerializer: Codable {
+
+
+ public var portrait: String
+
+ public var landscape: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case portrait = "portrait"
+
+ case landscape = "landscape"
+
+ }
+
+ public init(landscape: String, portrait: String) {
+
+ self.portrait = portrait
+
+ self.landscape = landscape
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ portrait = try container.decode(String.self, forKey: .portrait)
+
+
+
+
+ landscape = try container.decode(String.self, forKey: .landscape)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(portrait, forKey: .portrait)
+
+
+
+
+ try? container.encodeIfPresent(landscape, forKey: .landscape)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/BulkLocationSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/BulkLocationSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 476eb0aa2f..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/BulkLocationSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: BulkLocationSchema
- Used By: CompanyProfile
- */
-
- class BulkLocationSchema: Codable {
-
-
- public var data: [LocationSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [LocationSchema]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([LocationSchema].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/BulkLocationSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/BulkLocationSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..7823bcf50e
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/BulkLocationSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: BulkLocationSerializer
+ Used By: CompanyProfile
+ */
+
+ class BulkLocationSerializer: Codable {
+
+
+ public var data: [LocationSerializer]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [LocationSerializer]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([LocationSerializer].self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index d23ebde0c0..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CompanyBrandListSchema
- Used By: CompanyProfile
- */
-
- class CompanyBrandListSchema: Codable {
-
-
- public var items: [CompanyBrandSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CompanyBrandSchema]? = nil, page: Page? = nil) {
-
- 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([CompanyBrandSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..7075182a2b
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CompanyBrandListSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CompanyBrandListSerializer
+ Used By: CompanyProfile
+ */
+
+ class CompanyBrandListSerializer: Codable {
+
+
+ public var items: [CompanyBrandSerializer]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CompanyBrandSerializer]? = nil, page: Page? = nil) {
+
+ 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([CompanyBrandSerializer].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 1179e07da8..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CompanyBrandPostRequestSchema
- Used By: CompanyProfile
- */
-
- class CompanyBrandPostRequestSchema: Codable {
-
-
- public var uid: Int?
-
- public var brands: [Int]
-
- public var company: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case brands = "brands"
-
- case company = "company"
-
- }
-
- public init(brands: [Int], company: Int, uid: Int? = nil) {
-
- self.uid = uid
-
- self.brands = brands
-
- self.company = company
-
- }
-
- 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 {
-
- }
-
-
-
- brands = try container.decode([Int].self, forKey: .brands)
-
-
-
-
- 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(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..7c9085b114
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CompanyBrandPostRequestSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,94 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CompanyBrandPostRequestSerializer
+ Used By: CompanyProfile
+ */
+
+ class CompanyBrandPostRequestSerializer: Codable {
+
+
+ public var uid: Int?
+
+ public var brands: [Int]
+
+ public var company: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uid = "uid"
+
+ case brands = "brands"
+
+ case company = "company"
+
+ }
+
+ public init(brands: [Int], company: Int, uid: Int? = nil) {
+
+ self.uid = uid
+
+ self.brands = brands
+
+ self.company = company
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ brands = try container.decode([Int].self, forKey: .brands)
+
+
+
+
+ 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(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index f73f5422ad..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CompanyBrandSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,315 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CompanyBrandSchema
- Used By: CompanyProfile
- */
-
- class CompanyBrandSchema: Codable {
-
-
- public var stage: String?
-
- public var verifiedOn: String?
-
- public var verifiedBy: UserSchema?
-
- public var createdOn: String?
-
- public var createdBy: UserSchema?
-
- public var company: CompanySchema?
-
- public var warnings: [String: Any]?
-
- public var modifiedOn: String?
-
- public var uid: Int?
-
- public var rejectReason: String?
-
- public var brand: GetBrandResponseSchema?
-
- public var modifiedBy: UserSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stage = "stage"
-
- case verifiedOn = "verified_on"
-
- case verifiedBy = "verified_by"
-
- case createdOn = "created_on"
-
- case createdBy = "created_by"
-
- case company = "company"
-
- case warnings = "warnings"
-
- case modifiedOn = "modified_on"
-
- case uid = "uid"
-
- case rejectReason = "reject_reason"
-
- case brand = "brand"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(brand: GetBrandResponseSchema? = nil, company: CompanySchema? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil) {
-
- self.stage = stage
-
- self.verifiedOn = verifiedOn
-
- self.verifiedBy = verifiedBy
-
- self.createdOn = createdOn
-
- self.createdBy = createdBy
-
- self.company = company
-
- self.warnings = warnings
-
- self.modifiedOn = modifiedOn
-
- self.uid = uid
-
- self.rejectReason = rejectReason
-
- self.brand = brand
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- company = try container.decode(CompanySchema.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- brand = try container.decode(GetBrandResponseSchema.self, forKey: .brand)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } 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(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- 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(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyBrandSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyBrandSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..628e74c6a5
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CompanyBrandSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,315 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CompanyBrandSerializer
+ Used By: CompanyProfile
+ */
+
+ class CompanyBrandSerializer: Codable {
+
+
+ public var stage: String?
+
+ public var verifiedOn: String?
+
+ public var verifiedBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var company: CompanySerializer?
+
+ public var warnings: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var uid: Int?
+
+ public var rejectReason: String?
+
+ public var brand: GetBrandResponseSerializer?
+
+ public var modifiedBy: UserSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case stage = "stage"
+
+ case verifiedOn = "verified_on"
+
+ case verifiedBy = "verified_by"
+
+ case createdOn = "created_on"
+
+ case createdBy = "created_by"
+
+ case company = "company"
+
+ case warnings = "warnings"
+
+ case modifiedOn = "modified_on"
+
+ case uid = "uid"
+
+ case rejectReason = "reject_reason"
+
+ case brand = "brand"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(brand: GetBrandResponseSerializer? = nil, company: CompanySerializer? = nil, createdBy: UserSerializer? = nil, createdOn: String? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil) {
+
+ self.stage = stage
+
+ self.verifiedOn = verifiedOn
+
+ self.verifiedBy = verifiedBy
+
+ self.createdOn = createdOn
+
+ self.createdBy = createdBy
+
+ self.company = company
+
+ self.warnings = warnings
+
+ self.modifiedOn = modifiedOn
+
+ self.uid = uid
+
+ self.rejectReason = rejectReason
+
+ self.brand = brand
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ company = try container.decode(CompanySerializer.self, forKey: .company)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ 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(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanySchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanySchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 22b43a37cd..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CompanySchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,439 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CompanySchema
- Used By: CompanyProfile
- */
-
- class CompanySchema: Codable {
-
-
- public var stage: String?
-
- public var customJson: [String: Any]?
-
- public var verifiedOn: String?
-
- public var verifiedBy: UserSchema?
-
- public var createdOn: String?
-
- public var createdBy: UserSchema?
-
- public var companyType: String
-
- public var modifiedOn: String?
-
- public var marketChannels: [String]?
-
- public var businessType: String
-
- public var addresses: [GetAddressSchema]?
-
- public var notificationEmails: [String]?
-
- public var details: CompanyDetails?
-
- public var businessCountryInfo: BusinessCountryInfo?
-
- public var uid: Int?
-
- public var rejectReason: String?
-
- public var name: String?
-
- public var modifiedBy: UserSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stage = "stage"
-
- case customJson = "_custom_json"
-
- case verifiedOn = "verified_on"
-
- case verifiedBy = "verified_by"
-
- case createdOn = "created_on"
-
- case createdBy = "created_by"
-
- case companyType = "company_type"
-
- case modifiedOn = "modified_on"
-
- case marketChannels = "market_channels"
-
- case businessType = "business_type"
-
- case addresses = "addresses"
-
- case notificationEmails = "notification_emails"
-
- case details = "details"
-
- case businessCountryInfo = "business_country_info"
-
- case uid = "uid"
-
- case rejectReason = "reject_reason"
-
- case name = "name"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(addresses: [GetAddressSchema]? = nil, businessCountryInfo: BusinessCountryInfo? = nil, businessType: String, companyType: String, createdBy: UserSchema? = nil, createdOn: String? = nil, details: CompanyDetails? = nil, marketChannels: [String]? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
-
- self.stage = stage
-
- self.customJson = customJson
-
- self.verifiedOn = verifiedOn
-
- self.verifiedBy = verifiedBy
-
- self.createdOn = createdOn
-
- self.createdBy = createdBy
-
- self.companyType = companyType
-
- self.modifiedOn = modifiedOn
-
- self.marketChannels = marketChannels
-
- self.businessType = businessType
-
- self.addresses = addresses
-
- self.notificationEmails = notificationEmails
-
- self.details = details
-
- self.businessCountryInfo = businessCountryInfo
-
- self.uid = uid
-
- self.rejectReason = rejectReason
-
- self.name = name
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
- 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 {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- companyType = try container.decode(String.self, forKey: .companyType)
-
-
-
-
- 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 {
- marketChannels = try container.decode([String].self, forKey: .marketChannels)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- businessType = try container.decode(String.self, forKey: .businessType)
-
-
-
-
- do {
- addresses = try container.decode([GetAddressSchema].self, forKey: .addresses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- details = try container.decode(CompanyDetails.self, forKey: .details)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } 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(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(companyType, forKey: .companyType)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(marketChannels, forKey: .marketChannels)
-
-
-
-
- try? container.encodeIfPresent(businessType, forKey: .businessType)
-
-
-
-
- try? container.encodeIfPresent(addresses, forKey: .addresses)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
-
-
- try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanySerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanySerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..a992ed8cce
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CompanySerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,439 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CompanySerializer
+ Used By: CompanyProfile
+ */
+
+ class CompanySerializer: Codable {
+
+
+ public var stage: String?
+
+ public var customJson: [String: Any]?
+
+ public var verifiedOn: String?
+
+ public var verifiedBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var companyType: String
+
+ public var modifiedOn: String?
+
+ public var marketChannels: [String]?
+
+ public var businessType: String
+
+ public var addresses: [GetAddressSerializer]?
+
+ public var notificationEmails: [String]?
+
+ public var details: CompanyDetails?
+
+ public var businessCountryInfo: BusinessCountryInfo?
+
+ public var uid: Int?
+
+ public var rejectReason: String?
+
+ public var name: String?
+
+ public var modifiedBy: UserSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case stage = "stage"
+
+ case customJson = "_custom_json"
+
+ case verifiedOn = "verified_on"
+
+ case verifiedBy = "verified_by"
+
+ case createdOn = "created_on"
+
+ case createdBy = "created_by"
+
+ case companyType = "company_type"
+
+ case modifiedOn = "modified_on"
+
+ case marketChannels = "market_channels"
+
+ case businessType = "business_type"
+
+ case addresses = "addresses"
+
+ case notificationEmails = "notification_emails"
+
+ case details = "details"
+
+ case businessCountryInfo = "business_country_info"
+
+ case uid = "uid"
+
+ case rejectReason = "reject_reason"
+
+ case name = "name"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(addresses: [GetAddressSerializer]? = nil, businessCountryInfo: BusinessCountryInfo? = nil, businessType: String, companyType: String, createdBy: UserSerializer? = nil, createdOn: String? = nil, details: CompanyDetails? = nil, marketChannels: [String]? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil, customJson: [String: Any]? = nil) {
+
+ self.stage = stage
+
+ self.customJson = customJson
+
+ self.verifiedOn = verifiedOn
+
+ self.verifiedBy = verifiedBy
+
+ self.createdOn = createdOn
+
+ self.createdBy = createdBy
+
+ self.companyType = companyType
+
+ self.modifiedOn = modifiedOn
+
+ self.marketChannels = marketChannels
+
+ self.businessType = businessType
+
+ self.addresses = addresses
+
+ self.notificationEmails = notificationEmails
+
+ self.details = details
+
+ self.businessCountryInfo = businessCountryInfo
+
+ self.uid = uid
+
+ self.rejectReason = rejectReason
+
+ self.name = name
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ companyType = try container.decode(String.self, forKey: .companyType)
+
+
+
+
+ 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 {
+ marketChannels = try container.decode([String].self, forKey: .marketChannels)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ businessType = try container.decode(String.self, forKey: .businessType)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ details = try container.decode(CompanyDetails.self, forKey: .details)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(companyType, forKey: .companyType)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(marketChannels, forKey: .marketChannels)
+
+
+
+
+ try? container.encodeIfPresent(businessType, forKey: .businessType)
+
+
+
+
+ try? container.encodeIfPresent(addresses, forKey: .addresses)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+
+
+ try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index e579f9431e..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CompanyTaxesSchema
- Used By: CompanyProfile
- */
-
- class CompanyTaxesSchema: Codable {
-
-
- public var effectiveDate: String?
-
- public var rate: Double?
-
- public var enable: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case effectiveDate = "effective_date"
-
- case rate = "rate"
-
- case enable = "enable"
-
- }
-
- public init(effectiveDate: String? = nil, enable: Bool? = nil, rate: Double? = nil) {
-
- self.effectiveDate = effectiveDate
-
- self.rate = rate
-
- self.enable = enable
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- effectiveDate = try container.decode(String.self, forKey: .effectiveDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- rate = try container.decode(Double.self, forKey: .rate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- enable = try container.decode(Bool.self, forKey: .enable)
-
- } 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(effectiveDate, forKey: .effectiveDate)
-
-
-
-
- try? container.encodeIfPresent(rate, forKey: .rate)
-
-
-
-
- try? container.encodeIfPresent(enable, forKey: .enable)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..ec575e9579
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CompanyTaxesSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CompanyTaxesSerializer
+ Used By: CompanyProfile
+ */
+
+ class CompanyTaxesSerializer: Codable {
+
+
+ public var effectiveDate: String?
+
+ public var rate: Double?
+
+ public var enable: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case effectiveDate = "effective_date"
+
+ case rate = "rate"
+
+ case enable = "enable"
+
+ }
+
+ public init(effectiveDate: String? = nil, enable: Bool? = nil, rate: Double? = nil) {
+
+ self.effectiveDate = effectiveDate
+
+ self.rate = rate
+
+ self.enable = enable
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ effectiveDate = try container.decode(String.self, forKey: .effectiveDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ rate = try container.decode(Double.self, forKey: .rate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ enable = try container.decode(Bool.self, forKey: .enable)
+
+ } 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(effectiveDate, forKey: .effectiveDate)
+
+
+
+
+ try? container.encodeIfPresent(rate, forKey: .rate)
+
+
+
+
+ try? container.encodeIfPresent(enable, forKey: .enable)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 6b410e7840..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,271 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CreateBrandRequestSchema
- Used By: CompanyProfile
- */
-
- class CreateBrandRequestSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var synonyms: [String]?
-
- public var companyId: Int?
-
- public var description: String?
-
- public var logo: String
-
- public var brandTier: String?
-
- public var uid: Int?
-
- public var banner: BrandBannerSchema
-
- public var name: String
-
- public var slugKey: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case synonyms = "synonyms"
-
- case companyId = "company_id"
-
- case description = "description"
-
- case logo = "logo"
-
- case brandTier = "brand_tier"
-
- case uid = "uid"
-
- case banner = "banner"
-
- case name = "name"
-
- case slugKey = "slug_key"
-
- }
-
- public init(banner: BrandBannerSchema, brandTier: String? = nil, companyId: Int? = nil, description: String? = nil, logo: String, name: String, slugKey: String? = nil, synonyms: [String]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.synonyms = synonyms
-
- self.companyId = companyId
-
- self.description = description
-
- self.logo = logo
-
- self.brandTier = brandTier
-
- self.uid = uid
-
- self.banner = banner
-
- self.name = name
-
- self.slugKey = slugKey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- logo = try container.decode(String.self, forKey: .logo)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- banner = try container.decode(BrandBannerSchema.self, forKey: .banner)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(brandTier, forKey: .brandTier)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(banner, forKey: .banner)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slugKey, forKey: .slugKey)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..febdad03a3
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CreateBrandRequestSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,271 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CreateBrandRequestSerializer
+ Used By: CompanyProfile
+ */
+
+ class CreateBrandRequestSerializer: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var synonyms: [String]?
+
+ public var companyId: Int?
+
+ public var description: String?
+
+ public var logo: String
+
+ public var brandTier: String?
+
+ public var uid: Int?
+
+ public var banner: BrandBannerSerializer
+
+ public var name: String
+
+ public var slugKey: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case synonyms = "synonyms"
+
+ case companyId = "company_id"
+
+ case description = "description"
+
+ case logo = "logo"
+
+ case brandTier = "brand_tier"
+
+ case uid = "uid"
+
+ case banner = "banner"
+
+ case name = "name"
+
+ case slugKey = "slug_key"
+
+ }
+
+ public init(banner: BrandBannerSerializer, brandTier: String? = nil, companyId: Int? = nil, description: String? = nil, logo: String, name: String, slugKey: String? = nil, synonyms: [String]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.synonyms = synonyms
+
+ self.companyId = companyId
+
+ self.description = description
+
+ self.logo = logo
+
+ self.brandTier = brandTier
+
+ self.uid = uid
+
+ self.banner = banner
+
+ self.name = name
+
+ self.slugKey = slugKey
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ logo = try container.decode(String.self, forKey: .logo)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ banner = try container.decode(BrandBannerSerializer.self, forKey: .banner)
+
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(brandTier, forKey: .brandTier)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(banner, forKey: .banner)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(slugKey, forKey: .slugKey)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 0dc7eab908..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,236 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: CreateUpdateAddressSchema
- Used By: CompanyProfile
- */
-
- class CreateUpdateAddressSchema: Codable {
-
-
- public var landmark: String?
-
- public var countryCode: String?
-
- public var pincode: Int
-
- public var addressType: String
-
- public var longitude: Double
-
- public var country: String
-
- public var address2: String?
-
- public var state: String
-
- public var address1: String
-
- public var city: String
-
- public var latitude: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case landmark = "landmark"
-
- case countryCode = "country_code"
-
- case pincode = "pincode"
-
- case addressType = "address_type"
-
- case longitude = "longitude"
-
- case country = "country"
-
- case address2 = "address2"
-
- case state = "state"
-
- case address1 = "address1"
-
- case city = "city"
-
- case latitude = "latitude"
-
- }
-
- public init(address1: String, address2: String? = nil, addressType: String, city: String, country: String, countryCode: String? = nil, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int, state: String) {
-
- self.landmark = landmark
-
- self.countryCode = countryCode
-
- self.pincode = pincode
-
- self.addressType = addressType
-
- self.longitude = longitude
-
- self.country = country
-
- self.address2 = address2
-
- self.state = state
-
- self.address1 = address1
-
- self.city = city
-
- self.latitude = latitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- pincode = try container.decode(Int.self, forKey: .pincode)
-
-
-
-
- addressType = try container.decode(String.self, forKey: .addressType)
-
-
-
-
- longitude = try container.decode(Double.self, forKey: .longitude)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- state = try container.decode(String.self, forKey: .state)
-
-
-
-
- address1 = try container.decode(String.self, forKey: .address1)
-
-
-
-
- city = try container.decode(String.self, forKey: .city)
-
-
-
-
- latitude = try container.decode(Double.self, forKey: .latitude)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..823c62923e
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/CreateUpdateAddressSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,236 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: CreateUpdateAddressSerializer
+ Used By: CompanyProfile
+ */
+
+ class CreateUpdateAddressSerializer: Codable {
+
+
+ public var landmark: String?
+
+ public var countryCode: String?
+
+ public var pincode: Int
+
+ public var addressType: String
+
+ public var longitude: Double
+
+ public var country: String
+
+ public var address2: String?
+
+ public var state: String
+
+ public var address1: String
+
+ public var city: String
+
+ public var latitude: Double
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case landmark = "landmark"
+
+ case countryCode = "country_code"
+
+ case pincode = "pincode"
+
+ case addressType = "address_type"
+
+ case longitude = "longitude"
+
+ case country = "country"
+
+ case address2 = "address2"
+
+ case state = "state"
+
+ case address1 = "address1"
+
+ case city = "city"
+
+ case latitude = "latitude"
+
+ }
+
+ public init(address1: String, address2: String? = nil, addressType: String, city: String, country: String, countryCode: String? = nil, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int, state: String) {
+
+ self.landmark = landmark
+
+ self.countryCode = countryCode
+
+ self.pincode = pincode
+
+ self.addressType = addressType
+
+ self.longitude = longitude
+
+ self.country = country
+
+ self.address2 = address2
+
+ self.state = state
+
+ self.address1 = address1
+
+ self.city = city
+
+ self.latitude = latitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ pincode = try container.decode(Int.self, forKey: .pincode)
+
+
+
+
+ addressType = try container.decode(String.self, forKey: .addressType)
+
+
+
+
+ longitude = try container.decode(Double.self, forKey: .longitude)
+
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ state = try container.decode(String.self, forKey: .state)
+
+
+
+
+ address1 = try container.decode(String.self, forKey: .address1)
+
+
+
+
+ city = try container.decode(String.self, forKey: .city)
+
+
+
+
+ latitude = try container.decode(Double.self, forKey: .latitude)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/ErrorResponseCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ErrorResponseCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..abcac4ef47
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/ErrorResponseCompanyProfilePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: ErrorResponse
+ Used By: CompanyProfile
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var message: String?
+
+ public var code: String?
+
+ public var status: Int?
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case code = "code"
+
+ case status = "status"
+
+ case meta = "meta"
+
+ }
+
+ public init(code: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
+
+ self.message = message
+
+ self.code = code
+
+ self.status = status
+
+ self.meta = meta
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/ErrorResponseSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ErrorResponseSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index f68998dd31..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/ErrorResponseSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: ErrorResponseSchema
- Used By: CompanyProfile
- */
-
- class ErrorResponseSchema: Codable {
-
-
- public var message: String?
-
- public var code: String?
-
- public var status: Int?
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case code = "code"
-
- case status = "status"
-
- case meta = "meta"
-
- }
-
- public init(code: String? = nil, message: String? = nil, meta: [String: Any]? = nil, status: Int? = nil) {
-
- self.message = message
-
- self.code = code
-
- self.status = status
-
- self.meta = meta
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetAddressSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetAddressSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 1c7afbae9a..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/GetAddressSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,324 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: GetAddressSchema
- Used By: CompanyProfile
- */
-
- class GetAddressSchema: Codable {
-
-
- public var landmark: String?
-
- public var countryCode: String?
-
- public var pincode: Int?
-
- public var addressType: String?
-
- public var longitude: Double
-
- public var country: String?
-
- public var address2: String?
-
- public var state: String?
-
- public var stateCode: String?
-
- public var sector: String?
-
- public var address1: String?
-
- public var city: String?
-
- public var latitude: Double
-
-
- public enum CodingKeys: String, CodingKey {
-
- case landmark = "landmark"
-
- case countryCode = "country_code"
-
- case pincode = "pincode"
-
- case addressType = "address_type"
-
- case longitude = "longitude"
-
- case country = "country"
-
- case address2 = "address2"
-
- case state = "state"
-
- case stateCode = "state_code"
-
- case sector = "sector"
-
- case address1 = "address1"
-
- case city = "city"
-
- case latitude = "latitude"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil) {
-
- self.landmark = landmark
-
- self.countryCode = countryCode
-
- self.pincode = pincode
-
- self.addressType = addressType
-
- self.longitude = longitude
-
- self.country = country
-
- self.address2 = address2
-
- self.state = state
-
- self.stateCode = stateCode
-
- self.sector = sector
-
- self.address1 = address1
-
- self.city = city
-
- self.latitude = latitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- longitude = try container.decode(Double.self, forKey: .longitude)
-
-
-
-
- do {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- sector = try container.decode(String.self, forKey: .sector)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- latitude = try container.decode(Double.self, forKey: .latitude)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(sector, forKey: .sector)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetAddressSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetAddressSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..09363b5462
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/GetAddressSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,324 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: GetAddressSerializer
+ Used By: CompanyProfile
+ */
+
+ class GetAddressSerializer: Codable {
+
+
+ public var landmark: String?
+
+ public var countryCode: String?
+
+ public var pincode: Int?
+
+ public var addressType: String?
+
+ public var longitude: Double
+
+ public var country: String?
+
+ public var address2: String?
+
+ public var state: String?
+
+ public var stateCode: String?
+
+ public var sector: String?
+
+ public var address1: String?
+
+ public var city: String?
+
+ public var latitude: Double
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case landmark = "landmark"
+
+ case countryCode = "country_code"
+
+ case pincode = "pincode"
+
+ case addressType = "address_type"
+
+ case longitude = "longitude"
+
+ case country = "country"
+
+ case address2 = "address2"
+
+ case state = "state"
+
+ case stateCode = "state_code"
+
+ case sector = "sector"
+
+ case address1 = "address1"
+
+ case city = "city"
+
+ case latitude = "latitude"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressType: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, landmark: String? = nil, latitude: Double, longitude: Double, pincode: Int? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil) {
+
+ self.landmark = landmark
+
+ self.countryCode = countryCode
+
+ self.pincode = pincode
+
+ self.addressType = addressType
+
+ self.longitude = longitude
+
+ self.country = country
+
+ self.address2 = address2
+
+ self.state = state
+
+ self.stateCode = stateCode
+
+ self.sector = sector
+
+ self.address1 = address1
+
+ self.city = city
+
+ self.latitude = latitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ longitude = try container.decode(Double.self, forKey: .longitude)
+
+
+
+
+ do {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ stateCode = try container.decode(String.self, forKey: .stateCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sector = try container.decode(String.self, forKey: .sector)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ latitude = try container.decode(Double.self, forKey: .latitude)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(stateCode, forKey: .stateCode)
+
+
+
+
+ try? container.encodeIfPresent(sector, forKey: .sector)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 3c7d62d75d..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,469 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: GetBrandResponseSchema
- Used By: CompanyProfile
- */
-
- class GetBrandResponseSchema: Codable {
-
-
- public var modifiedBy: UserSchema?
-
- public var banner: BrandBannerSchema?
-
- public var name: String
-
- public var customJson: [String: Any]?
-
- public var verifiedOn: String?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var warnings: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var mode: String?
-
- public var synonyms: [String]?
-
- public var modifiedOn: String?
-
- public var uid: Int?
-
- public var rejectReason: String?
-
- public var stage: String?
-
- public var verifiedBy: UserSchema?
-
- public var slugKey: String?
-
- public var logo: String?
-
- public var description: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case modifiedBy = "modified_by"
-
- case banner = "banner"
-
- case name = "name"
-
- case customJson = "_custom_json"
-
- case verifiedOn = "verified_on"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case warnings = "warnings"
-
- case localeLanguage = "_locale_language"
-
- case mode = "mode"
-
- case synonyms = "synonyms"
-
- case modifiedOn = "modified_on"
-
- case uid = "uid"
-
- case rejectReason = "reject_reason"
-
- case stage = "stage"
-
- case verifiedBy = "verified_by"
-
- case slugKey = "slug_key"
-
- case logo = "logo"
-
- case description = "description"
-
- }
-
- public init(banner: BrandBannerSchema? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, description: String? = nil, logo: String? = nil, mode: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String, rejectReason: String? = nil, slugKey: String? = nil, stage: String? = nil, synonyms: [String]? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
-
- self.modifiedBy = modifiedBy
-
- self.banner = banner
-
- self.name = name
-
- self.customJson = customJson
-
- self.verifiedOn = verifiedOn
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.warnings = warnings
-
- self.localeLanguage = localeLanguage
-
- self.mode = mode
-
- self.synonyms = synonyms
-
- self.modifiedOn = modifiedOn
-
- self.uid = uid
-
- self.rejectReason = rejectReason
-
- self.stage = stage
-
- self.verifiedBy = verifiedBy
-
- self.slugKey = slugKey
-
- self.logo = logo
-
- self.description = description
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- banner = try container.decode(BrandBannerSchema.self, forKey: .banner)
-
- } 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 {
- 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 {
- 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(banner, forKey: .banner)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(slugKey, forKey: .slugKey)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..2016a32d30
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/GetBrandResponseSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,469 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: GetBrandResponseSerializer
+ Used By: CompanyProfile
+ */
+
+ class GetBrandResponseSerializer: Codable {
+
+
+ public var modifiedBy: UserSerializer?
+
+ public var banner: BrandBannerSerializer?
+
+ public var name: String
+
+ public var customJson: [String: Any]?
+
+ public var verifiedOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var warnings: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var mode: String?
+
+ public var synonyms: [String]?
+
+ public var modifiedOn: String?
+
+ public var uid: Int?
+
+ public var rejectReason: String?
+
+ public var stage: String?
+
+ public var verifiedBy: UserSerializer?
+
+ public var slugKey: String?
+
+ public var logo: String?
+
+ public var description: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case modifiedBy = "modified_by"
+
+ case banner = "banner"
+
+ case name = "name"
+
+ case customJson = "_custom_json"
+
+ case verifiedOn = "verified_on"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case warnings = "warnings"
+
+ case localeLanguage = "_locale_language"
+
+ case mode = "mode"
+
+ case synonyms = "synonyms"
+
+ case modifiedOn = "modified_on"
+
+ case uid = "uid"
+
+ case rejectReason = "reject_reason"
+
+ case stage = "stage"
+
+ case verifiedBy = "verified_by"
+
+ case slugKey = "slug_key"
+
+ case logo = "logo"
+
+ case description = "description"
+
+ }
+
+ public init(banner: BrandBannerSerializer? = nil, createdBy: UserSerializer? = nil, createdOn: String? = nil, description: String? = nil, logo: String? = nil, mode: String? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, name: String, rejectReason: String? = nil, slugKey: String? = nil, stage: String? = nil, synonyms: [String]? = nil, uid: Int? = nil, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
+
+ self.modifiedBy = modifiedBy
+
+ self.banner = banner
+
+ self.name = name
+
+ self.customJson = customJson
+
+ self.verifiedOn = verifiedOn
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.warnings = warnings
+
+ self.localeLanguage = localeLanguage
+
+ self.mode = mode
+
+ self.synonyms = synonyms
+
+ self.modifiedOn = modifiedOn
+
+ self.uid = uid
+
+ self.rejectReason = rejectReason
+
+ self.stage = stage
+
+ self.verifiedBy = verifiedBy
+
+ self.slugKey = slugKey
+
+ self.logo = logo
+
+ self.description = description
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ mode = try container.decode(String.self, forKey: .mode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(banner, forKey: .banner)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(slugKey, forKey: .slugKey)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..c9b1ddd030
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseCompanyProfilePlatformModel.swift
@@ -0,0 +1,554 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: GetCompanyProfileSerializerResponse
+ Used By: CompanyProfile
+ */
+
+ class GetCompanyProfileSerializerResponse: Codable {
+
+
+ public var businessInfo: String?
+
+ public var taxes: [CompanyTaxesSerializer]?
+
+ public var businessType: String?
+
+ public var name: String?
+
+ public var customJson: [String: Any]?
+
+ public var verifiedOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var warnings: [String: Any]?
+
+ public var businessDetails: BusinessDetails?
+
+ public var mode: String?
+
+ public var contactDetails: ContactDetails?
+
+ public var businessCountryInfo: BusinessCountryInfo?
+
+ public var modifiedOn: String?
+
+ public var uid: Int
+
+ public var franchiseEnabled: Bool?
+
+ public var stage: String?
+
+ public var companyType: String
+
+ public var documents: [Document]?
+
+ public var addresses: [GetAddressSerializer]?
+
+ public var verifiedBy: UserSerializer?
+
+ public var notificationEmails: [String]?
+
+ public var modifiedBy: UserSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessInfo = "business_info"
+
+ case taxes = "taxes"
+
+ case businessType = "business_type"
+
+ case name = "name"
+
+ case customJson = "_custom_json"
+
+ case verifiedOn = "verified_on"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case warnings = "warnings"
+
+ case businessDetails = "business_details"
+
+ case mode = "mode"
+
+ case contactDetails = "contact_details"
+
+ case businessCountryInfo = "business_country_info"
+
+ case modifiedOn = "modified_on"
+
+ case uid = "uid"
+
+ case franchiseEnabled = "franchise_enabled"
+
+ case stage = "stage"
+
+ case companyType = "company_type"
+
+ case documents = "documents"
+
+ case addresses = "addresses"
+
+ case verifiedBy = "verified_by"
+
+ case notificationEmails = "notification_emails"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(addresses: [GetAddressSerializer]? = nil, businessCountryInfo: BusinessCountryInfo? = nil, businessDetails: BusinessDetails? = nil, businessInfo: String? = nil, businessType: String? = nil, companyType: String, contactDetails: ContactDetails? = nil, createdBy: UserSerializer? = nil, createdOn: String? = nil, documents: [Document]? = nil, franchiseEnabled: Bool? = nil, mode: String? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, stage: String? = nil, taxes: [CompanyTaxesSerializer]? = nil, uid: Int, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+
+ self.businessInfo = businessInfo
+
+ self.taxes = taxes
+
+ self.businessType = businessType
+
+ self.name = name
+
+ self.customJson = customJson
+
+ self.verifiedOn = verifiedOn
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.warnings = warnings
+
+ self.businessDetails = businessDetails
+
+ self.mode = mode
+
+ self.contactDetails = contactDetails
+
+ self.businessCountryInfo = businessCountryInfo
+
+ self.modifiedOn = modifiedOn
+
+ self.uid = uid
+
+ self.franchiseEnabled = franchiseEnabled
+
+ self.stage = stage
+
+ self.companyType = companyType
+
+ self.documents = documents
+
+ self.addresses = addresses
+
+ self.verifiedBy = verifiedBy
+
+ self.notificationEmails = notificationEmails
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ taxes = try container.decode([CompanyTaxesSerializer].self, forKey: .taxes)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ mode = try container.decode(String.self, forKey: .mode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ uid = try container.decode(Int.self, forKey: .uid)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ companyType = try container.decode(String.self, forKey: .companyType)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessInfo, forKey: .businessInfo)
+
+
+
+
+ try? container.encodeIfPresent(taxes, forKey: .taxes)
+
+
+
+
+ try? container.encodeIfPresent(businessType, forKey: .businessType)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(businessDetails, forKey: .businessDetails)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(contactDetails, forKey: .contactDetails)
+
+
+
+
+ try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(franchiseEnabled, forKey: .franchiseEnabled)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(companyType, forKey: .companyType)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(addresses, forKey: .addresses)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index b68e4d0eef..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/GetCompanyProfileSerializerResponseSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,554 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: GetCompanyProfileSerializerResponseSchema
- Used By: CompanyProfile
- */
-
- class GetCompanyProfileSerializerResponseSchema: Codable {
-
-
- public var businessInfo: String?
-
- public var taxes: [CompanyTaxesSchema]?
-
- public var businessType: String?
-
- public var name: String?
-
- public var customJson: [String: Any]?
-
- public var verifiedOn: String?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var warnings: [String: Any]?
-
- public var businessDetails: BusinessDetails?
-
- public var mode: String?
-
- public var contactDetails: ContactDetails?
-
- public var businessCountryInfo: BusinessCountryInfo?
-
- public var modifiedOn: String?
-
- public var uid: Int
-
- public var franchiseEnabled: Bool?
-
- public var stage: String?
-
- public var companyType: String
-
- public var documents: [Document]?
-
- public var addresses: [GetAddressSchema]?
-
- public var verifiedBy: UserSchema?
-
- public var notificationEmails: [String]?
-
- public var modifiedBy: UserSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessInfo = "business_info"
-
- case taxes = "taxes"
-
- case businessType = "business_type"
-
- case name = "name"
-
- case customJson = "_custom_json"
-
- case verifiedOn = "verified_on"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case warnings = "warnings"
-
- case businessDetails = "business_details"
-
- case mode = "mode"
-
- case contactDetails = "contact_details"
-
- case businessCountryInfo = "business_country_info"
-
- case modifiedOn = "modified_on"
-
- case uid = "uid"
-
- case franchiseEnabled = "franchise_enabled"
-
- case stage = "stage"
-
- case companyType = "company_type"
-
- case documents = "documents"
-
- case addresses = "addresses"
-
- case verifiedBy = "verified_by"
-
- case notificationEmails = "notification_emails"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(addresses: [GetAddressSchema]? = nil, businessCountryInfo: BusinessCountryInfo? = nil, businessDetails: BusinessDetails? = nil, businessInfo: String? = nil, businessType: String? = nil, companyType: String, contactDetails: ContactDetails? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, documents: [Document]? = nil, franchiseEnabled: Bool? = nil, mode: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, stage: String? = nil, taxes: [CompanyTaxesSchema]? = nil, uid: Int, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.businessInfo = businessInfo
-
- self.taxes = taxes
-
- self.businessType = businessType
-
- self.name = name
-
- self.customJson = customJson
-
- self.verifiedOn = verifiedOn
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.warnings = warnings
-
- self.businessDetails = businessDetails
-
- self.mode = mode
-
- self.contactDetails = contactDetails
-
- self.businessCountryInfo = businessCountryInfo
-
- self.modifiedOn = modifiedOn
-
- self.uid = uid
-
- self.franchiseEnabled = franchiseEnabled
-
- self.stage = stage
-
- self.companyType = companyType
-
- self.documents = documents
-
- self.addresses = addresses
-
- self.verifiedBy = verifiedBy
-
- self.notificationEmails = notificationEmails
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- taxes = try container.decode([CompanyTaxesSchema].self, forKey: .taxes)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- uid = try container.decode(Int.self, forKey: .uid)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- companyType = try container.decode(String.self, forKey: .companyType)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- addresses = try container.decode([GetAddressSchema].self, forKey: .addresses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } 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(businessInfo, forKey: .businessInfo)
-
-
-
-
- try? container.encodeIfPresent(taxes, forKey: .taxes)
-
-
-
-
- try? container.encodeIfPresent(businessType, forKey: .businessType)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(businessDetails, forKey: .businessDetails)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(contactDetails, forKey: .contactDetails)
-
-
-
-
- try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(franchiseEnabled, forKey: .franchiseEnabled)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(companyType, forKey: .companyType)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(addresses, forKey: .addresses)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetCompanySchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetCompanySchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index d288f736e8..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/GetCompanySchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,338 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: GetCompanySchema
- Used By: CompanyProfile
- */
-
- class GetCompanySchema: Codable {
-
-
- public var stage: String?
-
- public var verifiedOn: String?
-
- public var verifiedBy: UserSchema?
-
- public var createdOn: String?
-
- public var createdBy: UserSchema?
-
- public var companyType: String?
-
- public var modifiedOn: String?
-
- public var businessType: String?
-
- public var addresses: [GetAddressSchema]?
-
- public var uid: Int?
-
- public var rejectReason: String?
-
- public var name: String?
-
- public var modifiedBy: UserSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stage = "stage"
-
- case verifiedOn = "verified_on"
-
- case verifiedBy = "verified_by"
-
- case createdOn = "created_on"
-
- case createdBy = "created_by"
-
- case companyType = "company_type"
-
- case modifiedOn = "modified_on"
-
- case businessType = "business_type"
-
- case addresses = "addresses"
-
- case uid = "uid"
-
- case rejectReason = "reject_reason"
-
- case name = "name"
-
- case modifiedBy = "modified_by"
-
- }
-
- public init(addresses: [GetAddressSchema]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil) {
-
- self.stage = stage
-
- self.verifiedOn = verifiedOn
-
- self.verifiedBy = verifiedBy
-
- self.createdOn = createdOn
-
- self.createdBy = createdBy
-
- self.companyType = companyType
-
- self.modifiedOn = modifiedOn
-
- self.businessType = businessType
-
- self.addresses = addresses
-
- self.uid = uid
-
- self.rejectReason = rejectReason
-
- self.name = name
-
- self.modifiedBy = modifiedBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
-
- do {
- addresses = try container.decode([GetAddressSchema].self, forKey: .addresses)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } 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(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(companyType, forKey: .companyType)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(businessType, forKey: .businessType)
-
-
-
-
- try? container.encodeIfPresent(addresses, forKey: .addresses)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetCompanySerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetCompanySerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..2fc582b3ed
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/GetCompanySerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,338 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: GetCompanySerializer
+ Used By: CompanyProfile
+ */
+
+ class GetCompanySerializer: Codable {
+
+
+ public var stage: String?
+
+ public var verifiedOn: String?
+
+ public var verifiedBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var companyType: String?
+
+ public var modifiedOn: String?
+
+ public var businessType: String?
+
+ public var addresses: [GetAddressSerializer]?
+
+ public var uid: Int?
+
+ public var rejectReason: String?
+
+ public var name: String?
+
+ public var modifiedBy: UserSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case stage = "stage"
+
+ case verifiedOn = "verified_on"
+
+ case verifiedBy = "verified_by"
+
+ case createdOn = "created_on"
+
+ case createdBy = "created_by"
+
+ case companyType = "company_type"
+
+ case modifiedOn = "modified_on"
+
+ case businessType = "business_type"
+
+ case addresses = "addresses"
+
+ case uid = "uid"
+
+ case rejectReason = "reject_reason"
+
+ case name = "name"
+
+ case modifiedBy = "modified_by"
+
+ }
+
+ public init(addresses: [GetAddressSerializer]? = nil, businessType: String? = nil, companyType: String? = nil, createdBy: UserSerializer? = nil, createdOn: String? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, name: String? = nil, rejectReason: String? = nil, stage: String? = nil, uid: Int? = nil, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil) {
+
+ self.stage = stage
+
+ self.verifiedOn = verifiedOn
+
+ self.verifiedBy = verifiedBy
+
+ self.createdOn = createdOn
+
+ self.createdBy = createdBy
+
+ self.companyType = companyType
+
+ self.modifiedOn = modifiedOn
+
+ self.businessType = businessType
+
+ self.addresses = addresses
+
+ self.uid = uid
+
+ self.rejectReason = rejectReason
+
+ self.name = name
+
+ self.modifiedBy = modifiedBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(companyType, forKey: .companyType)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(businessType, forKey: .businessType)
+
+
+
+
+ try? container.encodeIfPresent(addresses, forKey: .addresses)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(rejectReason, forKey: .rejectReason)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/GetLocationSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetLocationSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 4ca82711c8..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/GetLocationSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,770 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: GetLocationSchema
- Used By: CompanyProfile
- */
-
- class GetLocationSchema: Codable {
-
-
- public var code: String
-
- public var phoneNumber: String?
-
- public var contactNumbers: [SellerPhoneNumber]?
-
- public var gstCredentials: InvoiceDetailsSchema?
-
- public var name: String
-
- public var customJson: [String: Any]?
-
- public var verifiedOn: String?
-
- public var createdBy: UserSchema?
-
- public var createdOn: String?
-
- public var company: GetCompanySchema?
-
- public var address: GetAddressSchema
-
- public var warnings: [String: Any]?
-
- public var storeType: String?
-
- public var manager: LocationManagerSchema?
-
- public var autoInvoice: Bool?
-
- public var modifiedOn: String?
-
- public var uid: Int?
-
- public var timing: [LocationDayWiseSchema]?
-
- public var stage: String?
-
- public var documents: [Document]?
-
- public var creditNote: Bool?
-
- public var holiday: [HolidaySchemaSchema]?
-
- public var displayName: String
-
- public var productReturnConfig: ProductReturnConfigSchema?
-
- public var verifiedBy: UserSchema?
-
- public var notificationEmails: [String]?
-
- public var modifiedBy: UserSchema?
-
- public var tags: [String]?
-
- public var defaultOrderAcceptanceTiming: Bool?
-
- public var orderAcceptanceTiming: [LocationDayWiseSchema]?
-
- public var avgOrderProcessingTime: AverageOrderProcessingTime?
-
- public var bulkShipment: Bool?
-
- public var autoAssignCourierPartner: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case phoneNumber = "phone_number"
-
- case contactNumbers = "contact_numbers"
-
- case gstCredentials = "gst_credentials"
-
- case name = "name"
-
- case customJson = "_custom_json"
-
- case verifiedOn = "verified_on"
-
- case createdBy = "created_by"
-
- case createdOn = "created_on"
-
- case company = "company"
-
- case address = "address"
-
- case warnings = "warnings"
-
- case storeType = "store_type"
-
- case manager = "manager"
-
- case autoInvoice = "auto_invoice"
-
- case modifiedOn = "modified_on"
-
- case uid = "uid"
-
- case timing = "timing"
-
- case stage = "stage"
-
- case documents = "documents"
-
- case creditNote = "credit_note"
-
- case holiday = "holiday"
-
- case displayName = "display_name"
-
- case productReturnConfig = "product_return_config"
-
- case verifiedBy = "verified_by"
-
- case notificationEmails = "notification_emails"
-
- case modifiedBy = "modified_by"
-
- case tags = "tags"
-
- case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
-
- case orderAcceptanceTiming = "order_acceptance_timing"
-
- case avgOrderProcessingTime = "avg_order_processing_time"
-
- case bulkShipment = "bulk_shipment"
-
- case autoAssignCourierPartner = "auto_assign_courier_partner"
-
- }
-
- public init(address: GetAddressSchema, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: AverageOrderProcessingTime? = nil, bulkShipment: Bool? = nil, code: String, company: GetCompanySchema? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSchema? = nil, createdOn: String? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSchema? = nil, holiday: [HolidaySchemaSchema]? = nil, manager: LocationManagerSchema? = nil, modifiedBy: UserSchema? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, orderAcceptanceTiming: [LocationDayWiseSchema]? = nil, phoneNumber: String? = nil, productReturnConfig: ProductReturnConfigSchema? = nil, stage: String? = nil, storeType: String? = nil, tags: [String]? = nil, timing: [LocationDayWiseSchema]? = nil, uid: Int? = nil, verifiedBy: UserSchema? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.code = code
-
- self.phoneNumber = phoneNumber
-
- self.contactNumbers = contactNumbers
-
- self.gstCredentials = gstCredentials
-
- self.name = name
-
- self.customJson = customJson
-
- self.verifiedOn = verifiedOn
-
- self.createdBy = createdBy
-
- self.createdOn = createdOn
-
- self.company = company
-
- self.address = address
-
- self.warnings = warnings
-
- self.storeType = storeType
-
- self.manager = manager
-
- self.autoInvoice = autoInvoice
-
- self.modifiedOn = modifiedOn
-
- self.uid = uid
-
- self.timing = timing
-
- self.stage = stage
-
- self.documents = documents
-
- self.creditNote = creditNote
-
- self.holiday = holiday
-
- self.displayName = displayName
-
- self.productReturnConfig = productReturnConfig
-
- self.verifiedBy = verifiedBy
-
- self.notificationEmails = notificationEmails
-
- self.modifiedBy = modifiedBy
-
- self.tags = tags
-
- self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
-
- self.orderAcceptanceTiming = orderAcceptanceTiming
-
- self.avgOrderProcessingTime = avgOrderProcessingTime
-
- self.bulkShipment = bulkShipment
-
- self.autoAssignCourierPartner = autoAssignCourierPartner
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- code = try container.decode(String.self, forKey: .code)
-
-
-
-
- do {
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(InvoiceDetailsSchema.self, forKey: .gstCredentials)
-
- } 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 {
- 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 {
- 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 {
- createdBy = try container.decode(UserSchema.self, forKey: .createdBy)
-
- } 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 {
- company = try container.decode(GetCompanySchema.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- address = try container.decode(GetAddressSchema.self, forKey: .address)
-
-
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- do {
- manager = try container.decode(LocationManagerSchema.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- timing = try container.decode([LocationDayWiseSchema].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- creditNote = try container.decode(Bool.self, forKey: .creditNote)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- holiday = try container.decode([HolidaySchemaSchema].self, forKey: .holiday)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigSchema.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(UserSchema.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(UserSchema.self, forKey: .modifiedBy)
-
- } 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 {
- defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderAcceptanceTiming = try container.decode([LocationDayWiseSchema].self, forKey: .orderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- avgOrderProcessingTime = try container.decode(AverageOrderProcessingTime.self, forKey: .avgOrderProcessingTime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
-
- } 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(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(creditNote, forKey: .creditNote)
-
-
-
-
- try? container.encodeIfPresent(holiday, forKey: .holiday)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
-
-
-
-
- try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
-
-
-
-
- try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
-
-
-
-
- try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
-
-
-
-
- try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/GetLocationSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/GetLocationSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..ff76b26f78
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/GetLocationSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,770 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: GetLocationSerializer
+ Used By: CompanyProfile
+ */
+
+ class GetLocationSerializer: Codable {
+
+
+ public var code: String
+
+ public var phoneNumber: String?
+
+ public var contactNumbers: [SellerPhoneNumber]?
+
+ public var gstCredentials: InvoiceDetailsSerializer?
+
+ public var name: String
+
+ public var customJson: [String: Any]?
+
+ public var verifiedOn: String?
+
+ public var createdBy: UserSerializer?
+
+ public var createdOn: String?
+
+ public var company: GetCompanySerializer?
+
+ public var address: GetAddressSerializer
+
+ public var warnings: [String: Any]?
+
+ public var storeType: String?
+
+ public var manager: LocationManagerSerializer?
+
+ public var autoInvoice: Bool?
+
+ public var modifiedOn: String?
+
+ public var uid: Int?
+
+ public var timing: [LocationDayWiseSerializer]?
+
+ public var stage: String?
+
+ public var documents: [Document]?
+
+ public var creditNote: Bool?
+
+ public var holiday: [HolidaySchemaSerializer]?
+
+ public var displayName: String
+
+ public var productReturnConfig: ProductReturnConfigSerializer?
+
+ public var verifiedBy: UserSerializer?
+
+ public var notificationEmails: [String]?
+
+ public var modifiedBy: UserSerializer?
+
+ public var tags: [String]?
+
+ public var defaultOrderAcceptanceTiming: Bool?
+
+ public var orderAcceptanceTiming: [LocationDayWiseSerializer]?
+
+ public var avgOrderProcessingTime: AverageOrderProcessingTime?
+
+ public var bulkShipment: Bool?
+
+ public var autoAssignCourierPartner: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case phoneNumber = "phone_number"
+
+ case contactNumbers = "contact_numbers"
+
+ case gstCredentials = "gst_credentials"
+
+ case name = "name"
+
+ case customJson = "_custom_json"
+
+ case verifiedOn = "verified_on"
+
+ case createdBy = "created_by"
+
+ case createdOn = "created_on"
+
+ case company = "company"
+
+ case address = "address"
+
+ case warnings = "warnings"
+
+ case storeType = "store_type"
+
+ case manager = "manager"
+
+ case autoInvoice = "auto_invoice"
+
+ case modifiedOn = "modified_on"
+
+ case uid = "uid"
+
+ case timing = "timing"
+
+ case stage = "stage"
+
+ case documents = "documents"
+
+ case creditNote = "credit_note"
+
+ case holiday = "holiday"
+
+ case displayName = "display_name"
+
+ case productReturnConfig = "product_return_config"
+
+ case verifiedBy = "verified_by"
+
+ case notificationEmails = "notification_emails"
+
+ case modifiedBy = "modified_by"
+
+ case tags = "tags"
+
+ case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
+
+ case orderAcceptanceTiming = "order_acceptance_timing"
+
+ case avgOrderProcessingTime = "avg_order_processing_time"
+
+ case bulkShipment = "bulk_shipment"
+
+ case autoAssignCourierPartner = "auto_assign_courier_partner"
+
+ }
+
+ public init(address: GetAddressSerializer, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: AverageOrderProcessingTime? = nil, bulkShipment: Bool? = nil, code: String, company: GetCompanySerializer? = nil, contactNumbers: [SellerPhoneNumber]? = nil, createdBy: UserSerializer? = nil, createdOn: String? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, displayName: String, documents: [Document]? = nil, gstCredentials: InvoiceDetailsSerializer? = nil, holiday: [HolidaySchemaSerializer]? = nil, manager: LocationManagerSerializer? = nil, modifiedBy: UserSerializer? = nil, modifiedOn: String? = nil, name: String, notificationEmails: [String]? = nil, orderAcceptanceTiming: [LocationDayWiseSerializer]? = nil, phoneNumber: String? = nil, productReturnConfig: ProductReturnConfigSerializer? = nil, stage: String? = nil, storeType: String? = nil, tags: [String]? = nil, timing: [LocationDayWiseSerializer]? = nil, uid: Int? = nil, verifiedBy: UserSerializer? = nil, verifiedOn: String? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+
+ self.code = code
+
+ self.phoneNumber = phoneNumber
+
+ self.contactNumbers = contactNumbers
+
+ self.gstCredentials = gstCredentials
+
+ self.name = name
+
+ self.customJson = customJson
+
+ self.verifiedOn = verifiedOn
+
+ self.createdBy = createdBy
+
+ self.createdOn = createdOn
+
+ self.company = company
+
+ self.address = address
+
+ self.warnings = warnings
+
+ self.storeType = storeType
+
+ self.manager = manager
+
+ self.autoInvoice = autoInvoice
+
+ self.modifiedOn = modifiedOn
+
+ self.uid = uid
+
+ self.timing = timing
+
+ self.stage = stage
+
+ self.documents = documents
+
+ self.creditNote = creditNote
+
+ self.holiday = holiday
+
+ self.displayName = displayName
+
+ self.productReturnConfig = productReturnConfig
+
+ self.verifiedBy = verifiedBy
+
+ self.notificationEmails = notificationEmails
+
+ self.modifiedBy = modifiedBy
+
+ self.tags = tags
+
+ self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
+
+ self.orderAcceptanceTiming = orderAcceptanceTiming
+
+ self.avgOrderProcessingTime = avgOrderProcessingTime
+
+ self.bulkShipment = bulkShipment
+
+ self.autoAssignCourierPartner = autoAssignCourierPartner
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ code = try container.decode(String.self, forKey: .code)
+
+
+
+
+ do {
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ address = try container.decode(GetAddressSerializer.self, forKey: .address)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ creditNote = try container.decode(Bool.self, forKey: .creditNote)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ holiday = try container.decode([HolidaySchemaSerializer].self, forKey: .holiday)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } 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 {
+ defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderAcceptanceTiming = try container.decode([LocationDayWiseSerializer].self, forKey: .orderAcceptanceTiming)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ avgOrderProcessingTime = try container.decode(AverageOrderProcessingTime.self, forKey: .avgOrderProcessingTime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
+
+ } 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(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(creditNote, forKey: .creditNote)
+
+
+
+
+ try? container.encodeIfPresent(holiday, forKey: .holiday)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
+
+
+
+
+ try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
+
+
+
+
+ try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
+
+
+
+
+ try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
+
+
+
+
+ try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/HolidayDateSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/HolidayDateSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index e537520a9b..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/HolidayDateSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: HolidayDateSchema
- Used By: CompanyProfile
- */
-
- class HolidayDateSchema: Codable {
-
-
- public var endDate: String
-
- public var startDate: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case endDate = "end_date"
-
- case startDate = "start_date"
-
- }
-
- public init(endDate: String, startDate: String) {
-
- self.endDate = endDate
-
- self.startDate = startDate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- endDate = try container.decode(String.self, forKey: .endDate)
-
-
-
-
- startDate = try container.decode(String.self, forKey: .startDate)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(startDate, forKey: .startDate)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/HolidayDateSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/HolidayDateSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..03065c1368
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/HolidayDateSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,71 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: HolidayDateSerializer
+ Used By: CompanyProfile
+ */
+
+ class HolidayDateSerializer: Codable {
+
+
+ public var endDate: String
+
+ public var startDate: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case endDate = "end_date"
+
+ case startDate = "start_date"
+
+ }
+
+ public init(endDate: String, startDate: String) {
+
+ self.endDate = endDate
+
+ self.startDate = startDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ endDate = try container.decode(String.self, forKey: .endDate)
+
+
+
+
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 2e96d13cb6..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: HolidaySchemaSchema
- Used By: CompanyProfile
- */
-
- class HolidaySchemaSchema: Codable {
-
-
- public var date: HolidayDateSchema
-
- public var title: String
-
- public var holidayType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case date = "date"
-
- case title = "title"
-
- case holidayType = "holiday_type"
-
- }
-
- public init(date: HolidayDateSchema, holidayType: String, title: String) {
-
- self.date = date
-
- self.title = title
-
- self.holidayType = holidayType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- date = try container.decode(HolidayDateSchema.self, forKey: .date)
-
-
-
-
- title = try container.decode(String.self, forKey: .title)
-
-
-
-
- holidayType = try container.decode(String.self, forKey: .holidayType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(date, forKey: .date)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(holidayType, forKey: .holidayType)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..b69c33bec1
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/HolidaySchemaSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,87 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: HolidaySchemaSerializer
+ Used By: CompanyProfile
+ */
+
+ class HolidaySchemaSerializer: Codable {
+
+
+ public var date: HolidayDateSerializer
+
+ public var title: String
+
+ public var holidayType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case date = "date"
+
+ case title = "title"
+
+ case holidayType = "holiday_type"
+
+ }
+
+ public init(date: HolidayDateSerializer, holidayType: String, title: String) {
+
+ self.date = date
+
+ self.title = title
+
+ self.holidayType = holidayType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ date = try container.decode(HolidayDateSerializer.self, forKey: .date)
+
+
+
+
+ title = try container.decode(String.self, forKey: .title)
+
+
+
+
+ holidayType = try container.decode(String.self, forKey: .holidayType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(date, forKey: .date)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(holidayType, forKey: .holidayType)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/InvoiceCredSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/InvoiceCredSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index dd707b4671..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/InvoiceCredSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: InvoiceCredSchema
- Used By: CompanyProfile
- */
-
- class InvoiceCredSchema: Codable {
-
-
- public var username: String?
-
- public var enabled: Bool?
-
- public var password: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case username = "username"
-
- case enabled = "enabled"
-
- case password = "password"
-
- }
-
- public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
-
- self.username = username
-
- self.enabled = enabled
-
- self.password = password
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- password = try container.decode(String.self, forKey: .password)
-
- } 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(username, forKey: .username)
-
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(password, forKey: .password)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/InvoiceCredSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/InvoiceCredSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..301d0c78ac
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/InvoiceCredSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: InvoiceCredSerializer
+ Used By: CompanyProfile
+ */
+
+ class InvoiceCredSerializer: Codable {
+
+
+ public var username: String?
+
+ public var enabled: Bool?
+
+ public var password: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case username = "username"
+
+ case enabled = "enabled"
+
+ case password = "password"
+
+ }
+
+ public init(enabled: Bool? = nil, password: String? = nil, username: String? = nil) {
+
+ self.username = username
+
+ self.enabled = enabled
+
+ self.password = password
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ password = try container.decode(String.self, forKey: .password)
+
+ } 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(username, forKey: .username)
+
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+
+
+ try? container.encodeIfPresent(password, forKey: .password)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index d727cd376f..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: InvoiceDetailsSchema
- Used By: CompanyProfile
- */
-
- class InvoiceDetailsSchema: Codable {
-
-
- public var eInvoice: InvoiceCredSchema?
-
- public var eWaybill: InvoiceCredSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eInvoice = "e_invoice"
-
- case eWaybill = "e_waybill"
-
- }
-
- public init(eInvoice: InvoiceCredSchema? = nil, eWaybill: InvoiceCredSchema? = nil) {
-
- self.eInvoice = eInvoice
-
- self.eWaybill = eWaybill
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eInvoice = try container.decode(InvoiceCredSchema.self, forKey: .eInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eWaybill = try container.decode(InvoiceCredSchema.self, forKey: .eWaybill)
-
- } 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(eInvoice, forKey: .eInvoice)
-
-
-
-
- try? container.encodeIfPresent(eWaybill, forKey: .eWaybill)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..8784b46033
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/InvoiceDetailsSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: InvoiceDetailsSerializer
+ Used By: CompanyProfile
+ */
+
+ class InvoiceDetailsSerializer: Codable {
+
+
+ public var eInvoice: InvoiceCredSerializer?
+
+ public var eWaybill: InvoiceCredSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case eInvoice = "e_invoice"
+
+ case eWaybill = "e_waybill"
+
+ }
+
+ public init(eInvoice: InvoiceCredSerializer? = nil, eWaybill: InvoiceCredSerializer? = nil) {
+
+ self.eInvoice = eInvoice
+
+ self.eWaybill = eWaybill
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 39e441f221..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: LocationDayWiseSchema
- Used By: CompanyProfile
- */
-
- class LocationDayWiseSchema: Codable {
-
-
- public var open: Bool
-
- public var weekday: String
-
- public var opening: LocationTimingSchema?
-
- public var closing: LocationTimingSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case open = "open"
-
- case weekday = "weekday"
-
- case opening = "opening"
-
- case closing = "closing"
-
- }
-
- public init(closing: LocationTimingSchema? = nil, open: Bool, opening: LocationTimingSchema? = nil, weekday: String) {
-
- self.open = open
-
- self.weekday = weekday
-
- self.opening = opening
-
- self.closing = closing
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- open = try container.decode(Bool.self, forKey: .open)
-
-
-
-
- weekday = try container.decode(String.self, forKey: .weekday)
-
-
-
-
- do {
- opening = try container.decode(LocationTimingSchema.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(LocationTimingSchema.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(open, forKey: .open)
-
-
-
-
- try? container.encodeIfPresent(weekday, forKey: .weekday)
-
-
-
-
- try? container.encodeIfPresent(opening, forKey: .opening)
-
-
-
-
- try? container.encodeIfPresent(closing, forKey: .closing)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..4744f0acd9
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/LocationDayWiseSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,117 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: LocationDayWiseSerializer
+ Used By: CompanyProfile
+ */
+
+ class LocationDayWiseSerializer: Codable {
+
+
+ public var open: Bool
+
+ public var weekday: String
+
+ public var opening: LocationTimingSerializer?
+
+ public var closing: LocationTimingSerializer?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case open = "open"
+
+ case weekday = "weekday"
+
+ case opening = "opening"
+
+ case closing = "closing"
+
+ }
+
+ public init(closing: LocationTimingSerializer? = nil, open: Bool, opening: LocationTimingSerializer? = nil, weekday: String) {
+
+ self.open = open
+
+ self.weekday = weekday
+
+ self.opening = opening
+
+ self.closing = closing
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ open = try container.decode(Bool.self, forKey: .open)
+
+
+
+
+ weekday = try container.decode(String.self, forKey: .weekday)
+
+
+
+
+ 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(open, forKey: .open)
+
+
+
+
+ try? container.encodeIfPresent(weekday, forKey: .weekday)
+
+
+
+
+ try? container.encodeIfPresent(opening, forKey: .opening)
+
+
+
+
+ try? container.encodeIfPresent(closing, forKey: .closing)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationListSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationListSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 486c752593..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/LocationListSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: LocationListSchema
- Used By: CompanyProfile
- */
-
- class LocationListSchema: Codable {
-
-
- public var items: [GetLocationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [GetLocationSchema]? = nil, page: Page? = nil) {
-
- 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([GetLocationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationListSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationListSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..e0e552908c
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/LocationListSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: LocationListSerializer
+ Used By: CompanyProfile
+ */
+
+ class LocationListSerializer: Codable {
+
+
+ public var items: [GetLocationSerializer]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [GetLocationSerializer]? = nil, page: Page? = nil) {
+
+ 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([GetLocationSerializer].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationManagerSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationManagerSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 652949387a..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/LocationManagerSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: LocationManagerSchema
- Used By: CompanyProfile
- */
-
- class LocationManagerSchema: Codable {
-
-
- public var email: String?
-
- public var mobileNo: SellerPhoneNumber
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- case name = "name"
-
- }
-
- public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
-
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationManagerSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationManagerSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..0186e7c5d8
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/LocationManagerSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,101 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: LocationManagerSerializer
+ Used By: CompanyProfile
+ */
+
+ class LocationManagerSerializer: Codable {
+
+
+ public var email: String?
+
+ public var mobileNo: SellerPhoneNumber
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ case name = "name"
+
+ }
+
+ public init(email: String? = nil, mobileNo: SellerPhoneNumber, name: String? = nil) {
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ mobileNo = try container.decode(SellerPhoneNumber.self, forKey: .mobileNo)
+
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 4feea4ffaa..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/LocationSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,595 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: LocationSchema
- Used By: CompanyProfile
- */
-
- class LocationSchema: Codable {
-
-
- public var code: String
-
- public var gstCredentials: InvoiceDetailsSchema?
-
- public var contactNumbers: [SellerPhoneNumber]?
-
- public var name: String
-
- public var customJson: [String: Any]?
-
- public var warnings: [String: Any]?
-
- public var address: AddressSchema
-
- public var company: Int
-
- public var storeType: String?
-
- public var manager: LocationManagerSchema?
-
- public var autoInvoice: Bool?
-
- public var uid: Int?
-
- public var timing: [LocationDayWiseSchema]?
-
- public var stage: String?
-
- public var documents: [Document]
-
- public var creditNote: Bool?
-
- public var holiday: [HolidaySchemaSchema]?
-
- public var productReturnConfig: ProductReturnConfigSchema?
-
- public var displayName: String
-
- public var notificationEmails: [String]?
-
- public var tags: [String]?
-
- public var defaultOrderAcceptanceTiming: Bool?
-
- public var orderAcceptanceTiming: [LocationDayWiseSchema]?
-
- public var avgOrderProcessingTime: AverageOrderProcessingTime?
-
- public var bulkShipment: Bool?
-
- public var autoAssignCourierPartner: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case gstCredentials = "gst_credentials"
-
- case contactNumbers = "contact_numbers"
-
- case name = "name"
-
- case customJson = "_custom_json"
-
- case warnings = "warnings"
-
- case address = "address"
-
- case company = "company"
-
- case storeType = "store_type"
-
- case manager = "manager"
-
- case autoInvoice = "auto_invoice"
-
- case uid = "uid"
-
- case timing = "timing"
-
- case stage = "stage"
-
- case documents = "documents"
-
- case creditNote = "credit_note"
-
- case holiday = "holiday"
-
- case productReturnConfig = "product_return_config"
-
- case displayName = "display_name"
-
- case notificationEmails = "notification_emails"
-
- case tags = "tags"
-
- case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
-
- case orderAcceptanceTiming = "order_acceptance_timing"
-
- case avgOrderProcessingTime = "avg_order_processing_time"
-
- case bulkShipment = "bulk_shipment"
-
- case autoAssignCourierPartner = "auto_assign_courier_partner"
-
- }
-
- public init(address: AddressSchema, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: AverageOrderProcessingTime? = nil, bulkShipment: Bool? = nil, code: String, company: Int, contactNumbers: [SellerPhoneNumber]? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, displayName: String, documents: [Document], gstCredentials: InvoiceDetailsSchema? = nil, holiday: [HolidaySchemaSchema]? = nil, manager: LocationManagerSchema? = nil, name: String, notificationEmails: [String]? = nil, orderAcceptanceTiming: [LocationDayWiseSchema]? = nil, productReturnConfig: ProductReturnConfigSchema? = nil, stage: String? = nil, storeType: String? = nil, tags: [String]? = nil, timing: [LocationDayWiseSchema]? = nil, uid: Int? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
-
- self.code = code
-
- self.gstCredentials = gstCredentials
-
- self.contactNumbers = contactNumbers
-
- self.name = name
-
- self.customJson = customJson
-
- self.warnings = warnings
-
- self.address = address
-
- self.company = company
-
- self.storeType = storeType
-
- self.manager = manager
-
- self.autoInvoice = autoInvoice
-
- self.uid = uid
-
- self.timing = timing
-
- self.stage = stage
-
- self.documents = documents
-
- self.creditNote = creditNote
-
- self.holiday = holiday
-
- self.productReturnConfig = productReturnConfig
-
- self.displayName = displayName
-
- self.notificationEmails = notificationEmails
-
- self.tags = tags
-
- self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
-
- self.orderAcceptanceTiming = orderAcceptanceTiming
-
- self.avgOrderProcessingTime = avgOrderProcessingTime
-
- self.bulkShipment = bulkShipment
-
- self.autoAssignCourierPartner = autoAssignCourierPartner
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- code = try container.decode(String.self, forKey: .code)
-
-
-
-
- do {
- gstCredentials = try container.decode(InvoiceDetailsSchema.self, forKey: .gstCredentials)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- address = try container.decode(AddressSchema.self, forKey: .address)
-
-
-
-
- company = try container.decode(Int.self, forKey: .company)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- manager = try container.decode(LocationManagerSchema.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- timing = try container.decode([LocationDayWiseSchema].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- documents = try container.decode([Document].self, forKey: .documents)
-
-
-
-
- do {
- creditNote = try container.decode(Bool.self, forKey: .creditNote)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- holiday = try container.decode([HolidaySchemaSchema].self, forKey: .holiday)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigSchema.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- do {
- 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)
- } 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 {
- defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderAcceptanceTiming = try container.decode([LocationDayWiseSchema].self, forKey: .orderAcceptanceTiming)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- avgOrderProcessingTime = try container.decode(AverageOrderProcessingTime.self, forKey: .avgOrderProcessingTime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
-
- } 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(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(creditNote, forKey: .creditNote)
-
-
-
-
- try? container.encodeIfPresent(holiday, forKey: .holiday)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
-
-
-
-
- try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
-
-
-
-
- try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
-
-
-
-
- try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
-
-
-
-
- try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..b5af722397
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/LocationSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,595 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: LocationSerializer
+ Used By: CompanyProfile
+ */
+
+ class LocationSerializer: Codable {
+
+
+ public var code: String
+
+ public var gstCredentials: InvoiceDetailsSerializer?
+
+ public var contactNumbers: [SellerPhoneNumber]?
+
+ public var name: String
+
+ public var customJson: [String: Any]?
+
+ public var warnings: [String: Any]?
+
+ public var address: AddressSerializer
+
+ public var company: Int
+
+ public var storeType: String?
+
+ public var manager: LocationManagerSerializer?
+
+ public var autoInvoice: Bool?
+
+ public var uid: Int?
+
+ public var timing: [LocationDayWiseSerializer]?
+
+ public var stage: String?
+
+ public var documents: [Document]
+
+ public var creditNote: Bool?
+
+ public var holiday: [HolidaySchemaSerializer]?
+
+ public var productReturnConfig: ProductReturnConfigSerializer?
+
+ public var displayName: String
+
+ public var notificationEmails: [String]?
+
+ public var tags: [String]?
+
+ public var defaultOrderAcceptanceTiming: Bool?
+
+ public var orderAcceptanceTiming: [LocationDayWiseSerializer]?
+
+ public var avgOrderProcessingTime: AverageOrderProcessingTime?
+
+ public var bulkShipment: Bool?
+
+ public var autoAssignCourierPartner: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case gstCredentials = "gst_credentials"
+
+ case contactNumbers = "contact_numbers"
+
+ case name = "name"
+
+ case customJson = "_custom_json"
+
+ case warnings = "warnings"
+
+ case address = "address"
+
+ case company = "company"
+
+ case storeType = "store_type"
+
+ case manager = "manager"
+
+ case autoInvoice = "auto_invoice"
+
+ case uid = "uid"
+
+ case timing = "timing"
+
+ case stage = "stage"
+
+ case documents = "documents"
+
+ case creditNote = "credit_note"
+
+ case holiday = "holiday"
+
+ case productReturnConfig = "product_return_config"
+
+ case displayName = "display_name"
+
+ case notificationEmails = "notification_emails"
+
+ case tags = "tags"
+
+ case defaultOrderAcceptanceTiming = "default_order_acceptance_timing"
+
+ case orderAcceptanceTiming = "order_acceptance_timing"
+
+ case avgOrderProcessingTime = "avg_order_processing_time"
+
+ case bulkShipment = "bulk_shipment"
+
+ case autoAssignCourierPartner = "auto_assign_courier_partner"
+
+ }
+
+ public init(address: AddressSerializer, autoAssignCourierPartner: Bool? = nil, autoInvoice: Bool? = nil, avgOrderProcessingTime: AverageOrderProcessingTime? = nil, bulkShipment: Bool? = nil, code: String, company: Int, contactNumbers: [SellerPhoneNumber]? = nil, creditNote: Bool? = nil, defaultOrderAcceptanceTiming: Bool? = nil, displayName: String, documents: [Document], gstCredentials: InvoiceDetailsSerializer? = nil, holiday: [HolidaySchemaSerializer]? = nil, manager: LocationManagerSerializer? = nil, name: String, notificationEmails: [String]? = nil, orderAcceptanceTiming: [LocationDayWiseSerializer]? = nil, productReturnConfig: ProductReturnConfigSerializer? = nil, stage: String? = nil, storeType: String? = nil, tags: [String]? = nil, timing: [LocationDayWiseSerializer]? = nil, uid: Int? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+
+ self.code = code
+
+ self.gstCredentials = gstCredentials
+
+ self.contactNumbers = contactNumbers
+
+ self.name = name
+
+ self.customJson = customJson
+
+ self.warnings = warnings
+
+ self.address = address
+
+ self.company = company
+
+ self.storeType = storeType
+
+ self.manager = manager
+
+ self.autoInvoice = autoInvoice
+
+ self.uid = uid
+
+ self.timing = timing
+
+ self.stage = stage
+
+ self.documents = documents
+
+ self.creditNote = creditNote
+
+ self.holiday = holiday
+
+ self.productReturnConfig = productReturnConfig
+
+ self.displayName = displayName
+
+ self.notificationEmails = notificationEmails
+
+ self.tags = tags
+
+ self.defaultOrderAcceptanceTiming = defaultOrderAcceptanceTiming
+
+ self.orderAcceptanceTiming = orderAcceptanceTiming
+
+ self.avgOrderProcessingTime = avgOrderProcessingTime
+
+ self.bulkShipment = bulkShipment
+
+ self.autoAssignCourierPartner = autoAssignCourierPartner
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ code = try container.decode(String.self, forKey: .code)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ address = try container.decode(AddressSerializer.self, forKey: .address)
+
+
+
+
+ company = try container.decode(Int.self, forKey: .company)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoInvoice = try container.decode(Bool.self, forKey: .autoInvoice)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ documents = try container.decode([Document].self, forKey: .documents)
+
+
+
+
+ do {
+ creditNote = try container.decode(Bool.self, forKey: .creditNote)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ holiday = try container.decode([HolidaySchemaSerializer].self, forKey: .holiday)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ do {
+ 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)
+ } 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 {
+ defaultOrderAcceptanceTiming = try container.decode(Bool.self, forKey: .defaultOrderAcceptanceTiming)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderAcceptanceTiming = try container.decode([LocationDayWiseSerializer].self, forKey: .orderAcceptanceTiming)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ avgOrderProcessingTime = try container.decode(AverageOrderProcessingTime.self, forKey: .avgOrderProcessingTime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bulkShipment = try container.decode(Bool.self, forKey: .bulkShipment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoAssignCourierPartner = try container.decode(Bool.self, forKey: .autoAssignCourierPartner)
+
+ } 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(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(autoInvoice, forKey: .autoInvoice)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(creditNote, forKey: .creditNote)
+
+
+
+
+ try? container.encodeIfPresent(holiday, forKey: .holiday)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(defaultOrderAcceptanceTiming, forKey: .defaultOrderAcceptanceTiming)
+
+
+
+
+ try? container.encodeIfPresent(orderAcceptanceTiming, forKey: .orderAcceptanceTiming)
+
+
+
+
+ try? container.encodeIfPresent(avgOrderProcessingTime, forKey: .avgOrderProcessingTime)
+
+
+
+
+ try? container.encodeIfPresent(bulkShipment, forKey: .bulkShipment)
+
+
+
+
+ try? container.encodeIfPresent(autoAssignCourierPartner, forKey: .autoAssignCourierPartner)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationTimingSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationTimingSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 45bc74a791..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/LocationTimingSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: LocationTimingSchema
- Used By: CompanyProfile
- */
-
- class LocationTimingSchema: Codable {
-
-
- public var hour: Int
-
- public var minute: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case hour = "hour"
-
- case minute = "minute"
-
- }
-
- public init(hour: Int, minute: Int) {
-
- self.hour = hour
-
- self.minute = minute
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- hour = try container.decode(Int.self, forKey: .hour)
-
-
-
-
- minute = try container.decode(Int.self, forKey: .minute)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(hour, forKey: .hour)
-
-
-
-
- try? container.encodeIfPresent(minute, forKey: .minute)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/LocationTimingSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/LocationTimingSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..cfb7c3cace
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/LocationTimingSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,71 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: LocationTimingSerializer
+ Used By: CompanyProfile
+ */
+
+ class LocationTimingSerializer: Codable {
+
+
+ public var hour: Int
+
+ public var minute: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case hour = "hour"
+
+ case minute = "minute"
+
+ }
+
+ public init(hour: Int, minute: Int) {
+
+ self.hour = hour
+
+ self.minute = minute
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ hour = try container.decode(Int.self, forKey: .hour)
+
+
+
+
+ minute = try container.decode(Int.self, forKey: .minute)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(hour, forKey: .hour)
+
+
+
+
+ try? container.encodeIfPresent(minute, forKey: .minute)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/MetricsSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/MetricsSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index af3a8e99e3..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/MetricsSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: MetricsSchema
- Used By: CompanyProfile
- */
-
- class MetricsSchema: Codable {
-
-
- public var stage: String?
-
- public var store: DocumentsObj?
-
- public var companyDocuments: DocumentsObj?
-
- public var storeDocuments: DocumentsObj?
-
- public var product: DocumentsObj?
-
- public var uid: Int?
-
- public var brand: DocumentsObj?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stage = "stage"
-
- case store = "store"
-
- case companyDocuments = "company_documents"
-
- case storeDocuments = "store_documents"
-
- case product = "product"
-
- case uid = "uid"
-
- case brand = "brand"
-
- }
-
- public init(brand: DocumentsObj? = nil, companyDocuments: DocumentsObj? = nil, product: DocumentsObj? = nil, stage: String? = nil, store: DocumentsObj? = nil, storeDocuments: DocumentsObj? = nil, uid: Int? = nil) {
-
- self.stage = stage
-
- self.store = store
-
- self.companyDocuments = companyDocuments
-
- self.storeDocuments = storeDocuments
-
- self.product = product
-
- self.uid = uid
-
- self.brand = brand
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- store = try container.decode(DocumentsObj.self, forKey: .store)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(store, forKey: .store)
-
-
-
-
- try? container.encodeIfPresent(companyDocuments, forKey: .companyDocuments)
-
-
-
-
- try? container.encodeIfPresent(storeDocuments, forKey: .storeDocuments)
-
-
-
-
- try? container.encodeIfPresent(product, forKey: .product)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(brand, forKey: .brand)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/MetricsSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/MetricsSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..18eb38bf30
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/MetricsSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: MetricsSerializer
+ Used By: CompanyProfile
+ */
+
+ class MetricsSerializer: Codable {
+
+
+ public var stage: String?
+
+ public var store: DocumentsObj?
+
+ public var companyDocuments: DocumentsObj?
+
+ public var storeDocuments: DocumentsObj?
+
+ public var product: DocumentsObj?
+
+ public var uid: Int?
+
+ public var brand: DocumentsObj?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case stage = "stage"
+
+ case store = "store"
+
+ case companyDocuments = "company_documents"
+
+ case storeDocuments = "store_documents"
+
+ case product = "product"
+
+ case uid = "uid"
+
+ case brand = "brand"
+
+ }
+
+ public init(brand: DocumentsObj? = nil, companyDocuments: DocumentsObj? = nil, product: DocumentsObj? = nil, stage: String? = nil, store: DocumentsObj? = nil, storeDocuments: DocumentsObj? = nil, uid: Int? = nil) {
+
+ self.stage = stage
+
+ self.store = store
+
+ self.companyDocuments = companyDocuments
+
+ self.storeDocuments = storeDocuments
+
+ self.product = product
+
+ self.uid = uid
+
+ self.brand = brand
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ store = try container.decode(DocumentsObj.self, forKey: .store)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(store, forKey: .store)
+
+
+
+
+ try? container.encodeIfPresent(companyDocuments, forKey: .companyDocuments)
+
+
+
+
+ try? container.encodeIfPresent(storeDocuments, forKey: .storeDocuments)
+
+
+
+
+ try? container.encodeIfPresent(product, forKey: .product)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(brand, forKey: .brand)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index de6cdce485..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: ProductReturnConfigSchema
- Used By: CompanyProfile
- */
-
- class ProductReturnConfigSchema: 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? = nil, storeUid: Int? = nil) {
-
- 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 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)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..a7bf07f566
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/ProductReturnConfigSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ 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? = nil, storeUid: Int? = nil) {
+
+ 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 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)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..09dcbb1e1e
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseCompanyProfilePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: ProfileSuccessResponse
+ Used By: CompanyProfile
+ */
+
+ class ProfileSuccessResponse: Codable {
+
+
+ public var uid: Int?
+
+ public var message: String?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uid = "uid"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil, uid: Int? = nil) {
+
+ self.uid = uid
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index a0ed1d3379..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/ProfileSuccessResponseSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: ProfileSuccessResponseSchema
- Used By: CompanyProfile
- */
-
- class ProfileSuccessResponseSchema: Codable {
-
-
- public var uid: Int?
-
- public var message: String?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uid = "uid"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil, uid: Int? = nil) {
-
- self.uid = uid
-
- self.message = message
-
- self.success = success
-
- }
-
- 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 {
- 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 {
-
- }
-
-
-
- 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(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index b9564453ec..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: UpdateBrandRequestSchema
- Used By: CompanyProfile
- */
-
- class UpdateBrandRequestSchema: Codable {
-
-
- public var customJson: [String: Any]?
-
- public var localeLanguage: [String: Any]?
-
- public var synonyms: [String]?
-
- public var companyId: Int?
-
- public var description: String?
-
- public var logo: String
-
- public var brandTier: String?
-
- public var uid: Int?
-
- public var banner: BrandBannerSchema
-
- public var name: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customJson = "_custom_json"
-
- case localeLanguage = "_locale_language"
-
- case synonyms = "synonyms"
-
- case companyId = "company_id"
-
- case description = "description"
-
- case logo = "logo"
-
- case brandTier = "brand_tier"
-
- case uid = "uid"
-
- case banner = "banner"
-
- case name = "name"
-
- }
-
- public init(banner: BrandBannerSchema, brandTier: String? = nil, companyId: Int? = nil, description: String? = nil, logo: String, name: String, synonyms: [String]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
-
- self.customJson = customJson
-
- self.localeLanguage = localeLanguage
-
- self.synonyms = synonyms
-
- self.companyId = companyId
-
- self.description = description
-
- self.logo = logo
-
- self.brandTier = brandTier
-
- self.uid = uid
-
- self.banner = banner
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- logo = try container.decode(String.self, forKey: .logo)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- banner = try container.decode(BrandBannerSchema.self, forKey: .banner)
-
-
-
-
- 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(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
-
-
-
-
- try? container.encodeIfPresent(synonyms, forKey: .synonyms)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(brandTier, forKey: .brandTier)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(banner, forKey: .banner)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..9453537c46
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/UpdateBrandRequestSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,248 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: UpdateBrandRequestSerializer
+ Used By: CompanyProfile
+ */
+
+ class UpdateBrandRequestSerializer: Codable {
+
+
+ public var customJson: [String: Any]?
+
+ public var localeLanguage: [String: Any]?
+
+ public var synonyms: [String]?
+
+ public var companyId: Int?
+
+ public var description: String?
+
+ public var logo: String
+
+ public var brandTier: String?
+
+ public var uid: Int?
+
+ public var banner: BrandBannerSerializer
+
+ public var name: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customJson = "_custom_json"
+
+ case localeLanguage = "_locale_language"
+
+ case synonyms = "synonyms"
+
+ case companyId = "company_id"
+
+ case description = "description"
+
+ case logo = "logo"
+
+ case brandTier = "brand_tier"
+
+ case uid = "uid"
+
+ case banner = "banner"
+
+ case name = "name"
+
+ }
+
+ public init(banner: BrandBannerSerializer, brandTier: String? = nil, companyId: Int? = nil, description: String? = nil, logo: String, name: String, synonyms: [String]? = nil, uid: Int? = nil, customJson: [String: Any]? = nil, localeLanguage: [String: Any]? = nil) {
+
+ self.customJson = customJson
+
+ self.localeLanguage = localeLanguage
+
+ self.synonyms = synonyms
+
+ self.companyId = companyId
+
+ self.description = description
+
+ self.logo = logo
+
+ self.brandTier = brandTier
+
+ self.uid = uid
+
+ self.banner = banner
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ logo = try container.decode(String.self, forKey: .logo)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ banner = try container.decode(BrandBannerSerializer.self, forKey: .banner)
+
+
+
+
+ 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(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage)
+
+
+
+
+ try? container.encodeIfPresent(synonyms, forKey: .synonyms)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(logo, forKey: .logo)
+
+
+
+
+ try? container.encodeIfPresent(brandTier, forKey: .brandTier)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(banner, forKey: .banner)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/CompanyProfile/UpdateCompanyCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/UpdateCompanyCompanyProfilePlatformModel.swift
index 6cdcee5ebb..d193f40d9b 100644
--- a/Sources/code/platform/Models/CompanyProfile/UpdateCompanyCompanyProfilePlatformModel.swift
+++ b/Sources/code/platform/Models/CompanyProfile/UpdateCompanyCompanyProfilePlatformModel.swift
@@ -30,7 +30,7 @@ public extension PlatformClient.CompanyProfile {
public var businessType: String?
- public var addresses: [CreateUpdateAddressSchema]?
+ public var addresses: [CreateUpdateAddressSerializer]?
public var notificationEmails: [String]?
@@ -73,7 +73,7 @@ public extension PlatformClient.CompanyProfile {
}
- public init(addresses: [CreateUpdateAddressSchema]? = nil, businessDetails: BusinessDetails? = nil, businessInfo: String? = nil, businessType: String? = nil, companyType: String? = nil, contactDetails: ContactDetails? = nil, documents: [Document]? = nil, franchiseEnabled: Bool? = nil, name: String? = nil, notificationEmails: [String]? = nil, rejectReason: String? = nil, taxes: [CompanyTaxesSerializer1]? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
+ public init(addresses: [CreateUpdateAddressSerializer]? = nil, businessDetails: BusinessDetails? = nil, businessInfo: String? = nil, businessType: String? = nil, companyType: String? = nil, contactDetails: ContactDetails? = nil, documents: [Document]? = nil, franchiseEnabled: Bool? = nil, name: String? = nil, notificationEmails: [String]? = nil, rejectReason: String? = nil, taxes: [CompanyTaxesSerializer1]? = nil, warnings: [String: Any]? = nil, customJson: [String: Any]? = nil) {
self.franchiseEnabled = franchiseEnabled
@@ -218,7 +218,7 @@ public extension PlatformClient.CompanyProfile {
do {
- addresses = try container.decode([CreateUpdateAddressSchema].self, forKey: .addresses)
+ addresses = try container.decode([CreateUpdateAddressSerializer].self, forKey: .addresses)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/CompanyProfile/UserSchemaCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/UserSchemaCompanyProfilePlatformModel.swift
deleted file mode 100644
index 7f3f0811db..0000000000
--- a/Sources/code/platform/Models/CompanyProfile/UserSchemaCompanyProfilePlatformModel.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.CompanyProfile {
- /*
- Model: UserSchema
- Used By: CompanyProfile
- */
-
- class UserSchema: Codable {
-
-
- public var userId: String?
-
- public var contact: String?
-
- public var username: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userId = "user_id"
-
- case contact = "contact"
-
- case username = "username"
-
- }
-
- public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
-
- self.userId = userId
-
- self.contact = contact
-
- self.username = username
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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)
-
- } 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(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(username, forKey: .username)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/CompanyProfile/UserSerializerCompanyProfilePlatformModel.swift b/Sources/code/platform/Models/CompanyProfile/UserSerializerCompanyProfilePlatformModel.swift
new file mode 100644
index 0000000000..d45cbe7cfd
--- /dev/null
+++ b/Sources/code/platform/Models/CompanyProfile/UserSerializerCompanyProfilePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.CompanyProfile {
+ /*
+ Model: UserSerializer
+ Used By: CompanyProfile
+ */
+
+ class UserSerializer: Codable {
+
+
+ public var userId: String?
+
+ public var contact: String?
+
+ public var username: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userId = "user_id"
+
+ case contact = "contact"
+
+ case username = "username"
+
+ }
+
+ public init(contact: String? = nil, username: String? = nil, userId: String? = nil) {
+
+ self.userId = userId
+
+ self.contact = contact
+
+ self.username = username
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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)
+
+ } 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(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(username, forKey: .username)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Configuration/AppCurrencyResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppCurrencyResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..b39dde140e
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/AppCurrencyResponseConfigurationPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: AppCurrencyResponse
+ Used By: Configuration
+ */
+
+ class AppCurrencyResponse: Codable {
+
+
+ public var id: String?
+
+ public var application: String?
+
+ public var defaultCurrency: DefaultCurrency?
+
+ public var supportedCurrency: [Currency]?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case application = "application"
+
+ case defaultCurrency = "default_currency"
+
+ case supportedCurrency = "supported_currency"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.application = application
+
+ self.defaultCurrency = defaultCurrency
+
+ self.supportedCurrency = supportedCurrency
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
+
+
+
+
+ try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: AppCurrencyResponse
+ Used By: Configuration
+ */
+
+ class AppCurrencyResponse: Codable {
+
+
+ public var id: String?
+
+ public var application: String?
+
+ public var defaultCurrency: DefaultCurrency?
+
+ public var supportedCurrency: [Currency]?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case application = "application"
+
+ case defaultCurrency = "default_currency"
+
+ case supportedCurrency = "supported_currency"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.application = application
+
+ self.defaultCurrency = defaultCurrency
+
+ self.supportedCurrency = supportedCurrency
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
+
+
+
+
+ try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/AppCurrencyResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppCurrencyResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 5b0e2ba7b1..0000000000
--- a/Sources/code/platform/Models/Configuration/AppCurrencyResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: AppCurrencyResponseSchema
- Used By: Configuration
- */
-
- class AppCurrencyResponseSchema: Codable {
-
-
- public var id: String?
-
- public var application: String?
-
- public var defaultCurrency: DefaultCurrency?
-
- public var supportedCurrency: [Currency]?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case application = "application"
-
- case defaultCurrency = "default_currency"
-
- case supportedCurrency = "supported_currency"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
-
- self.id = id
-
- self.application = application
-
- self.defaultCurrency = defaultCurrency
-
- self.supportedCurrency = supportedCurrency
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
-
-
-
-
- try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: AppCurrencyResponseSchema
- Used By: Configuration
- */
-
- class AppCurrencyResponseSchema: Codable {
-
-
- public var id: String?
-
- public var application: String?
-
- public var defaultCurrency: DefaultCurrency?
-
- public var supportedCurrency: [Currency]?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case application = "application"
-
- case defaultCurrency = "default_currency"
-
- case supportedCurrency = "supported_currency"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, defaultCurrency: DefaultCurrency? = nil, modifiedAt: String? = nil, supportedCurrency: [Currency]? = nil, id: String? = nil) {
-
- self.id = id
-
- self.application = application
-
- self.defaultCurrency = defaultCurrency
-
- self.supportedCurrency = supportedCurrency
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- defaultCurrency = try container.decode(DefaultCurrency.self, forKey: .defaultCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportedCurrency = try container.decode([Currency].self, forKey: .supportedCurrency)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(defaultCurrency, forKey: .defaultCurrency)
-
-
-
-
- try? container.encodeIfPresent(supportedCurrency, forKey: .supportedCurrency)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/AppFeatureRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppFeatureRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..9edcd53d5d
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/AppFeatureRequestConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: AppFeatureRequest
+ Used By: Configuration
+ */
+
+ class AppFeatureRequest: Codable {
+
+
+ public var feature: AppFeature?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case feature = "feature"
+
+ }
+
+ public init(feature: AppFeature? = nil) {
+
+ self.feature = feature
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ feature = try container.decode(AppFeature.self, forKey: .feature)
+
+ } 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(feature, forKey: .feature)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: AppFeatureRequest
+ Used By: Configuration
+ */
+
+ class AppFeatureRequest: Codable {
+
+
+ public var feature: AppFeature?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case feature = "feature"
+
+ }
+
+ public init(feature: AppFeature? = nil) {
+
+ self.feature = feature
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ feature = try container.decode(AppFeature.self, forKey: .feature)
+
+ } 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(feature, forKey: .feature)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/AppFeatureRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppFeatureRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 2c87790ffa..0000000000
--- a/Sources/code/platform/Models/Configuration/AppFeatureRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: AppFeatureRequestSchema
- Used By: Configuration
- */
-
- class AppFeatureRequestSchema: Codable {
-
-
- public var feature: AppFeature?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case feature = "feature"
-
- }
-
- public init(feature: AppFeature? = nil) {
-
- self.feature = feature
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- feature = try container.decode(AppFeature.self, forKey: .feature)
-
- } 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(feature, forKey: .feature)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: AppFeatureRequestSchema
- Used By: Configuration
- */
-
- class AppFeatureRequestSchema: Codable {
-
-
- public var feature: AppFeature?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case feature = "feature"
-
- }
-
- public init(feature: AppFeature? = nil) {
-
- self.feature = feature
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- feature = try container.decode(AppFeature.self, forKey: .feature)
-
- } 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(feature, forKey: .feature)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/AppFeatureResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppFeatureResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..fce6579066
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/AppFeatureResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: AppFeatureResponse
+ Used By: Configuration
+ */
+
+ class AppFeatureResponse: Codable {
+
+
+ public var feature: AppFeature?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case feature = "feature"
+
+ }
+
+ public init(feature: AppFeature? = nil) {
+
+ self.feature = feature
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ feature = try container.decode(AppFeature.self, forKey: .feature)
+
+ } 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(feature, forKey: .feature)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: AppFeatureResponse
+ Used By: Configuration
+ */
+
+ class AppFeatureResponse: Codable {
+
+
+ public var feature: AppFeature?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case feature = "feature"
+
+ }
+
+ public init(feature: AppFeature? = nil) {
+
+ self.feature = feature
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ feature = try container.decode(AppFeature.self, forKey: .feature)
+
+ } 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(feature, forKey: .feature)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/AppFeatureResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppFeatureResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 65a032d54f..0000000000
--- a/Sources/code/platform/Models/Configuration/AppFeatureResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: AppFeatureResponseSchema
- Used By: Configuration
- */
-
- class AppFeatureResponseSchema: Codable {
-
-
- public var feature: AppFeature?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case feature = "feature"
-
- }
-
- public init(feature: AppFeature? = nil) {
-
- self.feature = feature
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- feature = try container.decode(AppFeature.self, forKey: .feature)
-
- } 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(feature, forKey: .feature)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: AppFeatureResponseSchema
- Used By: Configuration
- */
-
- class AppFeatureResponseSchema: Codable {
-
-
- public var feature: AppFeature?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case feature = "feature"
-
- }
-
- public init(feature: AppFeature? = nil) {
-
- self.feature = feature
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- feature = try container.decode(AppFeature.self, forKey: .feature)
-
- } 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(feature, forKey: .feature)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/AppInventoryConfigConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppInventoryConfigConfigurationPlatformModel.swift
index 8b47d17c43..d9b6a4ee16 100644
--- a/Sources/code/platform/Models/Configuration/AppInventoryConfigConfigurationPlatformModel.swift
+++ b/Sources/code/platform/Models/Configuration/AppInventoryConfigConfigurationPlatformModel.swift
@@ -36,6 +36,8 @@ public extension PlatformClient.Configuration {
public var companyId: Int?
+ public var enableZoneOverlapping: Bool?
+
public enum CodingKeys: String, CodingKey {
@@ -63,9 +65,11 @@ public extension PlatformClient.Configuration {
case companyId = "company_id"
+ case enableZoneOverlapping = "enable_zone_overlapping"
+
}
- public init(brand: InventoryBrand? = nil, category: InventoryCategory? = nil, companyId: Int? = nil, companyStore: [[String: Any]]? = nil, discount: InventoryDiscount? = nil, excludeCategory: [[String: Any]]? = nil, franchiseEnabled: Bool? = nil, image: [String]? = nil, onlyVerifiedProducts: Bool? = nil, outOfStock: Bool? = nil, price: InventoryPrice? = nil, store: InventoryStore? = nil) {
+ public init(brand: InventoryBrand? = nil, category: InventoryCategory? = nil, companyId: Int? = nil, companyStore: [[String: Any]]? = nil, discount: InventoryDiscount? = nil, enableZoneOverlapping: Bool? = nil, excludeCategory: [[String: Any]]? = nil, franchiseEnabled: Bool? = nil, image: [String]? = nil, onlyVerifiedProducts: Bool? = nil, outOfStock: Bool? = nil, price: InventoryPrice? = nil, store: InventoryStore? = nil) {
self.brand = brand
@@ -91,6 +95,8 @@ public extension PlatformClient.Configuration {
self.companyId = companyId
+ self.enableZoneOverlapping = enableZoneOverlapping
+
}
required public init(from decoder: Decoder) throws {
@@ -240,6 +246,18 @@ public extension PlatformClient.Configuration {
}
+
+ do {
+ enableZoneOverlapping = try container.decode(Bool.self, forKey: .enableZoneOverlapping)
+
+ } 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 {
@@ -305,6 +323,11 @@ public extension PlatformClient.Configuration {
try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+ try? container.encodeIfPresent(enableZoneOverlapping, forKey: .enableZoneOverlapping)
+
+
}
}
@@ -345,6 +368,8 @@ public extension PlatformClient.ApplicationClient.Configuration {
public var companyId: Int?
+ public var enableZoneOverlapping: Bool?
+
public enum CodingKeys: String, CodingKey {
@@ -372,9 +397,11 @@ public extension PlatformClient.ApplicationClient.Configuration {
case companyId = "company_id"
+ case enableZoneOverlapping = "enable_zone_overlapping"
+
}
- public init(brand: InventoryBrand? = nil, category: InventoryCategory? = nil, companyId: Int? = nil, companyStore: [[String: Any]]? = nil, discount: InventoryDiscount? = nil, excludeCategory: [[String: Any]]? = nil, franchiseEnabled: Bool? = nil, image: [String]? = nil, onlyVerifiedProducts: Bool? = nil, outOfStock: Bool? = nil, price: InventoryPrice? = nil, store: InventoryStore? = nil) {
+ public init(brand: InventoryBrand? = nil, category: InventoryCategory? = nil, companyId: Int? = nil, companyStore: [[String: Any]]? = nil, discount: InventoryDiscount? = nil, enableZoneOverlapping: Bool? = nil, excludeCategory: [[String: Any]]? = nil, franchiseEnabled: Bool? = nil, image: [String]? = nil, onlyVerifiedProducts: Bool? = nil, outOfStock: Bool? = nil, price: InventoryPrice? = nil, store: InventoryStore? = nil) {
self.brand = brand
@@ -400,6 +427,8 @@ public extension PlatformClient.ApplicationClient.Configuration {
self.companyId = companyId
+ self.enableZoneOverlapping = enableZoneOverlapping
+
}
required public init(from decoder: Decoder) throws {
@@ -549,6 +578,18 @@ public extension PlatformClient.ApplicationClient.Configuration {
}
+
+ do {
+ enableZoneOverlapping = try container.decode(Bool.self, forKey: .enableZoneOverlapping)
+
+ } 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 {
@@ -614,6 +655,11 @@ public extension PlatformClient.ApplicationClient.Configuration {
try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+ try? container.encodeIfPresent(enableZoneOverlapping, forKey: .enableZoneOverlapping)
+
+
}
}
diff --git a/Sources/code/platform/Models/Configuration/AppInventoryPartialUpdateConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/AppInventoryPartialUpdateConfigurationPlatformModel.swift
index 6e0ad7ce7e..3bd6765113 100644
--- a/Sources/code/platform/Models/Configuration/AppInventoryPartialUpdateConfigurationPlatformModel.swift
+++ b/Sources/code/platform/Models/Configuration/AppInventoryPartialUpdateConfigurationPlatformModel.swift
@@ -12,8 +12,6 @@ public extension PlatformClient.Configuration {
class AppInventoryPartialUpdate: Codable {
- public var search: SearchConfig?
-
public var rewardPoints: RewardPointsConfig?
public var cart: AppCartConfig?
@@ -29,8 +27,6 @@ public extension PlatformClient.Configuration {
public enum CodingKeys: String, CodingKey {
- case search = "search"
-
case rewardPoints = "reward_points"
case cart = "cart"
@@ -45,9 +41,7 @@ public extension PlatformClient.Configuration {
}
- public init(cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, payment: AppPaymentConfig? = nil, rewardPoints: RewardPointsConfig? = nil, search: SearchConfig? = nil) {
-
- self.search = search
+ public init(cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, payment: AppPaymentConfig? = nil, rewardPoints: RewardPointsConfig? = nil) {
self.rewardPoints = rewardPoints
@@ -67,18 +61,6 @@ public extension PlatformClient.Configuration {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- search = try container.decode(SearchConfig.self, forKey: .search)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
rewardPoints = try container.decode(RewardPointsConfig.self, forKey: .rewardPoints)
@@ -157,11 +139,6 @@ public extension PlatformClient.Configuration {
- try? container.encodeIfPresent(search, forKey: .search)
-
-
-
-
try? container.encodeIfPresent(rewardPoints, forKey: .rewardPoints)
@@ -206,8 +183,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
class AppInventoryPartialUpdate: Codable {
- public var search: SearchConfig?
-
public var rewardPoints: RewardPointsConfig?
public var cart: AppCartConfig?
@@ -223,8 +198,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
public enum CodingKeys: String, CodingKey {
- case search = "search"
-
case rewardPoints = "reward_points"
case cart = "cart"
@@ -239,9 +212,7 @@ public extension PlatformClient.ApplicationClient.Configuration {
}
- public init(cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, payment: AppPaymentConfig? = nil, rewardPoints: RewardPointsConfig? = nil, search: SearchConfig? = nil) {
-
- self.search = search
+ public init(cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, payment: AppPaymentConfig? = nil, rewardPoints: RewardPointsConfig? = nil) {
self.rewardPoints = rewardPoints
@@ -261,18 +232,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- search = try container.decode(SearchConfig.self, forKey: .search)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
rewardPoints = try container.decode(RewardPointsConfig.self, forKey: .rewardPoints)
@@ -351,11 +310,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
- try? container.encodeIfPresent(search, forKey: .search)
-
-
-
-
try? container.encodeIfPresent(rewardPoints, forKey: .rewardPoints)
diff --git a/Sources/code/platform/Models/Configuration/ApplicationInventoryConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ApplicationInventoryConfigurationPlatformModel.swift
index 38219a6193..54718df9f1 100644
--- a/Sources/code/platform/Models/Configuration/ApplicationInventoryConfigurationPlatformModel.swift
+++ b/Sources/code/platform/Models/Configuration/ApplicationInventoryConfigurationPlatformModel.swift
@@ -12,8 +12,6 @@ public extension PlatformClient.Configuration {
class ApplicationInventory: Codable {
- public var search: SearchConfig?
-
public var inventory: AppInventoryConfig?
public var authentication: AuthenticationConfig?
@@ -59,8 +57,6 @@ public extension PlatformClient.Configuration {
public enum CodingKeys: String, CodingKey {
- case search = "search"
-
case inventory = "inventory"
case authentication = "authentication"
@@ -105,9 +101,7 @@ public extension PlatformClient.Configuration {
}
- public init(app: String? = nil, articleAssignment: ArticleAssignmentConfig? = nil, authentication: AuthenticationConfig? = nil, business: String? = nil, cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, createdAt: String? = nil, inventory: AppInventoryConfig? = nil, logistics: AppLogisticsConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, modifiedAt: String? = nil, modifiedBy: String? = nil, order: AppOrderConfig? = nil, payment: AppPaymentConfig? = nil, piiMasking: PiiMasking? = nil, platforms: [String]? = nil, rewardPoints: RewardPointsConfig? = nil, search: SearchConfig? = nil, tags: [String]? = nil, id: String? = nil, v: Int? = nil) {
-
- self.search = search
+ public init(app: String? = nil, articleAssignment: ArticleAssignmentConfig? = nil, authentication: AuthenticationConfig? = nil, business: String? = nil, cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, createdAt: String? = nil, inventory: AppInventoryConfig? = nil, logistics: AppLogisticsConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, modifiedAt: String? = nil, modifiedBy: String? = nil, order: AppOrderConfig? = nil, payment: AppPaymentConfig? = nil, piiMasking: PiiMasking? = nil, platforms: [String]? = nil, rewardPoints: RewardPointsConfig? = nil, tags: [String]? = nil, id: String? = nil, v: Int? = nil) {
self.inventory = inventory
@@ -157,18 +151,6 @@ public extension PlatformClient.Configuration {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- search = try container.decode(SearchConfig.self, forKey: .search)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
inventory = try container.decode(AppInventoryConfig.self, forKey: .inventory)
@@ -427,11 +409,6 @@ public extension PlatformClient.Configuration {
- try? container.encodeIfPresent(search, forKey: .search)
-
-
-
-
try? container.encodeIfPresent(inventory, forKey: .inventory)
@@ -551,8 +528,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
class ApplicationInventory: Codable {
- public var search: SearchConfig?
-
public var inventory: AppInventoryConfig?
public var authentication: AuthenticationConfig?
@@ -598,8 +573,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
public enum CodingKeys: String, CodingKey {
- case search = "search"
-
case inventory = "inventory"
case authentication = "authentication"
@@ -644,9 +617,7 @@ public extension PlatformClient.ApplicationClient.Configuration {
}
- public init(app: String? = nil, articleAssignment: ArticleAssignmentConfig? = nil, authentication: AuthenticationConfig? = nil, business: String? = nil, cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, createdAt: String? = nil, inventory: AppInventoryConfig? = nil, logistics: AppLogisticsConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, modifiedAt: String? = nil, modifiedBy: String? = nil, order: AppOrderConfig? = nil, payment: AppPaymentConfig? = nil, piiMasking: PiiMasking? = nil, platforms: [String]? = nil, rewardPoints: RewardPointsConfig? = nil, search: SearchConfig? = nil, tags: [String]? = nil, id: String? = nil, v: Int? = nil) {
-
- self.search = search
+ public init(app: String? = nil, articleAssignment: ArticleAssignmentConfig? = nil, authentication: AuthenticationConfig? = nil, business: String? = nil, cart: AppCartConfig? = nil, commsEnabled: Bool? = nil, communication: CommunicationConfig? = nil, createdAt: String? = nil, inventory: AppInventoryConfig? = nil, logistics: AppLogisticsConfig? = nil, loyaltyPoints: LoyaltyPointsConfig? = nil, modifiedAt: String? = nil, modifiedBy: String? = nil, order: AppOrderConfig? = nil, payment: AppPaymentConfig? = nil, piiMasking: PiiMasking? = nil, platforms: [String]? = nil, rewardPoints: RewardPointsConfig? = nil, tags: [String]? = nil, id: String? = nil, v: Int? = nil) {
self.inventory = inventory
@@ -696,18 +667,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- search = try container.decode(SearchConfig.self, forKey: .search)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
inventory = try container.decode(AppInventoryConfig.self, forKey: .inventory)
@@ -966,11 +925,6 @@ public extension PlatformClient.ApplicationClient.Configuration {
- try? container.encodeIfPresent(search, forKey: .search)
-
-
-
-
try? container.encodeIfPresent(inventory, forKey: .inventory)
diff --git a/Sources/code/platform/Models/Configuration/ApplicationsResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ApplicationsResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..5534d2fcc7
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/ApplicationsResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: ApplicationsResponse
+ Used By: Configuration
+ */
+
+ class ApplicationsResponse: Codable {
+
+
+ public var items: [Application]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Application]? = nil, page: Page? = nil) {
+
+ 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([Application].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: ApplicationsResponse
+ Used By: Configuration
+ */
+
+ class ApplicationsResponse: Codable {
+
+
+ public var items: [Application]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Application]? = nil, page: Page? = nil) {
+
+ 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([Application].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/ApplicationsResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ApplicationsResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 465ba7607b..0000000000
--- a/Sources/code/platform/Models/Configuration/ApplicationsResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: ApplicationsResponseSchema
- Used By: Configuration
- */
-
- class ApplicationsResponseSchema: Codable {
-
-
- public var items: [Application]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Application]? = nil, page: Page? = nil) {
-
- 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([Application].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: ApplicationsResponseSchema
- Used By: Configuration
- */
-
- class ApplicationsResponseSchema: Codable {
-
-
- public var items: [Application]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Application]? = nil, page: Page? = nil) {
-
- 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([Application].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..0a76a6fc64
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: BrandsByCompanyResponse
+ Used By: Configuration
+ */
+
+ class BrandsByCompanyResponse: Codable {
+
+
+ public var brands: [CompanyBrandInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ }
+
+ public init(brands: [CompanyBrandInfo]? = nil) {
+
+ self.brands = brands
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brands = try container.decode([CompanyBrandInfo].self, forKey: .brands)
+
+ } 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(brands, forKey: .brands)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: BrandsByCompanyResponse
+ Used By: Configuration
+ */
+
+ class BrandsByCompanyResponse: Codable {
+
+
+ public var brands: [CompanyBrandInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ }
+
+ public init(brands: [CompanyBrandInfo]? = nil) {
+
+ self.brands = brands
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brands = try container.decode([CompanyBrandInfo].self, forKey: .brands)
+
+ } 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(brands, forKey: .brands)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 1167642f86..0000000000
--- a/Sources/code/platform/Models/Configuration/BrandsByCompanyResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: BrandsByCompanyResponseSchema
- Used By: Configuration
- */
-
- class BrandsByCompanyResponseSchema: Codable {
-
-
- public var brands: [CompanyBrandInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- }
-
- public init(brands: [CompanyBrandInfo]? = nil) {
-
- self.brands = brands
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([CompanyBrandInfo].self, forKey: .brands)
-
- } 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(brands, forKey: .brands)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: BrandsByCompanyResponseSchema
- Used By: Configuration
- */
-
- class BrandsByCompanyResponseSchema: Codable {
-
-
- public var brands: [CompanyBrandInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- }
-
- public init(brands: [CompanyBrandInfo]? = nil) {
-
- self.brands = brands
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- brands = try container.decode([CompanyBrandInfo].self, forKey: .brands)
-
- } 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(brands, forKey: .brands)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CompaniesResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompaniesResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..51619d491a
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CompaniesResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CompaniesResponse
+ Used By: Configuration
+ */
+
+ class CompaniesResponse: Codable {
+
+
+ public var items: [AppInventoryCompanies]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [AppInventoryCompanies]? = nil, page: Page? = nil) {
+
+ 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([AppInventoryCompanies].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CompaniesResponse
+ Used By: Configuration
+ */
+
+ class CompaniesResponse: Codable {
+
+
+ public var items: [AppInventoryCompanies]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [AppInventoryCompanies]? = nil, page: Page? = nil) {
+
+ 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([AppInventoryCompanies].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CompaniesResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompaniesResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index fcb5c70703..0000000000
--- a/Sources/code/platform/Models/Configuration/CompaniesResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CompaniesResponseSchema
- Used By: Configuration
- */
-
- class CompaniesResponseSchema: Codable {
-
-
- public var items: [AppInventoryCompanies]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [AppInventoryCompanies]? = nil, page: Page? = nil) {
-
- 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([AppInventoryCompanies].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CompaniesResponseSchema
- Used By: Configuration
- */
-
- class CompaniesResponseSchema: Codable {
-
-
- public var items: [AppInventoryCompanies]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [AppInventoryCompanies]? = nil, page: Page? = nil) {
-
- 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([AppInventoryCompanies].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..9031f409a0
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestConfigurationPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CompanyByBrandsRequest
+ Used By: Configuration
+ */
+
+ class CompanyByBrandsRequest: Codable {
+
+
+ public var brands: Int
+
+ public var searchText: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ case searchText = "search_text"
+
+ }
+
+ public init(brands: Int, searchText: String? = nil) {
+
+ self.brands = brands
+
+ self.searchText = searchText
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ brands = try container.decode(Int.self, forKey: .brands)
+
+
+
+
+ do {
+ searchText = try container.decode(String.self, forKey: .searchText)
+
+ } 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(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(searchText, forKey: .searchText)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CompanyByBrandsRequest
+ Used By: Configuration
+ */
+
+ class CompanyByBrandsRequest: Codable {
+
+
+ public var brands: Int
+
+ public var searchText: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brands = "brands"
+
+ case searchText = "search_text"
+
+ }
+
+ public init(brands: Int, searchText: String? = nil) {
+
+ self.brands = brands
+
+ self.searchText = searchText
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ brands = try container.decode(Int.self, forKey: .brands)
+
+
+
+
+ do {
+ searchText = try container.decode(String.self, forKey: .searchText)
+
+ } 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(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(searchText, forKey: .searchText)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 494ff612a4..0000000000
--- a/Sources/code/platform/Models/Configuration/CompanyByBrandsRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CompanyByBrandsRequestSchema
- Used By: Configuration
- */
-
- class CompanyByBrandsRequestSchema: Codable {
-
-
- public var brands: Int
-
- public var searchText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case searchText = "search_text"
-
- }
-
- public init(brands: Int, searchText: String? = nil) {
-
- self.brands = brands
-
- self.searchText = searchText
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- brands = try container.decode(Int.self, forKey: .brands)
-
-
-
-
- do {
- searchText = try container.decode(String.self, forKey: .searchText)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(searchText, forKey: .searchText)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CompanyByBrandsRequestSchema
- Used By: Configuration
- */
-
- class CompanyByBrandsRequestSchema: Codable {
-
-
- public var brands: Int
-
- public var searchText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case brands = "brands"
-
- case searchText = "search_text"
-
- }
-
- public init(brands: Int, searchText: String? = nil) {
-
- self.brands = brands
-
- self.searchText = searchText
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- brands = try container.decode(Int.self, forKey: .brands)
-
-
-
-
- do {
- searchText = try container.decode(String.self, forKey: .searchText)
-
- } 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(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(searchText, forKey: .searchText)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..f06acc974c
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CompanyByBrandsResponse
+ Used By: Configuration
+ */
+
+ class CompanyByBrandsResponse: Codable {
+
+
+ public var items: [BrandCompanyInfo]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandCompanyInfo]? = nil, page: Page? = nil) {
+
+ 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([BrandCompanyInfo].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CompanyByBrandsResponse
+ Used By: Configuration
+ */
+
+ class CompanyByBrandsResponse: Codable {
+
+
+ public var items: [BrandCompanyInfo]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandCompanyInfo]? = nil, page: Page? = nil) {
+
+ 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([BrandCompanyInfo].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 7dc3981a52..0000000000
--- a/Sources/code/platform/Models/Configuration/CompanyByBrandsResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CompanyByBrandsResponseSchema
- Used By: Configuration
- */
-
- class CompanyByBrandsResponseSchema: Codable {
-
-
- public var items: [BrandCompanyInfo]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandCompanyInfo]? = nil, page: Page? = nil) {
-
- 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([BrandCompanyInfo].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CompanyByBrandsResponseSchema
- Used By: Configuration
- */
-
- class CompanyByBrandsResponseSchema: Codable {
-
-
- public var items: [BrandCompanyInfo]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandCompanyInfo]? = nil, page: Page? = nil) {
-
- 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([BrandCompanyInfo].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CreateAppResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CreateAppResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..4c7a70c55e
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CreateAppResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CreateAppResponse
+ Used By: Configuration
+ */
+
+ class CreateAppResponse: Codable {
+
+
+ public var app: Application?
+
+ public var configuration: ApplicationInventory?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case app = "app"
+
+ case configuration = "configuration"
+
+ }
+
+ public init(app: Application? = nil, configuration: ApplicationInventory? = nil) {
+
+ self.app = app
+
+ self.configuration = configuration
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ app = try container.decode(Application.self, forKey: .app)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
+
+ } 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(app, forKey: .app)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CreateAppResponse
+ Used By: Configuration
+ */
+
+ class CreateAppResponse: Codable {
+
+
+ public var app: Application?
+
+ public var configuration: ApplicationInventory?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case app = "app"
+
+ case configuration = "configuration"
+
+ }
+
+ public init(app: Application? = nil, configuration: ApplicationInventory? = nil) {
+
+ self.app = app
+
+ self.configuration = configuration
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ app = try container.decode(Application.self, forKey: .app)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
+
+ } 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(app, forKey: .app)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CreateAppResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CreateAppResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 8a361a2474..0000000000
--- a/Sources/code/platform/Models/Configuration/CreateAppResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CreateAppResponseSchema
- Used By: Configuration
- */
-
- class CreateAppResponseSchema: Codable {
-
-
- public var app: Application?
-
- public var configuration: ApplicationInventory?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case app = "app"
-
- case configuration = "configuration"
-
- }
-
- public init(app: Application? = nil, configuration: ApplicationInventory? = nil) {
-
- self.app = app
-
- self.configuration = configuration
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- app = try container.decode(Application.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
-
- } 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(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CreateAppResponseSchema
- Used By: Configuration
- */
-
- class CreateAppResponseSchema: Codable {
-
-
- public var app: Application?
-
- public var configuration: ApplicationInventory?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case app = "app"
-
- case configuration = "configuration"
-
- }
-
- public init(app: Application? = nil, configuration: ApplicationInventory? = nil) {
-
- self.app = app
-
- self.configuration = configuration
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- app = try container.decode(Application.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
-
- } 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(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CreateApplicationRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CreateApplicationRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..68485889fc
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CreateApplicationRequestConfigurationPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CreateApplicationRequest
+ Used By: Configuration
+ */
+
+ class CreateApplicationRequest: Codable {
+
+
+ public var app: App?
+
+ public var configuration: ApplicationInventory?
+
+ public var domain: AppDomain?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case app = "app"
+
+ case configuration = "configuration"
+
+ case domain = "domain"
+
+ }
+
+ public init(app: App? = nil, configuration: ApplicationInventory? = nil, domain: AppDomain? = nil) {
+
+ self.app = app
+
+ self.configuration = configuration
+
+ self.domain = domain
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ app = try container.decode(App.self, forKey: .app)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ domain = try container.decode(AppDomain.self, forKey: .domain)
+
+ } 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(app, forKey: .app)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(domain, forKey: .domain)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CreateApplicationRequest
+ Used By: Configuration
+ */
+
+ class CreateApplicationRequest: Codable {
+
+
+ public var app: App?
+
+ public var configuration: ApplicationInventory?
+
+ public var domain: AppDomain?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case app = "app"
+
+ case configuration = "configuration"
+
+ case domain = "domain"
+
+ }
+
+ public init(app: App? = nil, configuration: ApplicationInventory? = nil, domain: AppDomain? = nil) {
+
+ self.app = app
+
+ self.configuration = configuration
+
+ self.domain = domain
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ app = try container.decode(App.self, forKey: .app)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ domain = try container.decode(AppDomain.self, forKey: .domain)
+
+ } 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(app, forKey: .app)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(domain, forKey: .domain)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CreateApplicationRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CreateApplicationRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index c8f9ea7ae3..0000000000
--- a/Sources/code/platform/Models/Configuration/CreateApplicationRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CreateApplicationRequestSchema
- Used By: Configuration
- */
-
- class CreateApplicationRequestSchema: Codable {
-
-
- public var app: App?
-
- public var configuration: ApplicationInventory?
-
- public var domain: AppDomain?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case app = "app"
-
- case configuration = "configuration"
-
- case domain = "domain"
-
- }
-
- public init(app: App? = nil, configuration: ApplicationInventory? = nil, domain: AppDomain? = nil) {
-
- self.app = app
-
- self.configuration = configuration
-
- self.domain = domain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- app = try container.decode(App.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- domain = try container.decode(AppDomain.self, forKey: .domain)
-
- } 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(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(domain, forKey: .domain)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CreateApplicationRequestSchema
- Used By: Configuration
- */
-
- class CreateApplicationRequestSchema: Codable {
-
-
- public var app: App?
-
- public var configuration: ApplicationInventory?
-
- public var domain: AppDomain?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case app = "app"
-
- case configuration = "configuration"
-
- case domain = "domain"
-
- }
-
- public init(app: App? = nil, configuration: ApplicationInventory? = nil, domain: AppDomain? = nil) {
-
- self.app = app
-
- self.configuration = configuration
-
- self.domain = domain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- app = try container.decode(App.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ApplicationInventory.self, forKey: .configuration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- domain = try container.decode(AppDomain.self, forKey: .domain)
-
- } 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(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(domain, forKey: .domain)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CurrenciesResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CurrenciesResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..0b2d9b672d
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/CurrenciesResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: CurrenciesResponse
+ Used By: Configuration
+ */
+
+ class CurrenciesResponse: Codable {
+
+
+ public var items: [Currency]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Currency]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Currency].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: CurrenciesResponse
+ Used By: Configuration
+ */
+
+ class CurrenciesResponse: Codable {
+
+
+ public var items: [Currency]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [Currency]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([Currency].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/CurrenciesResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CurrenciesResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 3049bdb5f2..0000000000
--- a/Sources/code/platform/Models/Configuration/CurrenciesResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CurrenciesResponseSchema
- Used By: Configuration
- */
-
- class CurrenciesResponseSchema: Codable {
-
-
- public var items: [Currency]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Currency]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Currency].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CurrenciesResponseSchema
- Used By: Configuration
- */
-
- class CurrenciesResponseSchema: Codable {
-
-
- public var items: [Currency]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [Currency]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([Currency].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CurrencyExchangeItemConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CurrencyExchangeItemConfigurationPlatformModel.swift
deleted file mode 100644
index 5f052a5e7f..0000000000
--- a/Sources/code/platform/Models/Configuration/CurrencyExchangeItemConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,326 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CurrencyExchangeItem
- Used By: Configuration
- */
-
- class CurrencyExchangeItem: Codable {
-
-
- public var currencyCode: String
-
- public var name: String
-
- public var rate: Double
-
- public var countryCode: String
-
- public var countryName: String
-
- public var subunit: String
-
- public var decimalDigits: Int
-
- public var symbol: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case name = "name"
-
- case rate = "rate"
-
- case countryCode = "country_code"
-
- case countryName = "country_name"
-
- case subunit = "subunit"
-
- case decimalDigits = "decimal_digits"
-
- case symbol = "symbol"
-
- }
-
- public init(countryCode: String, countryName: String, currencyCode: String, decimalDigits: Int, name: String, rate: Double, subunit: String, symbol: String) {
-
- self.currencyCode = currencyCode
-
- self.name = name
-
- self.rate = rate
-
- self.countryCode = countryCode
-
- self.countryName = countryName
-
- self.subunit = subunit
-
- self.decimalDigits = decimalDigits
-
- self.symbol = symbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- currencyCode = try container.decode(String.self, forKey: .currencyCode)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- rate = try container.decode(Double.self, forKey: .rate)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- countryName = try container.decode(String.self, forKey: .countryName)
-
-
-
-
- subunit = try container.decode(String.self, forKey: .subunit)
-
-
-
-
- decimalDigits = try container.decode(Int.self, forKey: .decimalDigits)
-
-
-
-
- symbol = try container.decode(String.self, forKey: .symbol)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rate, forKey: .rate)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryName, forKey: .countryName)
-
-
-
-
- try? container.encodeIfPresent(subunit, forKey: .subunit)
-
-
-
-
- try? container.encodeIfPresent(decimalDigits, forKey: .decimalDigits)
-
-
-
-
- try? container.encodeIfPresent(symbol, forKey: .symbol)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CurrencyExchangeItem
- Used By: Configuration
- */
-
- class CurrencyExchangeItem: Codable {
-
-
- public var currencyCode: String
-
- public var name: String
-
- public var rate: Double
-
- public var countryCode: String
-
- public var countryName: String
-
- public var subunit: String
-
- public var decimalDigits: Int
-
- public var symbol: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case name = "name"
-
- case rate = "rate"
-
- case countryCode = "country_code"
-
- case countryName = "country_name"
-
- case subunit = "subunit"
-
- case decimalDigits = "decimal_digits"
-
- case symbol = "symbol"
-
- }
-
- public init(countryCode: String, countryName: String, currencyCode: String, decimalDigits: Int, name: String, rate: Double, subunit: String, symbol: String) {
-
- self.currencyCode = currencyCode
-
- self.name = name
-
- self.rate = rate
-
- self.countryCode = countryCode
-
- self.countryName = countryName
-
- self.subunit = subunit
-
- self.decimalDigits = decimalDigits
-
- self.symbol = symbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- currencyCode = try container.decode(String.self, forKey: .currencyCode)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- rate = try container.decode(Double.self, forKey: .rate)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- countryName = try container.decode(String.self, forKey: .countryName)
-
-
-
-
- subunit = try container.decode(String.self, forKey: .subunit)
-
-
-
-
- decimalDigits = try container.decode(Int.self, forKey: .decimalDigits)
-
-
-
-
- symbol = try container.decode(String.self, forKey: .symbol)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(rate, forKey: .rate)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryName, forKey: .countryName)
-
-
-
-
- try? container.encodeIfPresent(subunit, forKey: .subunit)
-
-
-
-
- try? container.encodeIfPresent(decimalDigits, forKey: .decimalDigits)
-
-
-
-
- try? container.encodeIfPresent(symbol, forKey: .symbol)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/CurrencyExchangeResponseV2ConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/CurrencyExchangeResponseV2ConfigurationPlatformModel.swift
deleted file mode 100644
index 555dd742ba..0000000000
--- a/Sources/code/platform/Models/Configuration/CurrencyExchangeResponseV2ConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: CurrencyExchangeResponseV2
- Used By: Configuration
- */
-
- class CurrencyExchangeResponseV2: Codable {
-
-
- public var base: String
-
- public var baseCurrencyName: String
-
- public var ttlSeconds: Int
-
- public var items: [CurrencyExchangeItem]
-
- public var total: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case base = "base"
-
- case baseCurrencyName = "base_currency_name"
-
- case ttlSeconds = "ttl_seconds"
-
- case items = "items"
-
- case total = "total"
-
- }
-
- public init(base: String, baseCurrencyName: String, items: [CurrencyExchangeItem], total: Int, ttlSeconds: Int) {
-
- self.base = base
-
- self.baseCurrencyName = baseCurrencyName
-
- self.ttlSeconds = ttlSeconds
-
- self.items = items
-
- self.total = total
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- base = try container.decode(String.self, forKey: .base)
-
-
-
-
- baseCurrencyName = try container.decode(String.self, forKey: .baseCurrencyName)
-
-
-
-
- ttlSeconds = try container.decode(Int.self, forKey: .ttlSeconds)
-
-
-
-
- items = try container.decode([CurrencyExchangeItem].self, forKey: .items)
-
-
-
-
- total = try container.decode(Int.self, forKey: .total)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(base, forKey: .base)
-
-
-
-
- try? container.encodeIfPresent(baseCurrencyName, forKey: .baseCurrencyName)
-
-
-
-
- try? container.encodeIfPresent(ttlSeconds, forKey: .ttlSeconds)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: CurrencyExchangeResponseV2
- Used By: Configuration
- */
-
- class CurrencyExchangeResponseV2: Codable {
-
-
- public var base: String
-
- public var baseCurrencyName: String
-
- public var ttlSeconds: Int
-
- public var items: [CurrencyExchangeItem]
-
- public var total: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case base = "base"
-
- case baseCurrencyName = "base_currency_name"
-
- case ttlSeconds = "ttl_seconds"
-
- case items = "items"
-
- case total = "total"
-
- }
-
- public init(base: String, baseCurrencyName: String, items: [CurrencyExchangeItem], total: Int, ttlSeconds: Int) {
-
- self.base = base
-
- self.baseCurrencyName = baseCurrencyName
-
- self.ttlSeconds = ttlSeconds
-
- self.items = items
-
- self.total = total
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- base = try container.decode(String.self, forKey: .base)
-
-
-
-
- baseCurrencyName = try container.decode(String.self, forKey: .baseCurrencyName)
-
-
-
-
- ttlSeconds = try container.decode(Int.self, forKey: .ttlSeconds)
-
-
-
-
- items = try container.decode([CurrencyExchangeItem].self, forKey: .items)
-
-
-
-
- total = try container.decode(Int.self, forKey: .total)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(base, forKey: .base)
-
-
-
-
- try? container.encodeIfPresent(baseCurrencyName, forKey: .baseCurrencyName)
-
-
-
-
- try? container.encodeIfPresent(ttlSeconds, forKey: .ttlSeconds)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainAddRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainAddRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..227d2c5ddc
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainAddRequestConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainAddRequest
+ Used By: Configuration
+ */
+
+ class DomainAddRequest: Codable {
+
+
+ public var domain: DomainAdd?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domain = "domain"
+
+ }
+
+ public init(domain: DomainAdd? = nil) {
+
+ self.domain = domain
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domain = try container.decode(DomainAdd.self, forKey: .domain)
+
+ } 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(domain, forKey: .domain)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainAddRequest
+ Used By: Configuration
+ */
+
+ class DomainAddRequest: Codable {
+
+
+ public var domain: DomainAdd?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domain = "domain"
+
+ }
+
+ public init(domain: DomainAdd? = nil) {
+
+ self.domain = domain
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domain = try container.decode(DomainAdd.self, forKey: .domain)
+
+ } 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(domain, forKey: .domain)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainAddRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainAddRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 20fb8692b4..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainAddRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainAddRequestSchema
- Used By: Configuration
- */
-
- class DomainAddRequestSchema: Codable {
-
-
- public var domain: DomainAdd?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domain = "domain"
-
- }
-
- public init(domain: DomainAdd? = nil) {
-
- self.domain = domain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domain = try container.decode(DomainAdd.self, forKey: .domain)
-
- } 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(domain, forKey: .domain)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainAddRequestSchema
- Used By: Configuration
- */
-
- class DomainAddRequestSchema: Codable {
-
-
- public var domain: DomainAdd?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domain = "domain"
-
- }
-
- public init(domain: DomainAdd? = nil) {
-
- self.domain = domain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domain = try container.decode(DomainAdd.self, forKey: .domain)
-
- } 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(domain, forKey: .domain)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainStatusRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainStatusRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..d1f7243d4b
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainStatusRequestConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainStatusRequest
+ Used By: Configuration
+ */
+
+ class DomainStatusRequest: Codable {
+
+
+ public var domainUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domainUrl = "domain_url"
+
+ }
+
+ public init(domainUrl: String? = nil) {
+
+ self.domainUrl = domainUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domainUrl = try container.decode(String.self, forKey: .domainUrl)
+
+ } 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(domainUrl, forKey: .domainUrl)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainStatusRequest
+ Used By: Configuration
+ */
+
+ class DomainStatusRequest: Codable {
+
+
+ public var domainUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domainUrl = "domain_url"
+
+ }
+
+ public init(domainUrl: String? = nil) {
+
+ self.domainUrl = domainUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domainUrl = try container.decode(String.self, forKey: .domainUrl)
+
+ } 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(domainUrl, forKey: .domainUrl)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainStatusRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainStatusRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 45d7e1b4d7..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainStatusRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainStatusRequestSchema
- Used By: Configuration
- */
-
- class DomainStatusRequestSchema: Codable {
-
-
- public var domainUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domainUrl = "domain_url"
-
- }
-
- public init(domainUrl: String? = nil) {
-
- self.domainUrl = domainUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domainUrl = try container.decode(String.self, forKey: .domainUrl)
-
- } 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(domainUrl, forKey: .domainUrl)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainStatusRequestSchema
- Used By: Configuration
- */
-
- class DomainStatusRequestSchema: Codable {
-
-
- public var domainUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domainUrl = "domain_url"
-
- }
-
- public init(domainUrl: String? = nil) {
-
- self.domainUrl = domainUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domainUrl = try container.decode(String.self, forKey: .domainUrl)
-
- } 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(domainUrl, forKey: .domainUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainStatusResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainStatusResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..a8c3ae94f3
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainStatusResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainStatusResponse
+ Used By: Configuration
+ */
+
+ class DomainStatusResponse: Codable {
+
+
+ public var connected: Bool?
+
+ public var status: [DomainStatus]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case connected = "connected"
+
+ case status = "status"
+
+ }
+
+ public init(connected: Bool? = nil, status: [DomainStatus]? = nil) {
+
+ self.connected = connected
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ connected = try container.decode(Bool.self, forKey: .connected)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ status = try container.decode([DomainStatus].self, forKey: .status)
+
+ } 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(connected, forKey: .connected)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainStatusResponse
+ Used By: Configuration
+ */
+
+ class DomainStatusResponse: Codable {
+
+
+ public var connected: Bool?
+
+ public var status: [DomainStatus]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case connected = "connected"
+
+ case status = "status"
+
+ }
+
+ public init(connected: Bool? = nil, status: [DomainStatus]? = nil) {
+
+ self.connected = connected
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ connected = try container.decode(Bool.self, forKey: .connected)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ status = try container.decode([DomainStatus].self, forKey: .status)
+
+ } 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(connected, forKey: .connected)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainStatusResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainStatusResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index c1b259f876..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainStatusResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainStatusResponseSchema
- Used By: Configuration
- */
-
- class DomainStatusResponseSchema: Codable {
-
-
- public var connected: Bool?
-
- public var status: [DomainStatus]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case connected = "connected"
-
- case status = "status"
-
- }
-
- public init(connected: Bool? = nil, status: [DomainStatus]? = nil) {
-
- self.connected = connected
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- connected = try container.decode(Bool.self, forKey: .connected)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- status = try container.decode([DomainStatus].self, forKey: .status)
-
- } 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(connected, forKey: .connected)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainStatusResponseSchema
- Used By: Configuration
- */
-
- class DomainStatusResponseSchema: Codable {
-
-
- public var connected: Bool?
-
- public var status: [DomainStatus]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case connected = "connected"
-
- case status = "status"
-
- }
-
- public init(connected: Bool? = nil, status: [DomainStatus]? = nil) {
-
- self.connected = connected
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- connected = try container.decode(Bool.self, forKey: .connected)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- status = try container.decode([DomainStatus].self, forKey: .status)
-
- } 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(connected, forKey: .connected)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..6fc7ab15b6
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainSuggestionsRequest
+ Used By: Configuration
+ */
+
+ class DomainSuggestionsRequest: Codable {
+
+
+ public var domainUrl: String?
+
+ public var custom: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domainUrl = "domain_url"
+
+ case custom = "custom"
+
+ }
+
+ public init(custom: Bool? = nil, domainUrl: String? = nil) {
+
+ self.domainUrl = domainUrl
+
+ self.custom = custom
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domainUrl = try container.decode(String.self, forKey: .domainUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ custom = try container.decode(Bool.self, forKey: .custom)
+
+ } 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(domainUrl, forKey: .domainUrl)
+
+
+
+
+ try? container.encodeIfPresent(custom, forKey: .custom)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainSuggestionsRequest
+ Used By: Configuration
+ */
+
+ class DomainSuggestionsRequest: Codable {
+
+
+ public var domainUrl: String?
+
+ public var custom: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domainUrl = "domain_url"
+
+ case custom = "custom"
+
+ }
+
+ public init(custom: Bool? = nil, domainUrl: String? = nil) {
+
+ self.domainUrl = domainUrl
+
+ self.custom = custom
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domainUrl = try container.decode(String.self, forKey: .domainUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ custom = try container.decode(Bool.self, forKey: .custom)
+
+ } 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(domainUrl, forKey: .domainUrl)
+
+
+
+
+ try? container.encodeIfPresent(custom, forKey: .custom)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 5d496da1db..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainSuggestionsRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainSuggestionsRequestSchema
- Used By: Configuration
- */
-
- class DomainSuggestionsRequestSchema: Codable {
-
-
- public var domainUrl: String?
-
- public var customDomain: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domainUrl = "domain_url"
-
- case customDomain = "custom_domain"
-
- }
-
- public init(customDomain: Bool? = nil, domainUrl: String? = nil) {
-
- self.domainUrl = domainUrl
-
- self.customDomain = customDomain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domainUrl = try container.decode(String.self, forKey: .domainUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customDomain = try container.decode(Bool.self, forKey: .customDomain)
-
- } 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(domainUrl, forKey: .domainUrl)
-
-
-
-
- try? container.encodeIfPresent(customDomain, forKey: .customDomain)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainSuggestionsRequestSchema
- Used By: Configuration
- */
-
- class DomainSuggestionsRequestSchema: Codable {
-
-
- public var domainUrl: String?
-
- public var customDomain: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domainUrl = "domain_url"
-
- case customDomain = "custom_domain"
-
- }
-
- public init(customDomain: Bool? = nil, domainUrl: String? = nil) {
-
- self.domainUrl = domainUrl
-
- self.customDomain = customDomain
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domainUrl = try container.decode(String.self, forKey: .domainUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customDomain = try container.decode(Bool.self, forKey: .customDomain)
-
- } 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(domainUrl, forKey: .domainUrl)
-
-
-
-
- try? container.encodeIfPresent(customDomain, forKey: .customDomain)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..48cd63a17a
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainSuggestionsResponse
+ Used By: Configuration
+ */
+
+ class DomainSuggestionsResponse: Codable {
+
+
+ public var domains: [DomainSuggestion]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domains = "domains"
+
+ }
+
+ public init(domains: [DomainSuggestion]? = nil) {
+
+ self.domains = domains
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domains = try container.decode([DomainSuggestion].self, forKey: .domains)
+
+ } 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(domains, forKey: .domains)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainSuggestionsResponse
+ Used By: Configuration
+ */
+
+ class DomainSuggestionsResponse: Codable {
+
+
+ public var domains: [DomainSuggestion]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domains = "domains"
+
+ }
+
+ public init(domains: [DomainSuggestion]? = nil) {
+
+ self.domains = domains
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domains = try container.decode([DomainSuggestion].self, forKey: .domains)
+
+ } 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(domains, forKey: .domains)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index bce7012105..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainSuggestionsResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainSuggestionsResponseSchema
- Used By: Configuration
- */
-
- class DomainSuggestionsResponseSchema: Codable {
-
-
- public var domains: [DomainSuggestion]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domains = "domains"
-
- }
-
- public init(domains: [DomainSuggestion]? = nil) {
-
- self.domains = domains
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domains = try container.decode([DomainSuggestion].self, forKey: .domains)
-
- } 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(domains, forKey: .domains)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainSuggestionsResponseSchema
- Used By: Configuration
- */
-
- class DomainSuggestionsResponseSchema: Codable {
-
-
- public var domains: [DomainSuggestion]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domains = "domains"
-
- }
-
- public init(domains: [DomainSuggestion]? = nil) {
-
- self.domains = domains
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domains = try container.decode([DomainSuggestion].self, forKey: .domains)
-
- } 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(domains, forKey: .domains)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/DomainsResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainsResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..d10c5d6eb0
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/DomainsResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: DomainsResponse
+ Used By: Configuration
+ */
+
+ class DomainsResponse: Codable {
+
+
+ public var domains: [Domain]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domains = "domains"
+
+ }
+
+ public init(domains: [Domain]? = nil) {
+
+ self.domains = domains
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domains = try container.decode([Domain].self, forKey: .domains)
+
+ } 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(domains, forKey: .domains)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: DomainsResponse
+ Used By: Configuration
+ */
+
+ class DomainsResponse: Codable {
+
+
+ public var domains: [Domain]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domains = "domains"
+
+ }
+
+ public init(domains: [Domain]? = nil) {
+
+ self.domains = domains
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domains = try container.decode([Domain].self, forKey: .domains)
+
+ } 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(domains, forKey: .domains)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/DomainsResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/DomainsResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 651a097195..0000000000
--- a/Sources/code/platform/Models/Configuration/DomainsResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: DomainsResponseSchema
- Used By: Configuration
- */
-
- class DomainsResponseSchema: Codable {
-
-
- public var domains: [Domain]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domains = "domains"
-
- }
-
- public init(domains: [Domain]? = nil) {
-
- self.domains = domains
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domains = try container.decode([Domain].self, forKey: .domains)
-
- } 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(domains, forKey: .domains)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: DomainsResponseSchema
- Used By: Configuration
- */
-
- class DomainsResponseSchema: Codable {
-
-
- public var domains: [Domain]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domains = "domains"
-
- }
-
- public init(domains: [Domain]? = nil) {
-
- self.domains = domains
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domains = try container.decode([Domain].self, forKey: .domains)
-
- } 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(domains, forKey: .domains)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..ef08e45d5b
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestConfigurationPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: FilterOrderingStoreRequest
+ Used By: Configuration
+ */
+
+ class FilterOrderingStoreRequest: Codable {
+
+
+ public var allStores: Bool?
+
+ public var deployedStores: [Int]?
+
+ public var q: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case allStores = "all_stores"
+
+ case deployedStores = "deployed_stores"
+
+ case q = "q"
+
+ }
+
+ public init(allStores: Bool? = nil, deployedStores: [Int]? = nil, q: String? = nil) {
+
+ self.allStores = allStores
+
+ self.deployedStores = deployedStores
+
+ self.q = q
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ allStores = try container.decode(Bool.self, forKey: .allStores)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deployedStores = try container.decode([Int].self, forKey: .deployedStores)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ q = try container.decode(String.self, forKey: .q)
+
+ } 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(allStores, forKey: .allStores)
+
+
+
+
+ try? container.encodeIfPresent(deployedStores, forKey: .deployedStores)
+
+
+
+
+ try? container.encodeIfPresent(q, forKey: .q)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: FilterOrderingStoreRequest
+ Used By: Configuration
+ */
+
+ class FilterOrderingStoreRequest: Codable {
+
+
+ public var allStores: Bool?
+
+ public var deployedStores: [Int]?
+
+ public var q: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case allStores = "all_stores"
+
+ case deployedStores = "deployed_stores"
+
+ case q = "q"
+
+ }
+
+ public init(allStores: Bool? = nil, deployedStores: [Int]? = nil, q: String? = nil) {
+
+ self.allStores = allStores
+
+ self.deployedStores = deployedStores
+
+ self.q = q
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ allStores = try container.decode(Bool.self, forKey: .allStores)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deployedStores = try container.decode([Int].self, forKey: .deployedStores)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ q = try container.decode(String.self, forKey: .q)
+
+ } 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(allStores, forKey: .allStores)
+
+
+
+
+ try? container.encodeIfPresent(deployedStores, forKey: .deployedStores)
+
+
+
+
+ try? container.encodeIfPresent(q, forKey: .q)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 523d90e7a1..0000000000
--- a/Sources/code/platform/Models/Configuration/FilterOrderingStoreRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: FilterOrderingStoreRequestSchema
- Used By: Configuration
- */
-
- class FilterOrderingStoreRequestSchema: Codable {
-
-
- public var allStores: Bool?
-
- public var deployedStores: [Int]?
-
- public var q: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case allStores = "all_stores"
-
- case deployedStores = "deployed_stores"
-
- case q = "q"
-
- }
-
- public init(allStores: Bool? = nil, deployedStores: [Int]? = nil, q: String? = nil) {
-
- self.allStores = allStores
-
- self.deployedStores = deployedStores
-
- self.q = q
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- allStores = try container.decode(Bool.self, forKey: .allStores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deployedStores = try container.decode([Int].self, forKey: .deployedStores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- q = try container.decode(String.self, forKey: .q)
-
- } 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(allStores, forKey: .allStores)
-
-
-
-
- try? container.encodeIfPresent(deployedStores, forKey: .deployedStores)
-
-
-
-
- try? container.encodeIfPresent(q, forKey: .q)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: FilterOrderingStoreRequestSchema
- Used By: Configuration
- */
-
- class FilterOrderingStoreRequestSchema: Codable {
-
-
- public var allStores: Bool?
-
- public var deployedStores: [Int]?
-
- public var q: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case allStores = "all_stores"
-
- case deployedStores = "deployed_stores"
-
- case q = "q"
-
- }
-
- public init(allStores: Bool? = nil, deployedStores: [Int]? = nil, q: String? = nil) {
-
- self.allStores = allStores
-
- self.deployedStores = deployedStores
-
- self.q = q
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- allStores = try container.decode(Bool.self, forKey: .allStores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deployedStores = try container.decode([Int].self, forKey: .deployedStores)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- q = try container.decode(String.self, forKey: .q)
-
- } 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(allStores, forKey: .allStores)
-
-
-
-
- try? container.encodeIfPresent(deployedStores, forKey: .deployedStores)
-
-
-
-
- try? container.encodeIfPresent(q, forKey: .q)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/FstIdentificationConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/FstIdentificationConfigurationPlatformModel.swift
deleted file mode 100644
index 4b183b6c8f..0000000000
--- a/Sources/code/platform/Models/Configuration/FstIdentificationConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: FstIdentification
- Used By: Configuration
- */
-
- class FstIdentification: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: FstIdentification
- Used By: Configuration
- */
-
- class FstIdentification: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/InvalidPayloadRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/InvalidPayloadRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..9e68ae6572
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/InvalidPayloadRequestConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: InvalidPayloadRequest
+ Used By: Configuration
+ */
+
+ class InvalidPayloadRequest: Codable {
+
+
+ public var message: String?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: InvalidPayloadRequest
+ Used By: Configuration
+ */
+
+ class InvalidPayloadRequest: Codable {
+
+
+ public var message: String?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/InvalidPayloadRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/InvalidPayloadRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 61cbaeb7da..0000000000
--- a/Sources/code/platform/Models/Configuration/InvalidPayloadRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: InvalidPayloadRequestSchema
- Used By: Configuration
- */
-
- class InvalidPayloadRequestSchema: Codable {
-
-
- public var message: String?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: InvalidPayloadRequestSchema
- Used By: Configuration
- */
-
- class InvalidPayloadRequestSchema: Codable {
-
-
- public var message: String?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/MobileAppConfigRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/MobileAppConfigRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..10d48c3047
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/MobileAppConfigRequestConfigurationPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: MobileAppConfigRequest
+ Used By: Configuration
+ */
+
+ class MobileAppConfigRequest: Codable {
+
+
+ public var appName: String?
+
+ public var landingImage: LandingImage?
+
+ public var splashImage: SplashImage?
+
+ public var isActive: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appName = "app_name"
+
+ case landingImage = "landing_image"
+
+ case splashImage = "splash_image"
+
+ case isActive = "is_active"
+
+ }
+
+ public init(appName: String? = nil, isActive: Bool? = nil, landingImage: LandingImage? = nil, splashImage: SplashImage? = nil) {
+
+ self.appName = appName
+
+ self.landingImage = landingImage
+
+ self.splashImage = splashImage
+
+ self.isActive = isActive
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ appName = try container.decode(String.self, forKey: .appName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ landingImage = try container.decode(LandingImage.self, forKey: .landingImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ splashImage = try container.decode(SplashImage.self, forKey: .splashImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(appName, forKey: .appName)
+
+
+
+
+ try? container.encodeIfPresent(landingImage, forKey: .landingImage)
+
+
+
+
+ try? container.encodeIfPresent(splashImage, forKey: .splashImage)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: MobileAppConfigRequest
+ Used By: Configuration
+ */
+
+ class MobileAppConfigRequest: Codable {
+
+
+ public var appName: String?
+
+ public var landingImage: LandingImage?
+
+ public var splashImage: SplashImage?
+
+ public var isActive: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appName = "app_name"
+
+ case landingImage = "landing_image"
+
+ case splashImage = "splash_image"
+
+ case isActive = "is_active"
+
+ }
+
+ public init(appName: String? = nil, isActive: Bool? = nil, landingImage: LandingImage? = nil, splashImage: SplashImage? = nil) {
+
+ self.appName = appName
+
+ self.landingImage = landingImage
+
+ self.splashImage = splashImage
+
+ self.isActive = isActive
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ appName = try container.decode(String.self, forKey: .appName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ landingImage = try container.decode(LandingImage.self, forKey: .landingImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ splashImage = try container.decode(SplashImage.self, forKey: .splashImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(appName, forKey: .appName)
+
+
+
+
+ try? container.encodeIfPresent(landingImage, forKey: .landingImage)
+
+
+
+
+ try? container.encodeIfPresent(splashImage, forKey: .splashImage)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/MobileAppConfigRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/MobileAppConfigRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index c2137260fe..0000000000
--- a/Sources/code/platform/Models/Configuration/MobileAppConfigRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: MobileAppConfigRequestSchema
- Used By: Configuration
- */
-
- class MobileAppConfigRequestSchema: Codable {
-
-
- public var appName: String?
-
- public var landingImage: LandingImage?
-
- public var splashImage: SplashImage?
-
- public var isActive: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appName = "app_name"
-
- case landingImage = "landing_image"
-
- case splashImage = "splash_image"
-
- case isActive = "is_active"
-
- }
-
- public init(appName: String? = nil, isActive: Bool? = nil, landingImage: LandingImage? = nil, splashImage: SplashImage? = nil) {
-
- self.appName = appName
-
- self.landingImage = landingImage
-
- self.splashImage = splashImage
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- appName = try container.decode(String.self, forKey: .appName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- landingImage = try container.decode(LandingImage.self, forKey: .landingImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- splashImage = try container.decode(SplashImage.self, forKey: .splashImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(appName, forKey: .appName)
-
-
-
-
- try? container.encodeIfPresent(landingImage, forKey: .landingImage)
-
-
-
-
- try? container.encodeIfPresent(splashImage, forKey: .splashImage)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: MobileAppConfigRequestSchema
- Used By: Configuration
- */
-
- class MobileAppConfigRequestSchema: Codable {
-
-
- public var appName: String?
-
- public var landingImage: LandingImage?
-
- public var splashImage: SplashImage?
-
- public var isActive: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appName = "app_name"
-
- case landingImage = "landing_image"
-
- case splashImage = "splash_image"
-
- case isActive = "is_active"
-
- }
-
- public init(appName: String? = nil, isActive: Bool? = nil, landingImage: LandingImage? = nil, splashImage: SplashImage? = nil) {
-
- self.appName = appName
-
- self.landingImage = landingImage
-
- self.splashImage = splashImage
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- appName = try container.decode(String.self, forKey: .appName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- landingImage = try container.decode(LandingImage.self, forKey: .landingImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- splashImage = try container.decode(SplashImage.self, forKey: .splashImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(appName, forKey: .appName)
-
-
-
-
- try? container.encodeIfPresent(landingImage, forKey: .landingImage)
-
-
-
-
- try? container.encodeIfPresent(splashImage, forKey: .splashImage)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/OptedApplicationResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OptedApplicationResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..5cc88ac6ac
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/OptedApplicationResponseConfigurationPlatformModel.swift
@@ -0,0 +1,392 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: OptedApplicationResponse
+ Used By: Configuration
+ */
+
+ class OptedApplicationResponse: Codable {
+
+
+ public var name: String?
+
+ public var description: String?
+
+ public var id: String?
+
+ public var domain: String?
+
+ public var company: OptedCompany?
+
+ public var optedInventory: OptedInventory?
+
+ public var optOutInventory: OptOutInventory?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case description = "description"
+
+ case id = "_id"
+
+ case domain = "domain"
+
+ case company = "company"
+
+ case optedInventory = "opted_inventory"
+
+ case optOutInventory = "opt_out_inventory"
+
+ }
+
+ public init(company: OptedCompany? = nil, description: String? = nil, domain: String? = nil, name: String? = nil, optedInventory: OptedInventory? = nil, optOutInventory: OptOutInventory? = nil, id: String? = nil) {
+
+ self.name = name
+
+ self.description = description
+
+ self.id = id
+
+ self.domain = domain
+
+ self.company = company
+
+ self.optedInventory = optedInventory
+
+ self.optOutInventory = optOutInventory
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ domain = try container.decode(String.self, forKey: .domain)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ company = try container.decode(OptedCompany.self, forKey: .company)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ optedInventory = try container.decode(OptedInventory.self, forKey: .optedInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ optOutInventory = try container.decode(OptOutInventory.self, forKey: .optOutInventory)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(domain, forKey: .domain)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(optedInventory, forKey: .optedInventory)
+
+
+
+
+ try? container.encodeIfPresent(optOutInventory, forKey: .optOutInventory)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: OptedApplicationResponse
+ Used By: Configuration
+ */
+
+ class OptedApplicationResponse: Codable {
+
+
+ public var name: String?
+
+ public var description: String?
+
+ public var id: String?
+
+ public var domain: String?
+
+ public var company: OptedCompany?
+
+ public var optedInventory: OptedInventory?
+
+ public var optOutInventory: OptOutInventory?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case description = "description"
+
+ case id = "_id"
+
+ case domain = "domain"
+
+ case company = "company"
+
+ case optedInventory = "opted_inventory"
+
+ case optOutInventory = "opt_out_inventory"
+
+ }
+
+ public init(company: OptedCompany? = nil, description: String? = nil, domain: String? = nil, name: String? = nil, optedInventory: OptedInventory? = nil, optOutInventory: OptOutInventory? = nil, id: String? = nil) {
+
+ self.name = name
+
+ self.description = description
+
+ self.id = id
+
+ self.domain = domain
+
+ self.company = company
+
+ self.optedInventory = optedInventory
+
+ self.optOutInventory = optOutInventory
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ domain = try container.decode(String.self, forKey: .domain)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ company = try container.decode(OptedCompany.self, forKey: .company)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ optedInventory = try container.decode(OptedInventory.self, forKey: .optedInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ optOutInventory = try container.decode(OptOutInventory.self, forKey: .optOutInventory)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(domain, forKey: .domain)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(optedInventory, forKey: .optedInventory)
+
+
+
+
+ try? container.encodeIfPresent(optOutInventory, forKey: .optOutInventory)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/OptedApplicationResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OptedApplicationResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 6251db4f9f..0000000000
--- a/Sources/code/platform/Models/Configuration/OptedApplicationResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: OptedApplicationResponseSchema
- Used By: Configuration
- */
-
- class OptedApplicationResponseSchema: Codable {
-
-
- public var name: String?
-
- public var description: String?
-
- public var id: String?
-
- public var domain: String?
-
- public var company: OptedCompany?
-
- public var optedInventory: OptedInventory?
-
- public var optOutInventory: OptOutInventory?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case description = "description"
-
- case id = "_id"
-
- case domain = "domain"
-
- case company = "company"
-
- case optedInventory = "opted_inventory"
-
- case optOutInventory = "opt_out_inventory"
-
- }
-
- public init(company: OptedCompany? = nil, description: String? = nil, domain: String? = nil, name: String? = nil, optedInventory: OptedInventory? = nil, optOutInventory: OptOutInventory? = nil, id: String? = nil) {
-
- self.name = name
-
- self.description = description
-
- self.id = id
-
- self.domain = domain
-
- self.company = company
-
- self.optedInventory = optedInventory
-
- self.optOutInventory = optOutInventory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- domain = try container.decode(String.self, forKey: .domain)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- company = try container.decode(OptedCompany.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- optedInventory = try container.decode(OptedInventory.self, forKey: .optedInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- optOutInventory = try container.decode(OptOutInventory.self, forKey: .optOutInventory)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(domain, forKey: .domain)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(optedInventory, forKey: .optedInventory)
-
-
-
-
- try? container.encodeIfPresent(optOutInventory, forKey: .optOutInventory)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: OptedApplicationResponseSchema
- Used By: Configuration
- */
-
- class OptedApplicationResponseSchema: Codable {
-
-
- public var name: String?
-
- public var description: String?
-
- public var id: String?
-
- public var domain: String?
-
- public var company: OptedCompany?
-
- public var optedInventory: OptedInventory?
-
- public var optOutInventory: OptOutInventory?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case description = "description"
-
- case id = "_id"
-
- case domain = "domain"
-
- case company = "company"
-
- case optedInventory = "opted_inventory"
-
- case optOutInventory = "opt_out_inventory"
-
- }
-
- public init(company: OptedCompany? = nil, description: String? = nil, domain: String? = nil, name: String? = nil, optedInventory: OptedInventory? = nil, optOutInventory: OptOutInventory? = nil, id: String? = nil) {
-
- self.name = name
-
- self.description = description
-
- self.id = id
-
- self.domain = domain
-
- self.company = company
-
- self.optedInventory = optedInventory
-
- self.optOutInventory = optOutInventory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- domain = try container.decode(String.self, forKey: .domain)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- company = try container.decode(OptedCompany.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- optedInventory = try container.decode(OptedInventory.self, forKey: .optedInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- optOutInventory = try container.decode(OptOutInventory.self, forKey: .optOutInventory)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(domain, forKey: .domain)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(optedInventory, forKey: .optedInventory)
-
-
-
-
- try? container.encodeIfPresent(optOutInventory, forKey: .optOutInventory)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..22afdf6743
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestConfigurationPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: OrderingStoreSelectRequest
+ Used By: Configuration
+ */
+
+ class OrderingStoreSelectRequest: Codable {
+
+
+ public var orderingStore: OrderingStoreSelect
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderingStore = "ordering_store"
+
+ }
+
+ public init(orderingStore: OrderingStoreSelect) {
+
+ self.orderingStore = orderingStore
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: OrderingStoreSelectRequest
+ Used By: Configuration
+ */
+
+ class OrderingStoreSelectRequest: Codable {
+
+
+ public var orderingStore: OrderingStoreSelect
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderingStore = "ordering_store"
+
+ }
+
+ public init(orderingStore: OrderingStoreSelect) {
+
+ self.orderingStore = orderingStore
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index b0f8d0da96..0000000000
--- a/Sources/code/platform/Models/Configuration/OrderingStoreSelectRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: OrderingStoreSelectRequestSchema
- Used By: Configuration
- */
-
- class OrderingStoreSelectRequestSchema: Codable {
-
-
- public var orderingStore: OrderingStoreSelect
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderingStore = "ordering_store"
-
- }
-
- public init(orderingStore: OrderingStoreSelect) {
-
- self.orderingStore = orderingStore
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: OrderingStoreSelectRequestSchema
- Used By: Configuration
- */
-
- class OrderingStoreSelectRequestSchema: Codable {
-
-
- public var orderingStore: OrderingStoreSelect
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderingStore = "ordering_store"
-
- }
-
- public init(orderingStore: OrderingStoreSelect) {
-
- self.orderingStore = orderingStore
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderingStore = try container.decode(OrderingStoreSelect.self, forKey: .orderingStore)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/OrderingStoresResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OrderingStoresResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..ed62e7a38c
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/OrderingStoresResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: OrderingStoresResponse
+ Used By: Configuration
+ */
+
+ class OrderingStoresResponse: Codable {
+
+
+ public var page: Page?
+
+ public var items: [OrderingStore]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [OrderingStore]? = nil, page: Page? = nil) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([OrderingStore].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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: OrderingStoresResponse
+ Used By: Configuration
+ */
+
+ class OrderingStoresResponse: Codable {
+
+
+ public var page: Page?
+
+ public var items: [OrderingStore]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [OrderingStore]? = nil, page: Page? = nil) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([OrderingStore].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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/OrderingStoresResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/OrderingStoresResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index bddfc145f3..0000000000
--- a/Sources/code/platform/Models/Configuration/OrderingStoresResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: OrderingStoresResponseSchema
- Used By: Configuration
- */
-
- class OrderingStoresResponseSchema: Codable {
-
-
- public var page: Page?
-
- public var items: [OrderingStore]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [OrderingStore]? = nil, page: Page? = nil) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- items = try container.decode([OrderingStore].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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: OrderingStoresResponseSchema
- Used By: Configuration
- */
-
- class OrderingStoresResponseSchema: Codable {
-
-
- public var page: Page?
-
- public var items: [OrderingStore]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [OrderingStore]? = nil, page: Page? = nil) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- items = try container.decode([OrderingStore].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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/QuerySuggestionsConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/QuerySuggestionsConfigurationPlatformModel.swift
deleted file mode 100644
index 0a6c05c53a..0000000000
--- a/Sources/code/platform/Models/Configuration/QuerySuggestionsConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: QuerySuggestions
- Used By: Configuration
- */
-
- class QuerySuggestions: Codable {
-
-
- public var enabled: Bool?
-
- public var maxLimit: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- case maxLimit = "max_limit"
-
- }
-
- public init(enabled: Bool? = nil, maxLimit: Int? = nil) {
-
- self.enabled = enabled
-
- self.maxLimit = maxLimit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- maxLimit = try container.decode(Int.self, forKey: .maxLimit)
-
- } 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(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(maxLimit, forKey: .maxLimit)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: QuerySuggestions
- Used By: Configuration
- */
-
- class QuerySuggestions: Codable {
-
-
- public var enabled: Bool?
-
- public var maxLimit: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- case maxLimit = "max_limit"
-
- }
-
- public init(enabled: Bool? = nil, maxLimit: Int? = nil) {
-
- self.enabled = enabled
-
- self.maxLimit = maxLimit
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- maxLimit = try container.decode(Int.self, forKey: .maxLimit)
-
- } 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(enabled, forKey: .enabled)
-
-
-
-
- try? container.encodeIfPresent(maxLimit, forKey: .maxLimit)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/SearchConfigConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/SearchConfigConfigurationPlatformModel.swift
deleted file mode 100644
index 554eeb3a9f..0000000000
--- a/Sources/code/platform/Models/Configuration/SearchConfigConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: SearchConfig
- Used By: Configuration
- */
-
- class SearchConfig: Codable {
-
-
- public var fstIdentification: FstIdentification?
-
- public var querySuggestions: QuerySuggestions?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fstIdentification = "fst_identification"
-
- case querySuggestions = "query_suggestions"
-
- }
-
- public init(fstIdentification: FstIdentification? = nil, querySuggestions: QuerySuggestions? = nil) {
-
- self.fstIdentification = fstIdentification
-
- self.querySuggestions = querySuggestions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fstIdentification = try container.decode(FstIdentification.self, forKey: .fstIdentification)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- querySuggestions = try container.decode(QuerySuggestions.self, forKey: .querySuggestions)
-
- } 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(fstIdentification, forKey: .fstIdentification)
-
-
-
-
- try? container.encodeIfPresent(querySuggestions, forKey: .querySuggestions)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: SearchConfig
- Used By: Configuration
- */
-
- class SearchConfig: Codable {
-
-
- public var fstIdentification: FstIdentification?
-
- public var querySuggestions: QuerySuggestions?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fstIdentification = "fst_identification"
-
- case querySuggestions = "query_suggestions"
-
- }
-
- public init(fstIdentification: FstIdentification? = nil, querySuggestions: QuerySuggestions? = nil) {
-
- self.fstIdentification = fstIdentification
-
- self.querySuggestions = querySuggestions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fstIdentification = try container.decode(FstIdentification.self, forKey: .fstIdentification)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- querySuggestions = try container.decode(QuerySuggestions.self, forKey: .querySuggestions)
-
- } 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(fstIdentification, forKey: .fstIdentification)
-
-
-
-
- try? container.encodeIfPresent(querySuggestions, forKey: .querySuggestions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/StoreByBrandsRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoreByBrandsRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..952ee629bc
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/StoreByBrandsRequestConfigurationPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: StoreByBrandsRequest
+ Used By: Configuration
+ */
+
+ class StoreByBrandsRequest: Codable {
+
+
+ public var companyId: Int?
+
+ public var brands: Int
+
+ public var searchText: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case brands = "brands"
+
+ case searchText = "search_text"
+
+ }
+
+ public init(brands: Int, companyId: Int? = nil, searchText: String? = nil) {
+
+ self.companyId = companyId
+
+ self.brands = brands
+
+ self.searchText = searchText
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+
+ brands = try container.decode(Int.self, forKey: .brands)
+
+
+
+
+ do {
+ searchText = try container.decode(String.self, forKey: .searchText)
+
+ } 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(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(searchText, forKey: .searchText)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: StoreByBrandsRequest
+ Used By: Configuration
+ */
+
+ class StoreByBrandsRequest: Codable {
+
+
+ public var companyId: Int?
+
+ public var brands: Int
+
+ public var searchText: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ case brands = "brands"
+
+ case searchText = "search_text"
+
+ }
+
+ public init(brands: Int, companyId: Int? = nil, searchText: String? = nil) {
+
+ self.companyId = companyId
+
+ self.brands = brands
+
+ self.searchText = searchText
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+
+ brands = try container.decode(Int.self, forKey: .brands)
+
+
+
+
+ do {
+ searchText = try container.decode(String.self, forKey: .searchText)
+
+ } 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(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(brands, forKey: .brands)
+
+
+
+
+ try? container.encodeIfPresent(searchText, forKey: .searchText)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/StoreByBrandsRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoreByBrandsRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index e3b4d88303..0000000000
--- a/Sources/code/platform/Models/Configuration/StoreByBrandsRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: StoreByBrandsRequestSchema
- Used By: Configuration
- */
-
- class StoreByBrandsRequestSchema: Codable {
-
-
- public var companyId: Int?
-
- public var brands: Int
-
- public var searchText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case brands = "brands"
-
- case searchText = "search_text"
-
- }
-
- public init(brands: Int, companyId: Int? = nil, searchText: String? = nil) {
-
- self.companyId = companyId
-
- self.brands = brands
-
- self.searchText = searchText
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
-
- brands = try container.decode(Int.self, forKey: .brands)
-
-
-
-
- do {
- searchText = try container.decode(String.self, forKey: .searchText)
-
- } 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(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(searchText, forKey: .searchText)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: StoreByBrandsRequestSchema
- Used By: Configuration
- */
-
- class StoreByBrandsRequestSchema: Codable {
-
-
- public var companyId: Int?
-
- public var brands: Int
-
- public var searchText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case brands = "brands"
-
- case searchText = "search_text"
-
- }
-
- public init(brands: Int, companyId: Int? = nil, searchText: String? = nil) {
-
- self.companyId = companyId
-
- self.brands = brands
-
- self.searchText = searchText
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
-
- brands = try container.decode(Int.self, forKey: .brands)
-
-
-
-
- do {
- searchText = try container.decode(String.self, forKey: .searchText)
-
- } 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(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(brands, forKey: .brands)
-
-
-
-
- try? container.encodeIfPresent(searchText, forKey: .searchText)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/StoreByBrandsResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoreByBrandsResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..bfbf2e4abe
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/StoreByBrandsResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: StoreByBrandsResponse
+ Used By: Configuration
+ */
+
+ class StoreByBrandsResponse: Codable {
+
+
+ public var items: [BrandStoreInfo]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandStoreInfo]? = nil, page: Page? = nil) {
+
+ 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([BrandStoreInfo].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: StoreByBrandsResponse
+ Used By: Configuration
+ */
+
+ class StoreByBrandsResponse: Codable {
+
+
+ public var items: [BrandStoreInfo]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BrandStoreInfo]? = nil, page: Page? = nil) {
+
+ 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([BrandStoreInfo].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/StoreByBrandsResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoreByBrandsResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index d863bf72d2..0000000000
--- a/Sources/code/platform/Models/Configuration/StoreByBrandsResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: StoreByBrandsResponseSchema
- Used By: Configuration
- */
-
- class StoreByBrandsResponseSchema: Codable {
-
-
- public var items: [BrandStoreInfo]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandStoreInfo]? = nil, page: Page? = nil) {
-
- 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([BrandStoreInfo].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: StoreByBrandsResponseSchema
- Used By: Configuration
- */
-
- class StoreByBrandsResponseSchema: Codable {
-
-
- public var items: [BrandStoreInfo]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BrandStoreInfo]? = nil, page: Page? = nil) {
-
- 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([BrandStoreInfo].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/StoresResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoresResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..433eea023e
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/StoresResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: StoresResponse
+ Used By: Configuration
+ */
+
+ class StoresResponse: Codable {
+
+
+ public var items: [AppInventoryStores]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [AppInventoryStores]? = nil, page: Page? = nil) {
+
+ 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([AppInventoryStores].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: StoresResponse
+ Used By: Configuration
+ */
+
+ class StoresResponse: Codable {
+
+
+ public var items: [AppInventoryStores]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [AppInventoryStores]? = nil, page: Page? = nil) {
+
+ 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([AppInventoryStores].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/StoresResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/StoresResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index a20716c62b..0000000000
--- a/Sources/code/platform/Models/Configuration/StoresResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: StoresResponseSchema
- Used By: Configuration
- */
-
- class StoresResponseSchema: Codable {
-
-
- public var items: [AppInventoryStores]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [AppInventoryStores]? = nil, page: Page? = nil) {
-
- 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([AppInventoryStores].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: StoresResponseSchema
- Used By: Configuration
- */
-
- class StoresResponseSchema: Codable {
-
-
- public var items: [AppInventoryStores]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [AppInventoryStores]? = nil, page: Page? = nil) {
-
- 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([AppInventoryStores].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/SuccessMessageResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/SuccessMessageResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..002c3f81e5
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/SuccessMessageResponseConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: SuccessMessageResponse
+ Used By: Configuration
+ */
+
+ class SuccessMessageResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: SuccessMessageResponse
+ Used By: Configuration
+ */
+
+ class SuccessMessageResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/SuccessMessageResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/SuccessMessageResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index ba379034b3..0000000000
--- a/Sources/code/platform/Models/Configuration/SuccessMessageResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: SuccessMessageResponseSchema
- Used By: Configuration
- */
-
- class SuccessMessageResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: SuccessMessageResponseSchema
- Used By: Configuration
- */
-
- class SuccessMessageResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/TokenResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/TokenResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..c70eaa8b79
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/TokenResponseConfigurationPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: TokenResponse
+ Used By: Configuration
+ */
+
+ class TokenResponse: Codable {
+
+
+ public var tokens: Tokens?
+
+ public var id: String?
+
+ public var application: String?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+ public var v: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case tokens = "tokens"
+
+ case id = "_id"
+
+ case application = "application"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ case v = "__v"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
+
+ self.tokens = tokens
+
+ self.id = id
+
+ self.application = application
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ self.v = v
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ tokens = try container.decode(Tokens.self, forKey: .tokens)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Int.self, forKey: .v)
+
+ } 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(tokens, forKey: .tokens)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: TokenResponse
+ Used By: Configuration
+ */
+
+ class TokenResponse: Codable {
+
+
+ public var tokens: Tokens?
+
+ public var id: String?
+
+ public var application: String?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+ public var v: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case tokens = "tokens"
+
+ case id = "_id"
+
+ case application = "application"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ case v = "__v"
+
+ }
+
+ public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
+
+ self.tokens = tokens
+
+ self.id = id
+
+ self.application = application
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ self.v = v
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ tokens = try container.decode(Tokens.self, forKey: .tokens)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ v = try container.decode(Int.self, forKey: .v)
+
+ } 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(tokens, forKey: .tokens)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/TokenResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/TokenResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index bcffe5b326..0000000000
--- a/Sources/code/platform/Models/Configuration/TokenResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: TokenResponseSchema
- Used By: Configuration
- */
-
- class TokenResponseSchema: Codable {
-
-
- public var tokens: Tokens?
-
- public var id: String?
-
- public var application: String?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case tokens = "tokens"
-
- case id = "_id"
-
- case application = "application"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- case v = "__v"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
-
- self.tokens = tokens
-
- self.id = id
-
- self.application = application
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- tokens = try container.decode(Tokens.self, forKey: .tokens)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(tokens, forKey: .tokens)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: TokenResponseSchema
- Used By: Configuration
- */
-
- class TokenResponseSchema: Codable {
-
-
- public var tokens: Tokens?
-
- public var id: String?
-
- public var application: String?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case tokens = "tokens"
-
- case id = "_id"
-
- case application = "application"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- case v = "__v"
-
- }
-
- public init(application: String? = nil, createdAt: String? = nil, modifiedAt: String? = nil, tokens: Tokens? = nil, id: String? = nil, v: Int? = nil) {
-
- self.tokens = tokens
-
- self.id = id
-
- self.application = application
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- tokens = try container.decode(Tokens.self, forKey: .tokens)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(tokens, forKey: .tokens)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..ead9e1389c
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestConfigurationPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: UpdateDomainTypeRequest
+ Used By: Configuration
+ */
+
+ class UpdateDomainTypeRequest: Codable {
+
+
+ public var domain: UpdateDomain?
+
+ public var action: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domain = "domain"
+
+ case action = "action"
+
+ }
+
+ public init(action: String? = nil, domain: UpdateDomain? = nil) {
+
+ self.domain = domain
+
+ self.action = action
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domain = try container.decode(UpdateDomain.self, forKey: .domain)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode(String.self, forKey: .action)
+
+ } 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(domain, forKey: .domain)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: UpdateDomainTypeRequest
+ Used By: Configuration
+ */
+
+ class UpdateDomainTypeRequest: Codable {
+
+
+ public var domain: UpdateDomain?
+
+ public var action: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case domain = "domain"
+
+ case action = "action"
+
+ }
+
+ public init(action: String? = nil, domain: UpdateDomain? = nil) {
+
+ self.domain = domain
+
+ self.action = action
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ domain = try container.decode(UpdateDomain.self, forKey: .domain)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ action = try container.decode(String.self, forKey: .action)
+
+ } 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(domain, forKey: .domain)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index c068c09f06..0000000000
--- a/Sources/code/platform/Models/Configuration/UpdateDomainTypeRequestSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: UpdateDomainTypeRequestSchema
- Used By: Configuration
- */
-
- class UpdateDomainTypeRequestSchema: Codable {
-
-
- public var domain: UpdateDomain?
-
- public var action: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domain = "domain"
-
- case action = "action"
-
- }
-
- public init(action: String? = nil, domain: UpdateDomain? = nil) {
-
- self.domain = domain
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domain = try container.decode(UpdateDomain.self, forKey: .domain)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } 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(domain, forKey: .domain)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: UpdateDomainTypeRequestSchema
- Used By: Configuration
- */
-
- class UpdateDomainTypeRequestSchema: Codable {
-
-
- public var domain: UpdateDomain?
-
- public var action: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case domain = "domain"
-
- case action = "action"
-
- }
-
- public init(action: String? = nil, domain: UpdateDomain? = nil) {
-
- self.domain = domain
-
- self.action = action
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- domain = try container.decode(UpdateDomain.self, forKey: .domain)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } 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(domain, forKey: .domain)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/ValidationErrorConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ValidationErrorConfigurationPlatformModel.swift
deleted file mode 100644
index b8781e30ea..0000000000
--- a/Sources/code/platform/Models/Configuration/ValidationErrorConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: ValidationError
- Used By: Configuration
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: ValidationError
- Used By: Configuration
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/ValidationErrorsConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ValidationErrorsConfigurationPlatformModel.swift
deleted file mode 100644
index c8526175a1..0000000000
--- a/Sources/code/platform/Models/Configuration/ValidationErrorsConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: ValidationErrors
- Used By: Configuration
- */
-
- class ValidationErrors: Codable {
-
-
- public var errors: [ValidationError]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [ValidationError]) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- errors = try container.decode([ValidationError].self, forKey: .errors)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: ValidationErrors
- Used By: Configuration
- */
-
- class ValidationErrors: Codable {
-
-
- public var errors: [ValidationError]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case errors = "errors"
-
- }
-
- public init(errors: [ValidationError]) {
-
- self.errors = errors
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- errors = try container.decode([ValidationError].self, forKey: .errors)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(errors, forKey: .errors)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Configuration/ValidationFailedResponseConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ValidationFailedResponseConfigurationPlatformModel.swift
new file mode 100644
index 0000000000..2f60c2329d
--- /dev/null
+++ b/Sources/code/platform/Models/Configuration/ValidationFailedResponseConfigurationPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Configuration {
+ /*
+ Model: ValidationFailedResponse
+ Used By: Configuration
+ */
+
+ class ValidationFailedResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Configuration {
+ /*
+ Model: ValidationFailedResponse
+ Used By: Configuration
+ */
+
+ class ValidationFailedResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Configuration/ValidationFailedResponseSchemaConfigurationPlatformModel.swift b/Sources/code/platform/Models/Configuration/ValidationFailedResponseSchemaConfigurationPlatformModel.swift
deleted file mode 100644
index 5d807d07ee..0000000000
--- a/Sources/code/platform/Models/Configuration/ValidationFailedResponseSchemaConfigurationPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Configuration {
- /*
- Model: ValidationFailedResponseSchema
- Used By: Configuration
- */
-
- class ValidationFailedResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Configuration {
- /*
- Model: ValidationFailedResponseSchema
- Used By: Configuration
- */
-
- class ValidationFailedResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/BlogGetDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/BlogGetDetailsContentPlatformModel.swift
deleted file mode 100644
index b07d4bbe12..0000000000
--- a/Sources/code/platform/Models/Content/BlogGetDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: BlogGetDetails
- Used By: Content
- */
-
- class BlogGetDetails: Codable {
-
-
- public var items: [BlogSchema]?
-
- public var page: Page?
-
- public var filters: BlogFilters?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case filters = "filters"
-
- }
-
- public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
-
- self.items = items
-
- self.page = page
-
- self.filters = filters
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([BlogSchema].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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- filters = try container.decode(BlogFilters.self, forKey: .filters)
-
- } 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(filters, forKey: .filters)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: BlogGetDetails
- Used By: Content
- */
-
- class BlogGetDetails: Codable {
-
-
- public var items: [BlogSchema]?
-
- public var page: Page?
-
- public var filters: BlogFilters?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case filters = "filters"
-
- }
-
- public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
-
- self.items = items
-
- self.page = page
-
- self.filters = filters
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([BlogSchema].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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- filters = try container.decode(BlogFilters.self, forKey: .filters)
-
- } 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(filters, forKey: .filters)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/BlogGetResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/BlogGetResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..03179b39e7
--- /dev/null
+++ b/Sources/code/platform/Models/Content/BlogGetResponseContentPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: BlogGetResponse
+ Used By: Content
+ */
+
+ class BlogGetResponse: Codable {
+
+
+ public var items: [BlogSchema]?
+
+ public var page: Page?
+
+ public var filters: BlogFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case filters = "filters"
+
+ }
+
+ public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([BlogSchema].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(BlogFilters.self, forKey: .filters)
+
+ } 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(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: BlogGetResponse
+ Used By: Content
+ */
+
+ class BlogGetResponse: Codable {
+
+
+ public var items: [BlogSchema]?
+
+ public var page: Page?
+
+ public var filters: BlogFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case filters = "filters"
+
+ }
+
+ public init(filters: BlogFilters? = nil, items: [BlogSchema]? = nil, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([BlogSchema].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(BlogFilters.self, forKey: .filters)
+
+ } 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(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/BlogPayloadContentPlatformModel.swift b/Sources/code/platform/Models/Content/BlogPayloadContentPlatformModel.swift
deleted file mode 100644
index 4dda58f23e..0000000000
--- a/Sources/code/platform/Models/Content/BlogPayloadContentPlatformModel.swift
+++ /dev/null
@@ -1,622 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: BlogPayload
- Used By: Content
- */
-
- class BlogPayload: Codable {
-
-
- public var application: String?
-
- public var customJson: [String: Any]?
-
- public var author: Author?
-
- public var content: [ResourceContent]?
-
- public var featureImage: Asset?
-
- public var published: Bool?
-
- public var readingTime: String?
-
- public var slug: String?
-
- public var tags: [String]?
-
- public var title: String?
-
- public var seo: SEO?
-
- public var summary: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case application = "application"
-
- case customJson = "_custom_json"
-
- case author = "author"
-
- case content = "content"
-
- case featureImage = "feature_image"
-
- case published = "published"
-
- case readingTime = "reading_time"
-
- case slug = "slug"
-
- case tags = "tags"
-
- case title = "title"
-
- case seo = "seo"
-
- case summary = "summary"
-
- }
-
- public init(application: String? = nil, author: Author? = nil, content: [ResourceContent]? = nil, featureImage: Asset? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, summary: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil) {
-
- self.application = application
-
- self.customJson = customJson
-
- self.author = author
-
- self.content = content
-
- self.featureImage = featureImage
-
- self.published = published
-
- self.readingTime = readingTime
-
- self.slug = slug
-
- self.tags = tags
-
- self.title = title
-
- self.seo = seo
-
- self.summary = summary
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } 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 {
- author = try container.decode(Author.self, forKey: .author)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- content = try container.decode([ResourceContent].self, forKey: .content)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- featureImage = try container.decode(Asset.self, forKey: .featureImage)
-
- } 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 {
-
- }
-
-
-
- do {
- readingTime = try container.decode(String.self, forKey: .readingTime)
-
- } 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(SEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- summary = try container.decode(String.self, forKey: .summary)
-
- } 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(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(content, forKey: .content)
-
-
-
-
- try? container.encodeIfPresent(featureImage, forKey: .featureImage)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(readingTime, forKey: .readingTime)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(summary, forKey: .summary)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: BlogPayload
- Used By: Content
- */
-
- class BlogPayload: Codable {
-
-
- public var application: String?
-
- public var customJson: [String: Any]?
-
- public var author: Author?
-
- public var content: [ResourceContent]?
-
- public var featureImage: Asset?
-
- public var published: Bool?
-
- public var readingTime: String?
-
- public var slug: String?
-
- public var tags: [String]?
-
- public var title: String?
-
- public var seo: SEO?
-
- public var summary: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case application = "application"
-
- case customJson = "_custom_json"
-
- case author = "author"
-
- case content = "content"
-
- case featureImage = "feature_image"
-
- case published = "published"
-
- case readingTime = "reading_time"
-
- case slug = "slug"
-
- case tags = "tags"
-
- case title = "title"
-
- case seo = "seo"
-
- case summary = "summary"
-
- }
-
- public init(application: String? = nil, author: Author? = nil, content: [ResourceContent]? = nil, featureImage: Asset? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, summary: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil) {
-
- self.application = application
-
- self.customJson = customJson
-
- self.author = author
-
- self.content = content
-
- self.featureImage = featureImage
-
- self.published = published
-
- self.readingTime = readingTime
-
- self.slug = slug
-
- self.tags = tags
-
- self.title = title
-
- self.seo = seo
-
- self.summary = summary
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } 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 {
- author = try container.decode(Author.self, forKey: .author)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- content = try container.decode([ResourceContent].self, forKey: .content)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- featureImage = try container.decode(Asset.self, forKey: .featureImage)
-
- } 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 {
-
- }
-
-
-
- do {
- readingTime = try container.decode(String.self, forKey: .readingTime)
-
- } 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- seo = try container.decode(SEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- summary = try container.decode(String.self, forKey: .summary)
-
- } 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(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(content, forKey: .content)
-
-
-
-
- try? container.encodeIfPresent(featureImage, forKey: .featureImage)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(readingTime, forKey: .readingTime)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(summary, forKey: .summary)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/BlogRequestContentPlatformModel.swift b/Sources/code/platform/Models/Content/BlogRequestContentPlatformModel.swift
new file mode 100644
index 0000000000..c0de52d6d9
--- /dev/null
+++ b/Sources/code/platform/Models/Content/BlogRequestContentPlatformModel.swift
@@ -0,0 +1,622 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: BlogRequest
+ Used By: Content
+ */
+
+ class BlogRequest: Codable {
+
+
+ public var application: String?
+
+ public var customJson: [String: Any]?
+
+ public var author: Author?
+
+ public var content: [ResourceContent]?
+
+ public var featureImage: Asset?
+
+ public var published: Bool?
+
+ public var readingTime: String?
+
+ public var slug: String?
+
+ public var tags: [String]?
+
+ public var title: String?
+
+ public var seo: SEO?
+
+ public var summary: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case application = "application"
+
+ case customJson = "_custom_json"
+
+ case author = "author"
+
+ case content = "content"
+
+ case featureImage = "feature_image"
+
+ case published = "published"
+
+ case readingTime = "reading_time"
+
+ case slug = "slug"
+
+ case tags = "tags"
+
+ case title = "title"
+
+ case seo = "seo"
+
+ case summary = "summary"
+
+ }
+
+ public init(application: String? = nil, author: Author? = nil, content: [ResourceContent]? = nil, featureImage: Asset? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, summary: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil) {
+
+ self.application = application
+
+ self.customJson = customJson
+
+ self.author = author
+
+ self.content = content
+
+ self.featureImage = featureImage
+
+ self.published = published
+
+ self.readingTime = readingTime
+
+ self.slug = slug
+
+ self.tags = tags
+
+ self.title = title
+
+ self.seo = seo
+
+ self.summary = summary
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } 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 {
+ author = try container.decode(Author.self, forKey: .author)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ content = try container.decode([ResourceContent].self, forKey: .content)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ featureImage = try container.decode(Asset.self, forKey: .featureImage)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ readingTime = try container.decode(String.self, forKey: .readingTime)
+
+ } 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ seo = try container.decode(SEO.self, forKey: .seo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ summary = try container.decode(String.self, forKey: .summary)
+
+ } 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(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(author, forKey: .author)
+
+
+
+
+ try? container.encodeIfPresent(content, forKey: .content)
+
+
+
+
+ try? container.encodeIfPresent(featureImage, forKey: .featureImage)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(readingTime, forKey: .readingTime)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(summary, forKey: .summary)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: BlogRequest
+ Used By: Content
+ */
+
+ class BlogRequest: Codable {
+
+
+ public var application: String?
+
+ public var customJson: [String: Any]?
+
+ public var author: Author?
+
+ public var content: [ResourceContent]?
+
+ public var featureImage: Asset?
+
+ public var published: Bool?
+
+ public var readingTime: String?
+
+ public var slug: String?
+
+ public var tags: [String]?
+
+ public var title: String?
+
+ public var seo: SEO?
+
+ public var summary: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case application = "application"
+
+ case customJson = "_custom_json"
+
+ case author = "author"
+
+ case content = "content"
+
+ case featureImage = "feature_image"
+
+ case published = "published"
+
+ case readingTime = "reading_time"
+
+ case slug = "slug"
+
+ case tags = "tags"
+
+ case title = "title"
+
+ case seo = "seo"
+
+ case summary = "summary"
+
+ }
+
+ public init(application: String? = nil, author: Author? = nil, content: [ResourceContent]? = nil, featureImage: Asset? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, summary: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil) {
+
+ self.application = application
+
+ self.customJson = customJson
+
+ self.author = author
+
+ self.content = content
+
+ self.featureImage = featureImage
+
+ self.published = published
+
+ self.readingTime = readingTime
+
+ self.slug = slug
+
+ self.tags = tags
+
+ self.title = title
+
+ self.seo = seo
+
+ self.summary = summary
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } 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 {
+ author = try container.decode(Author.self, forKey: .author)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ content = try container.decode([ResourceContent].self, forKey: .content)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ featureImage = try container.decode(Asset.self, forKey: .featureImage)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ readingTime = try container.decode(String.self, forKey: .readingTime)
+
+ } 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ seo = try container.decode(SEO.self, forKey: .seo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ summary = try container.decode(String.self, forKey: .summary)
+
+ } 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(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(author, forKey: .author)
+
+
+
+
+ try? container.encodeIfPresent(content, forKey: .content)
+
+
+
+
+ try? container.encodeIfPresent(featureImage, forKey: .featureImage)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(readingTime, forKey: .readingTime)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(summary, forKey: .summary)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomFieldBulkEntryContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldBulkEntryContentPlatformModel.swift
deleted file mode 100644
index 9861b23f27..0000000000
--- a/Sources/code/platform/Models/Content/CustomFieldBulkEntryContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomFieldBulkEntry
- Used By: Content
- */
-
- class CustomFieldBulkEntry: Codable {
-
-
- public var items: [JobSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [JobSchema]? = nil, page: Page? = nil) {
-
- 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([JobSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomFieldBulkEntry
- Used By: Content
- */
-
- class CustomFieldBulkEntry: Codable {
-
-
- public var items: [JobSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [JobSchema]? = nil, page: Page? = nil) {
-
- 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([JobSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomFieldContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldContentPlatformModel.swift
index aecc5d74da..7385f52369 100644
--- a/Sources/code/platform/Models/Content/CustomFieldContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomFieldContentPlatformModel.swift
@@ -14,28 +14,22 @@ public extension PlatformClient.Content {
public var value: [[String: Any]]?
- public var namespace: String?
-
- public var slug: String?
+ public var definitionId: String?
public enum CodingKeys: String, CodingKey {
case value = "value"
- case namespace = "namespace"
-
- case slug = "slug"
+ case definitionId = "definition_id"
}
- public init(namespace: String? = nil, slug: String? = nil, value: [[String: Any]]? = nil) {
+ public init(definitionId: String? = nil, value: [[String: Any]]? = nil) {
self.value = value
- self.namespace = namespace
-
- self.slug = slug
+ self.definitionId = definitionId
}
@@ -56,19 +50,7 @@ public extension PlatformClient.Content {
do {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } 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)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -90,12 +72,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
}
@@ -116,28 +93,22 @@ public extension PlatformClient.ApplicationClient.Content {
public var value: [[String: Any]]?
- public var namespace: String?
-
- public var slug: String?
+ public var definitionId: String?
public enum CodingKeys: String, CodingKey {
case value = "value"
- case namespace = "namespace"
-
- case slug = "slug"
+ case definitionId = "definition_id"
}
- public init(namespace: String? = nil, slug: String? = nil, value: [[String: Any]]? = nil) {
+ public init(definitionId: String? = nil, value: [[String: Any]]? = nil) {
self.value = value
- self.namespace = namespace
-
- self.slug = slug
+ self.definitionId = definitionId
}
@@ -158,19 +129,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } 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)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -192,12 +151,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
}
diff --git a/Sources/code/platform/Models/Content/CustomFieldDefinitionDetailResSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldDefinitionDetailResSchemaContentPlatformModel.swift
index 8fc9039e19..c5e5904d01 100644
--- a/Sources/code/platform/Models/Content/CustomFieldDefinitionDetailResSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomFieldDefinitionDetailResSchemaContentPlatformModel.swift
@@ -12,13 +12,15 @@ public extension PlatformClient.Content {
class CustomFieldDefinitionDetailResSchema: Codable {
+ public var creator: String?
+
public var resource: String?
public var name: String?
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var description: String?
@@ -30,6 +32,10 @@ public extension PlatformClient.Content {
public var applicationId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var required: Bool?
public var isDeleted: Bool?
@@ -45,13 +51,15 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
+ case creator = "creator"
+
case resource = "resource"
case name = "name"
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case description = "description"
@@ -63,11 +71,15 @@ public extension PlatformClient.Content {
case applicationId = "application_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case required = "required"
case isDeleted = "is_deleted"
- case id = "id"
+ case id = "_id"
case validations = "validations"
@@ -77,7 +89,9 @@ public extension PlatformClient.Content {
}
- public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, description: String? = nil, id: String? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [[String: Any]]? = nil) {
+ public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, updatedAt: String? = nil, updatedBy: String? = nil, validations: [[String: Any]]? = nil, id: String? = nil) {
+
+ self.creator = creator
self.resource = resource
@@ -85,7 +99,7 @@ public extension PlatformClient.Content {
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.description = description
@@ -97,6 +111,10 @@ public extension PlatformClient.Content {
self.applicationId = applicationId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.required = required
self.isDeleted = isDeleted
@@ -115,6 +133,18 @@ public extension PlatformClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
resource = try container.decode(String.self, forKey: .resource)
@@ -152,7 +182,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -223,6 +253,30 @@ public extension PlatformClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
required = try container.decode(Bool.self, forKey: .required)
@@ -301,6 +355,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(resource, forKey: .resource)
@@ -316,7 +375,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -346,6 +405,16 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(required, forKey: .required)
@@ -390,13 +459,15 @@ public extension PlatformClient.ApplicationClient.Content {
class CustomFieldDefinitionDetailResSchema: Codable {
+ public var creator: String?
+
public var resource: String?
public var name: String?
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var description: String?
@@ -408,6 +479,10 @@ public extension PlatformClient.ApplicationClient.Content {
public var applicationId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var required: Bool?
public var isDeleted: Bool?
@@ -423,13 +498,15 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
+ case creator = "creator"
+
case resource = "resource"
case name = "name"
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case description = "description"
@@ -441,11 +518,15 @@ public extension PlatformClient.ApplicationClient.Content {
case applicationId = "application_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case required = "required"
case isDeleted = "is_deleted"
- case id = "id"
+ case id = "_id"
case validations = "validations"
@@ -455,7 +536,9 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, description: String? = nil, id: String? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [[String: Any]]? = nil) {
+ public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, updatedAt: String? = nil, updatedBy: String? = nil, validations: [[String: Any]]? = nil, id: String? = nil) {
+
+ self.creator = creator
self.resource = resource
@@ -463,7 +546,7 @@ public extension PlatformClient.ApplicationClient.Content {
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.description = description
@@ -475,6 +558,10 @@ public extension PlatformClient.ApplicationClient.Content {
self.applicationId = applicationId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.required = required
self.isDeleted = isDeleted
@@ -493,6 +580,18 @@ public extension PlatformClient.ApplicationClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
resource = try container.decode(String.self, forKey: .resource)
@@ -530,7 +629,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -601,6 +700,30 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
required = try container.decode(Bool.self, forKey: .required)
@@ -679,6 +802,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(resource, forKey: .resource)
@@ -694,7 +822,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -724,6 +852,16 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(required, forKey: .required)
diff --git a/Sources/code/platform/Models/Content/CustomFieldDefinitionRequestSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldDefinitionRequestSchemaContentPlatformModel.swift
index 965fde747c..19f6b69a59 100644
--- a/Sources/code/platform/Models/Content/CustomFieldDefinitionRequestSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomFieldDefinitionRequestSchemaContentPlatformModel.swift
@@ -12,9 +12,11 @@ public extension PlatformClient.Content {
class CustomFieldDefinitionRequestSchema: Codable {
+ public var resource: String?
+
public var type: String?
- public var slug: String?
+ public var key: String?
public var namespace: String?
@@ -29,9 +31,11 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
+ case resource = "resource"
+
case type = "type"
- case slug = "slug"
+ case key = "key"
case namespace = "namespace"
@@ -45,11 +49,13 @@ public extension PlatformClient.Content {
}
- public init(description: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, slug: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(description: String? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, resource: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+
+ self.resource = resource
self.type = type
- self.slug = slug
+ self.key = key
self.namespace = namespace
@@ -67,6 +73,18 @@ public extension PlatformClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ do {
+ resource = try container.decode(String.self, forKey: .resource)
+
+ } 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)
@@ -80,7 +98,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -157,12 +175,17 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(resource, forKey: .resource)
+
+
+
+
try? container.encodeIfPresent(type, forKey: .type)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -206,9 +229,11 @@ public extension PlatformClient.ApplicationClient.Content {
class CustomFieldDefinitionRequestSchema: Codable {
+ public var resource: String?
+
public var type: String?
- public var slug: String?
+ public var key: String?
public var namespace: String?
@@ -223,9 +248,11 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
+ case resource = "resource"
+
case type = "type"
- case slug = "slug"
+ case key = "key"
case namespace = "namespace"
@@ -239,11 +266,13 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(description: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, slug: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(description: String? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, resource: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+
+ self.resource = resource
self.type = type
- self.slug = slug
+ self.key = key
self.namespace = namespace
@@ -261,6 +290,18 @@ public extension PlatformClient.ApplicationClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ do {
+ resource = try container.decode(String.self, forKey: .resource)
+
+ } 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)
@@ -274,7 +315,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -351,12 +392,17 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(resource, forKey: .resource)
+
+
+
+
try? container.encodeIfPresent(type, forKey: .type)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
diff --git a/Sources/code/platform/Models/Content/CustomFieldSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldSchemaContentPlatformModel.swift
index 2c31545888..24378dd72c 100644
--- a/Sources/code/platform/Models/Content/CustomFieldSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomFieldSchemaContentPlatformModel.swift
@@ -16,13 +16,15 @@ public extension PlatformClient.Content {
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var resource: String?
+ public var creator: String?
+
public var value: [CustomFieldValue]?
- public var resourceSlug: String?
+ public var resourceId: String?
public var type: String?
@@ -30,10 +32,14 @@ public extension PlatformClient.Content {
public var companyId: String?
+ public var definitionId: String?
+
public var hasInvalidValues: Bool?
public var invalidValueErrors: [[String: Any]]?
+ public var createdBy: String?
+
public var isDeleted: Bool?
public var createdAt: String?
@@ -43,17 +49,19 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case resource = "resource"
+ case creator = "creator"
+
case value = "value"
- case resourceSlug = "resource_slug"
+ case resourceId = "resource_id"
case type = "type"
@@ -61,10 +69,14 @@ public extension PlatformClient.Content {
case companyId = "company_id"
+ case definitionId = "definition_id"
+
case hasInvalidValues = "has_invalid_values"
case invalidValueErrors = "invalid_value_errors"
+ case createdBy = "created_by"
+
case isDeleted = "is_deleted"
case createdAt = "created_at"
@@ -73,19 +85,21 @@ public extension PlatformClient.Content {
}
- public init(companyId: String? = nil, createdAt: String? = nil, hasInvalidValues: Bool? = nil, id: String? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceSlug: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil) {
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, definitionId: String? = nil, hasInvalidValues: Bool? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceId: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil, id: String? = nil) {
self.id = id
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.resource = resource
+ self.creator = creator
+
self.value = value
- self.resourceSlug = resourceSlug
+ self.resourceId = resourceId
self.type = type
@@ -93,10 +107,14 @@ public extension PlatformClient.Content {
self.companyId = companyId
+ self.definitionId = definitionId
+
self.hasInvalidValues = hasInvalidValues
self.invalidValueErrors = invalidValueErrors
+ self.createdBy = createdBy
+
self.isDeleted = isDeleted
self.createdAt = createdAt
@@ -134,7 +152,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -157,6 +175,18 @@ public extension PlatformClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
value = try container.decode([CustomFieldValue].self, forKey: .value)
@@ -170,7 +200,7 @@ public extension PlatformClient.Content {
do {
- resourceSlug = try container.decode(String.self, forKey: .resourceSlug)
+ resourceId = try container.decode(String.self, forKey: .resourceId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -217,6 +247,18 @@ public extension PlatformClient.Content {
+ do {
+ definitionId = try container.decode(String.self, forKey: .definitionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
hasInvalidValues = try container.decode(Bool.self, forKey: .hasInvalidValues)
@@ -241,6 +283,18 @@ public extension PlatformClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
@@ -293,7 +347,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -303,12 +357,17 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(value, forKey: .value)
- try? container.encodeIfPresent(resourceSlug, forKey: .resourceSlug)
+ try? container.encodeIfPresent(resourceId, forKey: .resourceId)
@@ -328,6 +387,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
+
+
+
+
try? container.encodeIfPresent(hasInvalidValues, forKey: .hasInvalidValues)
@@ -338,6 +402,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
@@ -371,13 +440,15 @@ public extension PlatformClient.ApplicationClient.Content {
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var resource: String?
+ public var creator: String?
+
public var value: [CustomFieldValue]?
- public var resourceSlug: String?
+ public var resourceId: String?
public var type: String?
@@ -385,10 +456,14 @@ public extension PlatformClient.ApplicationClient.Content {
public var companyId: String?
+ public var definitionId: String?
+
public var hasInvalidValues: Bool?
public var invalidValueErrors: [[String: Any]]?
+ public var createdBy: String?
+
public var isDeleted: Bool?
public var createdAt: String?
@@ -398,17 +473,19 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case resource = "resource"
+ case creator = "creator"
+
case value = "value"
- case resourceSlug = "resource_slug"
+ case resourceId = "resource_id"
case type = "type"
@@ -416,10 +493,14 @@ public extension PlatformClient.ApplicationClient.Content {
case companyId = "company_id"
+ case definitionId = "definition_id"
+
case hasInvalidValues = "has_invalid_values"
case invalidValueErrors = "invalid_value_errors"
+ case createdBy = "created_by"
+
case isDeleted = "is_deleted"
case createdAt = "created_at"
@@ -428,19 +509,21 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(companyId: String? = nil, createdAt: String? = nil, hasInvalidValues: Bool? = nil, id: String? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceSlug: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil) {
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, definitionId: String? = nil, hasInvalidValues: Bool? = nil, invalidValueErrors: [[String: Any]]? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, namespace: String? = nil, resource: String? = nil, resourceId: String? = nil, type: String? = nil, updatedAt: String? = nil, value: [CustomFieldValue]? = nil, id: String? = nil) {
self.id = id
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.resource = resource
+ self.creator = creator
+
self.value = value
- self.resourceSlug = resourceSlug
+ self.resourceId = resourceId
self.type = type
@@ -448,10 +531,14 @@ public extension PlatformClient.ApplicationClient.Content {
self.companyId = companyId
+ self.definitionId = definitionId
+
self.hasInvalidValues = hasInvalidValues
self.invalidValueErrors = invalidValueErrors
+ self.createdBy = createdBy
+
self.isDeleted = isDeleted
self.createdAt = createdAt
@@ -489,7 +576,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -512,6 +599,18 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
value = try container.decode([CustomFieldValue].self, forKey: .value)
@@ -525,7 +624,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- resourceSlug = try container.decode(String.self, forKey: .resourceSlug)
+ resourceId = try container.decode(String.self, forKey: .resourceId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -572,6 +671,18 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ definitionId = try container.decode(String.self, forKey: .definitionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
hasInvalidValues = try container.decode(Bool.self, forKey: .hasInvalidValues)
@@ -596,6 +707,18 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
@@ -648,7 +771,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -658,12 +781,17 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(value, forKey: .value)
- try? container.encodeIfPresent(resourceSlug, forKey: .resourceSlug)
+ try? container.encodeIfPresent(resourceId, forKey: .resourceId)
@@ -683,6 +811,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
+
+
+
+
try? container.encodeIfPresent(hasInvalidValues, forKey: .hasInvalidValues)
@@ -693,6 +826,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
diff --git a/Sources/code/platform/Models/Content/CustomFieldTypeSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldTypeSchemaContentPlatformModel.swift
index 70e8308980..0b8855372c 100644
--- a/Sources/code/platform/Models/Content/CustomFieldTypeSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomFieldTypeSchemaContentPlatformModel.swift
@@ -38,10 +38,6 @@ public extension PlatformClient.Content {
public var product: Product?
- public var html: HTML?
-
- public var duration: Duration?
-
public enum CodingKeys: String, CodingKey {
@@ -71,13 +67,9 @@ public extension PlatformClient.Content {
case product = "product"
- case html = "html"
-
- case duration = "duration"
-
}
- public init(booleanType: BooleanType? = nil, date: Date? = nil, datetime: Datetime? = nil, dropdown: Dropdown? = nil, duration: Duration? = nil, file: File? = nil, floatType: FloatType? = nil, html: HTML? = nil, integer: Integer? = nil, json: Json? = nil, metaobject: Metaobject? = nil, product: Product? = nil, stringMultiLine: StringMultiLine? = nil, stringSingleLine: StringSingleLine? = nil, url: Url? = nil) {
+ public init(booleanType: BooleanType? = nil, date: Date? = nil, datetime: Datetime? = nil, dropdown: Dropdown? = nil, file: File? = nil, floatType: FloatType? = nil, integer: Integer? = nil, json: Json? = nil, metaobject: Metaobject? = nil, product: Product? = nil, stringMultiLine: StringMultiLine? = nil, stringSingleLine: StringSingleLine? = nil, url: Url? = nil) {
self.stringSingleLine = stringSingleLine
@@ -105,10 +97,6 @@ public extension PlatformClient.Content {
self.product = product
- self.html = html
-
- self.duration = duration
-
}
required public init(from decoder: Decoder) throws {
@@ -270,30 +258,6 @@ public extension PlatformClient.Content {
}
-
- do {
- html = try container.decode(HTML.self, forKey: .html)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- duration = try container.decode(Duration.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 {
@@ -364,16 +328,6 @@ public extension PlatformClient.Content {
try? container.encodeIfPresent(product, forKey: .product)
-
-
- try? container.encodeIfPresent(html, forKey: .html)
-
-
-
-
- try? container.encodeIfPresent(duration, forKey: .duration)
-
-
}
}
@@ -416,10 +370,6 @@ public extension PlatformClient.ApplicationClient.Content {
public var product: Product?
- public var html: HTML?
-
- public var duration: Duration?
-
public enum CodingKeys: String, CodingKey {
@@ -449,13 +399,9 @@ public extension PlatformClient.ApplicationClient.Content {
case product = "product"
- case html = "html"
-
- case duration = "duration"
-
}
- public init(booleanType: BooleanType? = nil, date: Date? = nil, datetime: Datetime? = nil, dropdown: Dropdown? = nil, duration: Duration? = nil, file: File? = nil, floatType: FloatType? = nil, html: HTML? = nil, integer: Integer? = nil, json: Json? = nil, metaobject: Metaobject? = nil, product: Product? = nil, stringMultiLine: StringMultiLine? = nil, stringSingleLine: StringSingleLine? = nil, url: Url? = nil) {
+ public init(booleanType: BooleanType? = nil, date: Date? = nil, datetime: Datetime? = nil, dropdown: Dropdown? = nil, file: File? = nil, floatType: FloatType? = nil, integer: Integer? = nil, json: Json? = nil, metaobject: Metaobject? = nil, product: Product? = nil, stringMultiLine: StringMultiLine? = nil, stringSingleLine: StringSingleLine? = nil, url: Url? = nil) {
self.stringSingleLine = stringSingleLine
@@ -483,10 +429,6 @@ public extension PlatformClient.ApplicationClient.Content {
self.product = product
- self.html = html
-
- self.duration = duration
-
}
required public init(from decoder: Decoder) throws {
@@ -648,30 +590,6 @@ public extension PlatformClient.ApplicationClient.Content {
}
-
- do {
- html = try container.decode(HTML.self, forKey: .html)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- duration = try container.decode(Duration.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 {
@@ -742,16 +660,6 @@ public extension PlatformClient.ApplicationClient.Content {
try? container.encodeIfPresent(product, forKey: .product)
-
-
- try? container.encodeIfPresent(html, forKey: .html)
-
-
-
-
- try? container.encodeIfPresent(duration, forKey: .duration)
-
-
}
}
diff --git a/Sources/code/platform/Models/Content/CustomFieldsDeleteSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomFieldsDeleteSchemaContentPlatformModel.swift
deleted file mode 100644
index c07673ecaf..0000000000
--- a/Sources/code/platform/Models/Content/CustomFieldsDeleteSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomFieldsDeleteSchema
- Used By: Content
- */
-
- class CustomFieldsDeleteSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomFieldsDeleteSchema
- Used By: Content
- */
-
- class CustomFieldsDeleteSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectBulkEntryContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectBulkEntryContentPlatformModel.swift
index 03143b06bb..92ffce462a 100644
--- a/Sources/code/platform/Models/Content/CustomObjectBulkEntryContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectBulkEntryContentPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Content {
class CustomObjectBulkEntry: Codable {
- public var items: [JobSchema]?
+ public var items: [CustomObjectJobSchema]?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Content {
}
- public init(items: [JobSchema]? = nil, page: Page? = nil) {
+ public init(items: [CustomObjectJobSchema]? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Content {
do {
- items = try container.decode([JobSchema].self, forKey: .items)
+ items = try container.decode([CustomObjectJobSchema].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Content {
class CustomObjectBulkEntry: Codable {
- public var items: [JobSchema]?
+ public var items: [CustomObjectJobSchema]?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(items: [JobSchema]? = nil, page: Page? = nil) {
+ public init(items: [CustomObjectJobSchema]? = nil, page: Page? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- items = try container.decode([JobSchema].self, forKey: .items)
+ items = try container.decode([CustomObjectJobSchema].self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Content/CustomObjectByIdSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectByIdSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..c223126ae3
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectByIdSchemaContentPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectByIdSchema
+ Used By: Content
+ */
+
+ class CustomObjectByIdSchema: Codable {
+
+
+ public var id: String?
+
+ public var status: String?
+
+ public var displayName: String?
+
+ public var definition: CustomObjectListItemDefinationSchema?
+
+ public var references: [[String: Any]]?
+
+ public var fields: [CustomObjectFieldSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case status = "status"
+
+ case displayName = "display_name"
+
+ case definition = "definition"
+
+ case references = "references"
+
+ case fields = "fields"
+
+ }
+
+ public init(definition: CustomObjectListItemDefinationSchema? = nil, displayName: String? = nil, fields: [CustomObjectFieldSchema]? = nil, references: [[String: Any]]? = nil, status: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.status = status
+
+ self.displayName = displayName
+
+ self.definition = definition
+
+ self.references = references
+
+ self.fields = fields
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ definition = try container.decode(CustomObjectListItemDefinationSchema.self, forKey: .definition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ references = try container.decode([[String: Any]].self, forKey: .references)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fields = try container.decode([CustomObjectFieldSchema].self, forKey: .fields)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(definition, forKey: .definition)
+
+
+
+
+ try? container.encodeIfPresent(references, forKey: .references)
+
+
+
+
+ try? container.encodeIfPresent(fields, forKey: .fields)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectByIdSchema
+ Used By: Content
+ */
+
+ class CustomObjectByIdSchema: Codable {
+
+
+ public var id: String?
+
+ public var status: String?
+
+ public var displayName: String?
+
+ public var definition: CustomObjectListItemDefinationSchema?
+
+ public var references: [[String: Any]]?
+
+ public var fields: [CustomObjectFieldSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case status = "status"
+
+ case displayName = "display_name"
+
+ case definition = "definition"
+
+ case references = "references"
+
+ case fields = "fields"
+
+ }
+
+ public init(definition: CustomObjectListItemDefinationSchema? = nil, displayName: String? = nil, fields: [CustomObjectFieldSchema]? = nil, references: [[String: Any]]? = nil, status: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.status = status
+
+ self.displayName = displayName
+
+ self.definition = definition
+
+ self.references = references
+
+ self.fields = fields
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ definition = try container.decode(CustomObjectListItemDefinationSchema.self, forKey: .definition)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ references = try container.decode([[String: Any]].self, forKey: .references)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fields = try container.decode([CustomObjectFieldSchema].self, forKey: .fields)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(definition, forKey: .definition)
+
+
+
+
+ try? container.encodeIfPresent(references, forKey: .references)
+
+
+
+
+ try? container.encodeIfPresent(fields, forKey: .fields)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectBySlugSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectBySlugSchemaContentPlatformModel.swift
deleted file mode 100644
index 47ce06db9b..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectBySlugSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,438 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectBySlugSchema
- Used By: Content
- */
-
- class CustomObjectBySlugSchema: Codable {
-
-
- public var id: String?
-
- public var status: String?
-
- public var displayName: String?
-
- public var definition: CustomObjectListItemDefinitionModel?
-
- public var references: [[String: Any]]?
-
- public var slug: String?
-
- public var definitionSlug: String?
-
- public var fields: [CustomObjectFieldDefinition]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case status = "status"
-
- case displayName = "display_name"
-
- case definition = "definition"
-
- case references = "references"
-
- case slug = "slug"
-
- case definitionSlug = "definition_slug"
-
- case fields = "fields"
-
- }
-
- public init(definition: CustomObjectListItemDefinitionModel? = nil, definitionSlug: String? = nil, displayName: String? = nil, fields: [CustomObjectFieldDefinition]? = nil, id: String? = nil, references: [[String: Any]]? = nil, slug: String? = nil, status: String? = nil) {
-
- self.id = id
-
- self.status = status
-
- self.displayName = displayName
-
- self.definition = definition
-
- self.references = references
-
- self.slug = slug
-
- self.definitionSlug = definitionSlug
-
- self.fields = fields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- definition = try container.decode(CustomObjectListItemDefinitionModel.self, forKey: .definition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- references = try container.decode([[String: Any]].self, forKey: .references)
-
- } 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 {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fields = try container.decode([CustomObjectFieldDefinition].self, forKey: .fields)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(definition, forKey: .definition)
-
-
-
-
- try? container.encodeIfPresent(references, forKey: .references)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
- try? container.encodeIfPresent(fields, forKey: .fields)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectBySlugSchema
- Used By: Content
- */
-
- class CustomObjectBySlugSchema: Codable {
-
-
- public var id: String?
-
- public var status: String?
-
- public var displayName: String?
-
- public var definition: CustomObjectListItemDefinitionModel?
-
- public var references: [[String: Any]]?
-
- public var slug: String?
-
- public var definitionSlug: String?
-
- public var fields: [CustomObjectFieldDefinition]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case status = "status"
-
- case displayName = "display_name"
-
- case definition = "definition"
-
- case references = "references"
-
- case slug = "slug"
-
- case definitionSlug = "definition_slug"
-
- case fields = "fields"
-
- }
-
- public init(definition: CustomObjectListItemDefinitionModel? = nil, definitionSlug: String? = nil, displayName: String? = nil, fields: [CustomObjectFieldDefinition]? = nil, id: String? = nil, references: [[String: Any]]? = nil, slug: String? = nil, status: String? = nil) {
-
- self.id = id
-
- self.status = status
-
- self.displayName = displayName
-
- self.definition = definition
-
- self.references = references
-
- self.slug = slug
-
- self.definitionSlug = definitionSlug
-
- self.fields = fields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } 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 {
- definition = try container.decode(CustomObjectListItemDefinitionModel.self, forKey: .definition)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- references = try container.decode([[String: Any]].self, forKey: .references)
-
- } 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 {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fields = try container.decode([CustomObjectFieldDefinition].self, forKey: .fields)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(definition, forKey: .definition)
-
-
-
-
- try? container.encodeIfPresent(references, forKey: .references)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
- try? container.encodeIfPresent(fields, forKey: .fields)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionResSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionResSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..2b6d216d39
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionResSchemaContentPlatformModel.swift
@@ -0,0 +1,852 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectCustomFieldDefinitionResSchema
+ Used By: Content
+ */
+
+ class CustomObjectCustomFieldDefinitionResSchema: Codable {
+
+
+ public var creator: String?
+
+ public var resource: String?
+
+ public var name: String?
+
+ public var namespace: String?
+
+ public var key: String?
+
+ public var description: String?
+
+ public var type: String?
+
+ public var multiValue: Bool?
+
+ public var validations: [FieldValidations]?
+
+ public var companyId: String?
+
+ public var createdBy: String?
+
+ public var metaobjectDefinitionId: String?
+
+ public var required: Bool?
+
+ public var isDeleted: Bool?
+
+ public var id: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case creator = "creator"
+
+ case resource = "resource"
+
+ case name = "name"
+
+ case namespace = "namespace"
+
+ case key = "key"
+
+ case description = "description"
+
+ case type = "type"
+
+ case multiValue = "multi_value"
+
+ case validations = "validations"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case metaobjectDefinitionId = "metaobject_definition_id"
+
+ case required = "required"
+
+ case isDeleted = "is_deleted"
+
+ case id = "_id"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ }
+
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, isDeleted: Bool? = nil, key: String? = nil, metaobjectDefinitionId: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [FieldValidations]? = nil, id: String? = nil) {
+
+ self.creator = creator
+
+ self.resource = resource
+
+ self.name = name
+
+ self.namespace = namespace
+
+ self.key = key
+
+ self.description = description
+
+ self.type = type
+
+ self.multiValue = multiValue
+
+ self.validations = validations
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.metaobjectDefinitionId = metaobjectDefinitionId
+
+ self.required = required
+
+ self.isDeleted = isDeleted
+
+ self.id = id
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ resource = try container.decode(String.self, forKey: .resource)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+ validations = try container.decode([FieldValidations].self, forKey: .validations)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ metaobjectDefinitionId = try container.decode(String.self, forKey: .metaobjectDefinitionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ required = try container.decode(Bool.self, forKey: .required)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } 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(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(resource, forKey: .resource)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(multiValue, forKey: .multiValue)
+
+
+
+
+ try? container.encodeIfPresent(validations, forKey: .validations)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(metaobjectDefinitionId, forKey: .metaobjectDefinitionId)
+
+
+
+
+ try? container.encodeIfPresent(required, forKey: .required)
+
+
+
+
+ try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectCustomFieldDefinitionResSchema
+ Used By: Content
+ */
+
+ class CustomObjectCustomFieldDefinitionResSchema: Codable {
+
+
+ public var creator: String?
+
+ public var resource: String?
+
+ public var name: String?
+
+ public var namespace: String?
+
+ public var key: String?
+
+ public var description: String?
+
+ public var type: String?
+
+ public var multiValue: Bool?
+
+ public var validations: [FieldValidations]?
+
+ public var companyId: String?
+
+ public var createdBy: String?
+
+ public var metaobjectDefinitionId: String?
+
+ public var required: Bool?
+
+ public var isDeleted: Bool?
+
+ public var id: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case creator = "creator"
+
+ case resource = "resource"
+
+ case name = "name"
+
+ case namespace = "namespace"
+
+ case key = "key"
+
+ case description = "description"
+
+ case type = "type"
+
+ case multiValue = "multi_value"
+
+ case validations = "validations"
+
+ case companyId = "company_id"
+
+ case createdBy = "created_by"
+
+ case metaobjectDefinitionId = "metaobject_definition_id"
+
+ case required = "required"
+
+ case isDeleted = "is_deleted"
+
+ case id = "_id"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ }
+
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, isDeleted: Bool? = nil, key: String? = nil, metaobjectDefinitionId: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [FieldValidations]? = nil, id: String? = nil) {
+
+ self.creator = creator
+
+ self.resource = resource
+
+ self.name = name
+
+ self.namespace = namespace
+
+ self.key = key
+
+ self.description = description
+
+ self.type = type
+
+ self.multiValue = multiValue
+
+ self.validations = validations
+
+ self.companyId = companyId
+
+ self.createdBy = createdBy
+
+ self.metaobjectDefinitionId = metaobjectDefinitionId
+
+ self.required = required
+
+ self.isDeleted = isDeleted
+
+ self.id = id
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ resource = try container.decode(String.self, forKey: .resource)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ 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 {
+ validations = try container.decode([FieldValidations].self, forKey: .validations)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ metaobjectDefinitionId = try container.decode(String.self, forKey: .metaobjectDefinitionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ required = try container.decode(Bool.self, forKey: .required)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } 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(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(resource, forKey: .resource)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(multiValue, forKey: .multiValue)
+
+
+
+
+ try? container.encodeIfPresent(validations, forKey: .validations)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(metaobjectDefinitionId, forKey: .metaobjectDefinitionId)
+
+
+
+
+ try? container.encodeIfPresent(required, forKey: .required)
+
+
+
+
+ try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionsContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionsContentPlatformModel.swift
index ef8f250d6e..a11e8c3b66 100644
--- a/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionsContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectCustomFieldDefinitionsContentPlatformModel.swift
@@ -24,7 +24,7 @@ public extension PlatformClient.Content {
public var required: Bool?
- public var slug: String?
+ public var key: String?
public var validations: [FieldValidations]?
@@ -45,7 +45,7 @@ public extension PlatformClient.Content {
case required = "required"
- case slug = "slug"
+ case key = "key"
case validations = "validations"
@@ -53,7 +53,7 @@ public extension PlatformClient.Content {
}
- public init(action: String? = nil, description: String? = nil, id: String? = nil, multiValue: Bool? = nil, name: String? = nil, required: Bool? = nil, slug: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(action: String? = nil, description: String? = nil, id: String? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, required: Bool? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
self.id = id
@@ -67,7 +67,7 @@ public extension PlatformClient.Content {
self.required = required
- self.slug = slug
+ self.key = key
self.validations = validations
@@ -152,7 +152,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -223,7 +223,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -264,7 +264,7 @@ public extension PlatformClient.ApplicationClient.Content {
public var required: Bool?
- public var slug: String?
+ public var key: String?
public var validations: [FieldValidations]?
@@ -285,7 +285,7 @@ public extension PlatformClient.ApplicationClient.Content {
case required = "required"
- case slug = "slug"
+ case key = "key"
case validations = "validations"
@@ -293,7 +293,7 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(action: String? = nil, description: String? = nil, id: String? = nil, multiValue: Bool? = nil, name: String? = nil, required: Bool? = nil, slug: String? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(action: String? = nil, description: String? = nil, id: String? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, required: Bool? = nil, type: String? = nil, validations: [FieldValidations]? = nil) {
self.id = id
@@ -307,7 +307,7 @@ public extension PlatformClient.ApplicationClient.Content {
self.required = required
- self.slug = slug
+ self.key = key
self.validations = validations
@@ -392,7 +392,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -463,7 +463,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
diff --git a/Sources/code/platform/Models/Content/CustomObjectDefinitionRequestSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectDefinitionRequestSchemaContentPlatformModel.swift
index b7989b5617..f93f62b73c 100644
--- a/Sources/code/platform/Models/Content/CustomObjectDefinitionRequestSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectDefinitionRequestSchemaContentPlatformModel.swift
@@ -14,8 +14,6 @@ public extension PlatformClient.Content {
public var type: String?
- public var definitionSlug: String?
-
public var description: String?
public var name: String?
@@ -29,8 +27,6 @@ public extension PlatformClient.Content {
case type = "type"
- case definitionSlug = "definition_slug"
-
case description = "description"
case name = "name"
@@ -41,12 +37,10 @@ public extension PlatformClient.Content {
}
- public init(definitionSlug: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
+ public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
self.type = type
- self.definitionSlug = definitionSlug
-
self.description = description
self.name = name
@@ -73,18 +67,6 @@ public extension PlatformClient.Content {
- do {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } 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)
@@ -144,11 +126,6 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
try? container.encodeIfPresent(description, forKey: .description)
@@ -185,8 +162,6 @@ public extension PlatformClient.ApplicationClient.Content {
public var type: String?
- public var definitionSlug: String?
-
public var description: String?
public var name: String?
@@ -200,8 +175,6 @@ public extension PlatformClient.ApplicationClient.Content {
case type = "type"
- case definitionSlug = "definition_slug"
-
case description = "description"
case name = "name"
@@ -212,12 +185,10 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(definitionSlug: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
+ public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
self.type = type
- self.definitionSlug = definitionSlug
-
self.description = description
self.name = name
@@ -244,18 +215,6 @@ public extension PlatformClient.ApplicationClient.Content {
- do {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } 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)
@@ -315,11 +274,6 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
try? container.encodeIfPresent(description, forKey: .description)
diff --git a/Sources/code/platform/Models/Content/CustomObjectDefinitionSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectDefinitionSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..4e50de61ab
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectDefinitionSchemaContentPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectDefinitionSchema
+ Used By: Content
+ */
+
+ class CustomObjectDefinitionSchema: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var type: String?
+
+ public var displayNameKey: String?
+
+ public var description: String?
+
+ public var creator: String?
+
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
+ public var fieldDefinitions: [CustomObjectCustomFieldDefinitionResSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case name = "name"
+
+ case type = "type"
+
+ case displayNameKey = "display_name_key"
+
+ case description = "description"
+
+ case creator = "creator"
+
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
+ case fieldDefinitions = "field_definitions"
+
+ }
+
+ public init(createdBy: String? = nil, creator: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitionResSchema]? = nil, name: String? = nil, type: String? = nil, updatedBy: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.type = type
+
+ self.displayNameKey = displayNameKey
+
+ self.description = description
+
+ self.creator = creator
+
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
+ self.fieldDefinitions = fieldDefinitions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ displayNameKey = try container.decode(String.self, forKey: .displayNameKey)
+
+ } 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 {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fieldDefinitions = try container.decode([CustomObjectCustomFieldDefinitionResSchema].self, forKey: .fieldDefinitions)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(displayNameKey, forKey: .displayNameKey)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
+ try? container.encodeIfPresent(fieldDefinitions, forKey: .fieldDefinitions)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectDefinitionSchema
+ Used By: Content
+ */
+
+ class CustomObjectDefinitionSchema: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var type: String?
+
+ public var displayNameKey: String?
+
+ public var description: String?
+
+ public var creator: String?
+
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
+ public var fieldDefinitions: [CustomObjectCustomFieldDefinitionResSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case name = "name"
+
+ case type = "type"
+
+ case displayNameKey = "display_name_key"
+
+ case description = "description"
+
+ case creator = "creator"
+
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
+ case fieldDefinitions = "field_definitions"
+
+ }
+
+ public init(createdBy: String? = nil, creator: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitionResSchema]? = nil, name: String? = nil, type: String? = nil, updatedBy: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.type = type
+
+ self.displayNameKey = displayNameKey
+
+ self.description = description
+
+ self.creator = creator
+
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
+ self.fieldDefinitions = fieldDefinitions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ displayNameKey = try container.decode(String.self, forKey: .displayNameKey)
+
+ } 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 {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fieldDefinitions = try container.decode([CustomObjectCustomFieldDefinitionResSchema].self, forKey: .fieldDefinitions)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(displayNameKey, forKey: .displayNameKey)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
+ try? container.encodeIfPresent(fieldDefinitions, forKey: .fieldDefinitions)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectDefinitionSlugSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectDefinitionSlugSchemaContentPlatformModel.swift
deleted file mode 100644
index 5212434060..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectDefinitionSlugSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectDefinitionSlugSchema
- Used By: Content
- */
-
- class CustomObjectDefinitionSlugSchema: Codable {
-
-
- public var id: String?
-
- public var name: String?
-
- public var type: String?
-
- public var definitionSlug: String?
-
- public var displayNameKey: String?
-
- public var description: String?
-
- public var fieldDefinitions: [CustomFieldDefinitionDetailResSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case name = "name"
-
- case type = "type"
-
- case definitionSlug = "definition_slug"
-
- case displayNameKey = "display_name_key"
-
- case description = "description"
-
- case fieldDefinitions = "field_definitions"
-
- }
-
- public init(definitionSlug: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomFieldDefinitionDetailResSchema]? = nil, id: String? = nil, name: String? = nil, type: String? = nil) {
-
- self.id = id
-
- self.name = name
-
- self.type = type
-
- self.definitionSlug = definitionSlug
-
- self.displayNameKey = displayNameKey
-
- self.description = description
-
- self.fieldDefinitions = fieldDefinitions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- displayNameKey = try container.decode(String.self, forKey: .displayNameKey)
-
- } 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 {
- fieldDefinitions = try container.decode([CustomFieldDefinitionDetailResSchema].self, forKey: .fieldDefinitions)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
- try? container.encodeIfPresent(displayNameKey, forKey: .displayNameKey)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(fieldDefinitions, forKey: .fieldDefinitions)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectDefinitionSlugSchema
- Used By: Content
- */
-
- class CustomObjectDefinitionSlugSchema: Codable {
-
-
- public var id: String?
-
- public var name: String?
-
- public var type: String?
-
- public var definitionSlug: String?
-
- public var displayNameKey: String?
-
- public var description: String?
-
- public var fieldDefinitions: [CustomFieldDefinitionDetailResSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case name = "name"
-
- case type = "type"
-
- case definitionSlug = "definition_slug"
-
- case displayNameKey = "display_name_key"
-
- case description = "description"
-
- case fieldDefinitions = "field_definitions"
-
- }
-
- public init(definitionSlug: String? = nil, description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomFieldDefinitionDetailResSchema]? = nil, id: String? = nil, name: String? = nil, type: String? = nil) {
-
- self.id = id
-
- self.name = name
-
- self.type = type
-
- self.definitionSlug = definitionSlug
-
- self.displayNameKey = displayNameKey
-
- self.description = description
-
- self.fieldDefinitions = fieldDefinitions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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 {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- displayNameKey = try container.decode(String.self, forKey: .displayNameKey)
-
- } 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 {
- fieldDefinitions = try container.decode([CustomFieldDefinitionDetailResSchema].self, forKey: .fieldDefinitions)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
-
-
-
-
- try? container.encodeIfPresent(displayNameKey, forKey: .displayNameKey)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(fieldDefinitions, forKey: .fieldDefinitions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectDefinitionUpdateRequestSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectDefinitionUpdateRequestSchemaContentPlatformModel.swift
index 15d30156e4..05e20e24a8 100644
--- a/Sources/code/platform/Models/Content/CustomObjectDefinitionUpdateRequestSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectDefinitionUpdateRequestSchemaContentPlatformModel.swift
@@ -12,6 +12,8 @@ public extension PlatformClient.Content {
class CustomObjectDefinitionUpdateRequestSchema: Codable {
+ public var type: String?
+
public var description: String?
public var name: String?
@@ -23,6 +25,8 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
+ case type = "type"
+
case description = "description"
case name = "name"
@@ -33,7 +37,9 @@ public extension PlatformClient.Content {
}
- public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil) {
+ public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
+
+ self.type = type
self.description = description
@@ -49,6 +55,18 @@ public extension PlatformClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ 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 {
description = try container.decode(String.self, forKey: .description)
@@ -103,6 +121,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
@@ -137,6 +160,8 @@ public extension PlatformClient.ApplicationClient.Content {
class CustomObjectDefinitionUpdateRequestSchema: Codable {
+ public var type: String?
+
public var description: String?
public var name: String?
@@ -148,6 +173,8 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
+ case type = "type"
+
case description = "description"
case name = "name"
@@ -158,7 +185,9 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil) {
+ public init(description: String? = nil, displayNameKey: String? = nil, fieldDefinitions: [CustomObjectCustomFieldDefinitions]? = nil, name: String? = nil, type: String? = nil) {
+
+ self.type = type
self.description = description
@@ -174,6 +203,18 @@ public extension PlatformClient.ApplicationClient.Content {
let container = try decoder.container(keyedBy: CodingKeys.self)
+ 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 {
description = try container.decode(String.self, forKey: .description)
@@ -228,6 +269,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
try? container.encodeIfPresent(description, forKey: .description)
diff --git a/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadDetailsContentPlatformModel.swift
deleted file mode 100644
index fb72d506b5..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectEntryBulkUploadDetails
- Used By: Content
- */
-
- class CustomObjectEntryBulkUploadDetails: Codable {
-
-
- public var url: String?
-
- public var totalRecords: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case totalRecords = "total_records"
-
- }
-
- public init(totalRecords: Int? = nil, url: String? = nil) {
-
- self.url = url
-
- self.totalRecords = totalRecords
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- totalRecords = try container.decode(Int.self, forKey: .totalRecords)
-
- } 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(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(totalRecords, forKey: .totalRecords)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectEntryBulkUploadDetails
- Used By: Content
- */
-
- class CustomObjectEntryBulkUploadDetails: Codable {
-
-
- public var url: String?
-
- public var totalRecords: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case totalRecords = "total_records"
-
- }
-
- public init(totalRecords: Int? = nil, url: String? = nil) {
-
- self.url = url
-
- self.totalRecords = totalRecords
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- totalRecords = try container.decode(Int.self, forKey: .totalRecords)
-
- } 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(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(totalRecords, forKey: .totalRecords)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..f9a32f637b
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectEntryBulkUploadResponseContentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectEntryBulkUploadResponse
+ Used By: Content
+ */
+
+ class CustomObjectEntryBulkUploadResponse: Codable {
+
+
+ public var url: String?
+
+ public var totalRecords: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case url = "url"
+
+ case totalRecords = "total_records"
+
+ }
+
+ public init(totalRecords: Int? = nil, url: String? = nil) {
+
+ self.url = url
+
+ self.totalRecords = totalRecords
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ totalRecords = try container.decode(Int.self, forKey: .totalRecords)
+
+ } 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(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(totalRecords, forKey: .totalRecords)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectEntryBulkUploadResponse
+ Used By: Content
+ */
+
+ class CustomObjectEntryBulkUploadResponse: Codable {
+
+
+ public var url: String?
+
+ public var totalRecords: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case url = "url"
+
+ case totalRecords = "total_records"
+
+ }
+
+ public init(totalRecords: Int? = nil, url: String? = nil) {
+
+ self.url = url
+
+ self.totalRecords = totalRecords
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ totalRecords = try container.decode(Int.self, forKey: .totalRecords)
+
+ } 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(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(totalRecords, forKey: .totalRecords)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectEntryContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectEntryContentPlatformModel.swift
index f41d58aaca..e34d78cd83 100644
--- a/Sources/code/platform/Models/Content/CustomObjectEntryContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectEntryContentPlatformModel.swift
@@ -27,7 +27,7 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
case name = "name"
@@ -41,7 +41,7 @@ public extension PlatformClient.Content {
}
- public init(entriesCount: Int? = nil, fieldsCount: Int? = nil, id: String? = nil, name: String? = nil, type: String? = nil, updatedAt: String? = nil) {
+ public init(entriesCount: Int? = nil, fieldsCount: Int? = nil, name: String? = nil, type: String? = nil, updatedAt: String? = nil, id: String? = nil) {
self.id = id
@@ -198,7 +198,7 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
case name = "name"
@@ -212,7 +212,7 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(entriesCount: Int? = nil, fieldsCount: Int? = nil, id: String? = nil, name: String? = nil, type: String? = nil, updatedAt: String? = nil) {
+ public init(entriesCount: Int? = nil, fieldsCount: Int? = nil, name: String? = nil, type: String? = nil, updatedAt: String? = nil, id: String? = nil) {
self.id = id
diff --git a/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaContentPlatformModel.swift
index 9fc62e4958..15f6e29961 100644
--- a/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaContentPlatformModel.swift
@@ -12,24 +12,24 @@ public extension PlatformClient.Content {
class CustomObjectEntryFieldSchema: Codable {
- public var namespace: String?
+ public var definitionId: String?
- public var slug: String?
+ public var value: [[String: Any]]?
public enum CodingKeys: String, CodingKey {
- case namespace = "namespace"
+ case definitionId = "definition_id"
- case slug = "slug"
+ case value = "value"
}
- public init(namespace: String? = nil, slug: String? = nil) {
+ public init(definitionId: String? = nil, value: [[String: Any]]? = nil) {
- self.namespace = namespace
+ self.definitionId = definitionId
- self.slug = slug
+ self.value = value
}
@@ -38,7 +38,7 @@ public extension PlatformClient.Content {
do {
- namespace = try container.decode(String.self, forKey: .namespace)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -50,7 +50,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ value = try container.decode([[String: Any]].self, forKey: .value)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -67,12 +67,12 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(namespace, forKey: .namespace)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(value, forKey: .value)
}
@@ -91,24 +91,24 @@ public extension PlatformClient.ApplicationClient.Content {
class CustomObjectEntryFieldSchema: Codable {
- public var namespace: String?
+ public var definitionId: String?
- public var slug: String?
+ public var value: [[String: Any]]?
public enum CodingKeys: String, CodingKey {
- case namespace = "namespace"
+ case definitionId = "definition_id"
- case slug = "slug"
+ case value = "value"
}
- public init(namespace: String? = nil, slug: String? = nil) {
+ public init(definitionId: String? = nil, value: [[String: Any]]? = nil) {
- self.namespace = namespace
+ self.definitionId = definitionId
- self.slug = slug
+ self.value = value
}
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- namespace = try container.decode(String.self, forKey: .namespace)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ value = try container.decode([[String: Any]].self, forKey: .value)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -146,12 +146,12 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(namespace, forKey: .namespace)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(value, forKey: .value)
}
diff --git a/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaWithoutIDContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaWithoutIDContentPlatformModel.swift
deleted file mode 100644
index c709dec868..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectEntryFieldSchemaWithoutIDContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectEntryFieldSchemaWithoutID
- Used By: Content
- */
-
- class CustomObjectEntryFieldSchemaWithoutID: Codable {
-
-
- public var slug: String?
-
- public var value: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case value = "value"
-
- }
-
- public init(slug: String? = nil, value: [String: Any]? = nil) {
-
- self.slug = slug
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- value = try container.decode([String: Any].self, forKey: .value)
-
- } 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(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectEntryFieldSchemaWithoutID
- Used By: Content
- */
-
- class CustomObjectEntryFieldSchemaWithoutID: Codable {
-
-
- public var slug: String?
-
- public var value: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case value = "value"
-
- }
-
- public init(slug: String? = nil, value: [String: Any]? = nil) {
-
- self.slug = slug
-
- self.value = value
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- value = try container.decode([String: Any].self, forKey: .value)
-
- } 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(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectFieldDefinitionContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectFieldDefinitionContentPlatformModel.swift
deleted file mode 100644
index 93f3e4c595..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectFieldDefinitionContentPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectFieldDefinition
- Used By: Content
- */
-
- class CustomObjectFieldDefinition: Codable {
-
-
- public var id: String?
-
- public var slug: String?
-
- public var namespace: String?
-
- public var value: [[String: Any]]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case slug = "slug"
-
- case namespace = "namespace"
-
- case value = "value"
-
- case type = "type"
-
- }
-
- public init(id: String? = nil, namespace: String? = nil, slug: String? = nil, type: String? = nil, value: [[String: Any]]? = nil) {
-
- self.id = id
-
- self.slug = slug
-
- self.namespace = namespace
-
- self.value = value
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- value = try container.decode([[String: Any]].self, forKey: .value)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectFieldDefinition
- Used By: Content
- */
-
- class CustomObjectFieldDefinition: Codable {
-
-
- public var id: String?
-
- public var slug: String?
-
- public var namespace: String?
-
- public var value: [[String: Any]]?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case slug = "slug"
-
- case namespace = "namespace"
-
- case value = "value"
-
- case type = "type"
-
- }
-
- public init(id: String? = nil, namespace: String? = nil, slug: String? = nil, type: String? = nil, value: [[String: Any]]? = nil) {
-
- self.id = id
-
- self.slug = slug
-
- self.namespace = namespace
-
- self.value = value
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- value = try container.decode([[String: Any]].self, forKey: .value)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectFieldSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectFieldSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..a4450a5845
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectFieldSchemaContentPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectFieldSchema
+ Used By: Content
+ */
+
+ class CustomObjectFieldSchema: Codable {
+
+
+ public var id: String?
+
+ public var key: String?
+
+ public var value: [[String: Any]]?
+
+ public var type: String?
+
+ public var definitionId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case key = "key"
+
+ case value = "value"
+
+ case type = "type"
+
+ case definitionId = "definition_id"
+
+ }
+
+ public init(definitionId: String? = nil, key: String? = nil, type: String? = nil, value: [[String: Any]]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.key = key
+
+ self.value = value
+
+ self.type = type
+
+ self.definitionId = definitionId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ value = try container.decode([[String: Any]].self, forKey: .value)
+
+ } 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 {
+ definitionId = try container.decode(String.self, forKey: .definitionId)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectFieldSchema
+ Used By: Content
+ */
+
+ class CustomObjectFieldSchema: Codable {
+
+
+ public var id: String?
+
+ public var key: String?
+
+ public var value: [[String: Any]]?
+
+ public var type: String?
+
+ public var definitionId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case key = "key"
+
+ case value = "value"
+
+ case type = "type"
+
+ case definitionId = "definition_id"
+
+ }
+
+ public init(definitionId: String? = nil, key: String? = nil, type: String? = nil, value: [[String: Any]]? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.key = key
+
+ self.value = value
+
+ self.type = type
+
+ self.definitionId = definitionId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ value = try container.decode([[String: Any]].self, forKey: .value)
+
+ } 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 {
+ definitionId = try container.decode(String.self, forKey: .definitionId)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectJobSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectJobSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..e2fbae9527
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectJobSchemaContentPlatformModel.swift
@@ -0,0 +1,990 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectJobSchema
+ Used By: Content
+ */
+
+ class CustomObjectJobSchema: Codable {
+
+
+ public var id: String?
+
+ public var jobs: [String]?
+
+ public var finishedJobs: [String]?
+
+ public var errorJobs: [String]?
+
+ public var errorsOccured: [String]?
+
+ public var companyId: String?
+
+ public var creator: String?
+
+ public var url: String?
+
+ public var status: String?
+
+ public var actionType: String?
+
+ public var entity: String?
+
+ public var errorUrl: String?
+
+ public var finishedCount: Int?
+
+ public var errorCount: Int?
+
+ public var successCount: Int?
+
+ public var totalJobs: Int?
+
+ public var meta: CustomObjectMetaSchema?
+
+ public var createdBy: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case jobs = "jobs"
+
+ case finishedJobs = "finished_jobs"
+
+ case errorJobs = "error_jobs"
+
+ case errorsOccured = "errors_occured"
+
+ case companyId = "company_id"
+
+ case creator = "creator"
+
+ case url = "url"
+
+ case status = "status"
+
+ case actionType = "action_type"
+
+ case entity = "entity"
+
+ case errorUrl = "error_url"
+
+ case finishedCount = "finished_count"
+
+ case errorCount = "error_count"
+
+ case successCount = "success_count"
+
+ case totalJobs = "total_jobs"
+
+ case meta = "meta"
+
+ case createdBy = "created_by"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ }
+
+ public init(actionType: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, entity: String? = nil, errorsOccured: [String]? = nil, errorCount: Int? = nil, errorJobs: [String]? = nil, errorUrl: String? = nil, finishedCount: Int? = nil, finishedJobs: [String]? = nil, jobs: [String]? = nil, meta: CustomObjectMetaSchema? = nil, status: String? = nil, successCount: Int? = nil, totalJobs: Int? = nil, updatedAt: String? = nil, url: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.jobs = jobs
+
+ self.finishedJobs = finishedJobs
+
+ self.errorJobs = errorJobs
+
+ self.errorsOccured = errorsOccured
+
+ self.companyId = companyId
+
+ self.creator = creator
+
+ self.url = url
+
+ self.status = status
+
+ self.actionType = actionType
+
+ self.entity = entity
+
+ self.errorUrl = errorUrl
+
+ self.finishedCount = finishedCount
+
+ self.errorCount = errorCount
+
+ self.successCount = successCount
+
+ self.totalJobs = totalJobs
+
+ self.meta = meta
+
+ self.createdBy = createdBy
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ jobs = try container.decode([String].self, forKey: .jobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ finishedJobs = try container.decode([String].self, forKey: .finishedJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorJobs = try container.decode([String].self, forKey: .errorJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorsOccured = try container.decode([String].self, forKey: .errorsOccured)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ actionType = try container.decode(String.self, forKey: .actionType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ entity = try container.decode(String.self, forKey: .entity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorUrl = try container.decode(String.self, forKey: .errorUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ finishedCount = try container.decode(Int.self, forKey: .finishedCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorCount = try container.decode(Int.self, forKey: .errorCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ successCount = try container.decode(Int.self, forKey: .successCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalJobs = try container.decode(Int.self, forKey: .totalJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(CustomObjectMetaSchema.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(jobs, forKey: .jobs)
+
+
+
+
+ try? container.encodeIfPresent(finishedJobs, forKey: .finishedJobs)
+
+
+
+
+ try? container.encodeIfPresent(errorJobs, forKey: .errorJobs)
+
+
+
+
+ try? container.encodeIfPresent(errorsOccured, forKey: .errorsOccured)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(actionType, forKey: .actionType)
+
+
+
+
+ try? container.encodeIfPresent(entity, forKey: .entity)
+
+
+
+
+ try? container.encodeIfPresent(errorUrl, forKey: .errorUrl)
+
+
+
+
+ try? container.encodeIfPresent(finishedCount, forKey: .finishedCount)
+
+
+
+
+ try? container.encodeIfPresent(errorCount, forKey: .errorCount)
+
+
+
+
+ try? container.encodeIfPresent(successCount, forKey: .successCount)
+
+
+
+
+ try? container.encodeIfPresent(totalJobs, forKey: .totalJobs)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectJobSchema
+ Used By: Content
+ */
+
+ class CustomObjectJobSchema: Codable {
+
+
+ public var id: String?
+
+ public var jobs: [String]?
+
+ public var finishedJobs: [String]?
+
+ public var errorJobs: [String]?
+
+ public var errorsOccured: [String]?
+
+ public var companyId: String?
+
+ public var creator: String?
+
+ public var url: String?
+
+ public var status: String?
+
+ public var actionType: String?
+
+ public var entity: String?
+
+ public var errorUrl: String?
+
+ public var finishedCount: Int?
+
+ public var errorCount: Int?
+
+ public var successCount: Int?
+
+ public var totalJobs: Int?
+
+ public var meta: CustomObjectMetaSchema?
+
+ public var createdBy: String?
+
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case jobs = "jobs"
+
+ case finishedJobs = "finished_jobs"
+
+ case errorJobs = "error_jobs"
+
+ case errorsOccured = "errors_occured"
+
+ case companyId = "company_id"
+
+ case creator = "creator"
+
+ case url = "url"
+
+ case status = "status"
+
+ case actionType = "action_type"
+
+ case entity = "entity"
+
+ case errorUrl = "error_url"
+
+ case finishedCount = "finished_count"
+
+ case errorCount = "error_count"
+
+ case successCount = "success_count"
+
+ case totalJobs = "total_jobs"
+
+ case meta = "meta"
+
+ case createdBy = "created_by"
+
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
+ }
+
+ public init(actionType: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, entity: String? = nil, errorsOccured: [String]? = nil, errorCount: Int? = nil, errorJobs: [String]? = nil, errorUrl: String? = nil, finishedCount: Int? = nil, finishedJobs: [String]? = nil, jobs: [String]? = nil, meta: CustomObjectMetaSchema? = nil, status: String? = nil, successCount: Int? = nil, totalJobs: Int? = nil, updatedAt: String? = nil, url: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.jobs = jobs
+
+ self.finishedJobs = finishedJobs
+
+ self.errorJobs = errorJobs
+
+ self.errorsOccured = errorsOccured
+
+ self.companyId = companyId
+
+ self.creator = creator
+
+ self.url = url
+
+ self.status = status
+
+ self.actionType = actionType
+
+ self.entity = entity
+
+ self.errorUrl = errorUrl
+
+ self.finishedCount = finishedCount
+
+ self.errorCount = errorCount
+
+ self.successCount = successCount
+
+ self.totalJobs = totalJobs
+
+ self.meta = meta
+
+ self.createdBy = createdBy
+
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ jobs = try container.decode([String].self, forKey: .jobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ finishedJobs = try container.decode([String].self, forKey: .finishedJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorJobs = try container.decode([String].self, forKey: .errorJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorsOccured = try container.decode([String].self, forKey: .errorsOccured)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ actionType = try container.decode(String.self, forKey: .actionType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ entity = try container.decode(String.self, forKey: .entity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorUrl = try container.decode(String.self, forKey: .errorUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ finishedCount = try container.decode(Int.self, forKey: .finishedCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorCount = try container.decode(Int.self, forKey: .errorCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ successCount = try container.decode(Int.self, forKey: .successCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalJobs = try container.decode(Int.self, forKey: .totalJobs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(CustomObjectMetaSchema.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(jobs, forKey: .jobs)
+
+
+
+
+ try? container.encodeIfPresent(finishedJobs, forKey: .finishedJobs)
+
+
+
+
+ try? container.encodeIfPresent(errorJobs, forKey: .errorJobs)
+
+
+
+
+ try? container.encodeIfPresent(errorsOccured, forKey: .errorsOccured)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(actionType, forKey: .actionType)
+
+
+
+
+ try? container.encodeIfPresent(entity, forKey: .entity)
+
+
+
+
+ try? container.encodeIfPresent(errorUrl, forKey: .errorUrl)
+
+
+
+
+ try? container.encodeIfPresent(finishedCount, forKey: .finishedCount)
+
+
+
+
+ try? container.encodeIfPresent(errorCount, forKey: .errorCount)
+
+
+
+
+ try? container.encodeIfPresent(successCount, forKey: .successCount)
+
+
+
+
+ try? container.encodeIfPresent(totalJobs, forKey: .totalJobs)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectListItemDefinationSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectListItemDefinationSchemaContentPlatformModel.swift
new file mode 100644
index 0000000000..8d3c0e1253
--- /dev/null
+++ b/Sources/code/platform/Models/Content/CustomObjectListItemDefinationSchemaContentPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: CustomObjectListItemDefinationSchema
+ Used By: Content
+ */
+
+ class CustomObjectListItemDefinationSchema: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case name = "name"
+
+ case type = "type"
+
+ }
+
+ public init(name: String? = nil, type: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: CustomObjectListItemDefinationSchema
+ Used By: Content
+ */
+
+ class CustomObjectListItemDefinationSchema: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var type: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case name = "name"
+
+ case type = "type"
+
+ }
+
+ public init(name: String? = nil, type: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/CustomObjectListItemDefinitionModelContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectListItemDefinitionModelContentPlatformModel.swift
deleted file mode 100644
index f7d624a798..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectListItemDefinitionModelContentPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectListItemDefinitionModel
- Used By: Content
- */
-
- class CustomObjectListItemDefinitionModel: Codable {
-
-
- public var id: String?
-
- public var name: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case name = "name"
-
- case type = "type"
-
- }
-
- public init(id: String? = nil, name: String? = nil, type: String? = nil) {
-
- self.id = id
-
- self.name = name
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectListItemDefinitionModel
- Used By: Content
- */
-
- class CustomObjectListItemDefinitionModel: Codable {
-
-
- public var id: String?
-
- public var name: String?
-
- public var type: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case name = "name"
-
- case type = "type"
-
- }
-
- public init(id: String? = nil, name: String? = nil, type: String? = nil) {
-
- self.id = id
-
- self.name = name
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectListItemSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectListItemSchemaContentPlatformModel.swift
index cd21885d78..8536e0d334 100644
--- a/Sources/code/platform/Models/Content/CustomObjectListItemSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectListItemSchemaContentPlatformModel.swift
@@ -14,26 +14,26 @@ public extension PlatformClient.Content {
public var id: String?
- public var status: String?
+ public var definitionId: String?
- public var createdAt: String?
+ public var status: String?
public var updatedAt: String?
public var displayName: String?
- public var definition: CustomObjectListItemDefinitionModel?
+ public var definition: CustomObjectListItemDefinationSchema?
public var references: Int?
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
- case status = "status"
+ case definitionId = "definition_id"
- case createdAt = "created_at"
+ case status = "status"
case updatedAt = "updated_at"
@@ -45,13 +45,13 @@ public extension PlatformClient.Content {
}
- public init(createdAt: String? = nil, definition: CustomObjectListItemDefinitionModel? = nil, displayName: String? = nil, id: String? = nil, references: Int? = nil, status: String? = nil, updatedAt: String? = nil) {
+ public init(definition: CustomObjectListItemDefinationSchema? = nil, definitionId: String? = nil, displayName: String? = nil, references: Int? = nil, status: String? = nil, updatedAt: String? = nil, id: String? = nil) {
self.id = id
- self.status = status
+ self.definitionId = definitionId
- self.createdAt = createdAt
+ self.status = status
self.updatedAt = updatedAt
@@ -80,7 +80,7 @@ public extension PlatformClient.Content {
do {
- status = try container.decode(String.self, forKey: .status)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -92,7 +92,7 @@ public extension PlatformClient.Content {
do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
+ status = try container.decode(String.self, forKey: .status)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -128,7 +128,7 @@ public extension PlatformClient.Content {
do {
- definition = try container.decode(CustomObjectListItemDefinitionModel.self, forKey: .definition)
+ definition = try container.decode(CustomObjectListItemDefinationSchema.self, forKey: .definition)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -162,12 +162,12 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(status, forKey: .status)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+ try? container.encodeIfPresent(status, forKey: .status)
@@ -208,26 +208,26 @@ public extension PlatformClient.ApplicationClient.Content {
public var id: String?
- public var status: String?
+ public var definitionId: String?
- public var createdAt: String?
+ public var status: String?
public var updatedAt: String?
public var displayName: String?
- public var definition: CustomObjectListItemDefinitionModel?
+ public var definition: CustomObjectListItemDefinationSchema?
public var references: Int?
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
- case status = "status"
+ case definitionId = "definition_id"
- case createdAt = "created_at"
+ case status = "status"
case updatedAt = "updated_at"
@@ -239,13 +239,13 @@ public extension PlatformClient.ApplicationClient.Content {
}
- public init(createdAt: String? = nil, definition: CustomObjectListItemDefinitionModel? = nil, displayName: String? = nil, id: String? = nil, references: Int? = nil, status: String? = nil, updatedAt: String? = nil) {
+ public init(definition: CustomObjectListItemDefinationSchema? = nil, definitionId: String? = nil, displayName: String? = nil, references: Int? = nil, status: String? = nil, updatedAt: String? = nil, id: String? = nil) {
self.id = id
- self.status = status
+ self.definitionId = definitionId
- self.createdAt = createdAt
+ self.status = status
self.updatedAt = updatedAt
@@ -274,7 +274,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- status = try container.decode(String.self, forKey: .status)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -286,7 +286,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
+ status = try container.decode(String.self, forKey: .status)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -322,7 +322,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- definition = try container.decode(CustomObjectListItemDefinitionModel.self, forKey: .definition)
+ definition = try container.decode(CustomObjectListItemDefinationSchema.self, forKey: .definition)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -356,12 +356,12 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(status, forKey: .status)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+ try? container.encodeIfPresent(status, forKey: .status)
diff --git a/Sources/code/platform/Models/Content/CustomObjectRequestSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectRequestSchemaContentPlatformModel.swift
index 277268fcc2..254d25e03c 100644
--- a/Sources/code/platform/Models/Content/CustomObjectRequestSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectRequestSchemaContentPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Content {
public var status: String?
- public var slug: String?
+ public var definitionId: String?
public var fields: [CustomObjectEntryFieldSchema]?
@@ -23,17 +23,17 @@ public extension PlatformClient.Content {
case status = "status"
- case slug = "slug"
+ case definitionId = "definition_id"
case fields = "fields"
}
- public init(fields: [CustomObjectEntryFieldSchema]? = nil, slug: String? = nil, status: String? = nil) {
+ public init(definitionId: String? = nil, fields: [CustomObjectEntryFieldSchema]? = nil, status: String? = nil) {
self.status = status
- self.slug = slug
+ self.definitionId = definitionId
self.fields = fields
@@ -56,7 +56,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -90,7 +90,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
@@ -116,7 +116,7 @@ public extension PlatformClient.ApplicationClient.Content {
public var status: String?
- public var slug: String?
+ public var definitionId: String?
public var fields: [CustomObjectEntryFieldSchema]?
@@ -125,17 +125,17 @@ public extension PlatformClient.ApplicationClient.Content {
case status = "status"
- case slug = "slug"
+ case definitionId = "definition_id"
case fields = "fields"
}
- public init(fields: [CustomObjectEntryFieldSchema]? = nil, slug: String? = nil, status: String? = nil) {
+ public init(definitionId: String? = nil, fields: [CustomObjectEntryFieldSchema]? = nil, status: String? = nil) {
self.status = status
- self.slug = slug
+ self.definitionId = definitionId
self.fields = fields
@@ -158,7 +158,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -192,7 +192,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
diff --git a/Sources/code/platform/Models/Content/CustomObjectRequestSchemaWithoutIdContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectRequestSchemaWithoutIdContentPlatformModel.swift
deleted file mode 100644
index 49c9b0be6b..0000000000
--- a/Sources/code/platform/Models/Content/CustomObjectRequestSchemaWithoutIdContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: CustomObjectRequestSchemaWithoutId
- Used By: Content
- */
-
- class CustomObjectRequestSchemaWithoutId: Codable {
-
-
- public var status: String?
-
- public var fields: [CustomObjectEntryFieldSchemaWithoutID]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case fields = "fields"
-
- }
-
- public init(fields: [CustomObjectEntryFieldSchemaWithoutID]? = nil, status: String? = nil) {
-
- self.status = status
-
- self.fields = fields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- fields = try container.decode([CustomObjectEntryFieldSchemaWithoutID].self, forKey: .fields)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(fields, forKey: .fields)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: CustomObjectRequestSchemaWithoutId
- Used By: Content
- */
-
- class CustomObjectRequestSchemaWithoutId: Codable {
-
-
- public var status: String?
-
- public var fields: [CustomObjectEntryFieldSchemaWithoutID]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case fields = "fields"
-
- }
-
- public init(fields: [CustomObjectEntryFieldSchemaWithoutID]? = nil, status: String? = nil) {
-
- self.status = status
-
- self.fields = fields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- fields = try container.decode([CustomObjectEntryFieldSchemaWithoutID].self, forKey: .fields)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(fields, forKey: .fields)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/CustomObjectSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/CustomObjectSchemaContentPlatformModel.swift
index e8753492bb..f8b9c74099 100644
--- a/Sources/code/platform/Models/Content/CustomObjectSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/CustomObjectSchemaContentPlatformModel.swift
@@ -14,57 +14,75 @@ public extension PlatformClient.Content {
public var id: String?
+ public var creator: String?
+
public var companyId: String?
public var applicationId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var status: String?
public var type: String?
- public var definitionSlug: String?
-
public var displayName: String?
+ public var definitionId: String?
+
public var fields: [CustomFieldSchema]?
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
+
+ case creator = "creator"
case companyId = "company_id"
case applicationId = "application_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case status = "status"
case type = "type"
- case definitionSlug = "definition_slug"
-
case displayName = "display_name"
+ case definitionId = "definition_id"
+
case fields = "fields"
}
- public init(applicationId: String? = nil, companyId: String? = nil, definitionSlug: String? = nil, displayName: String? = nil, fields: [CustomFieldSchema]? = nil, id: String? = nil, status: String? = nil, type: String? = nil) {
+ public init(applicationId: String? = nil, companyId: String? = nil, createdBy: String? = nil, creator: String? = nil, definitionId: String? = nil, displayName: String? = nil, fields: [CustomFieldSchema]? = nil, status: String? = nil, type: String? = nil, updatedBy: String? = nil, id: String? = nil) {
self.id = id
+ self.creator = creator
+
self.companyId = companyId
self.applicationId = applicationId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.status = status
self.type = type
- self.definitionSlug = definitionSlug
-
self.displayName = displayName
+ self.definitionId = definitionId
+
self.fields = fields
}
@@ -85,6 +103,18 @@ public extension PlatformClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
companyId = try container.decode(String.self, forKey: .companyId)
@@ -109,6 +139,30 @@ public extension PlatformClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
status = try container.decode(String.self, forKey: .status)
@@ -134,7 +188,7 @@ public extension PlatformClient.Content {
do {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
+ displayName = try container.decode(String.self, forKey: .displayName)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -146,7 +200,7 @@ public extension PlatformClient.Content {
do {
- displayName = try container.decode(String.self, forKey: .displayName)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -180,6 +234,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(companyId, forKey: .companyId)
@@ -190,6 +249,16 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(status, forKey: .status)
@@ -200,12 +269,12 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
- try? container.encodeIfPresent(displayName, forKey: .displayName)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
@@ -231,57 +300,75 @@ public extension PlatformClient.ApplicationClient.Content {
public var id: String?
+ public var creator: String?
+
public var companyId: String?
public var applicationId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var status: String?
public var type: String?
- public var definitionSlug: String?
-
public var displayName: String?
+ public var definitionId: String?
+
public var fields: [CustomFieldSchema]?
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
+
+ case creator = "creator"
case companyId = "company_id"
case applicationId = "application_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case status = "status"
case type = "type"
- case definitionSlug = "definition_slug"
-
case displayName = "display_name"
+ case definitionId = "definition_id"
+
case fields = "fields"
}
- public init(applicationId: String? = nil, companyId: String? = nil, definitionSlug: String? = nil, displayName: String? = nil, fields: [CustomFieldSchema]? = nil, id: String? = nil, status: String? = nil, type: String? = nil) {
+ public init(applicationId: String? = nil, companyId: String? = nil, createdBy: String? = nil, creator: String? = nil, definitionId: String? = nil, displayName: String? = nil, fields: [CustomFieldSchema]? = nil, status: String? = nil, type: String? = nil, updatedBy: String? = nil, id: String? = nil) {
self.id = id
+ self.creator = creator
+
self.companyId = companyId
self.applicationId = applicationId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.status = status
self.type = type
- self.definitionSlug = definitionSlug
-
self.displayName = displayName
+ self.definitionId = definitionId
+
self.fields = fields
}
@@ -302,6 +389,18 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
companyId = try container.decode(String.self, forKey: .companyId)
@@ -326,6 +425,30 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
status = try container.decode(String.self, forKey: .status)
@@ -351,7 +474,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- definitionSlug = try container.decode(String.self, forKey: .definitionSlug)
+ displayName = try container.decode(String.self, forKey: .displayName)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -363,7 +486,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- displayName = try container.decode(String.self, forKey: .displayName)
+ definitionId = try container.decode(String.self, forKey: .definitionId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -397,6 +520,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(companyId, forKey: .companyId)
@@ -407,6 +535,16 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(status, forKey: .status)
@@ -417,12 +555,12 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(definitionSlug, forKey: .definitionSlug)
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
- try? container.encodeIfPresent(displayName, forKey: .displayName)
+ try? container.encodeIfPresent(definitionId, forKey: .definitionId)
diff --git a/Sources/code/platform/Models/Content/DefaultNavigationDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/DefaultNavigationDetailsContentPlatformModel.swift
deleted file mode 100644
index 0bf92e9f31..0000000000
--- a/Sources/code/platform/Models/Content/DefaultNavigationDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: DefaultNavigationDetails
- Used By: Content
- */
-
- class DefaultNavigationDetails: Codable {
-
-
- public var items: [NavigationSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [NavigationSchema]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([NavigationSchema].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: DefaultNavigationDetails
- Used By: Content
- */
-
- class DefaultNavigationDetails: Codable {
-
-
- public var items: [NavigationSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [NavigationSchema]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([NavigationSchema].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/DefaultNavigationResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/DefaultNavigationResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..ccb3089fab
--- /dev/null
+++ b/Sources/code/platform/Models/Content/DefaultNavigationResponseContentPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: DefaultNavigationResponse
+ Used By: Content
+ */
+
+ class DefaultNavigationResponse: Codable {
+
+
+ public var items: [NavigationSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [NavigationSchema]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([NavigationSchema].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: DefaultNavigationResponse
+ Used By: Content
+ */
+
+ class DefaultNavigationResponse: Codable {
+
+
+ public var items: [NavigationSchema]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [NavigationSchema]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([NavigationSchema].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/DurationContentPlatformModel.swift b/Sources/code/platform/Models/Content/DurationContentPlatformModel.swift
deleted file mode 100644
index 33152635dc..0000000000
--- a/Sources/code/platform/Models/Content/DurationContentPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: Duration
- Used By: Content
- */
-
- class Duration: Codable {
-
-
- public var name: String?
-
- public var listEnabled: Bool?
-
- public var type: String?
-
- public var category: String?
-
- public var supportedValidations: [SupportedValidationsSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case listEnabled = "list_enabled"
-
- case type = "type"
-
- case category = "category"
-
- case supportedValidations = "supported_validations"
-
- }
-
- public init(category: String? = nil, listEnabled: Bool? = nil, name: String? = nil, supportedValidations: [SupportedValidationsSchema]? = nil, type: String? = nil) {
-
- self.name = name
-
- self.listEnabled = listEnabled
-
- self.type = type
-
- self.category = category
-
- self.supportedValidations = supportedValidations
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- listEnabled = try container.decode(Bool.self, forKey: .listEnabled)
-
- } 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 {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportedValidations = try container.decode([SupportedValidationsSchema].self, forKey: .supportedValidations)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(listEnabled, forKey: .listEnabled)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(supportedValidations, forKey: .supportedValidations)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: Duration
- Used By: Content
- */
-
- class Duration: Codable {
-
-
- public var name: String?
-
- public var listEnabled: Bool?
-
- public var type: String?
-
- public var category: String?
-
- public var supportedValidations: [SupportedValidationsSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case listEnabled = "list_enabled"
-
- case type = "type"
-
- case category = "category"
-
- case supportedValidations = "supported_validations"
-
- }
-
- public init(category: String? = nil, listEnabled: Bool? = nil, name: String? = nil, supportedValidations: [SupportedValidationsSchema]? = nil, type: String? = nil) {
-
- self.name = name
-
- self.listEnabled = listEnabled
-
- self.type = type
-
- self.category = category
-
- self.supportedValidations = supportedValidations
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- listEnabled = try container.decode(Bool.self, forKey: .listEnabled)
-
- } 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 {
- category = try container.decode(String.self, forKey: .category)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportedValidations = try container.decode([SupportedValidationsSchema].self, forKey: .supportedValidations)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(listEnabled, forKey: .listEnabled)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(supportedValidations, forKey: .supportedValidations)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/FieldDefinitionSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/FieldDefinitionSchemaContentPlatformModel.swift
index 33386458c0..c516431a02 100644
--- a/Sources/code/platform/Models/Content/FieldDefinitionSchemaContentPlatformModel.swift
+++ b/Sources/code/platform/Models/Content/FieldDefinitionSchemaContentPlatformModel.swift
@@ -14,13 +14,15 @@ public extension PlatformClient.Content {
public var id: String?
+ public var creator: String?
+
public var resource: String?
public var name: String?
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var description: String?
@@ -32,10 +34,18 @@ public extension PlatformClient.Content {
public var companyId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var required: Bool?
public var isDeleted: Bool?
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
public var typeName: String?
public var invalidFieldsCount: Int?
@@ -43,7 +53,9 @@ public extension PlatformClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
+
+ case creator = "creator"
case resource = "resource"
@@ -51,7 +63,7 @@ public extension PlatformClient.Content {
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case description = "description"
@@ -63,27 +75,37 @@ public extension PlatformClient.Content {
case companyId = "company_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case required = "required"
case isDeleted = "is_deleted"
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
case typeName = "type_name"
case invalidFieldsCount = "invalid_fields_count"
}
- public init(companyId: String? = nil, description: String? = nil, id: String? = nil, invalidFieldsCount: Int? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, typeName: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, invalidFieldsCount: Int? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, typeName: String? = nil, updatedAt: String? = nil, updatedBy: String? = nil, validations: [FieldValidations]? = nil, id: String? = nil) {
self.id = id
+ self.creator = creator
+
self.resource = resource
self.name = name
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.description = description
@@ -95,10 +117,18 @@ public extension PlatformClient.Content {
self.companyId = companyId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.required = required
self.isDeleted = isDeleted
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
self.typeName = typeName
self.invalidFieldsCount = invalidFieldsCount
@@ -121,6 +151,18 @@ public extension PlatformClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
resource = try container.decode(String.self, forKey: .resource)
@@ -158,7 +200,7 @@ public extension PlatformClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -229,6 +271,30 @@ public extension PlatformClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
required = try container.decode(Bool.self, forKey: .required)
@@ -253,6 +319,30 @@ public extension PlatformClient.Content {
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
typeName = try container.decode(String.self, forKey: .typeName)
@@ -288,6 +378,11 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(resource, forKey: .resource)
@@ -303,7 +398,7 @@ public extension PlatformClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -333,6 +428,16 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(required, forKey: .required)
@@ -343,6 +448,16 @@ public extension PlatformClient.Content {
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
try? container.encodeIfPresent(typeName, forKey: .typeName)
@@ -369,13 +484,15 @@ public extension PlatformClient.ApplicationClient.Content {
public var id: String?
+ public var creator: String?
+
public var resource: String?
public var name: String?
public var namespace: String?
- public var slug: String?
+ public var key: String?
public var description: String?
@@ -387,10 +504,18 @@ public extension PlatformClient.ApplicationClient.Content {
public var companyId: String?
+ public var createdBy: String?
+
+ public var updatedBy: String?
+
public var required: Bool?
public var isDeleted: Bool?
+ public var createdAt: String?
+
+ public var updatedAt: String?
+
public var typeName: String?
public var invalidFieldsCount: Int?
@@ -398,7 +523,9 @@ public extension PlatformClient.ApplicationClient.Content {
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case id = "_id"
+
+ case creator = "creator"
case resource = "resource"
@@ -406,7 +533,7 @@ public extension PlatformClient.ApplicationClient.Content {
case namespace = "namespace"
- case slug = "slug"
+ case key = "key"
case description = "description"
@@ -418,27 +545,37 @@ public extension PlatformClient.ApplicationClient.Content {
case companyId = "company_id"
+ case createdBy = "created_by"
+
+ case updatedBy = "updated_by"
+
case required = "required"
case isDeleted = "is_deleted"
+ case createdAt = "created_at"
+
+ case updatedAt = "updated_at"
+
case typeName = "type_name"
case invalidFieldsCount = "invalid_fields_count"
}
- public init(companyId: String? = nil, description: String? = nil, id: String? = nil, invalidFieldsCount: Int? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, typeName: String? = nil, validations: [FieldValidations]? = nil) {
+ public init(companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, creator: String? = nil, description: String? = nil, invalidFieldsCount: Int? = nil, isDeleted: Bool? = nil, key: String? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, type: String? = nil, typeName: String? = nil, updatedAt: String? = nil, updatedBy: String? = nil, validations: [FieldValidations]? = nil, id: String? = nil) {
self.id = id
+ self.creator = creator
+
self.resource = resource
self.name = name
self.namespace = namespace
- self.slug = slug
+ self.key = key
self.description = description
@@ -450,10 +587,18 @@ public extension PlatformClient.ApplicationClient.Content {
self.companyId = companyId
+ self.createdBy = createdBy
+
+ self.updatedBy = updatedBy
+
self.required = required
self.isDeleted = isDeleted
+ self.createdAt = createdAt
+
+ self.updatedAt = updatedAt
+
self.typeName = typeName
self.invalidFieldsCount = invalidFieldsCount
@@ -476,6 +621,18 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ creator = try container.decode(String.self, forKey: .creator)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
resource = try container.decode(String.self, forKey: .resource)
@@ -513,7 +670,7 @@ public extension PlatformClient.ApplicationClient.Content {
do {
- slug = try container.decode(String.self, forKey: .slug)
+ key = try container.decode(String.self, forKey: .key)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -584,6 +741,30 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ createdBy = try container.decode(String.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedBy = try container.decode(String.self, forKey: .updatedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
required = try container.decode(Bool.self, forKey: .required)
@@ -608,6 +789,30 @@ public extension PlatformClient.ApplicationClient.Content {
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
do {
typeName = try container.decode(String.self, forKey: .typeName)
@@ -643,6 +848,11 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(creator, forKey: .creator)
+
+
+
+
try? container.encodeIfPresent(resource, forKey: .resource)
@@ -658,7 +868,7 @@ public extension PlatformClient.ApplicationClient.Content {
- try? container.encodeIfPresent(slug, forKey: .slug)
+ try? container.encodeIfPresent(key, forKey: .key)
@@ -688,6 +898,16 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(updatedBy, forKey: .updatedBy)
+
+
+
+
try? container.encodeIfPresent(required, forKey: .required)
@@ -698,6 +918,16 @@ public extension PlatformClient.ApplicationClient.Content {
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
try? container.encodeIfPresent(typeName, forKey: .typeName)
diff --git a/Sources/code/platform/Models/Content/HTMLContentPlatformModel.swift b/Sources/code/platform/Models/Content/HTMLContentPlatformModel.swift
deleted file mode 100644
index 0187e35493..0000000000
--- a/Sources/code/platform/Models/Content/HTMLContentPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: HTML
- Used By: Content
- */
-
- class HTML: Codable {
-
-
- public var name: String?
-
- public var listEnabled: Bool?
-
- public var type: String?
-
- public var supportedValidations: [SupportedValidationsSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case listEnabled = "list_enabled"
-
- case type = "type"
-
- case supportedValidations = "supported_validations"
-
- }
-
- public init(listEnabled: Bool? = nil, name: String? = nil, supportedValidations: [SupportedValidationsSchema]? = nil, type: String? = nil) {
-
- self.name = name
-
- self.listEnabled = listEnabled
-
- self.type = type
-
- self.supportedValidations = supportedValidations
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- listEnabled = try container.decode(Bool.self, forKey: .listEnabled)
-
- } 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 {
- supportedValidations = try container.decode([SupportedValidationsSchema].self, forKey: .supportedValidations)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(listEnabled, forKey: .listEnabled)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(supportedValidations, forKey: .supportedValidations)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: HTML
- Used By: Content
- */
-
- class HTML: Codable {
-
-
- public var name: String?
-
- public var listEnabled: Bool?
-
- public var type: String?
-
- public var supportedValidations: [SupportedValidationsSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case listEnabled = "list_enabled"
-
- case type = "type"
-
- case supportedValidations = "supported_validations"
-
- }
-
- public init(listEnabled: Bool? = nil, name: String? = nil, supportedValidations: [SupportedValidationsSchema]? = nil, type: String? = nil) {
-
- self.name = name
-
- self.listEnabled = listEnabled
-
- self.type = type
-
- self.supportedValidations = supportedValidations
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- listEnabled = try container.decode(Bool.self, forKey: .listEnabled)
-
- } 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 {
- supportedValidations = try container.decode([SupportedValidationsSchema].self, forKey: .supportedValidations)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(listEnabled, forKey: .listEnabled)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(supportedValidations, forKey: .supportedValidations)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/JobSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/JobSchemaContentPlatformModel.swift
deleted file mode 100644
index 39a8df961f..0000000000
--- a/Sources/code/platform/Models/Content/JobSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,944 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: JobSchema
- Used By: Content
- */
-
- class JobSchema: Codable {
-
-
- public var id: String?
-
- public var jobs: [String]?
-
- public var finishedJobs: [String]?
-
- public var errorJobs: [String]?
-
- public var errorsOccured: [String]?
-
- public var companyId: String?
-
- public var status: String?
-
- public var actionType: String?
-
- public var entity: String?
-
- public var errorUrl: String?
-
- public var finishedCount: Int?
-
- public var errorCount: Int?
-
- public var successCount: Int?
-
- public var totalJobs: Int?
-
- public var meta: CustomObjectMetaSchema?
-
- public var createdBy: String?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
- public var applicationId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case jobs = "jobs"
-
- case finishedJobs = "finished_jobs"
-
- case errorJobs = "error_jobs"
-
- case errorsOccured = "errors_occured"
-
- case companyId = "company_id"
-
- case status = "status"
-
- case actionType = "action_type"
-
- case entity = "entity"
-
- case errorUrl = "error_url"
-
- case finishedCount = "finished_count"
-
- case errorCount = "error_count"
-
- case successCount = "success_count"
-
- case totalJobs = "total_jobs"
-
- case meta = "meta"
-
- case createdBy = "created_by"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- case applicationId = "application_id"
-
- }
-
- public init(actionType: String? = nil, applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, entity: String? = nil, errorsOccured: [String]? = nil, errorCount: Int? = nil, errorJobs: [String]? = nil, errorUrl: String? = nil, finishedCount: Int? = nil, finishedJobs: [String]? = nil, id: String? = nil, jobs: [String]? = nil, meta: CustomObjectMetaSchema? = nil, status: String? = nil, successCount: Int? = nil, totalJobs: Int? = nil, updatedAt: String? = nil) {
-
- self.id = id
-
- self.jobs = jobs
-
- self.finishedJobs = finishedJobs
-
- self.errorJobs = errorJobs
-
- self.errorsOccured = errorsOccured
-
- self.companyId = companyId
-
- self.status = status
-
- self.actionType = actionType
-
- self.entity = entity
-
- self.errorUrl = errorUrl
-
- self.finishedCount = finishedCount
-
- self.errorCount = errorCount
-
- self.successCount = successCount
-
- self.totalJobs = totalJobs
-
- self.meta = meta
-
- self.createdBy = createdBy
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- self.applicationId = applicationId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- jobs = try container.decode([String].self, forKey: .jobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- finishedJobs = try container.decode([String].self, forKey: .finishedJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorJobs = try container.decode([String].self, forKey: .errorJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorsOccured = try container.decode([String].self, forKey: .errorsOccured)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- actionType = try container.decode(String.self, forKey: .actionType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- entity = try container.decode(String.self, forKey: .entity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorUrl = try container.decode(String.self, forKey: .errorUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- finishedCount = try container.decode(Int.self, forKey: .finishedCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorCount = try container.decode(Int.self, forKey: .errorCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- successCount = try container.decode(Int.self, forKey: .successCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalJobs = try container.decode(Int.self, forKey: .totalJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(CustomObjectMetaSchema.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(String.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(jobs, forKey: .jobs)
-
-
-
-
- try? container.encodeIfPresent(finishedJobs, forKey: .finishedJobs)
-
-
-
-
- try? container.encodeIfPresent(errorJobs, forKey: .errorJobs)
-
-
-
-
- try? container.encodeIfPresent(errorsOccured, forKey: .errorsOccured)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(actionType, forKey: .actionType)
-
-
-
-
- try? container.encodeIfPresent(entity, forKey: .entity)
-
-
-
-
- try? container.encodeIfPresent(errorUrl, forKey: .errorUrl)
-
-
-
-
- try? container.encodeIfPresent(finishedCount, forKey: .finishedCount)
-
-
-
-
- try? container.encodeIfPresent(errorCount, forKey: .errorCount)
-
-
-
-
- try? container.encodeIfPresent(successCount, forKey: .successCount)
-
-
-
-
- try? container.encodeIfPresent(totalJobs, forKey: .totalJobs)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: JobSchema
- Used By: Content
- */
-
- class JobSchema: Codable {
-
-
- public var id: String?
-
- public var jobs: [String]?
-
- public var finishedJobs: [String]?
-
- public var errorJobs: [String]?
-
- public var errorsOccured: [String]?
-
- public var companyId: String?
-
- public var status: String?
-
- public var actionType: String?
-
- public var entity: String?
-
- public var errorUrl: String?
-
- public var finishedCount: Int?
-
- public var errorCount: Int?
-
- public var successCount: Int?
-
- public var totalJobs: Int?
-
- public var meta: CustomObjectMetaSchema?
-
- public var createdBy: String?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
- public var applicationId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case jobs = "jobs"
-
- case finishedJobs = "finished_jobs"
-
- case errorJobs = "error_jobs"
-
- case errorsOccured = "errors_occured"
-
- case companyId = "company_id"
-
- case status = "status"
-
- case actionType = "action_type"
-
- case entity = "entity"
-
- case errorUrl = "error_url"
-
- case finishedCount = "finished_count"
-
- case errorCount = "error_count"
-
- case successCount = "success_count"
-
- case totalJobs = "total_jobs"
-
- case meta = "meta"
-
- case createdBy = "created_by"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- case applicationId = "application_id"
-
- }
-
- public init(actionType: String? = nil, applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, createdBy: String? = nil, entity: String? = nil, errorsOccured: [String]? = nil, errorCount: Int? = nil, errorJobs: [String]? = nil, errorUrl: String? = nil, finishedCount: Int? = nil, finishedJobs: [String]? = nil, id: String? = nil, jobs: [String]? = nil, meta: CustomObjectMetaSchema? = nil, status: String? = nil, successCount: Int? = nil, totalJobs: Int? = nil, updatedAt: String? = nil) {
-
- self.id = id
-
- self.jobs = jobs
-
- self.finishedJobs = finishedJobs
-
- self.errorJobs = errorJobs
-
- self.errorsOccured = errorsOccured
-
- self.companyId = companyId
-
- self.status = status
-
- self.actionType = actionType
-
- self.entity = entity
-
- self.errorUrl = errorUrl
-
- self.finishedCount = finishedCount
-
- self.errorCount = errorCount
-
- self.successCount = successCount
-
- self.totalJobs = totalJobs
-
- self.meta = meta
-
- self.createdBy = createdBy
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- self.applicationId = applicationId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- jobs = try container.decode([String].self, forKey: .jobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- finishedJobs = try container.decode([String].self, forKey: .finishedJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorJobs = try container.decode([String].self, forKey: .errorJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorsOccured = try container.decode([String].self, forKey: .errorsOccured)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- actionType = try container.decode(String.self, forKey: .actionType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- entity = try container.decode(String.self, forKey: .entity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorUrl = try container.decode(String.self, forKey: .errorUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- finishedCount = try container.decode(Int.self, forKey: .finishedCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- errorCount = try container.decode(Int.self, forKey: .errorCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- successCount = try container.decode(Int.self, forKey: .successCount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalJobs = try container.decode(Int.self, forKey: .totalJobs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(CustomObjectMetaSchema.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdBy = try container.decode(String.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(jobs, forKey: .jobs)
-
-
-
-
- try? container.encodeIfPresent(finishedJobs, forKey: .finishedJobs)
-
-
-
-
- try? container.encodeIfPresent(errorJobs, forKey: .errorJobs)
-
-
-
-
- try? container.encodeIfPresent(errorsOccured, forKey: .errorsOccured)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(actionType, forKey: .actionType)
-
-
-
-
- try? container.encodeIfPresent(entity, forKey: .entity)
-
-
-
-
- try? container.encodeIfPresent(errorUrl, forKey: .errorUrl)
-
-
-
-
- try? container.encodeIfPresent(finishedCount, forKey: .finishedCount)
-
-
-
-
- try? container.encodeIfPresent(errorCount, forKey: .errorCount)
-
-
-
-
- try? container.encodeIfPresent(successCount, forKey: .successCount)
-
-
-
-
- try? container.encodeIfPresent(totalJobs, forKey: .totalJobs)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/LandingPageGetDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/LandingPageGetDetailsContentPlatformModel.swift
deleted file mode 100644
index c6675a21c5..0000000000
--- a/Sources/code/platform/Models/Content/LandingPageGetDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: LandingPageGetDetails
- Used By: Content
- */
-
- class LandingPageGetDetails: Codable {
-
-
- public var items: [LandingPageSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [LandingPageSchema]? = nil, page: Page? = nil) {
-
- 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([LandingPageSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: LandingPageGetDetails
- Used By: Content
- */
-
- class LandingPageGetDetails: Codable {
-
-
- public var items: [LandingPageSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [LandingPageSchema]? = nil, page: Page? = nil) {
-
- 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([LandingPageSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/LandingPageGetResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/LandingPageGetResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..d1a830a1f6
--- /dev/null
+++ b/Sources/code/platform/Models/Content/LandingPageGetResponseContentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: LandingPageGetResponse
+ Used By: Content
+ */
+
+ class LandingPageGetResponse: Codable {
+
+
+ public var items: [LandingPageSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [LandingPageSchema]? = nil, page: Page? = nil) {
+
+ 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([LandingPageSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: LandingPageGetResponse
+ Used By: Content
+ */
+
+ class LandingPageGetResponse: Codable {
+
+
+ public var items: [LandingPageSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [LandingPageSchema]? = nil, page: Page? = nil) {
+
+ 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([LandingPageSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/MetaFieldDefinitionDetailResSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/MetaFieldDefinitionDetailResSchemaContentPlatformModel.swift
deleted file mode 100644
index 7f8a2bee41..0000000000
--- a/Sources/code/platform/Models/Content/MetaFieldDefinitionDetailResSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,760 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: MetaFieldDefinitionDetailResSchema
- Used By: Content
- */
-
- class MetaFieldDefinitionDetailResSchema: Codable {
-
-
- public var resource: String?
-
- public var name: String?
-
- public var namespace: String?
-
- public var slug: String?
-
- public var description: String?
-
- public var type: String?
-
- public var multiValue: Bool?
-
- public var companyId: String?
-
- public var applicationId: String?
-
- public var required: Bool?
-
- public var isDeleted: Bool?
-
- public var id: String?
-
- public var validations: [[String: Any]]?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case resource = "resource"
-
- case name = "name"
-
- case namespace = "namespace"
-
- case slug = "slug"
-
- case description = "description"
-
- case type = "type"
-
- case multiValue = "multi_value"
-
- case companyId = "company_id"
-
- case applicationId = "application_id"
-
- case required = "required"
-
- case isDeleted = "is_deleted"
-
- case id = "id"
-
- case validations = "validations"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- }
-
- public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, description: String? = nil, id: String? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [[String: Any]]? = nil) {
-
- self.resource = resource
-
- self.name = name
-
- self.namespace = namespace
-
- self.slug = slug
-
- self.description = description
-
- self.type = type
-
- self.multiValue = multiValue
-
- self.companyId = companyId
-
- self.applicationId = applicationId
-
- self.required = required
-
- self.isDeleted = isDeleted
-
- self.id = id
-
- self.validations = validations
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- resource = try container.decode(String.self, forKey: .resource)
-
- } 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 {
-
- }
-
-
-
- do {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } 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 {
- 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 {
- 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 {
- 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 {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- required = try container.decode(Bool.self, forKey: .required)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- validations = try container.decode([[String: Any]].self, forKey: .validations)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } 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(resource, forKey: .resource)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(multiValue, forKey: .multiValue)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(required, forKey: .required)
-
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(validations, forKey: .validations)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: MetaFieldDefinitionDetailResSchema
- Used By: Content
- */
-
- class MetaFieldDefinitionDetailResSchema: Codable {
-
-
- public var resource: String?
-
- public var name: String?
-
- public var namespace: String?
-
- public var slug: String?
-
- public var description: String?
-
- public var type: String?
-
- public var multiValue: Bool?
-
- public var companyId: String?
-
- public var applicationId: String?
-
- public var required: Bool?
-
- public var isDeleted: Bool?
-
- public var id: String?
-
- public var validations: [[String: Any]]?
-
- public var createdAt: String?
-
- public var updatedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case resource = "resource"
-
- case name = "name"
-
- case namespace = "namespace"
-
- case slug = "slug"
-
- case description = "description"
-
- case type = "type"
-
- case multiValue = "multi_value"
-
- case companyId = "company_id"
-
- case applicationId = "application_id"
-
- case required = "required"
-
- case isDeleted = "is_deleted"
-
- case id = "id"
-
- case validations = "validations"
-
- case createdAt = "created_at"
-
- case updatedAt = "updated_at"
-
- }
-
- public init(applicationId: String? = nil, companyId: String? = nil, createdAt: String? = nil, description: String? = nil, id: String? = nil, isDeleted: Bool? = nil, multiValue: Bool? = nil, name: String? = nil, namespace: String? = nil, required: Bool? = nil, resource: String? = nil, slug: String? = nil, type: String? = nil, updatedAt: String? = nil, validations: [[String: Any]]? = nil) {
-
- self.resource = resource
-
- self.name = name
-
- self.namespace = namespace
-
- self.slug = slug
-
- self.description = description
-
- self.type = type
-
- self.multiValue = multiValue
-
- self.companyId = companyId
-
- self.applicationId = applicationId
-
- self.required = required
-
- self.isDeleted = isDeleted
-
- self.id = id
-
- self.validations = validations
-
- self.createdAt = createdAt
-
- self.updatedAt = updatedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- resource = try container.decode(String.self, forKey: .resource)
-
- } 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 {
-
- }
-
-
-
- do {
- namespace = try container.decode(String.self, forKey: .namespace)
-
- } 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 {
- 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 {
- 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 {
- 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 {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- required = try container.decode(Bool.self, forKey: .required)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- validations = try container.decode([[String: Any]].self, forKey: .validations)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } 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(resource, forKey: .resource)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(multiValue, forKey: .multiValue)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(required, forKey: .required)
-
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(validations, forKey: .validations)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/MetafieldTypesSchemaContentPlatformModel.swift b/Sources/code/platform/Models/Content/MetafieldTypesSchemaContentPlatformModel.swift
deleted file mode 100644
index ad30177fb1..0000000000
--- a/Sources/code/platform/Models/Content/MetafieldTypesSchemaContentPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: MetafieldTypesSchema
- Used By: Content
- */
-
- class MetafieldTypesSchema: Codable {
-
-
- public var metafieldTypes: CustomFieldTypeSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case metafieldTypes = "metafield_types"
-
- }
-
- public init(metafieldTypes: CustomFieldTypeSchema? = nil) {
-
- self.metafieldTypes = metafieldTypes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- metafieldTypes = try container.decode(CustomFieldTypeSchema.self, forKey: .metafieldTypes)
-
- } 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(metafieldTypes, forKey: .metafieldTypes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: MetafieldTypesSchema
- Used By: Content
- */
-
- class MetafieldTypesSchema: Codable {
-
-
- public var metafieldTypes: CustomFieldTypeSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case metafieldTypes = "metafield_types"
-
- }
-
- public init(metafieldTypes: CustomFieldTypeSchema? = nil) {
-
- self.metafieldTypes = metafieldTypes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- metafieldTypes = try container.decode(CustomFieldTypeSchema.self, forKey: .metafieldTypes)
-
- } 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(metafieldTypes, forKey: .metafieldTypes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/NavigationGetDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/NavigationGetDetailsContentPlatformModel.swift
deleted file mode 100644
index 740376b890..0000000000
--- a/Sources/code/platform/Models/Content/NavigationGetDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: NavigationGetDetails
- Used By: Content
- */
-
- class NavigationGetDetails: Codable {
-
-
- public var items: [NavigationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
-
- 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([NavigationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: NavigationGetDetails
- Used By: Content
- */
-
- class NavigationGetDetails: Codable {
-
-
- public var items: [NavigationSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
-
- 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([NavigationSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/NavigationGetResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/NavigationGetResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..bd47927773
--- /dev/null
+++ b/Sources/code/platform/Models/Content/NavigationGetResponseContentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: NavigationGetResponse
+ Used By: Content
+ */
+
+ class NavigationGetResponse: Codable {
+
+
+ public var items: [NavigationSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
+
+ 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([NavigationSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: NavigationGetResponse
+ Used By: Content
+ */
+
+ class NavigationGetResponse: Codable {
+
+
+ public var items: [NavigationSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [NavigationSchema]? = nil, page: Page? = nil) {
+
+ 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([NavigationSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/NavigationPayloadContentPlatformModel.swift b/Sources/code/platform/Models/Content/NavigationPayloadContentPlatformModel.swift
deleted file mode 100644
index 2410fb0320..0000000000
--- a/Sources/code/platform/Models/Content/NavigationPayloadContentPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: NavigationPayload
- Used By: Content
- */
-
- class NavigationPayload: Codable {
-
-
- public var name: String?
-
- public var slug: String?
-
- public var platform: [String]?
-
- public var orientation: Orientation?
-
- public var navigation: [NavigationReference]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case slug = "slug"
-
- case platform = "platform"
-
- case orientation = "orientation"
-
- case navigation = "navigation"
-
- }
-
- public init(name: String? = nil, navigation: [NavigationReference]? = nil, orientation: Orientation? = nil, platform: [String]? = nil, slug: String? = nil) {
-
- self.name = name
-
- self.slug = slug
-
- self.platform = platform
-
- self.orientation = orientation
-
- self.navigation = navigation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- platform = try container.decode([String].self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orientation = try container.decode(Orientation.self, forKey: .orientation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- navigation = try container.decode([NavigationReference].self, forKey: .navigation)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(orientation, forKey: .orientation)
-
-
-
-
- try? container.encodeIfPresent(navigation, forKey: .navigation)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: NavigationPayload
- Used By: Content
- */
-
- class NavigationPayload: Codable {
-
-
- public var name: String?
-
- public var slug: String?
-
- public var platform: [String]?
-
- public var orientation: Orientation?
-
- public var navigation: [NavigationReference]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case slug = "slug"
-
- case platform = "platform"
-
- case orientation = "orientation"
-
- case navigation = "navigation"
-
- }
-
- public init(name: String? = nil, navigation: [NavigationReference]? = nil, orientation: Orientation? = nil, platform: [String]? = nil, slug: String? = nil) {
-
- self.name = name
-
- self.slug = slug
-
- self.platform = platform
-
- self.orientation = orientation
-
- self.navigation = navigation
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- platform = try container.decode([String].self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orientation = try container.decode(Orientation.self, forKey: .orientation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- navigation = try container.decode([NavigationReference].self, forKey: .navigation)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(orientation, forKey: .orientation)
-
-
-
-
- try? container.encodeIfPresent(navigation, forKey: .navigation)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/NavigationRequestContentPlatformModel.swift b/Sources/code/platform/Models/Content/NavigationRequestContentPlatformModel.swift
new file mode 100644
index 0000000000..7dd2b75504
--- /dev/null
+++ b/Sources/code/platform/Models/Content/NavigationRequestContentPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: NavigationRequest
+ Used By: Content
+ */
+
+ class NavigationRequest: Codable {
+
+
+ public var name: String?
+
+ public var slug: String?
+
+ public var platform: [String]?
+
+ public var orientation: Orientation?
+
+ public var navigation: [NavigationReference]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case slug = "slug"
+
+ case platform = "platform"
+
+ case orientation = "orientation"
+
+ case navigation = "navigation"
+
+ }
+
+ public init(name: String? = nil, navigation: [NavigationReference]? = nil, orientation: Orientation? = nil, platform: [String]? = nil, slug: String? = nil) {
+
+ self.name = name
+
+ self.slug = slug
+
+ self.platform = platform
+
+ self.orientation = orientation
+
+ self.navigation = navigation
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ platform = try container.decode([String].self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orientation = try container.decode(Orientation.self, forKey: .orientation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ navigation = try container.decode([NavigationReference].self, forKey: .navigation)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(orientation, forKey: .orientation)
+
+
+
+
+ try? container.encodeIfPresent(navigation, forKey: .navigation)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: NavigationRequest
+ Used By: Content
+ */
+
+ class NavigationRequest: Codable {
+
+
+ public var name: String?
+
+ public var slug: String?
+
+ public var platform: [String]?
+
+ public var orientation: Orientation?
+
+ public var navigation: [NavigationReference]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case slug = "slug"
+
+ case platform = "platform"
+
+ case orientation = "orientation"
+
+ case navigation = "navigation"
+
+ }
+
+ public init(name: String? = nil, navigation: [NavigationReference]? = nil, orientation: Orientation? = nil, platform: [String]? = nil, slug: String? = nil) {
+
+ self.name = name
+
+ self.slug = slug
+
+ self.platform = platform
+
+ self.orientation = orientation
+
+ self.navigation = navigation
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ platform = try container.decode([String].self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orientation = try container.decode(Orientation.self, forKey: .orientation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ navigation = try container.decode([NavigationReference].self, forKey: .navigation)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(orientation, forKey: .orientation)
+
+
+
+
+ try? container.encodeIfPresent(navigation, forKey: .navigation)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/PageGetDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/PageGetDetailsContentPlatformModel.swift
deleted file mode 100644
index d12592e0e5..0000000000
--- a/Sources/code/platform/Models/Content/PageGetDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: PageGetDetails
- Used By: Content
- */
-
- class PageGetDetails: Codable {
-
-
- public var items: [PageSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PageSchema]? = nil, page: Page? = nil) {
-
- 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([PageSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: PageGetDetails
- Used By: Content
- */
-
- class PageGetDetails: Codable {
-
-
- public var items: [PageSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [PageSchema]? = nil, page: Page? = nil) {
-
- 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([PageSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/PageGetResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/PageGetResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..7b20f15abc
--- /dev/null
+++ b/Sources/code/platform/Models/Content/PageGetResponseContentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: PageGetResponse
+ Used By: Content
+ */
+
+ class PageGetResponse: Codable {
+
+
+ public var items: [PageSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PageSchema]? = nil, page: Page? = nil) {
+
+ 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([PageSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: PageGetResponse
+ Used By: Content
+ */
+
+ class PageGetResponse: Codable {
+
+
+ public var items: [PageSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PageSchema]? = nil, page: Page? = nil) {
+
+ 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([PageSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/PagePayloadContentPlatformModel.swift b/Sources/code/platform/Models/Content/PagePayloadContentPlatformModel.swift
deleted file mode 100644
index 095e2d3b4c..0000000000
--- a/Sources/code/platform/Models/Content/PagePayloadContentPlatformModel.swift
+++ /dev/null
@@ -1,668 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: PagePayload
- Used By: Content
- */
-
- class PagePayload: Codable {
-
-
- public var schedule: CronSchedule?
-
- public var application: String?
-
- public var author: Author?
-
- public var customJson: [String: Any]?
-
- public var orientation: String?
-
- public var content: [[String: Any]]?
-
- public var featureImage: Asset?
-
- public var published: Bool?
-
- public var readingTime: String?
-
- public var slug: String?
-
- public var tags: [String]?
-
- public var seo: SEO?
-
- public var title: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case schedule = "_schedule"
-
- case application = "application"
-
- case author = "author"
-
- case customJson = "_custom_json"
-
- case orientation = "orientation"
-
- case content = "content"
-
- case featureImage = "feature_image"
-
- case published = "published"
-
- case readingTime = "reading_time"
-
- case slug = "slug"
-
- case tags = "tags"
-
- case seo = "seo"
-
- case title = "title"
-
- }
-
- public init(application: String? = nil, author: Author? = nil, content: [[String: Any]]? = nil, featureImage: Asset? = nil, orientation: String? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil, schedule: CronSchedule? = nil) {
-
- self.schedule = schedule
-
- self.application = application
-
- self.author = author
-
- self.customJson = customJson
-
- self.orientation = orientation
-
- self.content = content
-
- self.featureImage = featureImage
-
- self.published = published
-
- self.readingTime = readingTime
-
- self.slug = slug
-
- self.tags = tags
-
- self.seo = seo
-
- self.title = title
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- schedule = try container.decode(CronSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- author = try container.decode(Author.self, forKey: .author)
-
- } 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 {
- orientation = try container.decode(String.self, forKey: .orientation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- content = try container.decode([[String: Any]].self, forKey: .content)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- featureImage = try container.decode(Asset.self, forKey: .featureImage)
-
- } 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 {
-
- }
-
-
-
- do {
- readingTime = try container.decode(String.self, forKey: .readingTime)
-
- } 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 {
- 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 {
- seo = try container.decode(SEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(orientation, forKey: .orientation)
-
-
-
-
- try? container.encodeIfPresent(content, forKey: .content)
-
-
-
-
- try? container.encodeIfPresent(featureImage, forKey: .featureImage)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(readingTime, forKey: .readingTime)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: PagePayload
- Used By: Content
- */
-
- class PagePayload: Codable {
-
-
- public var schedule: CronSchedule?
-
- public var application: String?
-
- public var author: Author?
-
- public var customJson: [String: Any]?
-
- public var orientation: String?
-
- public var content: [[String: Any]]?
-
- public var featureImage: Asset?
-
- public var published: Bool?
-
- public var readingTime: String?
-
- public var slug: String?
-
- public var tags: [String]?
-
- public var seo: SEO?
-
- public var title: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case schedule = "_schedule"
-
- case application = "application"
-
- case author = "author"
-
- case customJson = "_custom_json"
-
- case orientation = "orientation"
-
- case content = "content"
-
- case featureImage = "feature_image"
-
- case published = "published"
-
- case readingTime = "reading_time"
-
- case slug = "slug"
-
- case tags = "tags"
-
- case seo = "seo"
-
- case title = "title"
-
- }
-
- public init(application: String? = nil, author: Author? = nil, content: [[String: Any]]? = nil, featureImage: Asset? = nil, orientation: String? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil, schedule: CronSchedule? = nil) {
-
- self.schedule = schedule
-
- self.application = application
-
- self.author = author
-
- self.customJson = customJson
-
- self.orientation = orientation
-
- self.content = content
-
- self.featureImage = featureImage
-
- self.published = published
-
- self.readingTime = readingTime
-
- self.slug = slug
-
- self.tags = tags
-
- self.seo = seo
-
- self.title = title
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- schedule = try container.decode(CronSchedule.self, forKey: .schedule)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- application = try container.decode(String.self, forKey: .application)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- author = try container.decode(Author.self, forKey: .author)
-
- } 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 {
- orientation = try container.decode(String.self, forKey: .orientation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- content = try container.decode([[String: Any]].self, forKey: .content)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- featureImage = try container.decode(Asset.self, forKey: .featureImage)
-
- } 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 {
-
- }
-
-
-
- do {
- readingTime = try container.decode(String.self, forKey: .readingTime)
-
- } 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 {
- 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 {
- seo = try container.decode(SEO.self, forKey: .seo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(schedule, forKey: .schedule)
-
-
-
-
- try? container.encodeIfPresent(application, forKey: .application)
-
-
-
-
- try? container.encodeIfPresent(author, forKey: .author)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(orientation, forKey: .orientation)
-
-
-
-
- try? container.encodeIfPresent(content, forKey: .content)
-
-
-
-
- try? container.encodeIfPresent(featureImage, forKey: .featureImage)
-
-
-
-
- try? container.encodeIfPresent(published, forKey: .published)
-
-
-
-
- try? container.encodeIfPresent(readingTime, forKey: .readingTime)
-
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(seo, forKey: .seo)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/PagePublishPayloadContentPlatformModel.swift b/Sources/code/platform/Models/Content/PagePublishPayloadContentPlatformModel.swift
deleted file mode 100644
index 53cc80e461..0000000000
--- a/Sources/code/platform/Models/Content/PagePublishPayloadContentPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: PagePublishPayload
- Used By: Content
- */
-
- class PagePublishPayload: Codable {
-
-
- public var publish: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case publish = "publish"
-
- }
-
- public init(publish: Bool? = nil) {
-
- self.publish = publish
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- publish = try container.decode(Bool.self, forKey: .publish)
-
- } 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(publish, forKey: .publish)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: PagePublishPayload
- Used By: Content
- */
-
- class PagePublishPayload: Codable {
-
-
- public var publish: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case publish = "publish"
-
- }
-
- public init(publish: Bool? = nil) {
-
- self.publish = publish
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- publish = try container.decode(Bool.self, forKey: .publish)
-
- } 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(publish, forKey: .publish)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/PagePublishRequestContentPlatformModel.swift b/Sources/code/platform/Models/Content/PagePublishRequestContentPlatformModel.swift
new file mode 100644
index 0000000000..e8efa7a283
--- /dev/null
+++ b/Sources/code/platform/Models/Content/PagePublishRequestContentPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: PagePublishRequest
+ Used By: Content
+ */
+
+ class PagePublishRequest: Codable {
+
+
+ public var publish: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case publish = "publish"
+
+ }
+
+ public init(publish: Bool? = nil) {
+
+ self.publish = publish
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ publish = try container.decode(Bool.self, forKey: .publish)
+
+ } 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(publish, forKey: .publish)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: PagePublishRequest
+ Used By: Content
+ */
+
+ class PagePublishRequest: Codable {
+
+
+ public var publish: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case publish = "publish"
+
+ }
+
+ public init(publish: Bool? = nil) {
+
+ self.publish = publish
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ publish = try container.decode(Bool.self, forKey: .publish)
+
+ } 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(publish, forKey: .publish)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/PageRequestContentPlatformModel.swift b/Sources/code/platform/Models/Content/PageRequestContentPlatformModel.swift
new file mode 100644
index 0000000000..7383831be8
--- /dev/null
+++ b/Sources/code/platform/Models/Content/PageRequestContentPlatformModel.swift
@@ -0,0 +1,668 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: PageRequest
+ Used By: Content
+ */
+
+ class PageRequest: Codable {
+
+
+ public var schedule: CronSchedule?
+
+ public var application: String?
+
+ public var author: Author?
+
+ public var customJson: [String: Any]?
+
+ public var orientation: String?
+
+ public var content: [[String: Any]]?
+
+ public var featureImage: Asset?
+
+ public var published: Bool?
+
+ public var readingTime: String?
+
+ public var slug: String?
+
+ public var tags: [String]?
+
+ public var seo: SEO?
+
+ public var title: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case schedule = "_schedule"
+
+ case application = "application"
+
+ case author = "author"
+
+ case customJson = "_custom_json"
+
+ case orientation = "orientation"
+
+ case content = "content"
+
+ case featureImage = "feature_image"
+
+ case published = "published"
+
+ case readingTime = "reading_time"
+
+ case slug = "slug"
+
+ case tags = "tags"
+
+ case seo = "seo"
+
+ case title = "title"
+
+ }
+
+ public init(application: String? = nil, author: Author? = nil, content: [[String: Any]]? = nil, featureImage: Asset? = nil, orientation: String? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil, schedule: CronSchedule? = nil) {
+
+ self.schedule = schedule
+
+ self.application = application
+
+ self.author = author
+
+ self.customJson = customJson
+
+ self.orientation = orientation
+
+ self.content = content
+
+ self.featureImage = featureImage
+
+ self.published = published
+
+ self.readingTime = readingTime
+
+ self.slug = slug
+
+ self.tags = tags
+
+ self.seo = seo
+
+ self.title = title
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ schedule = try container.decode(CronSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ author = try container.decode(Author.self, forKey: .author)
+
+ } 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 {
+ orientation = try container.decode(String.self, forKey: .orientation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ content = try container.decode([[String: Any]].self, forKey: .content)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ featureImage = try container.decode(Asset.self, forKey: .featureImage)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ readingTime = try container.decode(String.self, forKey: .readingTime)
+
+ } 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 {
+ 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 {
+ seo = try container.decode(SEO.self, forKey: .seo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(author, forKey: .author)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(orientation, forKey: .orientation)
+
+
+
+
+ try? container.encodeIfPresent(content, forKey: .content)
+
+
+
+
+ try? container.encodeIfPresent(featureImage, forKey: .featureImage)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(readingTime, forKey: .readingTime)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: PageRequest
+ Used By: Content
+ */
+
+ class PageRequest: Codable {
+
+
+ public var schedule: CronSchedule?
+
+ public var application: String?
+
+ public var author: Author?
+
+ public var customJson: [String: Any]?
+
+ public var orientation: String?
+
+ public var content: [[String: Any]]?
+
+ public var featureImage: Asset?
+
+ public var published: Bool?
+
+ public var readingTime: String?
+
+ public var slug: String?
+
+ public var tags: [String]?
+
+ public var seo: SEO?
+
+ public var title: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case schedule = "_schedule"
+
+ case application = "application"
+
+ case author = "author"
+
+ case customJson = "_custom_json"
+
+ case orientation = "orientation"
+
+ case content = "content"
+
+ case featureImage = "feature_image"
+
+ case published = "published"
+
+ case readingTime = "reading_time"
+
+ case slug = "slug"
+
+ case tags = "tags"
+
+ case seo = "seo"
+
+ case title = "title"
+
+ }
+
+ public init(application: String? = nil, author: Author? = nil, content: [[String: Any]]? = nil, featureImage: Asset? = nil, orientation: String? = nil, published: Bool? = nil, readingTime: String? = nil, seo: SEO? = nil, slug: String? = nil, tags: [String]? = nil, title: String? = nil, customJson: [String: Any]? = nil, schedule: CronSchedule? = nil) {
+
+ self.schedule = schedule
+
+ self.application = application
+
+ self.author = author
+
+ self.customJson = customJson
+
+ self.orientation = orientation
+
+ self.content = content
+
+ self.featureImage = featureImage
+
+ self.published = published
+
+ self.readingTime = readingTime
+
+ self.slug = slug
+
+ self.tags = tags
+
+ self.seo = seo
+
+ self.title = title
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ schedule = try container.decode(CronSchedule.self, forKey: .schedule)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ application = try container.decode(String.self, forKey: .application)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ author = try container.decode(Author.self, forKey: .author)
+
+ } 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 {
+ orientation = try container.decode(String.self, forKey: .orientation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ content = try container.decode([[String: Any]].self, forKey: .content)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ featureImage = try container.decode(Asset.self, forKey: .featureImage)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ readingTime = try container.decode(String.self, forKey: .readingTime)
+
+ } 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 {
+ 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 {
+ seo = try container.decode(SEO.self, forKey: .seo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(schedule, forKey: .schedule)
+
+
+
+
+ try? container.encodeIfPresent(application, forKey: .application)
+
+
+
+
+ try? container.encodeIfPresent(author, forKey: .author)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(orientation, forKey: .orientation)
+
+
+
+
+ try? container.encodeIfPresent(content, forKey: .content)
+
+
+
+
+ try? container.encodeIfPresent(featureImage, forKey: .featureImage)
+
+
+
+
+ try? container.encodeIfPresent(published, forKey: .published)
+
+
+
+
+ try? container.encodeIfPresent(readingTime, forKey: .readingTime)
+
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(seo, forKey: .seo)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/SlideshowGetDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/SlideshowGetDetailsContentPlatformModel.swift
deleted file mode 100644
index 48ce9cd0b8..0000000000
--- a/Sources/code/platform/Models/Content/SlideshowGetDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: SlideshowGetDetails
- Used By: Content
- */
-
- class SlideshowGetDetails: Codable {
-
-
- public var items: [SlideshowSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
-
- 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([SlideshowSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: SlideshowGetDetails
- Used By: Content
- */
-
- class SlideshowGetDetails: Codable {
-
-
- public var items: [SlideshowSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
-
- 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([SlideshowSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/SlideshowGetResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/SlideshowGetResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..a8db2bb2c9
--- /dev/null
+++ b/Sources/code/platform/Models/Content/SlideshowGetResponseContentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: SlideshowGetResponse
+ Used By: Content
+ */
+
+ class SlideshowGetResponse: Codable {
+
+
+ public var items: [SlideshowSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
+
+ 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([SlideshowSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: SlideshowGetResponse
+ Used By: Content
+ */
+
+ class SlideshowGetResponse: Codable {
+
+
+ public var items: [SlideshowSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [SlideshowSchema]? = nil, page: Page? = nil) {
+
+ 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([SlideshowSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/SlideshowPayloadContentPlatformModel.swift b/Sources/code/platform/Models/Content/SlideshowPayloadContentPlatformModel.swift
deleted file mode 100644
index 950d9e764d..0000000000
--- a/Sources/code/platform/Models/Content/SlideshowPayloadContentPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: SlideshowPayload
- Used By: Content
- */
-
- class SlideshowPayload: Codable {
-
-
- public var slug: String?
-
- public var platform: String?
-
- public var configuration: ConfigurationSchema?
-
- public var media: SlideshowMedia?
-
- public var active: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case platform = "platform"
-
- case configuration = "configuration"
-
- case media = "media"
-
- case active = "active"
-
- }
-
- public init(active: Bool? = nil, configuration: ConfigurationSchema? = nil, media: SlideshowMedia? = nil, platform: String? = nil, slug: String? = nil) {
-
- self.slug = slug
-
- self.platform = platform
-
- self.configuration = configuration
-
- self.media = media
-
- self.active = active
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ConfigurationSchema.self, forKey: .configuration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- media = try container.decode(SlideshowMedia.self, forKey: .media)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(media, forKey: .media)
-
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: SlideshowPayload
- Used By: Content
- */
-
- class SlideshowPayload: Codable {
-
-
- public var slug: String?
-
- public var platform: String?
-
- public var configuration: ConfigurationSchema?
-
- public var media: SlideshowMedia?
-
- public var active: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case platform = "platform"
-
- case configuration = "configuration"
-
- case media = "media"
-
- case active = "active"
-
- }
-
- public init(active: Bool? = nil, configuration: ConfigurationSchema? = nil, media: SlideshowMedia? = nil, platform: String? = nil, slug: String? = nil) {
-
- self.slug = slug
-
- self.platform = platform
-
- self.configuration = configuration
-
- self.media = media
-
- self.active = active
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- platform = try container.decode(String.self, forKey: .platform)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- configuration = try container.decode(ConfigurationSchema.self, forKey: .configuration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- media = try container.decode(SlideshowMedia.self, forKey: .media)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(platform, forKey: .platform)
-
-
-
-
- try? container.encodeIfPresent(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(media, forKey: .media)
-
-
-
-
- try? container.encodeIfPresent(active, forKey: .active)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/SlideshowRequestContentPlatformModel.swift b/Sources/code/platform/Models/Content/SlideshowRequestContentPlatformModel.swift
new file mode 100644
index 0000000000..5c6f2fb075
--- /dev/null
+++ b/Sources/code/platform/Models/Content/SlideshowRequestContentPlatformModel.swift
@@ -0,0 +1,300 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: SlideshowRequest
+ Used By: Content
+ */
+
+ class SlideshowRequest: Codable {
+
+
+ public var slug: String?
+
+ public var platform: String?
+
+ public var configuration: ConfigurationSchema?
+
+ public var media: SlideshowMedia?
+
+ public var active: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case slug = "slug"
+
+ case platform = "platform"
+
+ case configuration = "configuration"
+
+ case media = "media"
+
+ case active = "active"
+
+ }
+
+ public init(active: Bool? = nil, configuration: ConfigurationSchema? = nil, media: SlideshowMedia? = nil, platform: String? = nil, slug: String? = nil) {
+
+ self.slug = slug
+
+ self.platform = platform
+
+ self.configuration = configuration
+
+ self.media = media
+
+ self.active = active
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ConfigurationSchema.self, forKey: .configuration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ media = try container.decode(SlideshowMedia.self, forKey: .media)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(media, forKey: .media)
+
+
+
+
+ try? container.encodeIfPresent(active, forKey: .active)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: SlideshowRequest
+ Used By: Content
+ */
+
+ class SlideshowRequest: Codable {
+
+
+ public var slug: String?
+
+ public var platform: String?
+
+ public var configuration: ConfigurationSchema?
+
+ public var media: SlideshowMedia?
+
+ public var active: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case slug = "slug"
+
+ case platform = "platform"
+
+ case configuration = "configuration"
+
+ case media = "media"
+
+ case active = "active"
+
+ }
+
+ public init(active: Bool? = nil, configuration: ConfigurationSchema? = nil, media: SlideshowMedia? = nil, platform: String? = nil, slug: String? = nil) {
+
+ self.slug = slug
+
+ self.platform = platform
+
+ self.configuration = configuration
+
+ self.media = media
+
+ self.active = active
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configuration = try container.decode(ConfigurationSchema.self, forKey: .configuration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ media = try container.decode(SlideshowMedia.self, forKey: .media)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(slug, forKey: .slug)
+
+
+
+
+ try? container.encodeIfPresent(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(media, forKey: .media)
+
+
+
+
+ try? container.encodeIfPresent(active, forKey: .active)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/TagDeleteSuccessDetailsContentPlatformModel.swift b/Sources/code/platform/Models/Content/TagDeleteSuccessDetailsContentPlatformModel.swift
deleted file mode 100644
index 910862636a..0000000000
--- a/Sources/code/platform/Models/Content/TagDeleteSuccessDetailsContentPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: TagDeleteSuccessDetails
- Used By: Content
- */
-
- class TagDeleteSuccessDetails: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: TagDeleteSuccessDetails
- Used By: Content
- */
-
- class TagDeleteSuccessDetails: Codable {
-
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool? = nil) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Content/TagDeleteSuccessResponseContentPlatformModel.swift b/Sources/code/platform/Models/Content/TagDeleteSuccessResponseContentPlatformModel.swift
new file mode 100644
index 0000000000..b74b7d2f4c
--- /dev/null
+++ b/Sources/code/platform/Models/Content/TagDeleteSuccessResponseContentPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Content {
+ /*
+ Model: TagDeleteSuccessResponse
+ Used By: Content
+ */
+
+ class TagDeleteSuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Content {
+ /*
+ Model: TagDeleteSuccessResponse
+ Used By: Content
+ */
+
+ class TagDeleteSuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool? = nil) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Content/ValidationErrorContentPlatformModel.swift b/Sources/code/platform/Models/Content/ValidationErrorContentPlatformModel.swift
deleted file mode 100644
index 17afd588ac..0000000000
--- a/Sources/code/platform/Models/Content/ValidationErrorContentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Content {
- /*
- Model: ValidationError
- Used By: Content
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Content {
- /*
- Model: ValidationError
- Used By: Content
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Discount/CancelJobResponseDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/CancelJobResponseDiscountPlatformModel.swift
new file mode 100644
index 0000000000..5488f51bdc
--- /dev/null
+++ b/Sources/code/platform/Models/Discount/CancelJobResponseDiscountPlatformModel.swift
@@ -0,0 +1,55 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Discount {
+ /*
+ Model: CancelJobResponse
+ Used By: Discount
+ */
+
+ class CancelJobResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Discount/CancelJobResponseSchemaDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/CancelJobResponseSchemaDiscountPlatformModel.swift
deleted file mode 100644
index 86e8903e38..0000000000
--- a/Sources/code/platform/Models/Discount/CancelJobResponseSchemaDiscountPlatformModel.swift
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Discount {
- /*
- Model: CancelJobResponseSchema
- Used By: Discount
- */
-
- class CancelJobResponseSchema: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Discount/FileJobRequestDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/FileJobRequestDiscountPlatformModel.swift
new file mode 100644
index 0000000000..e4fb81ff7f
--- /dev/null
+++ b/Sources/code/platform/Models/Discount/FileJobRequestDiscountPlatformModel.swift
@@ -0,0 +1,287 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Discount {
+ /*
+ Model: FileJobRequest
+ Used By: Discount
+ */
+
+ class FileJobRequest: Codable {
+
+
+ public var name: String
+
+ public var isActive: Bool
+
+ public var companyId: Int
+
+ public var appIds: [String]?
+
+ public var jobType: String?
+
+ public var discountType: String?
+
+ public var discountLevel: String?
+
+ public var filePath: String?
+
+ public var brandIds: [Int]?
+
+ public var storeIds: [Int]?
+
+ public var validity: ValidityObject
+
+ public var meta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case isActive = "is_active"
+
+ case companyId = "company_id"
+
+ case appIds = "app_ids"
+
+ case jobType = "job_type"
+
+ case discountType = "discount_type"
+
+ case discountLevel = "discount_level"
+
+ case filePath = "file_path"
+
+ case brandIds = "brand_ids"
+
+ case storeIds = "store_ids"
+
+ case validity = "validity"
+
+ case meta = "meta"
+
+ }
+
+ public init(appIds: [String]? = nil, brandIds: [Int]? = nil, companyId: Int, discountLevel: String? = nil, discountType: String? = nil, filePath: String? = nil, isActive: Bool, jobType: String? = nil, meta: [String: Any]? = nil, name: String, storeIds: [Int]? = nil, validity: ValidityObject) {
+
+ self.name = name
+
+ self.isActive = isActive
+
+ self.companyId = companyId
+
+ self.appIds = appIds
+
+ self.jobType = jobType
+
+ self.discountType = discountType
+
+ self.discountLevel = discountLevel
+
+ self.filePath = filePath
+
+ self.brandIds = brandIds
+
+ self.storeIds = storeIds
+
+ self.validity = validity
+
+ self.meta = meta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ appIds = try container.decode([String].self, forKey: .appIds)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ jobType = try container.decode(String.self, forKey: .jobType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ discountType = try container.decode(String.self, forKey: .discountType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ discountLevel = try container.decode(String.self, forKey: .discountLevel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ validity = try container.decode(ValidityObject.self, forKey: .validity)
+
+
+
+
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(appIds, forKey: .appIds)
+
+
+
+
+ try? container.encodeIfPresent(jobType, forKey: .jobType)
+
+
+
+
+ try? container.encodeIfPresent(discountType, forKey: .discountType)
+
+
+
+
+ try? container.encodeIfPresent(discountLevel, forKey: .discountLevel)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(brandIds, forKey: .brandIds)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(validity, forKey: .validity)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Discount/FileJobRequestSchemaDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/FileJobRequestSchemaDiscountPlatformModel.swift
deleted file mode 100644
index cddd05671b..0000000000
--- a/Sources/code/platform/Models/Discount/FileJobRequestSchemaDiscountPlatformModel.swift
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Discount {
- /*
- Model: FileJobRequestSchema
- Used By: Discount
- */
-
- class FileJobRequestSchema: Codable {
-
-
- public var name: String
-
- public var isActive: Bool
-
- public var companyId: Int
-
- public var appIds: [String]?
-
- public var jobType: String?
-
- public var discountType: String?
-
- public var discountLevel: String?
-
- public var filePath: String?
-
- public var brandIds: [Int]?
-
- public var storeIds: [Int]?
-
- public var validity: ValidityObject
-
- public var meta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case isActive = "is_active"
-
- case companyId = "company_id"
-
- case appIds = "app_ids"
-
- case jobType = "job_type"
-
- case discountType = "discount_type"
-
- case discountLevel = "discount_level"
-
- case filePath = "file_path"
-
- case brandIds = "brand_ids"
-
- case storeIds = "store_ids"
-
- case validity = "validity"
-
- case meta = "meta"
-
- }
-
- public init(appIds: [String]? = nil, brandIds: [Int]? = nil, companyId: Int, discountLevel: String? = nil, discountType: String? = nil, filePath: String? = nil, isActive: Bool, jobType: String? = nil, meta: [String: Any]? = nil, name: String, storeIds: [Int]? = nil, validity: ValidityObject) {
-
- self.name = name
-
- self.isActive = isActive
-
- self.companyId = companyId
-
- self.appIds = appIds
-
- self.jobType = jobType
-
- self.discountType = discountType
-
- self.discountLevel = discountLevel
-
- self.filePath = filePath
-
- self.brandIds = brandIds
-
- self.storeIds = storeIds
-
- self.validity = validity
-
- self.meta = meta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- appIds = try container.decode([String].self, forKey: .appIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- jobType = try container.decode(String.self, forKey: .jobType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountType = try container.decode(String.self, forKey: .discountType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discountLevel = try container.decode(String.self, forKey: .discountLevel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- validity = try container.decode(ValidityObject.self, forKey: .validity)
-
-
-
-
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(appIds, forKey: .appIds)
-
-
-
-
- try? container.encodeIfPresent(jobType, forKey: .jobType)
-
-
-
-
- try? container.encodeIfPresent(discountType, forKey: .discountType)
-
-
-
-
- try? container.encodeIfPresent(discountLevel, forKey: .discountLevel)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(brandIds, forKey: .brandIds)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(validity, forKey: .validity)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/Discount/FileJobResponseDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/FileJobResponseDiscountPlatformModel.swift
new file mode 100644
index 0000000000..58483e9240
--- /dev/null
+++ b/Sources/code/platform/Models/Discount/FileJobResponseDiscountPlatformModel.swift
@@ -0,0 +1,342 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Discount {
+ /*
+ Model: FileJobResponse
+ Used By: Discount
+ */
+
+ class FileJobResponse: Codable {
+
+
+ public var stage: String
+
+ public var total: Int
+
+ public var failed: Int
+
+ public var companyId: Int
+
+ public var body: FileJobBody?
+
+ public var type: String
+
+ public var fileType: String?
+
+ public var id: String
+
+ public var filePath: String?
+
+ public var progress: Int?
+
+ public var extensionIds: [String]?
+
+ public var zoneIds: [String]?
+
+ public var createdOn: String?
+
+ public var modifiedOn: String?
+
+ public var createdBy: UserDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case stage = "stage"
+
+ case total = "total"
+
+ case failed = "failed"
+
+ case companyId = "company_id"
+
+ case body = "body"
+
+ case type = "type"
+
+ case fileType = "file_type"
+
+ case id = "_id"
+
+ case filePath = "file_path"
+
+ case progress = "progress"
+
+ case extensionIds = "extension_ids"
+
+ case zoneIds = "zone_ids"
+
+ case createdOn = "created_on"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ }
+
+ public init(body: FileJobBody? = nil, companyId: Int, createdBy: UserDetails? = nil, createdOn: String? = nil, extensionIds: [String]? = nil, failed: Int, filePath: String? = nil, fileType: String? = nil, modifiedOn: String? = nil, progress: Int? = nil, stage: String, total: Int, type: String, zoneIds: [String]? = nil, id: String) {
+
+ self.stage = stage
+
+ self.total = total
+
+ self.failed = failed
+
+ self.companyId = companyId
+
+ self.body = body
+
+ self.type = type
+
+ self.fileType = fileType
+
+ self.id = id
+
+ self.filePath = filePath
+
+ self.progress = progress
+
+ self.extensionIds = extensionIds
+
+ self.zoneIds = zoneIds
+
+ self.createdOn = createdOn
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ stage = try container.decode(String.self, forKey: .stage)
+
+
+
+
+ total = try container.decode(Int.self, forKey: .total)
+
+
+
+
+ failed = try container.decode(Int.self, forKey: .failed)
+
+
+
+
+ companyId = try container.decode(Int.self, forKey: .companyId)
+
+
+
+
+ do {
+ body = try container.decode(FileJobBody.self, forKey: .body)
+
+ } 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 {
+ fileType = try container.decode(String.self, forKey: .fileType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ progress = try container.decode(Int.self, forKey: .progress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extensionIds = try container.decode([String].self, forKey: .extensionIds)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ zoneIds = try container.decode([String].self, forKey: .zoneIds)
+
+ } 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 {
+ 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 {
+ createdBy = try container.decode(UserDetails.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)
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+
+
+ try? container.encodeIfPresent(failed, forKey: .failed)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(body, forKey: .body)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(fileType, forKey: .fileType)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(progress, forKey: .progress)
+
+
+
+
+ try? container.encodeIfPresent(extensionIds, forKey: .extensionIds)
+
+
+
+
+ try? container.encodeIfPresent(zoneIds, forKey: .zoneIds)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Discount/FileJobResponseSchemaDiscountPlatformModel.swift b/Sources/code/platform/Models/Discount/FileJobResponseSchemaDiscountPlatformModel.swift
deleted file mode 100644
index e76603840c..0000000000
--- a/Sources/code/platform/Models/Discount/FileJobResponseSchemaDiscountPlatformModel.swift
+++ /dev/null
@@ -1,342 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Discount {
- /*
- Model: FileJobResponseSchema
- Used By: Discount
- */
-
- class FileJobResponseSchema: Codable {
-
-
- public var stage: String
-
- public var total: Int
-
- public var failed: Int
-
- public var companyId: Int
-
- public var body: FileJobBody?
-
- public var type: String
-
- public var fileType: String?
-
- public var id: String
-
- public var filePath: String?
-
- public var progress: Int?
-
- public var extensionIds: [String]?
-
- public var zoneIds: [String]?
-
- public var createdOn: String?
-
- public var modifiedOn: String?
-
- public var createdBy: UserDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case stage = "stage"
-
- case total = "total"
-
- case failed = "failed"
-
- case companyId = "company_id"
-
- case body = "body"
-
- case type = "type"
-
- case fileType = "file_type"
-
- case id = "_id"
-
- case filePath = "file_path"
-
- case progress = "progress"
-
- case extensionIds = "extension_ids"
-
- case zoneIds = "zone_ids"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- }
-
- public init(body: FileJobBody? = nil, companyId: Int, createdBy: UserDetails? = nil, createdOn: String? = nil, extensionIds: [String]? = nil, failed: Int, filePath: String? = nil, fileType: String? = nil, modifiedOn: String? = nil, progress: Int? = nil, stage: String, total: Int, type: String, zoneIds: [String]? = nil, id: String) {
-
- self.stage = stage
-
- self.total = total
-
- self.failed = failed
-
- self.companyId = companyId
-
- self.body = body
-
- self.type = type
-
- self.fileType = fileType
-
- self.id = id
-
- self.filePath = filePath
-
- self.progress = progress
-
- self.extensionIds = extensionIds
-
- self.zoneIds = zoneIds
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- total = try container.decode(Int.self, forKey: .total)
-
-
-
-
- failed = try container.decode(Int.self, forKey: .failed)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- body = try container.decode(FileJobBody.self, forKey: .body)
-
- } 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 {
- fileType = try container.decode(String.self, forKey: .fileType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- progress = try container.decode(Int.self, forKey: .progress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- extensionIds = try container.decode([String].self, forKey: .extensionIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- zoneIds = try container.decode([String].self, forKey: .zoneIds)
-
- } 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 {
- 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 {
- createdBy = try container.decode(UserDetails.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)
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
-
-
- try? container.encodeIfPresent(failed, forKey: .failed)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(body, forKey: .body)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(fileType, forKey: .fileType)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(progress, forKey: .progress)
-
-
-
-
- try? container.encodeIfPresent(extensionIds, forKey: .extensionIds)
-
-
-
-
- try? container.encodeIfPresent(zoneIds, forKey: .zoneIds)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
-
-
-
-
diff --git a/Sources/code/platform/Models/FileStorage/CompleteResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/CompleteResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..4b8ffd1853
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/CompleteResponseFileStoragePlatformModel.swift
@@ -0,0 +1,578 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: CompleteResponse
+ Used By: FileStorage
+ */
+
+ class CompleteResponse: Codable {
+
+
+ public var id: String
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var companyId: Double
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var success: Bool
+
+ public var tags: [String]?
+
+ public var createdOn: String
+
+ public var modifiedOn: String
+
+ public var createdBy: CreatedBy?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case companyId = "company_id"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case success = "success"
+
+ case tags = "tags"
+
+ case createdOn = "created_on"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ }
+
+ public init(cdn: CDN, companyId: Double, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
+
+ self.id = id
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.companyId = companyId
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.success = success
+
+ self.tags = tags
+
+ self.createdOn = createdOn
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ companyId = try container.decode(Double.self, forKey: .companyId)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.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)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: CompleteResponse
+ Used By: FileStorage
+ */
+
+ class CompleteResponse: Codable {
+
+
+ public var id: String
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var companyId: Double
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var success: Bool
+
+ public var tags: [String]?
+
+ public var createdOn: String
+
+ public var modifiedOn: String
+
+ public var createdBy: CreatedBy?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case companyId = "company_id"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case success = "success"
+
+ case tags = "tags"
+
+ case createdOn = "created_on"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ }
+
+ public init(cdn: CDN, companyId: Double, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
+
+ self.id = id
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.companyId = companyId
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.success = success
+
+ self.tags = tags
+
+ self.createdOn = createdOn
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ companyId = try container.decode(Double.self, forKey: .companyId)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+
+
+
+
+ do {
+ createdBy = try container.decode(CreatedBy.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)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/CreateTemplateFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/CreateTemplateFileStoragePlatformModel.swift
deleted file mode 100644
index 28818d10ba..0000000000
--- a/Sources/code/platform/Models/FileStorage/CreateTemplateFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: CreateTemplate
- Used By: FileStorage
- */
-
- class CreateTemplate: Codable {
-
-
- public var pdfTypeId: Int
-
- public var format: String
-
- public var countryCode: String
-
- public var template: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case countryCode = "country_code"
-
- case template = "template"
-
- }
-
- public init(countryCode: String, format: String, pdfTypeId: Int, template: String? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.countryCode = countryCode
-
- self.template = template
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
-
-
-
- format = try container.decode(String.self, forKey: .format)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: CreateTemplate
- Used By: FileStorage
- */
-
- class CreateTemplate: Codable {
-
-
- public var pdfTypeId: Int
-
- public var format: String
-
- public var countryCode: String
-
- public var template: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case countryCode = "country_code"
-
- case template = "template"
-
- }
-
- public init(countryCode: String, format: String, pdfTypeId: Int, template: String? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.countryCode = countryCode
-
- self.template = template
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
-
-
-
- format = try container.decode(String.self, forKey: .format)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/DeleteMapperByIdFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/DeleteMapperByIdFileStoragePlatformModel.swift
deleted file mode 100644
index b3723b4e34..0000000000
--- a/Sources/code/platform/Models/FileStorage/DeleteMapperByIdFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: DeleteMapperById
- Used By: FileStorage
- */
-
- class DeleteMapperById: Codable {
-
-
- public var message: String?
-
- public var defaultTemplate: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case defaultTemplate = "default_template"
-
- }
-
- public init(defaultTemplate: Bool? = nil, message: String? = nil) {
-
- self.message = message
-
- self.defaultTemplate = defaultTemplate
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- defaultTemplate = try container.decode(Bool.self, forKey: .defaultTemplate)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(defaultTemplate, forKey: .defaultTemplate)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: DeleteMapperById
- Used By: FileStorage
- */
-
- class DeleteMapperById: Codable {
-
-
- public var message: String?
-
- public var defaultTemplate: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case defaultTemplate = "default_template"
-
- }
-
- public init(defaultTemplate: Bool? = nil, message: String? = nil) {
-
- self.message = message
-
- self.defaultTemplate = defaultTemplate
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- defaultTemplate = try container.decode(Bool.self, forKey: .defaultTemplate)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(defaultTemplate, forKey: .defaultTemplate)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/DummyTemplateDataFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/DummyTemplateDataFileStoragePlatformModel.swift
index 56937a6224..97dffac955 100644
--- a/Sources/code/platform/Models/FileStorage/DummyTemplateDataFileStoragePlatformModel.swift
+++ b/Sources/code/platform/Models/FileStorage/DummyTemplateDataFileStoragePlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.FileStorage {
public var pdfTypeId: Double?
- public var payload: PdfPayloadDetails
+ public var payload: DummyTemplateDataPayload
public var countryCode: String?
@@ -37,7 +37,7 @@ public extension PlatformClient.FileStorage {
}
- public init(countryCode: String? = nil, payload: PdfPayloadDetails, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
+ public init(countryCode: String? = nil, payload: DummyTemplateDataPayload, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
self.id = id
@@ -79,7 +79,7 @@ public extension PlatformClient.FileStorage {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
+ payload = try container.decode(DummyTemplateDataPayload.self, forKey: .payload)
@@ -157,7 +157,7 @@ public extension PlatformClient.ApplicationClient.FileStorage {
public var pdfTypeId: Double?
- public var payload: PdfPayloadDetails
+ public var payload: DummyTemplateDataPayload
public var countryCode: String?
@@ -178,7 +178,7 @@ public extension PlatformClient.ApplicationClient.FileStorage {
}
- public init(countryCode: String? = nil, payload: PdfPayloadDetails, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
+ public init(countryCode: String? = nil, payload: DummyTemplateDataPayload, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
self.id = id
@@ -220,7 +220,7 @@ public extension PlatformClient.ApplicationClient.FileStorage {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
+ payload = try container.decode(DummyTemplateDataPayload.self, forKey: .payload)
diff --git a/Sources/code/platform/Models/FileStorage/DummyTemplateDataItemsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/DummyTemplateDataItemsFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..49ea5bbf66
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/DummyTemplateDataItemsFileStoragePlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: DummyTemplateDataItems
+ Used By: FileStorage
+ */
+
+ class DummyTemplateDataItems: Codable {
+
+
+ public var data: [DummyTemplateData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [DummyTemplateData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([DummyTemplateData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: DummyTemplateDataItems
+ Used By: FileStorage
+ */
+
+ class DummyTemplateDataItems: Codable {
+
+
+ public var data: [DummyTemplateData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [DummyTemplateData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([DummyTemplateData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/DummyTemplateDataPayloadFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/DummyTemplateDataPayloadFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..2d29300b4c
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/DummyTemplateDataPayloadFileStoragePlatformModel.swift
@@ -0,0 +1,2232 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: DummyTemplateDataPayload
+ Used By: FileStorage
+ */
+
+ class DummyTemplateDataPayload: Codable {
+
+
+ public var isExport: Bool?
+
+ public var isExportShipment: Bool?
+
+ public var appDomainName: String?
+
+ public var txnId: String?
+
+ public var utr: String?
+
+ public var poNumber: String?
+
+ public var creditNoteId: String?
+
+ public var currentDate: String?
+
+ public var totalValueOfGoods: Double?
+
+ public var b2BBuyerDetails: [String: Any]?
+
+ public var isQwik: [String: Any]?
+
+ public var orderType: String?
+
+ public var conversionRate: ConversionRate?
+
+ public var currencyCode: String?
+
+ public var shipmentId: String?
+
+ public var deliveryPartnerDetail: DeliveryPartnerDetail?
+
+ public var image: Image?
+
+ public var payments: [PaymentData]?
+
+ public var invoiceDetail: InvoiceDetail?
+
+ public var companyDetail: CompanyDetail?
+
+ public var storeDetail: StoreDetail?
+
+ public var customerBillingDetail: CustomerBillingDetail?
+
+ public var customerShippingDetail: CustomerShippingDetail?
+
+ public var returnDetail: ReturnDetail?
+
+ public var productTable: ProductTable?
+
+ public var taxTable: TaxTable?
+
+ public var declarationTexts: [String]?
+
+ public var registeredCompanyDetail: RegisteredCompanyDetail?
+
+ public var disclaimer: String?
+
+ public var meta: Meta?
+
+ public var isSelfShip: Bool?
+
+ public var mode: String?
+
+ public var isSelfPickup: Bool?
+
+ public var shipmentMeta: [String: Any]?
+
+ public var orderMeta: [String: Any]?
+
+ public var platformName: String?
+
+ public var amountToBeCollected: Double?
+
+ public var amountPaid: Double?
+
+ public var waybills: [[String: Any]]?
+
+ public var totalItems: Double?
+
+ public var brandLogo: String?
+
+ public var shipmentIdBarcode: String?
+
+ public var signedQrcode: String?
+
+ public var upiQrcode: String?
+
+ public var digitalsignature: String?
+
+ public var awbNumberBarcode: String?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isExport = "is_export"
+
+ case isExportShipment = "is_export_shipment"
+
+ case appDomainName = "app_domain_name"
+
+ case txnId = "txn_id"
+
+ case utr = "utr"
+
+ case poNumber = "po_number"
+
+ case creditNoteId = "credit_note_id"
+
+ case currentDate = "current_date"
+
+ case totalValueOfGoods = "total_value_of_goods"
+
+ case b2BBuyerDetails = "b2b_buyer_details"
+
+ case isQwik = "is_qwik"
+
+ case orderType = "order_type"
+
+ case conversionRate = "conversion_rate"
+
+ case currencyCode = "currency_code"
+
+ case shipmentId = "shipment_id"
+
+ case deliveryPartnerDetail = "delivery_partner_detail"
+
+ case image = "image"
+
+ case payments = "payments"
+
+ case invoiceDetail = "invoice_detail"
+
+ case companyDetail = "company_detail"
+
+ case storeDetail = "store_detail"
+
+ case customerBillingDetail = "customer_billing_detail"
+
+ case customerShippingDetail = "customer_shipping_detail"
+
+ case returnDetail = "return_detail"
+
+ case productTable = "product_table"
+
+ case taxTable = "tax_table"
+
+ case declarationTexts = "declaration_texts"
+
+ case registeredCompanyDetail = "registered_company_detail"
+
+ case disclaimer = "disclaimer"
+
+ case meta = "meta"
+
+ case isSelfShip = "is_self_ship"
+
+ case mode = "mode"
+
+ case isSelfPickup = "is_self_pickup"
+
+ case shipmentMeta = "shipment_meta"
+
+ case orderMeta = "order_meta"
+
+ case platformName = "platform_name"
+
+ case amountToBeCollected = "amount_to_be_collected"
+
+ case amountPaid = "amount_paid"
+
+ case waybills = "waybills"
+
+ case totalItems = "total_items"
+
+ case brandLogo = "brand_logo"
+
+ case shipmentIdBarcode = "shipment_id_barcode"
+
+ case signedQrcode = "signed_qrcode"
+
+ case upiQrcode = "upi_qrcode"
+
+ case digitalsignature = "digitalsignature"
+
+ case awbNumberBarcode = "awb_number_barcode"
+
+ case uid = "uid"
+
+ }
+
+ public init(amountPaid: Double? = nil, amountToBeCollected: Double? = nil, appDomainName: String? = nil, awbNumberBarcode: String? = nil, b2BBuyerDetails: [String: Any]? = nil, brandLogo: String? = nil, companyDetail: CompanyDetail? = nil, conversionRate: ConversionRate? = nil, creditNoteId: String? = nil, currencyCode: String? = nil, currentDate: String? = nil, customerBillingDetail: CustomerBillingDetail? = nil, customerShippingDetail: CustomerShippingDetail? = nil, declarationTexts: [String]? = nil, deliveryPartnerDetail: DeliveryPartnerDetail? = nil, digitalsignature: String? = nil, disclaimer: String? = nil, image: Image? = nil, invoiceDetail: InvoiceDetail? = nil, isExport: Bool? = nil, isExportShipment: Bool? = nil, isQwik: [String: Any]? = nil, isSelfPickup: Bool? = nil, isSelfShip: Bool? = nil, meta: Meta? = nil, mode: String? = nil, orderMeta: [String: Any]? = nil, orderType: String? = nil, payments: [PaymentData]? = nil, platformName: String? = nil, poNumber: String? = nil, productTable: ProductTable? = nil, registeredCompanyDetail: RegisteredCompanyDetail? = nil, returnDetail: ReturnDetail? = nil, shipmentId: String? = nil, shipmentIdBarcode: String? = nil, shipmentMeta: [String: Any]? = nil, signedQrcode: String? = nil, storeDetail: StoreDetail? = nil, taxTable: TaxTable? = nil, totalItems: Double? = nil, totalValueOfGoods: Double? = nil, txnId: String? = nil, uid: String? = nil, upiQrcode: String? = nil, utr: String? = nil, waybills: [[String: Any]]? = nil) {
+
+ self.isExport = isExport
+
+ self.isExportShipment = isExportShipment
+
+ self.appDomainName = appDomainName
+
+ self.txnId = txnId
+
+ self.utr = utr
+
+ self.poNumber = poNumber
+
+ self.creditNoteId = creditNoteId
+
+ self.currentDate = currentDate
+
+ self.totalValueOfGoods = totalValueOfGoods
+
+ self.b2BBuyerDetails = b2BBuyerDetails
+
+ self.isQwik = isQwik
+
+ self.orderType = orderType
+
+ self.conversionRate = conversionRate
+
+ self.currencyCode = currencyCode
+
+ self.shipmentId = shipmentId
+
+ self.deliveryPartnerDetail = deliveryPartnerDetail
+
+ self.image = image
+
+ self.payments = payments
+
+ self.invoiceDetail = invoiceDetail
+
+ self.companyDetail = companyDetail
+
+ self.storeDetail = storeDetail
+
+ self.customerBillingDetail = customerBillingDetail
+
+ self.customerShippingDetail = customerShippingDetail
+
+ self.returnDetail = returnDetail
+
+ self.productTable = productTable
+
+ self.taxTable = taxTable
+
+ self.declarationTexts = declarationTexts
+
+ self.registeredCompanyDetail = registeredCompanyDetail
+
+ self.disclaimer = disclaimer
+
+ self.meta = meta
+
+ self.isSelfShip = isSelfShip
+
+ self.mode = mode
+
+ self.isSelfPickup = isSelfPickup
+
+ self.shipmentMeta = shipmentMeta
+
+ self.orderMeta = orderMeta
+
+ self.platformName = platformName
+
+ self.amountToBeCollected = amountToBeCollected
+
+ self.amountPaid = amountPaid
+
+ self.waybills = waybills
+
+ self.totalItems = totalItems
+
+ self.brandLogo = brandLogo
+
+ self.shipmentIdBarcode = shipmentIdBarcode
+
+ self.signedQrcode = signedQrcode
+
+ self.upiQrcode = upiQrcode
+
+ self.digitalsignature = digitalsignature
+
+ self.awbNumberBarcode = awbNumberBarcode
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isExport = try container.decode(Bool.self, forKey: .isExport)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isExportShipment = try container.decode(Bool.self, forKey: .isExportShipment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appDomainName = try container.decode(String.self, forKey: .appDomainName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ txnId = try container.decode(String.self, forKey: .txnId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ utr = try container.decode(String.self, forKey: .utr)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ poNumber = try container.decode(String.self, forKey: .poNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ creditNoteId = try container.decode(String.self, forKey: .creditNoteId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currentDate = try container.decode(String.self, forKey: .currentDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalValueOfGoods = try container.decode(Double.self, forKey: .totalValueOfGoods)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ b2BBuyerDetails = try container.decode([String: Any].self, forKey: .b2BBuyerDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isQwik = try container.decode([String: Any].self, forKey: .isQwik)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ conversionRate = try container.decode(ConversionRate.self, forKey: .conversionRate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPartnerDetail = try container.decode(DeliveryPartnerDetail.self, forKey: .deliveryPartnerDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ image = try container.decode(Image.self, forKey: .image)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ payments = try container.decode([PaymentData].self, forKey: .payments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceDetail = try container.decode(InvoiceDetail.self, forKey: .invoiceDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyDetail = try container.decode(CompanyDetail.self, forKey: .companyDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeDetail = try container.decode(StoreDetail.self, forKey: .storeDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerBillingDetail = try container.decode(CustomerBillingDetail.self, forKey: .customerBillingDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerShippingDetail = try container.decode(CustomerShippingDetail.self, forKey: .customerShippingDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ returnDetail = try container.decode(ReturnDetail.self, forKey: .returnDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ productTable = try container.decode(ProductTable.self, forKey: .productTable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ taxTable = try container.decode(TaxTable.self, forKey: .taxTable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ declarationTexts = try container.decode([String].self, forKey: .declarationTexts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ registeredCompanyDetail = try container.decode(RegisteredCompanyDetail.self, forKey: .registeredCompanyDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ disclaimer = try container.decode(String.self, forKey: .disclaimer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(Meta.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mode = try container.decode(String.self, forKey: .mode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfPickup = try container.decode(Bool.self, forKey: .isSelfPickup)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentMeta = try container.decode([String: Any].self, forKey: .shipmentMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderMeta = try container.decode([String: Any].self, forKey: .orderMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platformName = try container.decode(String.self, forKey: .platformName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountPaid = try container.decode(Double.self, forKey: .amountPaid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ waybills = try container.decode([[String: Any]].self, forKey: .waybills)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalItems = try container.decode(Double.self, forKey: .totalItems)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ brandLogo = try container.decode(String.self, forKey: .brandLogo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentIdBarcode = try container.decode(String.self, forKey: .shipmentIdBarcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ signedQrcode = try container.decode(String.self, forKey: .signedQrcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ upiQrcode = try container.decode(String.self, forKey: .upiQrcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ digitalsignature = try container.decode(String.self, forKey: .digitalsignature)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ awbNumberBarcode = try container.decode(String.self, forKey: .awbNumberBarcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isExport, forKey: .isExport)
+
+
+
+
+ try? container.encodeIfPresent(isExportShipment, forKey: .isExportShipment)
+
+
+
+
+ try? container.encodeIfPresent(appDomainName, forKey: .appDomainName)
+
+
+
+
+ try? container.encodeIfPresent(txnId, forKey: .txnId)
+
+
+
+
+ try? container.encodeIfPresent(utr, forKey: .utr)
+
+
+
+
+ try? container.encodeIfPresent(poNumber, forKey: .poNumber)
+
+
+
+
+ try? container.encodeIfPresent(creditNoteId, forKey: .creditNoteId)
+
+
+
+
+ try? container.encodeIfPresent(currentDate, forKey: .currentDate)
+
+
+
+
+ try? container.encodeIfPresent(totalValueOfGoods, forKey: .totalValueOfGoods)
+
+
+
+
+ try? container.encodeIfPresent(b2BBuyerDetails, forKey: .b2BBuyerDetails)
+
+
+
+
+ try? container.encodeIfPresent(isQwik, forKey: .isQwik)
+
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+
+ try? container.encodeIfPresent(conversionRate, forKey: .conversionRate)
+
+
+
+
+ try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPartnerDetail, forKey: .deliveryPartnerDetail)
+
+
+
+
+ try? container.encodeIfPresent(image, forKey: .image)
+
+
+
+
+ try? container.encodeIfPresent(payments, forKey: .payments)
+
+
+
+
+ try? container.encodeIfPresent(invoiceDetail, forKey: .invoiceDetail)
+
+
+
+
+ try? container.encodeIfPresent(companyDetail, forKey: .companyDetail)
+
+
+
+
+ try? container.encodeIfPresent(storeDetail, forKey: .storeDetail)
+
+
+
+
+ try? container.encodeIfPresent(customerBillingDetail, forKey: .customerBillingDetail)
+
+
+
+
+ try? container.encodeIfPresent(customerShippingDetail, forKey: .customerShippingDetail)
+
+
+
+
+ try? container.encodeIfPresent(returnDetail, forKey: .returnDetail)
+
+
+
+
+ try? container.encodeIfPresent(productTable, forKey: .productTable)
+
+
+
+
+ try? container.encodeIfPresent(taxTable, forKey: .taxTable)
+
+
+
+
+ try? container.encodeIfPresent(declarationTexts, forKey: .declarationTexts)
+
+
+
+
+ try? container.encodeIfPresent(registeredCompanyDetail, forKey: .registeredCompanyDetail)
+
+
+
+
+ try? container.encodeIfPresent(disclaimer, forKey: .disclaimer)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(isSelfPickup, forKey: .isSelfPickup)
+
+
+
+
+ try? container.encodeIfPresent(shipmentMeta, forKey: .shipmentMeta)
+
+
+
+
+ try? container.encodeIfPresent(orderMeta, forKey: .orderMeta)
+
+
+
+
+ try? container.encodeIfPresent(platformName, forKey: .platformName)
+
+
+
+
+ try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
+
+
+
+
+ try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
+
+
+
+
+ try? container.encodeIfPresent(waybills, forKey: .waybills)
+
+
+
+
+ try? container.encodeIfPresent(totalItems, forKey: .totalItems)
+
+
+
+
+ try? container.encodeIfPresent(brandLogo, forKey: .brandLogo)
+
+
+
+
+ try? container.encodeIfPresent(shipmentIdBarcode, forKey: .shipmentIdBarcode)
+
+
+
+
+ try? container.encodeIfPresent(signedQrcode, forKey: .signedQrcode)
+
+
+
+
+ try? container.encodeIfPresent(upiQrcode, forKey: .upiQrcode)
+
+
+
+
+ try? container.encodeIfPresent(digitalsignature, forKey: .digitalsignature)
+
+
+
+
+ try? container.encodeIfPresent(awbNumberBarcode, forKey: .awbNumberBarcode)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: DummyTemplateDataPayload
+ Used By: FileStorage
+ */
+
+ class DummyTemplateDataPayload: Codable {
+
+
+ public var isExport: Bool?
+
+ public var isExportShipment: Bool?
+
+ public var appDomainName: String?
+
+ public var txnId: String?
+
+ public var utr: String?
+
+ public var poNumber: String?
+
+ public var creditNoteId: String?
+
+ public var currentDate: String?
+
+ public var totalValueOfGoods: Double?
+
+ public var b2BBuyerDetails: [String: Any]?
+
+ public var isQwik: [String: Any]?
+
+ public var orderType: String?
+
+ public var conversionRate: ConversionRate?
+
+ public var currencyCode: String?
+
+ public var shipmentId: String?
+
+ public var deliveryPartnerDetail: DeliveryPartnerDetail?
+
+ public var image: Image?
+
+ public var payments: [PaymentData]?
+
+ public var invoiceDetail: InvoiceDetail?
+
+ public var companyDetail: CompanyDetail?
+
+ public var storeDetail: StoreDetail?
+
+ public var customerBillingDetail: CustomerBillingDetail?
+
+ public var customerShippingDetail: CustomerShippingDetail?
+
+ public var returnDetail: ReturnDetail?
+
+ public var productTable: ProductTable?
+
+ public var taxTable: TaxTable?
+
+ public var declarationTexts: [String]?
+
+ public var registeredCompanyDetail: RegisteredCompanyDetail?
+
+ public var disclaimer: String?
+
+ public var meta: Meta?
+
+ public var isSelfShip: Bool?
+
+ public var mode: String?
+
+ public var isSelfPickup: Bool?
+
+ public var shipmentMeta: [String: Any]?
+
+ public var orderMeta: [String: Any]?
+
+ public var platformName: String?
+
+ public var amountToBeCollected: Double?
+
+ public var amountPaid: Double?
+
+ public var waybills: [[String: Any]]?
+
+ public var totalItems: Double?
+
+ public var brandLogo: String?
+
+ public var shipmentIdBarcode: String?
+
+ public var signedQrcode: String?
+
+ public var upiQrcode: String?
+
+ public var digitalsignature: String?
+
+ public var awbNumberBarcode: String?
+
+ public var uid: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isExport = "is_export"
+
+ case isExportShipment = "is_export_shipment"
+
+ case appDomainName = "app_domain_name"
+
+ case txnId = "txn_id"
+
+ case utr = "utr"
+
+ case poNumber = "po_number"
+
+ case creditNoteId = "credit_note_id"
+
+ case currentDate = "current_date"
+
+ case totalValueOfGoods = "total_value_of_goods"
+
+ case b2BBuyerDetails = "b2b_buyer_details"
+
+ case isQwik = "is_qwik"
+
+ case orderType = "order_type"
+
+ case conversionRate = "conversion_rate"
+
+ case currencyCode = "currency_code"
+
+ case shipmentId = "shipment_id"
+
+ case deliveryPartnerDetail = "delivery_partner_detail"
+
+ case image = "image"
+
+ case payments = "payments"
+
+ case invoiceDetail = "invoice_detail"
+
+ case companyDetail = "company_detail"
+
+ case storeDetail = "store_detail"
+
+ case customerBillingDetail = "customer_billing_detail"
+
+ case customerShippingDetail = "customer_shipping_detail"
+
+ case returnDetail = "return_detail"
+
+ case productTable = "product_table"
+
+ case taxTable = "tax_table"
+
+ case declarationTexts = "declaration_texts"
+
+ case registeredCompanyDetail = "registered_company_detail"
+
+ case disclaimer = "disclaimer"
+
+ case meta = "meta"
+
+ case isSelfShip = "is_self_ship"
+
+ case mode = "mode"
+
+ case isSelfPickup = "is_self_pickup"
+
+ case shipmentMeta = "shipment_meta"
+
+ case orderMeta = "order_meta"
+
+ case platformName = "platform_name"
+
+ case amountToBeCollected = "amount_to_be_collected"
+
+ case amountPaid = "amount_paid"
+
+ case waybills = "waybills"
+
+ case totalItems = "total_items"
+
+ case brandLogo = "brand_logo"
+
+ case shipmentIdBarcode = "shipment_id_barcode"
+
+ case signedQrcode = "signed_qrcode"
+
+ case upiQrcode = "upi_qrcode"
+
+ case digitalsignature = "digitalsignature"
+
+ case awbNumberBarcode = "awb_number_barcode"
+
+ case uid = "uid"
+
+ }
+
+ public init(amountPaid: Double? = nil, amountToBeCollected: Double? = nil, appDomainName: String? = nil, awbNumberBarcode: String? = nil, b2BBuyerDetails: [String: Any]? = nil, brandLogo: String? = nil, companyDetail: CompanyDetail? = nil, conversionRate: ConversionRate? = nil, creditNoteId: String? = nil, currencyCode: String? = nil, currentDate: String? = nil, customerBillingDetail: CustomerBillingDetail? = nil, customerShippingDetail: CustomerShippingDetail? = nil, declarationTexts: [String]? = nil, deliveryPartnerDetail: DeliveryPartnerDetail? = nil, digitalsignature: String? = nil, disclaimer: String? = nil, image: Image? = nil, invoiceDetail: InvoiceDetail? = nil, isExport: Bool? = nil, isExportShipment: Bool? = nil, isQwik: [String: Any]? = nil, isSelfPickup: Bool? = nil, isSelfShip: Bool? = nil, meta: Meta? = nil, mode: String? = nil, orderMeta: [String: Any]? = nil, orderType: String? = nil, payments: [PaymentData]? = nil, platformName: String? = nil, poNumber: String? = nil, productTable: ProductTable? = nil, registeredCompanyDetail: RegisteredCompanyDetail? = nil, returnDetail: ReturnDetail? = nil, shipmentId: String? = nil, shipmentIdBarcode: String? = nil, shipmentMeta: [String: Any]? = nil, signedQrcode: String? = nil, storeDetail: StoreDetail? = nil, taxTable: TaxTable? = nil, totalItems: Double? = nil, totalValueOfGoods: Double? = nil, txnId: String? = nil, uid: String? = nil, upiQrcode: String? = nil, utr: String? = nil, waybills: [[String: Any]]? = nil) {
+
+ self.isExport = isExport
+
+ self.isExportShipment = isExportShipment
+
+ self.appDomainName = appDomainName
+
+ self.txnId = txnId
+
+ self.utr = utr
+
+ self.poNumber = poNumber
+
+ self.creditNoteId = creditNoteId
+
+ self.currentDate = currentDate
+
+ self.totalValueOfGoods = totalValueOfGoods
+
+ self.b2BBuyerDetails = b2BBuyerDetails
+
+ self.isQwik = isQwik
+
+ self.orderType = orderType
+
+ self.conversionRate = conversionRate
+
+ self.currencyCode = currencyCode
+
+ self.shipmentId = shipmentId
+
+ self.deliveryPartnerDetail = deliveryPartnerDetail
+
+ self.image = image
+
+ self.payments = payments
+
+ self.invoiceDetail = invoiceDetail
+
+ self.companyDetail = companyDetail
+
+ self.storeDetail = storeDetail
+
+ self.customerBillingDetail = customerBillingDetail
+
+ self.customerShippingDetail = customerShippingDetail
+
+ self.returnDetail = returnDetail
+
+ self.productTable = productTable
+
+ self.taxTable = taxTable
+
+ self.declarationTexts = declarationTexts
+
+ self.registeredCompanyDetail = registeredCompanyDetail
+
+ self.disclaimer = disclaimer
+
+ self.meta = meta
+
+ self.isSelfShip = isSelfShip
+
+ self.mode = mode
+
+ self.isSelfPickup = isSelfPickup
+
+ self.shipmentMeta = shipmentMeta
+
+ self.orderMeta = orderMeta
+
+ self.platformName = platformName
+
+ self.amountToBeCollected = amountToBeCollected
+
+ self.amountPaid = amountPaid
+
+ self.waybills = waybills
+
+ self.totalItems = totalItems
+
+ self.brandLogo = brandLogo
+
+ self.shipmentIdBarcode = shipmentIdBarcode
+
+ self.signedQrcode = signedQrcode
+
+ self.upiQrcode = upiQrcode
+
+ self.digitalsignature = digitalsignature
+
+ self.awbNumberBarcode = awbNumberBarcode
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isExport = try container.decode(Bool.self, forKey: .isExport)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isExportShipment = try container.decode(Bool.self, forKey: .isExportShipment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ appDomainName = try container.decode(String.self, forKey: .appDomainName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ txnId = try container.decode(String.self, forKey: .txnId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ utr = try container.decode(String.self, forKey: .utr)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ poNumber = try container.decode(String.self, forKey: .poNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ creditNoteId = try container.decode(String.self, forKey: .creditNoteId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currentDate = try container.decode(String.self, forKey: .currentDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalValueOfGoods = try container.decode(Double.self, forKey: .totalValueOfGoods)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ b2BBuyerDetails = try container.decode([String: Any].self, forKey: .b2BBuyerDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isQwik = try container.decode([String: Any].self, forKey: .isQwik)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderType = try container.decode(String.self, forKey: .orderType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ conversionRate = try container.decode(ConversionRate.self, forKey: .conversionRate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryPartnerDetail = try container.decode(DeliveryPartnerDetail.self, forKey: .deliveryPartnerDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ image = try container.decode(Image.self, forKey: .image)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ payments = try container.decode([PaymentData].self, forKey: .payments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceDetail = try container.decode(InvoiceDetail.self, forKey: .invoiceDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyDetail = try container.decode(CompanyDetail.self, forKey: .companyDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeDetail = try container.decode(StoreDetail.self, forKey: .storeDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerBillingDetail = try container.decode(CustomerBillingDetail.self, forKey: .customerBillingDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerShippingDetail = try container.decode(CustomerShippingDetail.self, forKey: .customerShippingDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ returnDetail = try container.decode(ReturnDetail.self, forKey: .returnDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ productTable = try container.decode(ProductTable.self, forKey: .productTable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ taxTable = try container.decode(TaxTable.self, forKey: .taxTable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ declarationTexts = try container.decode([String].self, forKey: .declarationTexts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ registeredCompanyDetail = try container.decode(RegisteredCompanyDetail.self, forKey: .registeredCompanyDetail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ disclaimer = try container.decode(String.self, forKey: .disclaimer)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(Meta.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ mode = try container.decode(String.self, forKey: .mode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfPickup = try container.decode(Bool.self, forKey: .isSelfPickup)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentMeta = try container.decode([String: Any].self, forKey: .shipmentMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderMeta = try container.decode([String: Any].self, forKey: .orderMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platformName = try container.decode(String.self, forKey: .platformName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountPaid = try container.decode(Double.self, forKey: .amountPaid)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ waybills = try container.decode([[String: Any]].self, forKey: .waybills)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalItems = try container.decode(Double.self, forKey: .totalItems)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ brandLogo = try container.decode(String.self, forKey: .brandLogo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentIdBarcode = try container.decode(String.self, forKey: .shipmentIdBarcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ signedQrcode = try container.decode(String.self, forKey: .signedQrcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ upiQrcode = try container.decode(String.self, forKey: .upiQrcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ digitalsignature = try container.decode(String.self, forKey: .digitalsignature)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ awbNumberBarcode = try container.decode(String.self, forKey: .awbNumberBarcode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isExport, forKey: .isExport)
+
+
+
+
+ try? container.encodeIfPresent(isExportShipment, forKey: .isExportShipment)
+
+
+
+
+ try? container.encodeIfPresent(appDomainName, forKey: .appDomainName)
+
+
+
+
+ try? container.encodeIfPresent(txnId, forKey: .txnId)
+
+
+
+
+ try? container.encodeIfPresent(utr, forKey: .utr)
+
+
+
+
+ try? container.encodeIfPresent(poNumber, forKey: .poNumber)
+
+
+
+
+ try? container.encodeIfPresent(creditNoteId, forKey: .creditNoteId)
+
+
+
+
+ try? container.encodeIfPresent(currentDate, forKey: .currentDate)
+
+
+
+
+ try? container.encodeIfPresent(totalValueOfGoods, forKey: .totalValueOfGoods)
+
+
+
+
+ try? container.encodeIfPresent(b2BBuyerDetails, forKey: .b2BBuyerDetails)
+
+
+
+
+ try? container.encodeIfPresent(isQwik, forKey: .isQwik)
+
+
+
+
+ try? container.encodeIfPresent(orderType, forKey: .orderType)
+
+
+
+
+ try? container.encodeIfPresent(conversionRate, forKey: .conversionRate)
+
+
+
+
+ try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(deliveryPartnerDetail, forKey: .deliveryPartnerDetail)
+
+
+
+
+ try? container.encodeIfPresent(image, forKey: .image)
+
+
+
+
+ try? container.encodeIfPresent(payments, forKey: .payments)
+
+
+
+
+ try? container.encodeIfPresent(invoiceDetail, forKey: .invoiceDetail)
+
+
+
+
+ try? container.encodeIfPresent(companyDetail, forKey: .companyDetail)
+
+
+
+
+ try? container.encodeIfPresent(storeDetail, forKey: .storeDetail)
+
+
+
+
+ try? container.encodeIfPresent(customerBillingDetail, forKey: .customerBillingDetail)
+
+
+
+
+ try? container.encodeIfPresent(customerShippingDetail, forKey: .customerShippingDetail)
+
+
+
+
+ try? container.encodeIfPresent(returnDetail, forKey: .returnDetail)
+
+
+
+
+ try? container.encodeIfPresent(productTable, forKey: .productTable)
+
+
+
+
+ try? container.encodeIfPresent(taxTable, forKey: .taxTable)
+
+
+
+
+ try? container.encodeIfPresent(declarationTexts, forKey: .declarationTexts)
+
+
+
+
+ try? container.encodeIfPresent(registeredCompanyDetail, forKey: .registeredCompanyDetail)
+
+
+
+
+ try? container.encodeIfPresent(disclaimer, forKey: .disclaimer)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(isSelfPickup, forKey: .isSelfPickup)
+
+
+
+
+ try? container.encodeIfPresent(shipmentMeta, forKey: .shipmentMeta)
+
+
+
+
+ try? container.encodeIfPresent(orderMeta, forKey: .orderMeta)
+
+
+
+
+ try? container.encodeIfPresent(platformName, forKey: .platformName)
+
+
+
+
+ try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
+
+
+
+
+ try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
+
+
+
+
+ try? container.encodeIfPresent(waybills, forKey: .waybills)
+
+
+
+
+ try? container.encodeIfPresent(totalItems, forKey: .totalItems)
+
+
+
+
+ try? container.encodeIfPresent(brandLogo, forKey: .brandLogo)
+
+
+
+
+ try? container.encodeIfPresent(shipmentIdBarcode, forKey: .shipmentIdBarcode)
+
+
+
+
+ try? container.encodeIfPresent(signedQrcode, forKey: .signedQrcode)
+
+
+
+
+ try? container.encodeIfPresent(upiQrcode, forKey: .upiQrcode)
+
+
+
+
+ try? container.encodeIfPresent(digitalsignature, forKey: .digitalsignature)
+
+
+
+
+ try? container.encodeIfPresent(awbNumberBarcode, forKey: .awbNumberBarcode)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/FailedBrowseFilesResultFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/FailedBrowseFilesResultFileStoragePlatformModel.swift
deleted file mode 100644
index 6d0ed44ba1..0000000000
--- a/Sources/code/platform/Models/FileStorage/FailedBrowseFilesResultFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: FailedBrowseFilesResult
- Used By: FileStorage
- */
-
- class FailedBrowseFilesResult: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: FailedBrowseFilesResult
- Used By: FileStorage
- */
-
- class FailedBrowseFilesResult: 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)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/FailedResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/FailedResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..417fa2e4d4
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/FailedResponseFileStoragePlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: FailedResponse
+ Used By: FileStorage
+ */
+
+ class FailedResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: FailedResponse
+ Used By: FileStorage
+ */
+
+ class FailedResponse: 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)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/FileUploadCompleteFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/FileUploadCompleteFileStoragePlatformModel.swift
deleted file mode 100644
index 1d89266e64..0000000000
--- a/Sources/code/platform/Models/FileStorage/FileUploadCompleteFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,578 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: FileUploadComplete
- Used By: FileStorage
- */
-
- class FileUploadComplete: Codable {
-
-
- public var id: String
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var namespace: String
-
- public var operation: String
-
- public var companyId: Double
-
- public var size: Int
-
- public var upload: Upload
-
- public var cdn: CDN
-
- public var success: Bool
-
- public var tags: [String]?
-
- public var createdOn: String
-
- public var modifiedOn: String
-
- public var createdBy: CreatedBy?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case companyId = "company_id"
-
- case size = "size"
-
- case upload = "upload"
-
- case cdn = "cdn"
-
- case success = "success"
-
- case tags = "tags"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- }
-
- public init(cdn: CDN, companyId: Double, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
-
- self.id = id
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.companyId = companyId
-
- self.size = size
-
- self.upload = upload
-
- self.cdn = cdn
-
- self.success = success
-
- self.tags = tags
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- companyId = try container.decode(Double.self, forKey: .companyId)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- cdn = try container.decode(CDN.self, forKey: .cdn)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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 {
-
- }
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.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)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
-
- try? container.encodeIfPresent(cdn, forKey: .cdn)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: FileUploadComplete
- Used By: FileStorage
- */
-
- class FileUploadComplete: Codable {
-
-
- public var id: String
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var namespace: String
-
- public var operation: String
-
- public var companyId: Double
-
- public var size: Int
-
- public var upload: Upload
-
- public var cdn: CDN
-
- public var success: Bool
-
- public var tags: [String]?
-
- public var createdOn: String
-
- public var modifiedOn: String
-
- public var createdBy: CreatedBy?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case companyId = "company_id"
-
- case size = "size"
-
- case upload = "upload"
-
- case cdn = "cdn"
-
- case success = "success"
-
- case tags = "tags"
-
- case createdOn = "created_on"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- }
-
- public init(cdn: CDN, companyId: Double, contentType: String, createdBy: CreatedBy? = nil, createdOn: String, fileName: String, filePath: String, modifiedOn: String, namespace: String, operation: String, size: Int, success: Bool, tags: [String]? = nil, upload: Upload, id: String) {
-
- self.id = id
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.companyId = companyId
-
- self.size = size
-
- self.upload = upload
-
- self.cdn = cdn
-
- self.success = success
-
- self.tags = tags
-
- self.createdOn = createdOn
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- companyId = try container.decode(Double.self, forKey: .companyId)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- cdn = try container.decode(CDN.self, forKey: .cdn)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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 {
-
- }
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- do {
- createdBy = try container.decode(CreatedBy.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)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
-
- try? container.encodeIfPresent(cdn, forKey: .cdn)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/FileUploadFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/FileUploadFileStoragePlatformModel.swift
deleted file mode 100644
index 4557a2eddf..0000000000
--- a/Sources/code/platform/Models/FileStorage/FileUploadFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,386 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: FileUpload
- Used By: FileStorage
- */
-
- class FileUpload: Codable {
-
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var method: String?
-
- public var namespace: String
-
- public var operation: String
-
- public var size: Int
-
- public var upload: Upload
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case method = "method"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case size = "size"
-
- case upload = "upload"
-
- case tags = "tags"
-
- }
-
- public init(contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.method = method
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.size = size
-
- self.upload = upload
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- do {
- method = try container.decode(String.self, forKey: .method)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: FileUpload
- Used By: FileStorage
- */
-
- class FileUpload: Codable {
-
-
- public var fileName: String
-
- public var filePath: String
-
- public var contentType: String
-
- public var method: String?
-
- public var namespace: String
-
- public var operation: String
-
- public var size: Int
-
- public var upload: Upload
-
- public var tags: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case filePath = "file_path"
-
- case contentType = "content_type"
-
- case method = "method"
-
- case namespace = "namespace"
-
- case operation = "operation"
-
- case size = "size"
-
- case upload = "upload"
-
- case tags = "tags"
-
- }
-
- public init(contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
-
- self.fileName = fileName
-
- self.filePath = filePath
-
- self.contentType = contentType
-
- self.method = method
-
- self.namespace = namespace
-
- self.operation = operation
-
- self.size = size
-
- self.upload = upload
-
- self.tags = tags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- filePath = try container.decode(String.self, forKey: .filePath)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- do {
- method = try container.decode(String.self, forKey: .method)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- namespace = try container.decode(String.self, forKey: .namespace)
-
-
-
-
- operation = try container.decode(String.self, forKey: .operation)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- upload = try container.decode(Upload.self, forKey: .upload)
-
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
-
- try? container.encodeIfPresent(namespace, forKey: .namespace)
-
-
-
-
- try? container.encodeIfPresent(operation, forKey: .operation)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(upload, forKey: .upload)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/FileUploadStartFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/FileUploadStartFileStoragePlatformModel.swift
deleted file mode 100644
index ec4aab6b9d..0000000000
--- a/Sources/code/platform/Models/FileStorage/FileUploadStartFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: FileUploadStart
- Used By: FileStorage
- */
-
- class FileUploadStart: Codable {
-
-
- public var fileName: String
-
- public var contentType: String
-
- public var size: Int
-
- public var tags: [String]?
-
- public var params: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case contentType = "content_type"
-
- case size = "size"
-
- case tags = "tags"
-
- case params = "params"
-
- }
-
- public init(contentType: String, fileName: String, params: [String: Any]? = nil, size: Int, tags: [String]? = nil) {
-
- self.fileName = fileName
-
- self.contentType = contentType
-
- self.size = size
-
- self.tags = tags
-
- self.params = params
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(params, forKey: .params)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: FileUploadStart
- Used By: FileStorage
- */
-
- class FileUploadStart: Codable {
-
-
- public var fileName: String
-
- public var contentType: String
-
- public var size: Int
-
- public var tags: [String]?
-
- public var params: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case contentType = "content_type"
-
- case size = "size"
-
- case tags = "tags"
-
- case params = "params"
-
- }
-
- public init(contentType: String, fileName: String, params: [String: Any]? = nil, size: Int, tags: [String]? = nil) {
-
- self.fileName = fileName
-
- self.contentType = contentType
-
- self.size = size
-
- self.tags = tags
-
- self.params = params
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fileName = try container.decode(String.self, forKey: .fileName)
-
-
-
-
- contentType = try container.decode(String.self, forKey: .contentType)
-
-
-
-
- size = try container.decode(Int.self, forKey: .size)
-
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(contentType, forKey: .contentType)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(params, forKey: .params)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/InvoiceTypesDataFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/InvoiceTypesDataFileStoragePlatformModel.swift
deleted file mode 100644
index 52e1789871..0000000000
--- a/Sources/code/platform/Models/FileStorage/InvoiceTypesDataFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,372 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: InvoiceTypesData
- Used By: FileStorage
- */
-
- class InvoiceTypesData: Codable {
-
-
- public var status: Bool?
-
- public var id: String
-
- public var pdfTypeId: Int
-
- public var name: String
-
- public var format: [String]
-
- public var v: Int
-
- public var visibility: Bool
-
- public var storeOs: Bool
-
- public var countryCode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case name = "name"
-
- case format = "format"
-
- case v = "__v"
-
- case visibility = "visibility"
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String, format: [String], name: String, pdfTypeId: Int, status: Bool? = nil, storeOs: Bool, visibility: Bool, id: String, v: Int) {
-
- self.status = status
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.name = name
-
- self.format = format
-
- self.v = v
-
- self.visibility = visibility
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- format = try container.decode([String].self, forKey: .format)
-
-
-
-
- v = try container.decode(Int.self, forKey: .v)
-
-
-
-
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
-
-
-
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: InvoiceTypesData
- Used By: FileStorage
- */
-
- class InvoiceTypesData: Codable {
-
-
- public var status: Bool?
-
- public var id: String
-
- public var pdfTypeId: Int
-
- public var name: String
-
- public var format: [String]
-
- public var v: Int
-
- public var visibility: Bool
-
- public var storeOs: Bool
-
- public var countryCode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case name = "name"
-
- case format = "format"
-
- case v = "__v"
-
- case visibility = "visibility"
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String, format: [String], name: String, pdfTypeId: Int, status: Bool? = nil, storeOs: Bool, visibility: Bool, id: String, v: Int) {
-
- self.status = status
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.name = name
-
- self.format = format
-
- self.v = v
-
- self.visibility = visibility
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- format = try container.decode([String].self, forKey: .format)
-
-
-
-
- v = try container.decode(Int.self, forKey: .v)
-
-
-
-
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
-
-
-
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
-
-
-
- countryCode = try container.decode(String.self, forKey: .countryCode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/InvoiceTypesDataResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/InvoiceTypesDataResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..5a4554e12f
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/InvoiceTypesDataResponseFileStoragePlatformModel.swift
@@ -0,0 +1,340 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: InvoiceTypesDataResponse
+ Used By: FileStorage
+ */
+
+ class InvoiceTypesDataResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var id: String
+
+ public var pdfTypeId: Int
+
+ public var name: String
+
+ public var format: [String]
+
+ public var v: Int
+
+ public var visibility: Bool
+
+ public var countryCode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case id = "_id"
+
+ case pdfTypeId = "pdf_type_id"
+
+ case name = "name"
+
+ case format = "format"
+
+ case v = "__v"
+
+ case visibility = "visibility"
+
+ case countryCode = "country_code"
+
+ }
+
+ public init(countryCode: String, format: [String], name: String, pdfTypeId: Int, status: Bool? = nil, visibility: Bool, id: String, v: Int) {
+
+ self.status = status
+
+ self.id = id
+
+ self.pdfTypeId = pdfTypeId
+
+ self.name = name
+
+ self.format = format
+
+ self.v = v
+
+ self.visibility = visibility
+
+ self.countryCode = countryCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
+
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ format = try container.decode([String].self, forKey: .format)
+
+
+
+
+ v = try container.decode(Int.self, forKey: .v)
+
+
+
+
+ visibility = try container.decode(Bool.self, forKey: .visibility)
+
+
+
+
+ countryCode = try container.decode(String.self, forKey: .countryCode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(format, forKey: .format)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+
+
+ try? container.encodeIfPresent(visibility, forKey: .visibility)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: InvoiceTypesDataResponse
+ Used By: FileStorage
+ */
+
+ class InvoiceTypesDataResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var id: String
+
+ public var pdfTypeId: Int
+
+ public var name: String
+
+ public var format: [String]
+
+ public var v: Int
+
+ public var visibility: Bool
+
+ public var countryCode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case id = "_id"
+
+ case pdfTypeId = "pdf_type_id"
+
+ case name = "name"
+
+ case format = "format"
+
+ case v = "__v"
+
+ case visibility = "visibility"
+
+ case countryCode = "country_code"
+
+ }
+
+ public init(countryCode: String, format: [String], name: String, pdfTypeId: Int, status: Bool? = nil, visibility: Bool, id: String, v: Int) {
+
+ self.status = status
+
+ self.id = id
+
+ self.pdfTypeId = pdfTypeId
+
+ self.name = name
+
+ self.format = format
+
+ self.v = v
+
+ self.visibility = visibility
+
+ self.countryCode = countryCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
+
+
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ format = try container.decode([String].self, forKey: .format)
+
+
+
+
+ v = try container.decode(Int.self, forKey: .v)
+
+
+
+
+ visibility = try container.decode(Bool.self, forKey: .visibility)
+
+
+
+
+ countryCode = try container.decode(String.self, forKey: .countryCode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(format, forKey: .format)
+
+
+
+
+ try? container.encodeIfPresent(v, forKey: .v)
+
+
+
+
+ try? container.encodeIfPresent(visibility, forKey: .visibility)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/InvoiceTypesFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/InvoiceTypesFileStoragePlatformModel.swift
deleted file mode 100644
index c551d8d689..0000000000
--- a/Sources/code/platform/Models/FileStorage/InvoiceTypesFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: InvoiceTypes
- Used By: FileStorage
- */
-
- class InvoiceTypes: Codable {
-
-
- public var data: [InvoiceTypesData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [InvoiceTypesData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([InvoiceTypesData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: InvoiceTypes
- Used By: FileStorage
- */
-
- class InvoiceTypes: Codable {
-
-
- public var data: [InvoiceTypesData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [InvoiceTypesData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([InvoiceTypesData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/InvoiceTypesResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/InvoiceTypesResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..d3214a4369
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/InvoiceTypesResponseFileStoragePlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: InvoiceTypesResponse
+ Used By: FileStorage
+ */
+
+ class InvoiceTypesResponse: Codable {
+
+
+ public var data: [InvoiceTypesDataResponse]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [InvoiceTypesDataResponse], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([InvoiceTypesDataResponse].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: InvoiceTypesResponse
+ Used By: FileStorage
+ */
+
+ class InvoiceTypesResponse: Codable {
+
+
+ public var data: [InvoiceTypesDataResponse]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [InvoiceTypesDataResponse], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([InvoiceTypesDataResponse].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/MapperDetailsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/MapperDetailsFileStoragePlatformModel.swift
deleted file mode 100644
index 8a75da8792..0000000000
--- a/Sources/code/platform/Models/FileStorage/MapperDetailsFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: MapperDetails
- Used By: FileStorage
- */
-
- class MapperDetails: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Double?
-
- public var payload: PdfPayloadDetails?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case payload = "payload"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, payload: PdfPayloadDetails? = nil, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.payload = payload
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Double.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: MapperDetails
- Used By: FileStorage
- */
-
- class MapperDetails: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Double?
-
- public var payload: PdfPayloadDetails?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case payload = "payload"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, payload: PdfPayloadDetails? = nil, pdfTypeId: Double? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.payload = payload
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Double.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/ParamsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/ParamsFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..f4017d5ddb
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/ParamsFileStoragePlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: Params
+ Used By: FileStorage
+ */
+
+ class Params: Codable {
+
+
+ public var subpath: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subpath = "subpath"
+
+ }
+
+ public init(subpath: String? = nil) {
+
+ self.subpath = subpath
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subpath = try container.decode(String.self, forKey: .subpath)
+
+ } 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(subpath, forKey: .subpath)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: Params
+ Used By: FileStorage
+ */
+
+ class Params: Codable {
+
+
+ public var subpath: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subpath = "subpath"
+
+ }
+
+ public init(subpath: String? = nil) {
+
+ self.subpath = subpath
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ subpath = try container.decode(String.self, forKey: .subpath)
+
+ } 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(subpath, forKey: .subpath)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/PdfConfigFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfConfigFileStoragePlatformModel.swift
index 0515cf69b8..b0cfe2e34c 100644
--- a/Sources/code/platform/Models/FileStorage/PdfConfigFileStoragePlatformModel.swift
+++ b/Sources/code/platform/Models/FileStorage/PdfConfigFileStoragePlatformModel.swift
@@ -18,10 +18,6 @@ public extension PlatformClient.FileStorage {
public var pdfTypeId: Int?
- public var countryCode: String?
-
- public var defaultTemplate: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -31,13 +27,9 @@ public extension PlatformClient.FileStorage {
case pdfTypeId = "pdf_type_id"
- case countryCode = "country_code"
-
- case defaultTemplate = "default_template"
-
}
- public init(countryCode: String? = nil, defaultTemplate: Bool? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil) {
+ public init(format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil) {
self.format = format
@@ -45,10 +37,6 @@ public extension PlatformClient.FileStorage {
self.pdfTypeId = pdfTypeId
- self.countryCode = countryCode
-
- self.defaultTemplate = defaultTemplate
-
}
required public init(from decoder: Decoder) throws {
@@ -90,30 +78,6 @@ public extension PlatformClient.FileStorage {
}
-
- 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 {
- defaultTemplate = try container.decode(Bool.self, forKey: .defaultTemplate)
-
- } 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 {
@@ -134,16 +98,6 @@ public extension PlatformClient.FileStorage {
try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(defaultTemplate, forKey: .defaultTemplate)
-
-
}
}
@@ -166,10 +120,6 @@ public extension PlatformClient.ApplicationClient.FileStorage {
public var pdfTypeId: Int?
- public var countryCode: String?
-
- public var defaultTemplate: Bool?
-
public enum CodingKeys: String, CodingKey {
@@ -179,13 +129,9 @@ public extension PlatformClient.ApplicationClient.FileStorage {
case pdfTypeId = "pdf_type_id"
- case countryCode = "country_code"
-
- case defaultTemplate = "default_template"
-
}
- public init(countryCode: String? = nil, defaultTemplate: Bool? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil) {
+ public init(format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil) {
self.format = format
@@ -193,10 +139,6 @@ public extension PlatformClient.ApplicationClient.FileStorage {
self.pdfTypeId = pdfTypeId
- self.countryCode = countryCode
-
- self.defaultTemplate = defaultTemplate
-
}
required public init(from decoder: Decoder) throws {
@@ -238,30 +180,6 @@ public extension PlatformClient.ApplicationClient.FileStorage {
}
-
- 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 {
- defaultTemplate = try container.decode(Bool.self, forKey: .defaultTemplate)
-
- } 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 {
@@ -282,16 +200,6 @@ public extension PlatformClient.ApplicationClient.FileStorage {
try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(defaultTemplate, forKey: .defaultTemplate)
-
-
}
}
diff --git a/Sources/code/platform/Models/FileStorage/PdfConfigurationDataFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfConfigurationDataFileStoragePlatformModel.swift
deleted file mode 100644
index d076f9ca6b..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfConfigurationDataFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfConfigurationData
- Used By: FileStorage
- */
-
- class PdfConfigurationData: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var template: String?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case template = "template"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.template = template
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfConfigurationData
- Used By: FileStorage
- */
-
- class PdfConfigurationData: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var template: String?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case template = "template"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.template = template
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfDataItemsDetailsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfDataItemsDetailsFileStoragePlatformModel.swift
deleted file mode 100644
index 0c7f05c232..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfDataItemsDetailsFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfDataItemsDetails
- Used By: FileStorage
- */
-
- class PdfDataItemsDetails: Codable {
-
-
- public var data: [DummyTemplateData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [DummyTemplateData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([DummyTemplateData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfDataItemsDetails
- Used By: FileStorage
- */
-
- class PdfDataItemsDetails: Codable {
-
-
- public var data: [DummyTemplateData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [DummyTemplateData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([DummyTemplateData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfDefaultTemplateByIdFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfDefaultTemplateByIdFileStoragePlatformModel.swift
deleted file mode 100644
index f18d2c61fe..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfDefaultTemplateByIdFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfDefaultTemplateById
- Used By: FileStorage
- */
-
- class PdfDefaultTemplateById: Codable {
-
-
- public var id: String?
-
- public var countryCode: String?
-
- public var format: String?
-
- public var pdfTypeId: Int?
-
- public var v: Int?
-
- public var template: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case countryCode = "country_code"
-
- case format = "format"
-
- case pdfTypeId = "pdf_type_id"
-
- case v = "__v"
-
- case template = "template"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.countryCode = countryCode
-
- self.format = format
-
- self.pdfTypeId = pdfTypeId
-
- self.v = v
-
- self.template = template
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfDefaultTemplateById
- Used By: FileStorage
- */
-
- class PdfDefaultTemplateById: Codable {
-
-
- public var id: String?
-
- public var countryCode: String?
-
- public var format: String?
-
- public var pdfTypeId: Int?
-
- public var v: Int?
-
- public var template: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case countryCode = "country_code"
-
- case format = "format"
-
- case pdfTypeId = "pdf_type_id"
-
- case v = "__v"
-
- case template = "template"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.countryCode = countryCode
-
- self.format = format
-
- self.pdfTypeId = pdfTypeId
-
- self.v = v
-
- self.template = template
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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 {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfPayloadDetailsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfPayloadDetailsFileStoragePlatformModel.swift
deleted file mode 100644
index 3c644a2837..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfPayloadDetailsFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,2140 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfPayloadDetails
- Used By: FileStorage
- */
-
- class PdfPayloadDetails: Codable {
-
-
- public var isExport: Bool?
-
- public var isExportShipment: Bool?
-
- public var appDomainName: String?
-
- public var txnId: String?
-
- public var utr: String?
-
- public var poNumber: String?
-
- public var creditNoteId: String?
-
- public var currentDate: String?
-
- public var totalValueOfGoods: Double?
-
- public var b2BBuyerDetails: [String: Any]?
-
- public var isQwik: [String: Any]?
-
- public var orderType: String?
-
- public var conversionRate: ConversionRate?
-
- public var currencyCode: String?
-
- public var shipmentId: String?
-
- public var deliveryPartnerDetail: DeliveryPartnerDetail?
-
- public var image: Image?
-
- public var payments: [PaymentData]?
-
- public var invoiceDetail: InvoiceDetail?
-
- public var companyDetail: CompanyDetail?
-
- public var storeDetail: StoreDetail?
-
- public var customerBillingDetail: CustomerBillingDetail?
-
- public var customerShippingDetail: CustomerShippingDetail?
-
- public var returnDetail: ReturnDetail?
-
- public var productTable: ProductTable?
-
- public var taxTable: TaxTable?
-
- public var declarationTexts: [String]?
-
- public var registeredCompanyDetail: RegisteredCompanyDetail?
-
- public var disclaimer: String?
-
- public var meta: Meta?
-
- public var isSelfShip: Bool?
-
- public var mode: String?
-
- public var isSelfPickup: Bool?
-
- public var platformName: String?
-
- public var amountToBeCollected: Double?
-
- public var amountPaid: Double?
-
- public var waybills: [[String: Any]]?
-
- public var totalItems: Double?
-
- public var brandLogo: String?
-
- public var shipmentIdBarcode: String?
-
- public var signedQrcode: String?
-
- public var upiQrcode: String?
-
- public var digitalsignature: String?
-
- public var awbNumberBarcode: String?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isExport = "is_export"
-
- case isExportShipment = "is_export_shipment"
-
- case appDomainName = "app_domain_name"
-
- case txnId = "txn_id"
-
- case utr = "utr"
-
- case poNumber = "po_number"
-
- case creditNoteId = "credit_note_id"
-
- case currentDate = "current_date"
-
- case totalValueOfGoods = "total_value_of_goods"
-
- case b2BBuyerDetails = "b2b_buyer_details"
-
- case isQwik = "is_qwik"
-
- case orderType = "order_type"
-
- case conversionRate = "conversion_rate"
-
- case currencyCode = "currency_code"
-
- case shipmentId = "shipment_id"
-
- case deliveryPartnerDetail = "delivery_partner_detail"
-
- case image = "image"
-
- case payments = "payments"
-
- case invoiceDetail = "invoice_detail"
-
- case companyDetail = "company_detail"
-
- case storeDetail = "store_detail"
-
- case customerBillingDetail = "customer_billing_detail"
-
- case customerShippingDetail = "customer_shipping_detail"
-
- case returnDetail = "return_detail"
-
- case productTable = "product_table"
-
- case taxTable = "tax_table"
-
- case declarationTexts = "declaration_texts"
-
- case registeredCompanyDetail = "registered_company_detail"
-
- case disclaimer = "disclaimer"
-
- case meta = "meta"
-
- case isSelfShip = "is_self_ship"
-
- case mode = "mode"
-
- case isSelfPickup = "is_self_pickup"
-
- case platformName = "platform_name"
-
- case amountToBeCollected = "amount_to_be_collected"
-
- case amountPaid = "amount_paid"
-
- case waybills = "waybills"
-
- case totalItems = "total_items"
-
- case brandLogo = "brand_logo"
-
- case shipmentIdBarcode = "shipment_id_barcode"
-
- case signedQrcode = "signed_qrcode"
-
- case upiQrcode = "upi_qrcode"
-
- case digitalsignature = "digitalsignature"
-
- case awbNumberBarcode = "awb_number_barcode"
-
- case uid = "uid"
-
- }
-
- public init(amountPaid: Double? = nil, amountToBeCollected: Double? = nil, appDomainName: String? = nil, awbNumberBarcode: String? = nil, b2BBuyerDetails: [String: Any]? = nil, brandLogo: String? = nil, companyDetail: CompanyDetail? = nil, conversionRate: ConversionRate? = nil, creditNoteId: String? = nil, currencyCode: String? = nil, currentDate: String? = nil, customerBillingDetail: CustomerBillingDetail? = nil, customerShippingDetail: CustomerShippingDetail? = nil, declarationTexts: [String]? = nil, deliveryPartnerDetail: DeliveryPartnerDetail? = nil, digitalsignature: String? = nil, disclaimer: String? = nil, image: Image? = nil, invoiceDetail: InvoiceDetail? = nil, isExport: Bool? = nil, isExportShipment: Bool? = nil, isQwik: [String: Any]? = nil, isSelfPickup: Bool? = nil, isSelfShip: Bool? = nil, meta: Meta? = nil, mode: String? = nil, orderType: String? = nil, payments: [PaymentData]? = nil, platformName: String? = nil, poNumber: String? = nil, productTable: ProductTable? = nil, registeredCompanyDetail: RegisteredCompanyDetail? = nil, returnDetail: ReturnDetail? = nil, shipmentId: String? = nil, shipmentIdBarcode: String? = nil, signedQrcode: String? = nil, storeDetail: StoreDetail? = nil, taxTable: TaxTable? = nil, totalItems: Double? = nil, totalValueOfGoods: Double? = nil, txnId: String? = nil, uid: String? = nil, upiQrcode: String? = nil, utr: String? = nil, waybills: [[String: Any]]? = nil) {
-
- self.isExport = isExport
-
- self.isExportShipment = isExportShipment
-
- self.appDomainName = appDomainName
-
- self.txnId = txnId
-
- self.utr = utr
-
- self.poNumber = poNumber
-
- self.creditNoteId = creditNoteId
-
- self.currentDate = currentDate
-
- self.totalValueOfGoods = totalValueOfGoods
-
- self.b2BBuyerDetails = b2BBuyerDetails
-
- self.isQwik = isQwik
-
- self.orderType = orderType
-
- self.conversionRate = conversionRate
-
- self.currencyCode = currencyCode
-
- self.shipmentId = shipmentId
-
- self.deliveryPartnerDetail = deliveryPartnerDetail
-
- self.image = image
-
- self.payments = payments
-
- self.invoiceDetail = invoiceDetail
-
- self.companyDetail = companyDetail
-
- self.storeDetail = storeDetail
-
- self.customerBillingDetail = customerBillingDetail
-
- self.customerShippingDetail = customerShippingDetail
-
- self.returnDetail = returnDetail
-
- self.productTable = productTable
-
- self.taxTable = taxTable
-
- self.declarationTexts = declarationTexts
-
- self.registeredCompanyDetail = registeredCompanyDetail
-
- self.disclaimer = disclaimer
-
- self.meta = meta
-
- self.isSelfShip = isSelfShip
-
- self.mode = mode
-
- self.isSelfPickup = isSelfPickup
-
- self.platformName = platformName
-
- self.amountToBeCollected = amountToBeCollected
-
- self.amountPaid = amountPaid
-
- self.waybills = waybills
-
- self.totalItems = totalItems
-
- self.brandLogo = brandLogo
-
- self.shipmentIdBarcode = shipmentIdBarcode
-
- self.signedQrcode = signedQrcode
-
- self.upiQrcode = upiQrcode
-
- self.digitalsignature = digitalsignature
-
- self.awbNumberBarcode = awbNumberBarcode
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isExport = try container.decode(Bool.self, forKey: .isExport)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isExportShipment = try container.decode(Bool.self, forKey: .isExportShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appDomainName = try container.decode(String.self, forKey: .appDomainName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- txnId = try container.decode(String.self, forKey: .txnId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- utr = try container.decode(String.self, forKey: .utr)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- poNumber = try container.decode(String.self, forKey: .poNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- creditNoteId = try container.decode(String.self, forKey: .creditNoteId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currentDate = try container.decode(String.self, forKey: .currentDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalValueOfGoods = try container.decode(Double.self, forKey: .totalValueOfGoods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- b2BBuyerDetails = try container.decode([String: Any].self, forKey: .b2BBuyerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isQwik = try container.decode([String: Any].self, forKey: .isQwik)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- conversionRate = try container.decode(ConversionRate.self, forKey: .conversionRate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPartnerDetail = try container.decode(DeliveryPartnerDetail.self, forKey: .deliveryPartnerDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- image = try container.decode(Image.self, forKey: .image)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payments = try container.decode([PaymentData].self, forKey: .payments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceDetail = try container.decode(InvoiceDetail.self, forKey: .invoiceDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- companyDetail = try container.decode(CompanyDetail.self, forKey: .companyDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeDetail = try container.decode(StoreDetail.self, forKey: .storeDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerBillingDetail = try container.decode(CustomerBillingDetail.self, forKey: .customerBillingDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerShippingDetail = try container.decode(CustomerShippingDetail.self, forKey: .customerShippingDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnDetail = try container.decode(ReturnDetail.self, forKey: .returnDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- productTable = try container.decode(ProductTable.self, forKey: .productTable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- taxTable = try container.decode(TaxTable.self, forKey: .taxTable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- declarationTexts = try container.decode([String].self, forKey: .declarationTexts)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- registeredCompanyDetail = try container.decode(RegisteredCompanyDetail.self, forKey: .registeredCompanyDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- disclaimer = try container.decode(String.self, forKey: .disclaimer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(Meta.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isSelfPickup = try container.decode(Bool.self, forKey: .isSelfPickup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platformName = try container.decode(String.self, forKey: .platformName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- waybills = try container.decode([[String: Any]].self, forKey: .waybills)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalItems = try container.decode(Double.self, forKey: .totalItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- brandLogo = try container.decode(String.self, forKey: .brandLogo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentIdBarcode = try container.decode(String.self, forKey: .shipmentIdBarcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- signedQrcode = try container.decode(String.self, forKey: .signedQrcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upiQrcode = try container.decode(String.self, forKey: .upiQrcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- digitalsignature = try container.decode(String.self, forKey: .digitalsignature)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- awbNumberBarcode = try container.decode(String.self, forKey: .awbNumberBarcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isExport, forKey: .isExport)
-
-
-
-
- try? container.encodeIfPresent(isExportShipment, forKey: .isExportShipment)
-
-
-
-
- try? container.encodeIfPresent(appDomainName, forKey: .appDomainName)
-
-
-
-
- try? container.encodeIfPresent(txnId, forKey: .txnId)
-
-
-
-
- try? container.encodeIfPresent(utr, forKey: .utr)
-
-
-
-
- try? container.encodeIfPresent(poNumber, forKey: .poNumber)
-
-
-
-
- try? container.encodeIfPresent(creditNoteId, forKey: .creditNoteId)
-
-
-
-
- try? container.encodeIfPresent(currentDate, forKey: .currentDate)
-
-
-
-
- try? container.encodeIfPresent(totalValueOfGoods, forKey: .totalValueOfGoods)
-
-
-
-
- try? container.encodeIfPresent(b2BBuyerDetails, forKey: .b2BBuyerDetails)
-
-
-
-
- try? container.encodeIfPresent(isQwik, forKey: .isQwik)
-
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
-
- try? container.encodeIfPresent(conversionRate, forKey: .conversionRate)
-
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(deliveryPartnerDetail, forKey: .deliveryPartnerDetail)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
-
-
- try? container.encodeIfPresent(payments, forKey: .payments)
-
-
-
-
- try? container.encodeIfPresent(invoiceDetail, forKey: .invoiceDetail)
-
-
-
-
- try? container.encodeIfPresent(companyDetail, forKey: .companyDetail)
-
-
-
-
- try? container.encodeIfPresent(storeDetail, forKey: .storeDetail)
-
-
-
-
- try? container.encodeIfPresent(customerBillingDetail, forKey: .customerBillingDetail)
-
-
-
-
- try? container.encodeIfPresent(customerShippingDetail, forKey: .customerShippingDetail)
-
-
-
-
- try? container.encodeIfPresent(returnDetail, forKey: .returnDetail)
-
-
-
-
- try? container.encodeIfPresent(productTable, forKey: .productTable)
-
-
-
-
- try? container.encodeIfPresent(taxTable, forKey: .taxTable)
-
-
-
-
- try? container.encodeIfPresent(declarationTexts, forKey: .declarationTexts)
-
-
-
-
- try? container.encodeIfPresent(registeredCompanyDetail, forKey: .registeredCompanyDetail)
-
-
-
-
- try? container.encodeIfPresent(disclaimer, forKey: .disclaimer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(isSelfPickup, forKey: .isSelfPickup)
-
-
-
-
- try? container.encodeIfPresent(platformName, forKey: .platformName)
-
-
-
-
- try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(waybills, forKey: .waybills)
-
-
-
-
- try? container.encodeIfPresent(totalItems, forKey: .totalItems)
-
-
-
-
- try? container.encodeIfPresent(brandLogo, forKey: .brandLogo)
-
-
-
-
- try? container.encodeIfPresent(shipmentIdBarcode, forKey: .shipmentIdBarcode)
-
-
-
-
- try? container.encodeIfPresent(signedQrcode, forKey: .signedQrcode)
-
-
-
-
- try? container.encodeIfPresent(upiQrcode, forKey: .upiQrcode)
-
-
-
-
- try? container.encodeIfPresent(digitalsignature, forKey: .digitalsignature)
-
-
-
-
- try? container.encodeIfPresent(awbNumberBarcode, forKey: .awbNumberBarcode)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfPayloadDetails
- Used By: FileStorage
- */
-
- class PdfPayloadDetails: Codable {
-
-
- public var isExport: Bool?
-
- public var isExportShipment: Bool?
-
- public var appDomainName: String?
-
- public var txnId: String?
-
- public var utr: String?
-
- public var poNumber: String?
-
- public var creditNoteId: String?
-
- public var currentDate: String?
-
- public var totalValueOfGoods: Double?
-
- public var b2BBuyerDetails: [String: Any]?
-
- public var isQwik: [String: Any]?
-
- public var orderType: String?
-
- public var conversionRate: ConversionRate?
-
- public var currencyCode: String?
-
- public var shipmentId: String?
-
- public var deliveryPartnerDetail: DeliveryPartnerDetail?
-
- public var image: Image?
-
- public var payments: [PaymentData]?
-
- public var invoiceDetail: InvoiceDetail?
-
- public var companyDetail: CompanyDetail?
-
- public var storeDetail: StoreDetail?
-
- public var customerBillingDetail: CustomerBillingDetail?
-
- public var customerShippingDetail: CustomerShippingDetail?
-
- public var returnDetail: ReturnDetail?
-
- public var productTable: ProductTable?
-
- public var taxTable: TaxTable?
-
- public var declarationTexts: [String]?
-
- public var registeredCompanyDetail: RegisteredCompanyDetail?
-
- public var disclaimer: String?
-
- public var meta: Meta?
-
- public var isSelfShip: Bool?
-
- public var mode: String?
-
- public var isSelfPickup: Bool?
-
- public var platformName: String?
-
- public var amountToBeCollected: Double?
-
- public var amountPaid: Double?
-
- public var waybills: [[String: Any]]?
-
- public var totalItems: Double?
-
- public var brandLogo: String?
-
- public var shipmentIdBarcode: String?
-
- public var signedQrcode: String?
-
- public var upiQrcode: String?
-
- public var digitalsignature: String?
-
- public var awbNumberBarcode: String?
-
- public var uid: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isExport = "is_export"
-
- case isExportShipment = "is_export_shipment"
-
- case appDomainName = "app_domain_name"
-
- case txnId = "txn_id"
-
- case utr = "utr"
-
- case poNumber = "po_number"
-
- case creditNoteId = "credit_note_id"
-
- case currentDate = "current_date"
-
- case totalValueOfGoods = "total_value_of_goods"
-
- case b2BBuyerDetails = "b2b_buyer_details"
-
- case isQwik = "is_qwik"
-
- case orderType = "order_type"
-
- case conversionRate = "conversion_rate"
-
- case currencyCode = "currency_code"
-
- case shipmentId = "shipment_id"
-
- case deliveryPartnerDetail = "delivery_partner_detail"
-
- case image = "image"
-
- case payments = "payments"
-
- case invoiceDetail = "invoice_detail"
-
- case companyDetail = "company_detail"
-
- case storeDetail = "store_detail"
-
- case customerBillingDetail = "customer_billing_detail"
-
- case customerShippingDetail = "customer_shipping_detail"
-
- case returnDetail = "return_detail"
-
- case productTable = "product_table"
-
- case taxTable = "tax_table"
-
- case declarationTexts = "declaration_texts"
-
- case registeredCompanyDetail = "registered_company_detail"
-
- case disclaimer = "disclaimer"
-
- case meta = "meta"
-
- case isSelfShip = "is_self_ship"
-
- case mode = "mode"
-
- case isSelfPickup = "is_self_pickup"
-
- case platformName = "platform_name"
-
- case amountToBeCollected = "amount_to_be_collected"
-
- case amountPaid = "amount_paid"
-
- case waybills = "waybills"
-
- case totalItems = "total_items"
-
- case brandLogo = "brand_logo"
-
- case shipmentIdBarcode = "shipment_id_barcode"
-
- case signedQrcode = "signed_qrcode"
-
- case upiQrcode = "upi_qrcode"
-
- case digitalsignature = "digitalsignature"
-
- case awbNumberBarcode = "awb_number_barcode"
-
- case uid = "uid"
-
- }
-
- public init(amountPaid: Double? = nil, amountToBeCollected: Double? = nil, appDomainName: String? = nil, awbNumberBarcode: String? = nil, b2BBuyerDetails: [String: Any]? = nil, brandLogo: String? = nil, companyDetail: CompanyDetail? = nil, conversionRate: ConversionRate? = nil, creditNoteId: String? = nil, currencyCode: String? = nil, currentDate: String? = nil, customerBillingDetail: CustomerBillingDetail? = nil, customerShippingDetail: CustomerShippingDetail? = nil, declarationTexts: [String]? = nil, deliveryPartnerDetail: DeliveryPartnerDetail? = nil, digitalsignature: String? = nil, disclaimer: String? = nil, image: Image? = nil, invoiceDetail: InvoiceDetail? = nil, isExport: Bool? = nil, isExportShipment: Bool? = nil, isQwik: [String: Any]? = nil, isSelfPickup: Bool? = nil, isSelfShip: Bool? = nil, meta: Meta? = nil, mode: String? = nil, orderType: String? = nil, payments: [PaymentData]? = nil, platformName: String? = nil, poNumber: String? = nil, productTable: ProductTable? = nil, registeredCompanyDetail: RegisteredCompanyDetail? = nil, returnDetail: ReturnDetail? = nil, shipmentId: String? = nil, shipmentIdBarcode: String? = nil, signedQrcode: String? = nil, storeDetail: StoreDetail? = nil, taxTable: TaxTable? = nil, totalItems: Double? = nil, totalValueOfGoods: Double? = nil, txnId: String? = nil, uid: String? = nil, upiQrcode: String? = nil, utr: String? = nil, waybills: [[String: Any]]? = nil) {
-
- self.isExport = isExport
-
- self.isExportShipment = isExportShipment
-
- self.appDomainName = appDomainName
-
- self.txnId = txnId
-
- self.utr = utr
-
- self.poNumber = poNumber
-
- self.creditNoteId = creditNoteId
-
- self.currentDate = currentDate
-
- self.totalValueOfGoods = totalValueOfGoods
-
- self.b2BBuyerDetails = b2BBuyerDetails
-
- self.isQwik = isQwik
-
- self.orderType = orderType
-
- self.conversionRate = conversionRate
-
- self.currencyCode = currencyCode
-
- self.shipmentId = shipmentId
-
- self.deliveryPartnerDetail = deliveryPartnerDetail
-
- self.image = image
-
- self.payments = payments
-
- self.invoiceDetail = invoiceDetail
-
- self.companyDetail = companyDetail
-
- self.storeDetail = storeDetail
-
- self.customerBillingDetail = customerBillingDetail
-
- self.customerShippingDetail = customerShippingDetail
-
- self.returnDetail = returnDetail
-
- self.productTable = productTable
-
- self.taxTable = taxTable
-
- self.declarationTexts = declarationTexts
-
- self.registeredCompanyDetail = registeredCompanyDetail
-
- self.disclaimer = disclaimer
-
- self.meta = meta
-
- self.isSelfShip = isSelfShip
-
- self.mode = mode
-
- self.isSelfPickup = isSelfPickup
-
- self.platformName = platformName
-
- self.amountToBeCollected = amountToBeCollected
-
- self.amountPaid = amountPaid
-
- self.waybills = waybills
-
- self.totalItems = totalItems
-
- self.brandLogo = brandLogo
-
- self.shipmentIdBarcode = shipmentIdBarcode
-
- self.signedQrcode = signedQrcode
-
- self.upiQrcode = upiQrcode
-
- self.digitalsignature = digitalsignature
-
- self.awbNumberBarcode = awbNumberBarcode
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isExport = try container.decode(Bool.self, forKey: .isExport)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isExportShipment = try container.decode(Bool.self, forKey: .isExportShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- appDomainName = try container.decode(String.self, forKey: .appDomainName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- txnId = try container.decode(String.self, forKey: .txnId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- utr = try container.decode(String.self, forKey: .utr)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- poNumber = try container.decode(String.self, forKey: .poNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- creditNoteId = try container.decode(String.self, forKey: .creditNoteId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currentDate = try container.decode(String.self, forKey: .currentDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalValueOfGoods = try container.decode(Double.self, forKey: .totalValueOfGoods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- b2BBuyerDetails = try container.decode([String: Any].self, forKey: .b2BBuyerDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isQwik = try container.decode([String: Any].self, forKey: .isQwik)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderType = try container.decode(String.self, forKey: .orderType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- conversionRate = try container.decode(ConversionRate.self, forKey: .conversionRate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryPartnerDetail = try container.decode(DeliveryPartnerDetail.self, forKey: .deliveryPartnerDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- image = try container.decode(Image.self, forKey: .image)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payments = try container.decode([PaymentData].self, forKey: .payments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceDetail = try container.decode(InvoiceDetail.self, forKey: .invoiceDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- companyDetail = try container.decode(CompanyDetail.self, forKey: .companyDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeDetail = try container.decode(StoreDetail.self, forKey: .storeDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerBillingDetail = try container.decode(CustomerBillingDetail.self, forKey: .customerBillingDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerShippingDetail = try container.decode(CustomerShippingDetail.self, forKey: .customerShippingDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- returnDetail = try container.decode(ReturnDetail.self, forKey: .returnDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- productTable = try container.decode(ProductTable.self, forKey: .productTable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- taxTable = try container.decode(TaxTable.self, forKey: .taxTable)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- declarationTexts = try container.decode([String].self, forKey: .declarationTexts)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- registeredCompanyDetail = try container.decode(RegisteredCompanyDetail.self, forKey: .registeredCompanyDetail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- disclaimer = try container.decode(String.self, forKey: .disclaimer)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(Meta.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isSelfPickup = try container.decode(Bool.self, forKey: .isSelfPickup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platformName = try container.decode(String.self, forKey: .platformName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- waybills = try container.decode([[String: Any]].self, forKey: .waybills)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalItems = try container.decode(Double.self, forKey: .totalItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- brandLogo = try container.decode(String.self, forKey: .brandLogo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentIdBarcode = try container.decode(String.self, forKey: .shipmentIdBarcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- signedQrcode = try container.decode(String.self, forKey: .signedQrcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upiQrcode = try container.decode(String.self, forKey: .upiQrcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- digitalsignature = try container.decode(String.self, forKey: .digitalsignature)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- awbNumberBarcode = try container.decode(String.self, forKey: .awbNumberBarcode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isExport, forKey: .isExport)
-
-
-
-
- try? container.encodeIfPresent(isExportShipment, forKey: .isExportShipment)
-
-
-
-
- try? container.encodeIfPresent(appDomainName, forKey: .appDomainName)
-
-
-
-
- try? container.encodeIfPresent(txnId, forKey: .txnId)
-
-
-
-
- try? container.encodeIfPresent(utr, forKey: .utr)
-
-
-
-
- try? container.encodeIfPresent(poNumber, forKey: .poNumber)
-
-
-
-
- try? container.encodeIfPresent(creditNoteId, forKey: .creditNoteId)
-
-
-
-
- try? container.encodeIfPresent(currentDate, forKey: .currentDate)
-
-
-
-
- try? container.encodeIfPresent(totalValueOfGoods, forKey: .totalValueOfGoods)
-
-
-
-
- try? container.encodeIfPresent(b2BBuyerDetails, forKey: .b2BBuyerDetails)
-
-
-
-
- try? container.encodeIfPresent(isQwik, forKey: .isQwik)
-
-
-
-
- try? container.encodeIfPresent(orderType, forKey: .orderType)
-
-
-
-
- try? container.encodeIfPresent(conversionRate, forKey: .conversionRate)
-
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(deliveryPartnerDetail, forKey: .deliveryPartnerDetail)
-
-
-
-
- try? container.encodeIfPresent(image, forKey: .image)
-
-
-
-
- try? container.encodeIfPresent(payments, forKey: .payments)
-
-
-
-
- try? container.encodeIfPresent(invoiceDetail, forKey: .invoiceDetail)
-
-
-
-
- try? container.encodeIfPresent(companyDetail, forKey: .companyDetail)
-
-
-
-
- try? container.encodeIfPresent(storeDetail, forKey: .storeDetail)
-
-
-
-
- try? container.encodeIfPresent(customerBillingDetail, forKey: .customerBillingDetail)
-
-
-
-
- try? container.encodeIfPresent(customerShippingDetail, forKey: .customerShippingDetail)
-
-
-
-
- try? container.encodeIfPresent(returnDetail, forKey: .returnDetail)
-
-
-
-
- try? container.encodeIfPresent(productTable, forKey: .productTable)
-
-
-
-
- try? container.encodeIfPresent(taxTable, forKey: .taxTable)
-
-
-
-
- try? container.encodeIfPresent(declarationTexts, forKey: .declarationTexts)
-
-
-
-
- try? container.encodeIfPresent(registeredCompanyDetail, forKey: .registeredCompanyDetail)
-
-
-
-
- try? container.encodeIfPresent(disclaimer, forKey: .disclaimer)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(isSelfPickup, forKey: .isSelfPickup)
-
-
-
-
- try? container.encodeIfPresent(platformName, forKey: .platformName)
-
-
-
-
- try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(waybills, forKey: .waybills)
-
-
-
-
- try? container.encodeIfPresent(totalItems, forKey: .totalItems)
-
-
-
-
- try? container.encodeIfPresent(brandLogo, forKey: .brandLogo)
-
-
-
-
- try? container.encodeIfPresent(shipmentIdBarcode, forKey: .shipmentIdBarcode)
-
-
-
-
- try? container.encodeIfPresent(signedQrcode, forKey: .signedQrcode)
-
-
-
-
- try? container.encodeIfPresent(upiQrcode, forKey: .upiQrcode)
-
-
-
-
- try? container.encodeIfPresent(digitalsignature, forKey: .digitalsignature)
-
-
-
-
- try? container.encodeIfPresent(awbNumberBarcode, forKey: .awbNumberBarcode)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessDataFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessDataFileStoragePlatformModel.swift
deleted file mode 100644
index c2831c5099..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessDataFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfTemplateCreateSuccessData
- Used By: FileStorage
- */
-
- class PdfTemplateCreateSuccessData: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var template: String?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case template = "template"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.template = template
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfTemplateCreateSuccessData
- Used By: FileStorage
- */
-
- class PdfTemplateCreateSuccessData: Codable {
-
-
- public var id: String?
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var template: String?
-
- public var countryCode: String?
-
- public var v: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case template = "template"
-
- case countryCode = "country_code"
-
- case v = "__v"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, template: String? = nil, id: String? = nil, v: Int? = nil) {
-
- self.id = id
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.template = template
-
- self.countryCode = countryCode
-
- self.v = v
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessFileStoragePlatformModel.swift
deleted file mode 100644
index 4c324b0b4b..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfTemplateCreateSuccessFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfTemplateCreateSuccess
- Used By: FileStorage
- */
-
- class PdfTemplateCreateSuccess: Codable {
-
-
- public var code: Int?
-
- public var success: Bool?
-
- public var data: PdfTemplateCreateSuccessData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(code: Int? = nil, data: PdfTemplateCreateSuccessData? = nil, success: Bool? = nil) {
-
- self.code = code
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- code = try container.decode(Int.self, forKey: .code)
-
- } 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 {
-
- }
-
-
-
- do {
- data = try container.decode(PdfTemplateCreateSuccessData.self, forKey: .data)
-
- } 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(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfTemplateCreateSuccess
- Used By: FileStorage
- */
-
- class PdfTemplateCreateSuccess: Codable {
-
-
- public var code: Int?
-
- public var success: Bool?
-
- public var data: PdfTemplateCreateSuccessData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(code: Int? = nil, data: PdfTemplateCreateSuccessData? = nil, success: Bool? = nil) {
-
- self.code = code
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- code = try container.decode(Int.self, forKey: .code)
-
- } 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 {
-
- }
-
-
-
- do {
- data = try container.decode(PdfTemplateCreateSuccessData.self, forKey: .data)
-
- } 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(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/PdfTypeByIdDetailsFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/PdfTypeByIdDetailsFileStoragePlatformModel.swift
deleted file mode 100644
index 3dc34a0c35..0000000000
--- a/Sources/code/platform/Models/FileStorage/PdfTypeByIdDetailsFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,438 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: PdfTypeByIdDetails
- Used By: FileStorage
- */
-
- class PdfTypeByIdDetails: Codable {
-
-
- public var storeOs: Bool?
-
- public var countryCode: String?
-
- public var pdfTypeId: Int?
-
- public var v: Int?
-
- public var id: String?
-
- public var format: [String]?
-
- public var name: String?
-
- public var visibility: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- case pdfTypeId = "pdf_type_id"
-
- case v = "__v"
-
- case id = "_id"
-
- case format = "format"
-
- case name = "name"
-
- case visibility = "visibility"
-
- }
-
- public init(countryCode: String? = nil, format: [String]? = nil, name: String? = nil, pdfTypeId: Int? = nil, storeOs: Bool? = nil, visibility: Bool? = nil, id: String? = nil, v: Int? = nil) {
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- self.pdfTypeId = pdfTypeId
-
- self.v = v
-
- self.id = id
-
- self.format = format
-
- self.name = name
-
- self.visibility = visibility
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- format = try container.decode([String].self, forKey: .format)
-
- } 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 {
-
- }
-
-
-
- do {
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
- } 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(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: PdfTypeByIdDetails
- Used By: FileStorage
- */
-
- class PdfTypeByIdDetails: Codable {
-
-
- public var storeOs: Bool?
-
- public var countryCode: String?
-
- public var pdfTypeId: Int?
-
- public var v: Int?
-
- public var id: String?
-
- public var format: [String]?
-
- public var name: String?
-
- public var visibility: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- case pdfTypeId = "pdf_type_id"
-
- case v = "__v"
-
- case id = "_id"
-
- case format = "format"
-
- case name = "name"
-
- case visibility = "visibility"
-
- }
-
- public init(countryCode: String? = nil, format: [String]? = nil, name: String? = nil, pdfTypeId: Int? = nil, storeOs: Bool? = nil, visibility: Bool? = nil, id: String? = nil, v: Int? = nil) {
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- self.pdfTypeId = pdfTypeId
-
- self.v = v
-
- self.id = id
-
- self.format = format
-
- self.name = name
-
- self.visibility = visibility
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- v = try container.decode(Int.self, forKey: .v)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- format = try container.decode([String].self, forKey: .format)
-
- } 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 {
-
- }
-
-
-
- do {
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
- } 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(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(v, forKey: .v)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/ProxyFileAccessFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/ProxyFileAccessFileStoragePlatformModel.swift
deleted file mode 100644
index 6c7e516701..0000000000
--- a/Sources/code/platform/Models/FileStorage/ProxyFileAccessFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: ProxyFileAccess
- Used By: FileStorage
- */
-
- class ProxyFileAccess: Codable {
-
-
- public var data: [String: Any]?
-
- public var support: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case support = "support"
-
- }
-
- public init(data: [String: Any]? = nil, support: [String: Any]? = nil) {
-
- self.data = data
-
- self.support = support
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- support = try container.decode([String: Any].self, forKey: .support)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(support, forKey: .support)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: ProxyFileAccess
- Used By: FileStorage
- */
-
- class ProxyFileAccess: Codable {
-
-
- public var data: [String: Any]?
-
- public var support: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case support = "support"
-
- }
-
- public init(data: [String: Any]? = nil, support: [String: Any]? = nil) {
-
- self.data = data
-
- self.support = support
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- support = try container.decode([String: Any].self, forKey: .support)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(support, forKey: .support)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/ProxyResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/ProxyResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..21ab346edd
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/ProxyResponseFileStoragePlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: ProxyResponse
+ Used By: FileStorage
+ */
+
+ class ProxyResponse: Codable {
+
+
+ public var data: [String: Any]?
+
+ public var support: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case support = "support"
+
+ }
+
+ public init(data: [String: Any]? = nil, support: [String: Any]? = nil) {
+
+ self.data = data
+
+ self.support = support
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ support = try container.decode([String: Any].self, forKey: .support)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(support, forKey: .support)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: ProxyResponse
+ Used By: FileStorage
+ */
+
+ class ProxyResponse: Codable {
+
+
+ public var data: [String: Any]?
+
+ public var support: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case support = "support"
+
+ }
+
+ public init(data: [String: Any]? = nil, support: [String: Any]? = nil) {
+
+ self.data = data
+
+ self.support = support
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ support = try container.decode([String: Any].self, forKey: .support)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(support, forKey: .support)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/SignUrlFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/SignUrlFileStoragePlatformModel.swift
deleted file mode 100644
index fb55518596..0000000000
--- a/Sources/code/platform/Models/FileStorage/SignUrlFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: SignUrl
- Used By: FileStorage
- */
-
- class SignUrl: Codable {
-
-
- public var expiry: Int
-
- public var urls: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case expiry = "expiry"
-
- case urls = "urls"
-
- }
-
- public init(expiry: Int, urls: [String]) {
-
- self.expiry = expiry
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- expiry = try container.decode(Int.self, forKey: .expiry)
-
-
-
-
- urls = try container.decode([String].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(expiry, forKey: .expiry)
-
-
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: SignUrl
- Used By: FileStorage
- */
-
- class SignUrl: Codable {
-
-
- public var expiry: Int
-
- public var urls: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case expiry = "expiry"
-
- case urls = "urls"
-
- }
-
- public init(expiry: Int, urls: [String]) {
-
- self.expiry = expiry
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- expiry = try container.decode(Int.self, forKey: .expiry)
-
-
-
-
- urls = try container.decode([String].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(expiry, forKey: .expiry)
-
-
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/SignUrlRequestFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/SignUrlRequestFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..7862fe5270
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/SignUrlRequestFileStoragePlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: SignUrlRequest
+ Used By: FileStorage
+ */
+
+ class SignUrlRequest: Codable {
+
+
+ public var expiry: Int
+
+ public var urls: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case expiry = "expiry"
+
+ case urls = "urls"
+
+ }
+
+ public init(expiry: Int, urls: [String]) {
+
+ self.expiry = expiry
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ expiry = try container.decode(Int.self, forKey: .expiry)
+
+
+
+
+ urls = try container.decode([String].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(expiry, forKey: .expiry)
+
+
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: SignUrlRequest
+ Used By: FileStorage
+ */
+
+ class SignUrlRequest: Codable {
+
+
+ public var expiry: Int
+
+ public var urls: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case expiry = "expiry"
+
+ case urls = "urls"
+
+ }
+
+ public init(expiry: Int, urls: [String]) {
+
+ self.expiry = expiry
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ expiry = try container.decode(Int.self, forKey: .expiry)
+
+
+
+
+ urls = try container.decode([String].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(expiry, forKey: .expiry)
+
+
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/SignUrlResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/SignUrlResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..13dd3a35dd
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/SignUrlResponseFileStoragePlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: SignUrlResponse
+ Used By: FileStorage
+ */
+
+ class SignUrlResponse: Codable {
+
+
+ public var urls: [Urls]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case urls = "urls"
+
+ }
+
+ public init(urls: [Urls]) {
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ urls = try container.decode([Urls].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: SignUrlResponse
+ Used By: FileStorage
+ */
+
+ class SignUrlResponse: Codable {
+
+
+ public var urls: [Urls]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case urls = "urls"
+
+ }
+
+ public init(urls: [Urls]) {
+
+ self.urls = urls
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ urls = try container.decode([Urls].self, forKey: .urls)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(urls, forKey: .urls)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/SignUrlResultFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/SignUrlResultFileStoragePlatformModel.swift
deleted file mode 100644
index b219c45715..0000000000
--- a/Sources/code/platform/Models/FileStorage/SignUrlResultFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: SignUrlResult
- Used By: FileStorage
- */
-
- class SignUrlResult: Codable {
-
-
- public var urls: [Urls]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case urls = "urls"
-
- }
-
- public init(urls: [Urls]) {
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- urls = try container.decode([Urls].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: SignUrlResult
- Used By: FileStorage
- */
-
- class SignUrlResult: Codable {
-
-
- public var urls: [Urls]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case urls = "urls"
-
- }
-
- public init(urls: [Urls]) {
-
- self.urls = urls
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- urls = try container.decode([Urls].self, forKey: .urls)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(urls, forKey: .urls)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/StartRequestFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/StartRequestFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..a66656ba68
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/StartRequestFileStoragePlatformModel.swift
@@ -0,0 +1,258 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: StartRequest
+ Used By: FileStorage
+ */
+
+ class StartRequest: Codable {
+
+
+ public var fileName: String
+
+ public var contentType: String
+
+ public var size: Int
+
+ public var tags: [String]?
+
+ public var params: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case contentType = "content_type"
+
+ case size = "size"
+
+ case tags = "tags"
+
+ case params = "params"
+
+ }
+
+ public init(contentType: String, fileName: String, params: [String: Any]? = nil, size: Int, tags: [String]? = nil) {
+
+ self.fileName = fileName
+
+ self.contentType = contentType
+
+ self.size = size
+
+ self.tags = tags
+
+ self.params = params
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(params, forKey: .params)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: StartRequest
+ Used By: FileStorage
+ */
+
+ class StartRequest: Codable {
+
+
+ public var fileName: String
+
+ public var contentType: String
+
+ public var size: Int
+
+ public var tags: [String]?
+
+ public var params: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case contentType = "content_type"
+
+ case size = "size"
+
+ case tags = "tags"
+
+ case params = "params"
+
+ }
+
+ public init(contentType: String, fileName: String, params: [String: Any]? = nil, size: Int, tags: [String]? = nil) {
+
+ self.fileName = fileName
+
+ self.contentType = contentType
+
+ self.size = size
+
+ self.tags = tags
+
+ self.params = params
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
+ try? container.encodeIfPresent(params, forKey: .params)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/StartResponseFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/StartResponseFileStoragePlatformModel.swift
new file mode 100644
index 0000000000..f440d81f8e
--- /dev/null
+++ b/Sources/code/platform/Models/FileStorage/StartResponseFileStoragePlatformModel.swift
@@ -0,0 +1,418 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.FileStorage {
+ /*
+ Model: StartResponse
+ Used By: FileStorage
+ */
+
+ class StartResponse: Codable {
+
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var method: String?
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var tags: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case method = "method"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case tags = "tags"
+
+ }
+
+ public init(cdn: CDN, contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.method = method
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.tags = tags
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ do {
+ method = try container.decode(String.self, forKey: .method)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.FileStorage {
+ /*
+ Model: StartResponse
+ Used By: FileStorage
+ */
+
+ class StartResponse: Codable {
+
+
+ public var fileName: String
+
+ public var filePath: String
+
+ public var contentType: String
+
+ public var method: String?
+
+ public var namespace: String
+
+ public var operation: String
+
+ public var size: Int
+
+ public var upload: Upload
+
+ public var cdn: CDN
+
+ public var tags: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case filePath = "file_path"
+
+ case contentType = "content_type"
+
+ case method = "method"
+
+ case namespace = "namespace"
+
+ case operation = "operation"
+
+ case size = "size"
+
+ case upload = "upload"
+
+ case cdn = "cdn"
+
+ case tags = "tags"
+
+ }
+
+ public init(cdn: CDN, contentType: String, fileName: String, filePath: String, method: String? = nil, namespace: String, operation: String, size: Int, tags: [String]? = nil, upload: Upload) {
+
+ self.fileName = fileName
+
+ self.filePath = filePath
+
+ self.contentType = contentType
+
+ self.method = method
+
+ self.namespace = namespace
+
+ self.operation = operation
+
+ self.size = size
+
+ self.upload = upload
+
+ self.cdn = cdn
+
+ self.tags = tags
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ contentType = try container.decode(String.self, forKey: .contentType)
+
+
+
+
+ do {
+ method = try container.decode(String.self, forKey: .method)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ namespace = try container.decode(String.self, forKey: .namespace)
+
+
+
+
+ operation = try container.decode(String.self, forKey: .operation)
+
+
+
+
+ size = try container.decode(Int.self, forKey: .size)
+
+
+
+
+ upload = try container.decode(Upload.self, forKey: .upload)
+
+
+
+
+ cdn = try container.decode(CDN.self, forKey: .cdn)
+
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(contentType, forKey: .contentType)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+
+ try? container.encodeIfPresent(namespace, forKey: .namespace)
+
+
+
+
+ try? container.encodeIfPresent(operation, forKey: .operation)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(upload, forKey: .upload)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+
+
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/FileStorage/UpdatePdfTypeFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/UpdatePdfTypeFileStoragePlatformModel.swift
deleted file mode 100644
index 21b2ee59e9..0000000000
--- a/Sources/code/platform/Models/FileStorage/UpdatePdfTypeFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: UpdatePdfType
- Used By: FileStorage
- */
-
- class UpdatePdfType: Codable {
-
-
- public var pdfTypeId: Int?
-
- public var name: String?
-
- public var format: [String]?
-
- public var visibility: Bool?
-
- public var schema: [String: Any]?
-
- public var storeOs: Bool?
-
- public var countryCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case name = "name"
-
- case format = "format"
-
- case visibility = "visibility"
-
- case schema = "schema"
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String? = nil, format: [String]? = nil, name: String? = nil, pdfTypeId: Int? = nil, schema: [String: Any]? = nil, storeOs: Bool? = nil, visibility: Bool? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.name = name
-
- self.format = format
-
- self.visibility = visibility
-
- self.schema = schema
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } 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 {
-
- }
-
-
-
- do {
- format = try container.decode([String].self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- schema = try container.decode([String: Any].self, forKey: .schema)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
-
-
- try? container.encodeIfPresent(schema, forKey: .schema)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: UpdatePdfType
- Used By: FileStorage
- */
-
- class UpdatePdfType: Codable {
-
-
- public var pdfTypeId: Int?
-
- public var name: String?
-
- public var format: [String]?
-
- public var visibility: Bool?
-
- public var schema: [String: Any]?
-
- public var storeOs: Bool?
-
- public var countryCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case name = "name"
-
- case format = "format"
-
- case visibility = "visibility"
-
- case schema = "schema"
-
- case storeOs = "store_os"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String? = nil, format: [String]? = nil, name: String? = nil, pdfTypeId: Int? = nil, schema: [String: Any]? = nil, storeOs: Bool? = nil, visibility: Bool? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.name = name
-
- self.format = format
-
- self.visibility = visibility
-
- self.schema = schema
-
- self.storeOs = storeOs
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } 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 {
-
- }
-
-
-
- do {
- format = try container.decode([String].self, forKey: .format)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- visibility = try container.decode(Bool.self, forKey: .visibility)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- schema = try container.decode([String: Any].self, forKey: .schema)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(visibility, forKey: .visibility)
-
-
-
-
- try? container.encodeIfPresent(schema, forKey: .schema)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/UpdateTemplateFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/UpdateTemplateFileStoragePlatformModel.swift
deleted file mode 100644
index f34e9fdbac..0000000000
--- a/Sources/code/platform/Models/FileStorage/UpdateTemplateFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: UpdateTemplate
- Used By: FileStorage
- */
-
- class UpdateTemplate: Codable {
-
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var countryCode: String?
-
- public var template: String?
-
- public var storeOs: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case countryCode = "country_code"
-
- case template = "template"
-
- case storeOs = "store_os"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, storeOs: Bool? = nil, template: String? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.countryCode = countryCode
-
- self.template = template
-
- self.storeOs = storeOs
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: UpdateTemplate
- Used By: FileStorage
- */
-
- class UpdateTemplate: Codable {
-
-
- public var pdfTypeId: Int?
-
- public var format: String?
-
- public var countryCode: String?
-
- public var template: String?
-
- public var storeOs: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case format = "format"
-
- case countryCode = "country_code"
-
- case template = "template"
-
- case storeOs = "store_os"
-
- }
-
- public init(countryCode: String? = nil, format: String? = nil, pdfTypeId: Int? = nil, storeOs: Bool? = nil, template: String? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.format = format
-
- self.countryCode = countryCode
-
- self.template = template
-
- self.storeOs = storeOs
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Int.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- format = try container.decode(String.self, forKey: .format)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- template = try container.decode(String.self, forKey: .template)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeOs = try container.decode(Bool.self, forKey: .storeOs)
-
- } 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(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(format, forKey: .format)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(template, forKey: .template)
-
-
-
-
- try? container.encodeIfPresent(storeOs, forKey: .storeOs)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/UpdatedDefaultTemplateByIdFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/UpdatedDefaultTemplateByIdFileStoragePlatformModel.swift
deleted file mode 100644
index 6f997eee92..0000000000
--- a/Sources/code/platform/Models/FileStorage/UpdatedDefaultTemplateByIdFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: UpdatedDefaultTemplateById
- Used By: FileStorage
- */
-
- class UpdatedDefaultTemplateById: Codable {
-
-
- public var data: PdfConfigurationData?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: PdfConfigurationData? = nil, success: Bool? = nil) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(PdfConfigurationData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: UpdatedDefaultTemplateById
- Used By: FileStorage
- */
-
- class UpdatedDefaultTemplateById: Codable {
-
-
- public var data: PdfConfigurationData?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: PdfConfigurationData? = nil, success: Bool? = nil) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode(PdfConfigurationData.self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/FileStorage/savePdfPayloadFileStoragePlatformModel.swift b/Sources/code/platform/Models/FileStorage/savePdfPayloadFileStoragePlatformModel.swift
deleted file mode 100644
index f9042c79cf..0000000000
--- a/Sources/code/platform/Models/FileStorage/savePdfPayloadFileStoragePlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.FileStorage {
- /*
- Model: savePdfPayload
- Used By: FileStorage
- */
-
- class savePdfPayload: Codable {
-
-
- public var pdfTypeId: Double?
-
- public var payload: PdfPayloadDetails?
-
- public var countryCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case payload = "payload"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String? = nil, payload: PdfPayloadDetails? = nil, pdfTypeId: Double? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.payload = payload
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Double.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
-
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.FileStorage {
- /*
- Model: savePdfPayload
- Used By: FileStorage
- */
-
- class savePdfPayload: Codable {
-
-
- public var pdfTypeId: Double?
-
- public var payload: PdfPayloadDetails?
-
- public var countryCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfTypeId = "pdf_type_id"
-
- case payload = "payload"
-
- case countryCode = "country_code"
-
- }
-
- public init(countryCode: String? = nil, payload: PdfPayloadDetails? = nil, pdfTypeId: Double? = nil) {
-
- self.pdfTypeId = pdfTypeId
-
- self.payload = payload
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfTypeId = try container.decode(Double.self, forKey: .pdfTypeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payload = try container.decode(PdfPayloadDetails.self, forKey: .payload)
-
- } 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfTypeId, forKey: .pdfTypeId)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Finance/ChannelDisplayNameItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ChannelDisplayNameItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..ee32a7d596
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ChannelDisplayNameItemsFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ChannelDisplayNameItems
+ Used By: Finance
+ */
+
+ class ChannelDisplayNameItems: Codable {
+
+
+ public var key: String?
+
+ public var value: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case key = "key"
+
+ case value = "value"
+
+ }
+
+ public init(key: String? = nil, value: String? = nil) {
+
+ self.key = key
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(key, forKey: .key)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ChannelDisplayNameResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ChannelDisplayNameResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..80e658946f
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ChannelDisplayNameResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ChannelDisplayNameResponse
+ Used By: Finance
+ */
+
+ class ChannelDisplayNameResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var items: [ChannelDisplayNameItems]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ChannelDisplayNameItems]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ items = try container.decode([ChannelDisplayNameItems].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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnDetailsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnDetailsFinancePlatformModel.swift
new file mode 100644
index 0000000000..f6558128f0
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnDetailsFinancePlatformModel.swift
@@ -0,0 +1,246 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnDetails
+ Used By: Finance
+ */
+
+ class CnDetails: Codable {
+
+
+ public var staffId: String?
+
+ public var expiryDate: String?
+
+ public var channelOfIssuance: String?
+
+ public var orderId: String?
+
+ public var dateIssued: String?
+
+ public var orderingChannel: String?
+
+ public var shipmentId: String?
+
+ public var storeId: String?
+
+ public var invoiceNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case staffId = "staff_id"
+
+ case expiryDate = "expiry_date"
+
+ case channelOfIssuance = "channel_of_issuance"
+
+ case orderId = "order_id"
+
+ case dateIssued = "date_issued"
+
+ case orderingChannel = "ordering_channel"
+
+ case shipmentId = "shipment_id"
+
+ case storeId = "store_id"
+
+ case invoiceNumber = "invoice_number"
+
+ }
+
+ public init(channelOfIssuance: String? = nil, dateIssued: String? = nil, expiryDate: String? = nil, invoiceNumber: String? = nil, orderingChannel: String? = nil, orderId: String? = nil, shipmentId: String? = nil, staffId: String? = nil, storeId: String? = nil) {
+
+ self.staffId = staffId
+
+ self.expiryDate = expiryDate
+
+ self.channelOfIssuance = channelOfIssuance
+
+ self.orderId = orderId
+
+ self.dateIssued = dateIssued
+
+ self.orderingChannel = orderingChannel
+
+ self.shipmentId = shipmentId
+
+ self.storeId = storeId
+
+ self.invoiceNumber = invoiceNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ staffId = try container.decode(String.self, forKey: .staffId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ expiryDate = try container.decode(String.self, forKey: .expiryDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ channelOfIssuance = try container.decode(String.self, forKey: .channelOfIssuance)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dateIssued = try container.decode(String.self, forKey: .dateIssued)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingChannel = try container.decode(String.self, forKey: .orderingChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeId = try container.decode(String.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } 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(staffId, forKey: .staffId)
+
+
+
+
+ try? container.encodeIfPresent(expiryDate, forKey: .expiryDate)
+
+
+
+
+ try? container.encodeIfPresent(channelOfIssuance, forKey: .channelOfIssuance)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(dateIssued, forKey: .dateIssued)
+
+
+
+
+ try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(invoiceNumber, forKey: .invoiceNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnDownloadReportFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnDownloadReportFinancePlatformModel.swift
new file mode 100644
index 0000000000..4a49bf81f0
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnDownloadReportFinancePlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnDownloadReport
+ Used By: Finance
+ */
+
+ class CnDownloadReport: Codable {
+
+
+ public var page: Int?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var affiliateId: String?
+
+ public var search: String?
+
+ public var status: String?
+
+ public var searchType: String?
+
+ public var pageSize: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case affiliateId = "affiliate_id"
+
+ case search = "search"
+
+ case status = "status"
+
+ case searchType = "search_type"
+
+ case pageSize = "page_size"
+
+ }
+
+ public init(affiliateId: String? = nil, endDate: String? = nil, page: Int? = nil, pageSize: Int? = nil, search: String? = nil, searchType: String? = nil, startDate: String? = nil, status: String? = nil) {
+
+ self.page = page
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.affiliateId = affiliateId
+
+ self.search = search
+
+ self.status = status
+
+ self.searchType = searchType
+
+ self.pageSize = pageSize
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchType = try container.decode(String.self, forKey: .searchType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(searchType, forKey: .searchType)
+
+
+
+
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnGenerateReportFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnGenerateReportFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..b22efde995
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnGenerateReportFiltersFinancePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnGenerateReportFilters
+ Used By: Finance
+ */
+
+ class CnGenerateReportFilters: Codable {
+
+
+ public var staffId: [String]?
+
+ public var channelOfIssuance: [String]?
+
+ public var utilisation: [String]?
+
+ public var orderingChannel: [String]?
+
+ public var storeId: [Int]?
+
+ public var typeOfTransaction: [String]?
+
+ public var issuanceChannel: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case staffId = "staff_id"
+
+ case channelOfIssuance = "channel_of_issuance"
+
+ case utilisation = "utilisation"
+
+ case orderingChannel = "ordering_channel"
+
+ case storeId = "store_id"
+
+ case typeOfTransaction = "type_of_transaction"
+
+ case issuanceChannel = "issuance_channel"
+
+ }
+
+ public init(channelOfIssuance: [String]? = nil, issuanceChannel: [String]? = nil, orderingChannel: [String]? = nil, staffId: [String]? = nil, storeId: [Int]? = nil, typeOfTransaction: [String]? = nil, utilisation: [String]? = nil) {
+
+ self.staffId = staffId
+
+ self.channelOfIssuance = channelOfIssuance
+
+ self.utilisation = utilisation
+
+ self.orderingChannel = orderingChannel
+
+ self.storeId = storeId
+
+ self.typeOfTransaction = typeOfTransaction
+
+ self.issuanceChannel = issuanceChannel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ staffId = try container.decode([String].self, forKey: .staffId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ channelOfIssuance = try container.decode([String].self, forKey: .channelOfIssuance)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ utilisation = try container.decode([String].self, forKey: .utilisation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingChannel = try container.decode([String].self, forKey: .orderingChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeId = try container.decode([Int].self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ typeOfTransaction = try container.decode([String].self, forKey: .typeOfTransaction)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ issuanceChannel = try container.decode([String].self, forKey: .issuanceChannel)
+
+ } 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(staffId, forKey: .staffId)
+
+
+
+
+ try? container.encodeIfPresent(channelOfIssuance, forKey: .channelOfIssuance)
+
+
+
+
+ try? container.encodeIfPresent(utilisation, forKey: .utilisation)
+
+
+
+
+ try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(typeOfTransaction, forKey: .typeOfTransaction)
+
+
+
+
+ try? container.encodeIfPresent(issuanceChannel, forKey: .issuanceChannel)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnGenerateReportFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnGenerateReportFinancePlatformModel.swift
new file mode 100644
index 0000000000..61e00b1e54
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnGenerateReportFinancePlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnGenerateReport
+ Used By: Finance
+ */
+
+ class CnGenerateReport: Codable {
+
+
+ public var page: Int?
+
+ public var endDate: String?
+
+ public var pageSize: Int?
+
+ public var filters: CnGenerateReportFilters?
+
+ public var affiliateId: String?
+
+ public var meta: GenerateReportFilters?
+
+ public var search: String?
+
+ public var reportId: String?
+
+ public var searchType: String?
+
+ public var startDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case endDate = "end_date"
+
+ case pageSize = "page_size"
+
+ case filters = "filters"
+
+ case affiliateId = "affiliate_id"
+
+ case meta = "meta"
+
+ case search = "search"
+
+ case reportId = "report_id"
+
+ case searchType = "search_type"
+
+ case startDate = "start_date"
+
+ }
+
+ public init(affiliateId: String? = nil, endDate: String? = nil, filters: CnGenerateReportFilters? = nil, meta: GenerateReportFilters? = nil, page: Int? = nil, pageSize: Int? = nil, reportId: String? = nil, search: String? = nil, searchType: String? = nil, startDate: String? = nil) {
+
+ self.page = page
+
+ self.endDate = endDate
+
+ self.pageSize = pageSize
+
+ self.filters = filters
+
+ self.affiliateId = affiliateId
+
+ self.meta = meta
+
+ self.search = search
+
+ self.reportId = reportId
+
+ self.searchType = searchType
+
+ self.startDate = startDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(CnGenerateReportFilters.self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(GenerateReportFilters.self, forKey: .meta)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ reportId = try container.decode(String.self, forKey: .reportId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ searchType = try container.decode(String.self, forKey: .searchType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } 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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(reportId, forKey: .reportId)
+
+
+
+
+ try? container.encodeIfPresent(searchType, forKey: .searchType)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnGenerateReportItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnGenerateReportItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..a036325967
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnGenerateReportItemsFinancePlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnGenerateReportItems
+ Used By: Finance
+ */
+
+ class CnGenerateReportItems: Codable {
+
+
+ public var expiryDate: String?
+
+ public var status: String?
+
+ public var totalAmount: Int?
+
+ public var orderId: String?
+
+ public var dateIssued: String?
+
+ public var shipmentId: String?
+
+ public var invoiceNumber: String?
+
+ public var creditNoteNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case expiryDate = "expiry_date"
+
+ case status = "status"
+
+ case totalAmount = "total_amount"
+
+ case orderId = "order_id"
+
+ case dateIssued = "date_issued"
+
+ case shipmentId = "shipment_id"
+
+ case invoiceNumber = "invoice_number"
+
+ case creditNoteNumber = "credit_note_number"
+
+ }
+
+ public init(creditNoteNumber: String? = nil, dateIssued: String? = nil, expiryDate: String? = nil, invoiceNumber: String? = nil, orderId: String? = nil, shipmentId: String? = nil, status: String? = nil, totalAmount: Int? = nil) {
+
+ self.expiryDate = expiryDate
+
+ self.status = status
+
+ self.totalAmount = totalAmount
+
+ self.orderId = orderId
+
+ self.dateIssued = dateIssued
+
+ self.shipmentId = shipmentId
+
+ self.invoiceNumber = invoiceNumber
+
+ self.creditNoteNumber = creditNoteNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ expiryDate = try container.decode(String.self, forKey: .expiryDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dateIssued = try container.decode(String.self, forKey: .dateIssued)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ creditNoteNumber = try container.decode(String.self, forKey: .creditNoteNumber)
+
+ } 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(expiryDate, forKey: .expiryDate)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(dateIssued, forKey: .dateIssued)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(invoiceNumber, forKey: .invoiceNumber)
+
+
+
+
+ try? container.encodeIfPresent(creditNoteNumber, forKey: .creditNoteNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CnReferenceNumberFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CnReferenceNumberFinancePlatformModel.swift
new file mode 100644
index 0000000000..c11beae709
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CnReferenceNumberFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CnReferenceNumber
+ Used By: Finance
+ */
+
+ class CnReferenceNumber: Codable {
+
+
+ public var cnReferenceNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case cnReferenceNumber = "cn_reference_number"
+
+ }
+
+ public init(cnReferenceNumber: String? = nil) {
+
+ self.cnReferenceNumber = cnReferenceNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ cnReferenceNumber = try container.decode(String.self, forKey: .cnReferenceNumber)
+
+ } 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(cnReferenceNumber, forKey: .cnReferenceNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigFinancePlatformModel.swift
new file mode 100644
index 0000000000..db5795d7ea
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigFinancePlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreateSellerCreditNoteConfig
+ Used By: Finance
+ */
+
+ class CreateSellerCreditNoteConfig: Codable {
+
+
+ public var isCnAsRefundMethod: Bool?
+
+ public var affiliateId: String?
+
+ public var sourceChannel: [String]?
+
+ public var sellerId: Int?
+
+ public var notificationEvents: CreditNoteConfigNotificationEvents?
+
+ public var salesChannelName: String?
+
+ public var orderingChannel: [String]?
+
+ public var validity: Int?
+
+ public var currencyType: String?
+
+ public var slugValues: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isCnAsRefundMethod = "is_cn_as_refund_method"
+
+ case affiliateId = "affiliate_id"
+
+ case sourceChannel = "source_channel"
+
+ case sellerId = "seller_id"
+
+ case notificationEvents = "notification_events"
+
+ case salesChannelName = "sales_channel_name"
+
+ case orderingChannel = "ordering_channel"
+
+ case validity = "validity"
+
+ case currencyType = "currency_type"
+
+ case slugValues = "slug_values"
+
+ }
+
+ public init(affiliateId: String? = nil, currencyType: String? = nil, isCnAsRefundMethod: Bool? = nil, notificationEvents: CreditNoteConfigNotificationEvents? = nil, orderingChannel: [String]? = nil, salesChannelName: String? = nil, sellerId: Int? = nil, slugValues: [String]? = nil, sourceChannel: [String]? = nil, validity: Int? = nil) {
+
+ self.isCnAsRefundMethod = isCnAsRefundMethod
+
+ self.affiliateId = affiliateId
+
+ self.sourceChannel = sourceChannel
+
+ self.sellerId = sellerId
+
+ self.notificationEvents = notificationEvents
+
+ self.salesChannelName = salesChannelName
+
+ self.orderingChannel = orderingChannel
+
+ self.validity = validity
+
+ self.currencyType = currencyType
+
+ self.slugValues = slugValues
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isCnAsRefundMethod = try container.decode(Bool.self, forKey: .isCnAsRefundMethod)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sourceChannel = try container.decode([String].self, forKey: .sourceChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ notificationEvents = try container.decode(CreditNoteConfigNotificationEvents.self, forKey: .notificationEvents)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ salesChannelName = try container.decode(String.self, forKey: .salesChannelName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingChannel = try container.decode([String].self, forKey: .orderingChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ validity = try container.decode(Int.self, forKey: .validity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currencyType = try container.decode(String.self, forKey: .currencyType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ slugValues = try container.decode([String].self, forKey: .slugValues)
+
+ } 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(isCnAsRefundMethod, forKey: .isCnAsRefundMethod)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(sourceChannel, forKey: .sourceChannel)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(notificationEvents, forKey: .notificationEvents)
+
+
+
+
+ try? container.encodeIfPresent(salesChannelName, forKey: .salesChannelName)
+
+
+
+
+ try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
+
+
+
+
+ try? container.encodeIfPresent(validity, forKey: .validity)
+
+
+
+
+ try? container.encodeIfPresent(currencyType, forKey: .currencyType)
+
+
+
+
+ try? container.encodeIfPresent(slugValues, forKey: .slugValues)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..f67eb31351
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreateSellerCreditNoteConfigReq
+ Used By: Finance
+ */
+
+ class CreateSellerCreditNoteConfigReq: Codable {
+
+
+ public var data: CreateSellerCreditNoteConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CreateSellerCreditNoteConfig? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CreateSellerCreditNoteConfig.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..d830dedafa
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreateSellerCreditNoteConfigResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreateSellerCreditNoteConfigResponse
+ Used By: Finance
+ */
+
+ class CreateSellerCreditNoteConfigResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditNoteConfigNotificationEventsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditNoteConfigNotificationEventsFinancePlatformModel.swift
new file mode 100644
index 0000000000..b97594ee59
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditNoteConfigNotificationEventsFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditNoteConfigNotificationEvents
+ Used By: Finance
+ */
+
+ class CreditNoteConfigNotificationEvents: Codable {
+
+
+ public var expirationReminderToCustomer: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case expirationReminderToCustomer = "expiration_reminder_to_customer"
+
+ }
+
+ public init(expirationReminderToCustomer: Int? = nil) {
+
+ self.expirationReminderToCustomer = expirationReminderToCustomer
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ expirationReminderToCustomer = try container.decode(Int.self, forKey: .expirationReminderToCustomer)
+
+ } 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(expirationReminderToCustomer, forKey: .expirationReminderToCustomer)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditNoteDetailsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditNoteDetailsFinancePlatformModel.swift
new file mode 100644
index 0000000000..84947b8885
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditNoteDetailsFinancePlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditNoteDetails
+ Used By: Finance
+ */
+
+ class CreditNoteDetails: Codable {
+
+
+ public var currency: String?
+
+ public var currentAmountUsed: Double?
+
+ public var cnStatus: String?
+
+ public var customerMobileNumber: String?
+
+ public var cnReferenceNumber: String?
+
+ public var cnDetails: CnDetails?
+
+ public var redemptionDetails: [RedemptionDetails]?
+
+ public var remainingCnAmount: Int?
+
+ public var availableCnBalance: Int?
+
+ public var cnAmount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case currency = "currency"
+
+ case currentAmountUsed = "current_amount_used"
+
+ case cnStatus = "cn_status"
+
+ case customerMobileNumber = "customer_mobile_number"
+
+ case cnReferenceNumber = "cn_reference_number"
+
+ case cnDetails = "cn_details"
+
+ case redemptionDetails = "redemption_details"
+
+ case remainingCnAmount = "remaining_cn_amount"
+
+ case availableCnBalance = "available_cn_balance"
+
+ case cnAmount = "cn_amount"
+
+ }
+
+ public init(availableCnBalance: Int? = nil, cnAmount: Int? = nil, cnDetails: CnDetails? = nil, cnReferenceNumber: String? = nil, cnStatus: String? = nil, currency: String? = nil, currentAmountUsed: Double? = nil, customerMobileNumber: String? = nil, redemptionDetails: [RedemptionDetails]? = nil, remainingCnAmount: Int? = nil) {
+
+ self.currency = currency
+
+ self.currentAmountUsed = currentAmountUsed
+
+ self.cnStatus = cnStatus
+
+ self.customerMobileNumber = customerMobileNumber
+
+ self.cnReferenceNumber = cnReferenceNumber
+
+ self.cnDetails = cnDetails
+
+ self.redemptionDetails = redemptionDetails
+
+ self.remainingCnAmount = remainingCnAmount
+
+ self.availableCnBalance = availableCnBalance
+
+ self.cnAmount = cnAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ currentAmountUsed = try container.decode(Double.self, forKey: .currentAmountUsed)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cnStatus = try container.decode(String.self, forKey: .cnStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cnReferenceNumber = try container.decode(String.self, forKey: .cnReferenceNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cnDetails = try container.decode(CnDetails.self, forKey: .cnDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redemptionDetails = try container.decode([RedemptionDetails].self, forKey: .redemptionDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ remainingCnAmount = try container.decode(Int.self, forKey: .remainingCnAmount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ availableCnBalance = try container.decode(Int.self, forKey: .availableCnBalance)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cnAmount = try container.decode(Int.self, forKey: .cnAmount)
+
+ } 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(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(currentAmountUsed, forKey: .currentAmountUsed)
+
+
+
+
+ try? container.encodeIfPresent(cnStatus, forKey: .cnStatus)
+
+
+
+
+ try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
+
+
+
+
+ try? container.encodeIfPresent(cnReferenceNumber, forKey: .cnReferenceNumber)
+
+
+
+
+ try? container.encodeIfPresent(cnDetails, forKey: .cnDetails)
+
+
+
+
+ try? container.encodeIfPresent(redemptionDetails, forKey: .redemptionDetails)
+
+
+
+
+ try? container.encodeIfPresent(remainingCnAmount, forKey: .remainingCnAmount)
+
+
+
+
+ try? container.encodeIfPresent(availableCnBalance, forKey: .availableCnBalance)
+
+
+
+
+ try? container.encodeIfPresent(cnAmount, forKey: .cnAmount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditNoteDetailsReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditNoteDetailsReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..9b868b6e5a
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditNoteDetailsReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditNoteDetailsReq
+ Used By: Finance
+ */
+
+ class CreditNoteDetailsReq: Codable {
+
+
+ public var data: CnReferenceNumber?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CnReferenceNumber? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CnReferenceNumber.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditNoteDetailsResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditNoteDetailsResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..3a71da6f31
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditNoteDetailsResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditNoteDetailsResponse
+ Used By: Finance
+ */
+
+ class CreditNoteDetailsResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: CreditNoteDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: CreditNoteDetails? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(CreditNoteDetails.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditlineDataPlatformPayloadFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditlineDataPlatformPayloadFinancePlatformModel.swift
new file mode 100644
index 0000000000..5f8816c57d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditlineDataPlatformPayloadFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditlineDataPlatformPayload
+ Used By: Finance
+ */
+
+ class CreditlineDataPlatformPayload: Codable {
+
+
+ public var page: Int?
+
+ public var sellerId: String?
+
+ public var endDate: String?
+
+ public var startDate: String?
+
+ public var pageSize: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case sellerId = "seller_id"
+
+ case endDate = "end_date"
+
+ case startDate = "start_date"
+
+ case pageSize = "page_size"
+
+ }
+
+ public init(endDate: String? = nil, page: Int? = nil, pageSize: Int? = nil, sellerId: String? = nil, startDate: String? = nil) {
+
+ self.page = page
+
+ self.sellerId = sellerId
+
+ self.endDate = endDate
+
+ self.startDate = startDate
+
+ self.pageSize = pageSize
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(String.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditlineDataPlatformReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditlineDataPlatformReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..28c2e2569a
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditlineDataPlatformReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditlineDataPlatformReq
+ Used By: Finance
+ */
+
+ class CreditlineDataPlatformReq: Codable {
+
+
+ public var data: CreditlineDataPlatformPayload?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CreditlineDataPlatformPayload? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CreditlineDataPlatformPayload.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CreditlineDataPlatformResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CreditlineDataPlatformResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..23989e79f0
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CreditlineDataPlatformResponseFinancePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: CreditlineDataPlatformResponse
+ Used By: Finance
+ */
+
+ class CreditlineDataPlatformResponse: Codable {
+
+
+ public var items: [[String: Any]]?
+
+ public var code: Int?
+
+ public var showMr: Bool?
+
+ public var page: Page?
+
+ public var message: String?
+
+ public var headers: [String]?
+
+ public var itemCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case code = "code"
+
+ case showMr = "show_mr"
+
+ case page = "page"
+
+ case message = "message"
+
+ case headers = "headers"
+
+ case itemCount = "item_count"
+
+ }
+
+ public init(code: Int? = nil, headers: [String]? = nil, items: [[String: Any]]? = nil, itemCount: Int? = nil, message: String? = nil, page: Page? = nil, showMr: Bool? = nil) {
+
+ self.items = items
+
+ self.code = code
+
+ self.showMr = showMr
+
+ self.page = page
+
+ self.message = message
+
+ self.headers = headers
+
+ self.itemCount = itemCount
+
+ }
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ code = try container.decode(Int.self, forKey: .code)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showMr = try container.decode(Bool.self, forKey: .showMr)
+
+ } 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)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ headers = try container.decode([String].self, forKey: .headers)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(showMr, forKey: .showMr)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(headers, forKey: .headers)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/CurrencyFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/CurrencyFinancePlatformModel.swift
new file mode 100644
index 0000000000..02f009a412
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/CurrencyFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: Currency
+ Used By: Finance
+ */
+
+ class Currency: Codable {
+
+
+ public var code: String?
+
+ public var symbol: String?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case symbol = "symbol"
+
+ case name = "name"
+
+ }
+
+ public init(code: String? = nil, name: String? = nil, symbol: String? = nil) {
+
+ self.code = code
+
+ self.symbol = symbol
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ symbol = try container.decode(String.self, forKey: .symbol)
+
+ } 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(symbol, forKey: .symbol)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DeleteConfigFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DeleteConfigFinancePlatformModel.swift
new file mode 100644
index 0000000000..68a4ec6d68
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DeleteConfigFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DeleteConfig
+ Used By: Finance
+ */
+
+ class DeleteConfig: Codable {
+
+
+ public var affiliateId: String?
+
+ public var slugValues: [String]?
+
+ public var sellerId: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case affiliateId = "affiliate_id"
+
+ case slugValues = "slug_values"
+
+ case sellerId = "seller_id"
+
+ }
+
+ public init(affiliateId: String? = nil, sellerId: Int? = nil, slugValues: [String]? = nil) {
+
+ self.affiliateId = affiliateId
+
+ self.slugValues = slugValues
+
+ self.sellerId = sellerId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ slugValues = try container.decode([String].self, forKey: .slugValues)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } 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(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(slugValues, forKey: .slugValues)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DeleteConfigReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DeleteConfigReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..aa1208f42c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DeleteConfigReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DeleteConfigReq
+ Used By: Finance
+ */
+
+ class DeleteConfigReq: Codable {
+
+
+ public var data: DeleteConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: DeleteConfig? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(DeleteConfig.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DeleteConfigResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DeleteConfigResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..a5cc54883d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DeleteConfigResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DeleteConfigResponse
+ Used By: Finance
+ */
+
+ class DeleteConfigResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteFinancePlatformModel.swift
new file mode 100644
index 0000000000..b00cb455ee
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadCreditDebitNote
+ Used By: Finance
+ */
+
+ class DownloadCreditDebitNote: Codable {
+
+
+ public var noteId: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case noteId = "note_id"
+
+ }
+
+ public init(noteId: [String]? = nil) {
+
+ self.noteId = noteId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ noteId = try container.decode([String].self, forKey: .noteId)
+
+ } 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(noteId, forKey: .noteId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..c29d45c293
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadCreditDebitNoteReq
+ Used By: Finance
+ */
+
+ class DownloadCreditDebitNoteReq: Codable {
+
+
+ public var data: DownloadCreditDebitNote?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: DownloadCreditDebitNote? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(DownloadCreditDebitNote.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..7399c32d1c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadCreditDebitNoteResponseData
+ Used By: Finance
+ */
+
+ class DownloadCreditDebitNoteResponseData: Codable {
+
+
+ public var id: String?
+
+ public var pdfS3Url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case pdfS3Url = "pdf_s3_url"
+
+ }
+
+ public init(id: String? = nil, pdfS3Url: String? = nil) {
+
+ self.id = id
+
+ self.pdfS3Url = pdfS3Url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ pdfS3Url = try container.decode(String.self, forKey: .pdfS3Url)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(pdfS3Url, forKey: .pdfS3Url)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..7696f8cab4
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadCreditDebitNoteResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadCreditDebitNoteResponse
+ Used By: Finance
+ */
+
+ class DownloadCreditDebitNoteResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [DownloadCreditDebitNoteResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: [DownloadCreditDebitNoteResponseData]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([DownloadCreditDebitNoteResponseData].self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportCustomerCnReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportCustomerCnReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..a92cf23ab7
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportCustomerCnReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportCustomerCnReq
+ Used By: Finance
+ */
+
+ class DownloadReportCustomerCnReq: Codable {
+
+
+ public var data: CnDownloadReport?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CnDownloadReport? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CnDownloadReport.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportCustomerCnResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportCustomerCnResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..e8c1cde631
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportCustomerCnResponseFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportCustomerCnResponse
+ Used By: Finance
+ */
+
+ class DownloadReportCustomerCnResponse: Codable {
+
+
+ public var items: [DownloadReportResponseData]?
+
+ public var itemCount: Int?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case itemCount = "item_count"
+
+ case page = "page"
+
+ }
+
+ public init(items: [DownloadReportResponseData]? = nil, itemCount: Int? = nil, page: Page? = nil) {
+
+ self.items = items
+
+ self.itemCount = itemCount
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([DownloadReportResponseData].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+ } 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(itemCount, forKey: .itemCount)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..794a95a966
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportDataFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportData
+ Used By: Finance
+ */
+
+ class DownloadReportData: Codable {
+
+
+ public var page: Int?
+
+ public var pageSize: Int?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case pageSize = "page_size"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ }
+
+ public init(endDate: String? = nil, page: Int? = nil, pageSize: Int? = nil, startDate: String? = nil) {
+
+ self.page = page
+
+ self.pageSize = pageSize
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportFinancePlatformModel.swift
new file mode 100644
index 0000000000..6170314b6d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReport
+ Used By: Finance
+ */
+
+ class DownloadReport: Codable {
+
+
+ public var data: DownloadReportData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: DownloadReportData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(DownloadReportData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..0deb9cb68b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportItemsFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportItems
+ Used By: Finance
+ */
+
+ class DownloadReportItems: Codable {
+
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var meta: GenerateReportMeta?
+
+ public var reportId: String?
+
+ public var filters: GenerateReportFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case meta = "meta"
+
+ case reportId = "report_id"
+
+ case filters = "filters"
+
+ }
+
+ public init(endDate: String? = nil, filters: GenerateReportFilters? = nil, meta: GenerateReportMeta? = nil, reportId: String? = nil, startDate: String? = nil) {
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.meta = meta
+
+ self.reportId = reportId
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(GenerateReportMeta.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportId = try container.decode(String.self, forKey: .reportId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(GenerateReportFilters.self, forKey: .filters)
+
+ } 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(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(reportId, forKey: .reportId)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportListFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportListFinancePlatformModel.swift
new file mode 100644
index 0000000000..c296cd8f29
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportListFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportList
+ Used By: Finance
+ */
+
+ class DownloadReportList: Codable {
+
+
+ public var items: [DownloadReportItems]?
+
+ public var page: Page?
+
+ public var itemCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case itemCount = "item_count"
+
+ }
+
+ public init(items: [DownloadReportItems]? = nil, itemCount: Int? = nil, page: Page? = nil) {
+
+ self.items = items
+
+ self.page = page
+
+ self.itemCount = itemCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([DownloadReportItems].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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(itemCount, forKey: .itemCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/DownloadReportResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/DownloadReportResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..22d2f2b495
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/DownloadReportResponseDataFinancePlatformModel.swift
@@ -0,0 +1,361 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: DownloadReportResponseData
+ Used By: Finance
+ */
+
+ class DownloadReportResponseData: Codable {
+
+
+ public var reportConfigId: String?
+
+ public var fullName: String?
+
+ public var requestedBy: String?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var requestDict: [String: Any]?
+
+ public var downloadLink: String?
+
+ public var createdAt: String?
+
+ public var meta: [String: Any]?
+
+ public var msg: String?
+
+ public var reportName: String?
+
+ public var status: String?
+
+ public var displayName: String?
+
+ public var filters: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reportConfigId = "report_config_id"
+
+ case fullName = "full_name"
+
+ case requestedBy = "requested_by"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case requestDict = "request_dict"
+
+ case downloadLink = "download_link"
+
+ case createdAt = "created_at"
+
+ case meta = "meta"
+
+ case msg = "msg"
+
+ case reportName = "report_name"
+
+ case status = "status"
+
+ case displayName = "display_name"
+
+ case filters = "filters"
+
+ }
+
+ public init(createdAt: String? = nil, displayName: String? = nil, downloadLink: String? = nil, endDate: String? = nil, filters: [String: Any]? = nil, fullName: String? = nil, meta: [String: Any]? = nil, msg: String? = nil, reportConfigId: String? = nil, reportName: String? = nil, requestedBy: String? = nil, requestDict: [String: Any]? = nil, startDate: String? = nil, status: String? = nil) {
+
+ self.reportConfigId = reportConfigId
+
+ self.fullName = fullName
+
+ self.requestedBy = requestedBy
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.requestDict = requestDict
+
+ self.downloadLink = downloadLink
+
+ self.createdAt = createdAt
+
+ self.meta = meta
+
+ self.msg = msg
+
+ self.reportName = reportName
+
+ self.status = status
+
+ self.displayName = displayName
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reportConfigId = try container.decode(String.self, forKey: .reportConfigId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fullName = try container.decode(String.self, forKey: .fullName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ requestedBy = try container.decode(String.self, forKey: .requestedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ requestDict = try container.decode([String: Any].self, forKey: .requestDict)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ downloadLink = try container.decode(String.self, forKey: .downloadLink)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ msg = try container.decode(String.self, forKey: .msg)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportName = try container.decode(String.self, forKey: .reportName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+ filters = try container.decode([String: Any].self, forKey: .filters)
+
+ } 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(reportConfigId, forKey: .reportConfigId)
+
+
+
+
+ try? container.encodeIfPresent(fullName, forKey: .fullName)
+
+
+
+
+ try? container.encodeIfPresent(requestedBy, forKey: .requestedBy)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(requestDict, forKey: .requestDict)
+
+
+
+
+ try? container.encodeIfPresent(downloadLink, forKey: .downloadLink)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(msg, forKey: .msg)
+
+
+
+
+ try? container.encodeIfPresent(reportName, forKey: .reportName)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ErrorFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ErrorFinancePlatformModel.swift
new file mode 100644
index 0000000000..36a5cf67f6
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ErrorFinancePlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: Error
+ Used By: Finance
+ */
+
+ class Error: Codable {
+
+
+ public var status: Int?
+
+ public var reason: String?
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var code: String?
+
+ public var exception: String?
+
+ public var info: String?
+
+ public var requestId: String?
+
+ public var stackTrace: String?
+
+ public var meta: ErrorMeta?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case reason = "reason"
+
+ case success = "success"
+
+ case message = "message"
+
+ case code = "code"
+
+ case exception = "exception"
+
+ case info = "info"
+
+ case requestId = "request_id"
+
+ case stackTrace = "stack_trace"
+
+ case meta = "meta"
+
+ }
+
+ public init(code: String? = nil, exception: String? = nil, info: String? = nil, message: String? = nil, meta: ErrorMeta? = nil, reason: String? = nil, requestId: String? = nil, stackTrace: String? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.reason = reason
+
+ self.success = success
+
+ self.message = message
+
+ self.code = code
+
+ self.exception = exception
+
+ self.info = info
+
+ self.requestId = requestId
+
+ self.stackTrace = stackTrace
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ info = try container.decode(String.self, forKey: .info)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(ErrorMeta.self, forKey: .meta)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+
+
+ try? container.encodeIfPresent(info, forKey: .info)
+
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ErrorMetaFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ErrorMetaFinancePlatformModel.swift
new file mode 100644
index 0000000000..2106821ca4
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ErrorMetaFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ErrorMeta
+ Used By: Finance
+ */
+
+ class ErrorMeta: Codable {
+
+
+ public var columnsErrors: [ErrorMetaItems]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case columnsErrors = "columns_errors"
+
+ }
+
+ public init(columnsErrors: [ErrorMetaItems]? = nil) {
+
+ self.columnsErrors = columnsErrors
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ columnsErrors = try container.decode([ErrorMetaItems].self, forKey: .columnsErrors)
+
+ } 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(columnsErrors, forKey: .columnsErrors)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ErrorMetaItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ErrorMetaItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..b331923f1b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ErrorMetaItemsFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ErrorMetaItems
+ Used By: Finance
+ */
+
+ class ErrorMetaItems: Codable {
+
+
+ public var code: Int?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case message = "message"
+
+ }
+
+ public init(code: Int? = nil, message: String? = nil) {
+
+ self.code = code
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ code = try container.decode(Int.self, forKey: .code)
+
+ } 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)
+
+ } 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(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportCustomerCnReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..665095afcd
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportCustomerCnReq
+ Used By: Finance
+ */
+
+ class GenerateReportCustomerCnReq: Codable {
+
+
+ public var data: CnGenerateReport?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CnGenerateReport? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CnGenerateReport.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..a859b85194
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseDataFinancePlatformModel.swift
@@ -0,0 +1,292 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportCustomerCnResponseData
+ Used By: Finance
+ */
+
+ class GenerateReportCustomerCnResponseData: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var items: [CnGenerateReportItems]?
+
+ public var rowHeaderDisplayOrder: [String: Any]?
+
+ public var endDate: String?
+
+ public var page: Page?
+
+ public var headers: [String]?
+
+ public var primaryHeaders: [String]?
+
+ public var allowedFilters: [String]?
+
+ public var startDate: String?
+
+ public var itemCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case items = "items"
+
+ case rowHeaderDisplayOrder = "row_header_display_order"
+
+ case endDate = "end_date"
+
+ case page = "page"
+
+ case headers = "headers"
+
+ case primaryHeaders = "primary_headers"
+
+ case allowedFilters = "allowed_filters"
+
+ case startDate = "start_date"
+
+ case itemCount = "item_count"
+
+ }
+
+ public init(allowedFilters: [String]? = nil, endDate: String? = nil, headers: [String]? = nil, items: [CnGenerateReportItems]? = nil, itemCount: Int? = nil, message: String? = nil, page: Page? = nil, primaryHeaders: [String]? = nil, rowHeaderDisplayOrder: [String: Any]? = nil, startDate: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.items = items
+
+ self.rowHeaderDisplayOrder = rowHeaderDisplayOrder
+
+ self.endDate = endDate
+
+ self.page = page
+
+ self.headers = headers
+
+ self.primaryHeaders = primaryHeaders
+
+ self.allowedFilters = allowedFilters
+
+ self.startDate = startDate
+
+ self.itemCount = itemCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([CnGenerateReportItems].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ rowHeaderDisplayOrder = try container.decode([String: Any].self, forKey: .rowHeaderDisplayOrder)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ headers = try container.decode([String].self, forKey: .headers)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ primaryHeaders = try container.decode([String].self, forKey: .primaryHeaders)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ allowedFilters = try container.decode([String].self, forKey: .allowedFilters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(rowHeaderDisplayOrder, forKey: .rowHeaderDisplayOrder)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(headers, forKey: .headers)
+
+
+
+
+ try? container.encodeIfPresent(primaryHeaders, forKey: .primaryHeaders)
+
+
+
+
+ try? container.encodeIfPresent(allowedFilters, forKey: .allowedFilters)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..2f18e37d05
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportCustomerCnResponseFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportCustomerCnResponse
+ Used By: Finance
+ */
+
+ class GenerateReportCustomerCnResponse: Codable {
+
+
+ public var data: GenerateReportCustomerCnResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GenerateReportCustomerCnResponseData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GenerateReportCustomerCnResponseData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..6f30432af3
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportFiltersFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportFilters
+ Used By: Finance
+ */
+
+ class GenerateReportFilters: Codable {
+
+
+ public var brand: [String]?
+
+ public var company: [String]?
+
+ public var channel: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brand = "brand"
+
+ case company = "company"
+
+ case channel = "channel"
+
+ }
+
+ public init(brand: [String]? = nil, channel: [String]? = nil, company: [String]? = nil) {
+
+ self.brand = brand
+
+ self.company = company
+
+ self.channel = channel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brand = try container.decode([String].self, forKey: .brand)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ channel = try container.decode([String].self, forKey: .channel)
+
+ } 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(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(channel, forKey: .channel)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportJsonFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportJsonFinancePlatformModel.swift
new file mode 100644
index 0000000000..fb28ceddba
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportJsonFinancePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportJson
+ Used By: Finance
+ */
+
+ class GenerateReportJson: Codable {
+
+
+ public var data: [String: Any]?
+
+ public var itemCount: Int?
+
+ public var page: Page?
+
+ public var endDate: String?
+
+ public var startDate: String?
+
+ public var items: [[String]]?
+
+ public var headers: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case itemCount = "item_count"
+
+ case page = "page"
+
+ case endDate = "end_date"
+
+ case startDate = "start_date"
+
+ case items = "items"
+
+ case headers = "headers"
+
+ }
+
+ public init(data: [String: Any]? = nil, endDate: String? = nil, headers: [String]? = nil, items: [[String]]? = nil, itemCount: Int? = nil, page: Page? = nil, startDate: String? = nil) {
+
+ self.data = data
+
+ self.itemCount = itemCount
+
+ self.page = page
+
+ self.endDate = endDate
+
+ self.startDate = startDate
+
+ self.items = items
+
+ self.headers = headers
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([[String]].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ headers = try container.decode([String].self, forKey: .headers)
+
+ } 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(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(headers, forKey: .headers)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportMetaFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportMetaFinancePlatformModel.swift
new file mode 100644
index 0000000000..a3eeeb014c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportMetaFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportMeta
+ Used By: Finance
+ */
+
+ class GenerateReportMeta: Codable {
+
+
+ public var brand: String?
+
+ public var company: String?
+
+ public var channel: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case brand = "brand"
+
+ case company = "company"
+
+ case channel = "channel"
+
+ }
+
+ public init(brand: String? = nil, channel: String? = nil, company: String? = nil) {
+
+ self.brand = brand
+
+ self.company = company
+
+ self.channel = channel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ brand = try container.decode(String.self, forKey: .brand)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ channel = try container.decode(String.self, forKey: .channel)
+
+ } 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(brand, forKey: .brand)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(channel, forKey: .channel)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportPlatformFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportPlatformFinancePlatformModel.swift
new file mode 100644
index 0000000000..b37810e123
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportPlatformFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportPlatform
+ Used By: Finance
+ */
+
+ class GenerateReportPlatform: Codable {
+
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var meta: GenerateReportMeta?
+
+ public var reportId: String?
+
+ public var filters: GenerateReportFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case meta = "meta"
+
+ case reportId = "report_id"
+
+ case filters = "filters"
+
+ }
+
+ public init(endDate: String? = nil, filters: GenerateReportFilters? = nil, meta: GenerateReportMeta? = nil, reportId: String? = nil, startDate: String? = nil) {
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.meta = meta
+
+ self.reportId = reportId
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ meta = try container.decode(GenerateReportMeta.self, forKey: .meta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportId = try container.decode(String.self, forKey: .reportId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(GenerateReportFilters.self, forKey: .filters)
+
+ } 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(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(reportId, forKey: .reportId)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GenerateReportReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GenerateReportReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..3a100ae051
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GenerateReportReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GenerateReportReq
+ Used By: Finance
+ */
+
+ class GenerateReportReq: Codable {
+
+
+ public var data: GenerateReportPlatform?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GenerateReportPlatform? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GenerateReportPlatform.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetAffiliateFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetAffiliateFinancePlatformModel.swift
new file mode 100644
index 0000000000..f9b17bb517
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetAffiliateFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetAffiliate
+ Used By: Finance
+ */
+
+ class GetAffiliate: Codable {
+
+
+ public var companyId: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case companyId = "company_id"
+
+ }
+
+ public init(companyId: Int? = nil) {
+
+ self.companyId = companyId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetAffiliateResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetAffiliateResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..f6d688fbd0
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetAffiliateResponseFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetAffiliateResponse
+ Used By: Finance
+ */
+
+ class GetAffiliateResponse: Codable {
+
+
+ public var reason: String?
+
+ public var success: Bool?
+
+ public var docs: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ case success = "success"
+
+ case docs = "docs"
+
+ }
+
+ public init(docs: [[String: Any]]? = nil, reason: String? = nil, success: Bool? = nil) {
+
+ self.reason = reason
+
+ self.success = success
+
+ self.docs = docs
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ docs = try container.decode([[String: Any]].self, forKey: .docs)
+
+ } 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(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(docs, forKey: .docs)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCnConfigReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCnConfigReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..e83346ed23
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCnConfigReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCnConfigReq
+ Used By: Finance
+ */
+
+ class GetCnConfigReq: Codable {
+
+
+ public var data: DeleteConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: DeleteConfig? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(DeleteConfig.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCnConfigResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCnConfigResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..b3926f0855
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCnConfigResponseDataFinancePlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCnConfigResponseData
+ Used By: Finance
+ */
+
+ class GetCnConfigResponseData: Codable {
+
+
+ public var isCnAsRefundMethod: Bool?
+
+ public var affiliateId: String?
+
+ public var meta: [String: Any]?
+
+ public var sellerId: Int?
+
+ public var notificationEvents: CreditNoteConfigNotificationEvents?
+
+ public var validity: Int?
+
+ public var redemptionOrderingChannel: [String]?
+
+ public var currencyType: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isCnAsRefundMethod = "is_cn_as_refund_method"
+
+ case affiliateId = "affiliate_id"
+
+ case meta = "meta"
+
+ case sellerId = "seller_id"
+
+ case notificationEvents = "notification_events"
+
+ case validity = "validity"
+
+ case redemptionOrderingChannel = "redemption_ordering_channel"
+
+ case currencyType = "currency_type"
+
+ }
+
+ public init(affiliateId: String? = nil, currencyType: String? = nil, isCnAsRefundMethod: Bool? = nil, meta: [String: Any]? = nil, notificationEvents: CreditNoteConfigNotificationEvents? = nil, redemptionOrderingChannel: [String]? = nil, sellerId: Int? = nil, validity: Int? = nil) {
+
+ self.isCnAsRefundMethod = isCnAsRefundMethod
+
+ self.affiliateId = affiliateId
+
+ self.meta = meta
+
+ self.sellerId = sellerId
+
+ self.notificationEvents = notificationEvents
+
+ self.validity = validity
+
+ self.redemptionOrderingChannel = redemptionOrderingChannel
+
+ self.currencyType = currencyType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isCnAsRefundMethod = try container.decode(Bool.self, forKey: .isCnAsRefundMethod)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ notificationEvents = try container.decode(CreditNoteConfigNotificationEvents.self, forKey: .notificationEvents)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ validity = try container.decode(Int.self, forKey: .validity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redemptionOrderingChannel = try container.decode([String].self, forKey: .redemptionOrderingChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currencyType = try container.decode(String.self, forKey: .currencyType)
+
+ } 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(isCnAsRefundMethod, forKey: .isCnAsRefundMethod)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(notificationEvents, forKey: .notificationEvents)
+
+
+
+
+ try? container.encodeIfPresent(validity, forKey: .validity)
+
+
+
+
+ try? container.encodeIfPresent(redemptionOrderingChannel, forKey: .redemptionOrderingChannel)
+
+
+
+
+ try? container.encodeIfPresent(currencyType, forKey: .currencyType)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCnConfigResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCnConfigResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..040c2daeaf
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCnConfigResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCnConfigResponse
+ Used By: Finance
+ */
+
+ class GetCnConfigResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: GetCnConfigResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: GetCnConfigResponseData? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(GetCnConfigResponseData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCnConfigResponseMetaFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCnConfigResponseMetaFinancePlatformModel.swift
new file mode 100644
index 0000000000..e2ea9c77e9
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCnConfigResponseMetaFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCnConfigResponseMeta
+ Used By: Finance
+ */
+
+ class GetCnConfigResponseMeta: Codable {
+
+
+ public var reason: String?
+
+ public var sourceChannel: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ case sourceChannel = "source_channel"
+
+ }
+
+ public init(reason: String? = nil, sourceChannel: [String]? = nil) {
+
+ self.reason = reason
+
+ self.sourceChannel = sourceChannel
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sourceChannel = try container.decode([String].self, forKey: .sourceChannel)
+
+ } 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(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(sourceChannel, forKey: .sourceChannel)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceFinancePlatformModel.swift
new file mode 100644
index 0000000000..428d15fb5d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCustomerCreditBalance
+ Used By: Finance
+ */
+
+ class GetCustomerCreditBalance: Codable {
+
+
+ public var affiliateId: String?
+
+ public var sellerId: Int?
+
+ public var customerMobileNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case affiliateId = "affiliate_id"
+
+ case sellerId = "seller_id"
+
+ case customerMobileNumber = "customer_mobile_number"
+
+ }
+
+ public init(affiliateId: String? = nil, customerMobileNumber: String? = nil, sellerId: Int? = nil) {
+
+ self.affiliateId = affiliateId
+
+ self.sellerId = sellerId
+
+ self.customerMobileNumber = customerMobileNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
+
+ } 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(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..3f66c4d0af
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCustomerCreditBalanceReq
+ Used By: Finance
+ */
+
+ class GetCustomerCreditBalanceReq: Codable {
+
+
+ public var data: GetCustomerCreditBalance?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetCustomerCreditBalance? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GetCustomerCreditBalance.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..16a020db8f
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCustomerCreditBalanceResponseData
+ Used By: Finance
+ */
+
+ class GetCustomerCreditBalanceResponseData: Codable {
+
+
+ public var customerMobileNumber: String?
+
+ public var totalCreditedBalance: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customerMobileNumber = "customer_mobile_number"
+
+ case totalCreditedBalance = "total_credited_balance"
+
+ }
+
+ public init(customerMobileNumber: String? = nil, totalCreditedBalance: Int? = nil) {
+
+ self.customerMobileNumber = customerMobileNumber
+
+ self.totalCreditedBalance = totalCreditedBalance
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalCreditedBalance = try container.decode(Int.self, forKey: .totalCreditedBalance)
+
+ } 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(customerMobileNumber, forKey: .customerMobileNumber)
+
+
+
+
+ try? container.encodeIfPresent(totalCreditedBalance, forKey: .totalCreditedBalance)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..32b2ede08c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetCustomerCreditBalanceResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetCustomerCreditBalanceResponse
+ Used By: Finance
+ */
+
+ class GetCustomerCreditBalanceResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: GetCustomerCreditBalanceResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: GetCustomerCreditBalanceResponseData? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(GetCustomerCreditBalanceResponseData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetEngineDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetEngineDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..6c1dab00d7
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetEngineDataFinancePlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetEngineData
+ Used By: Finance
+ */
+
+ class GetEngineData: Codable {
+
+
+ public var status: String?
+
+ public var filters: GetEngineFilters?
+
+ public var project: [String]?
+
+ public var tableName: String?
+
+ public var search: [String: Any]?
+
+ public var page: Int?
+
+ public var pageSize: Int?
+
+ public var orderBy: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case filters = "filters"
+
+ case project = "project"
+
+ case tableName = "table_name"
+
+ case search = "search"
+
+ case page = "page"
+
+ case pageSize = "page_size"
+
+ case orderBy = "order_by"
+
+ }
+
+ public init(filters: GetEngineFilters? = nil, orderBy: String? = nil, page: Int? = nil, pageSize: Int? = nil, project: [String]? = nil, search: [String: Any]? = nil, status: String? = nil, tableName: String? = nil) {
+
+ self.status = status
+
+ self.filters = filters
+
+ self.project = project
+
+ self.tableName = tableName
+
+ self.search = search
+
+ self.page = page
+
+ self.pageSize = pageSize
+
+ self.orderBy = orderBy
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(GetEngineFilters.self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ project = try container.decode([String].self, forKey: .project)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ tableName = try container.decode(String.self, forKey: .tableName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ search = try container.decode([String: Any].self, forKey: .search)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ orderBy = try container.decode(String.self, forKey: .orderBy)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(project, forKey: .project)
+
+
+
+
+ try? container.encodeIfPresent(tableName, forKey: .tableName)
+
+
+
+
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(pageSize, forKey: .pageSize)
+
+
+
+
+ try? container.encodeIfPresent(orderBy, forKey: .orderBy)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetEngineFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetEngineFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..1da3914ab2
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetEngineFiltersFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetEngineFilters
+ Used By: Finance
+ */
+
+ class GetEngineFilters: Codable {
+
+
+ public var configField: String?
+
+ public var status: String?
+
+ public var isActive: Bool?
+
+ public var sellerId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case configField = "config_field"
+
+ case status = "status"
+
+ case isActive = "is_active"
+
+ case sellerId = "seller_id"
+
+ }
+
+ public init(configField: String? = nil, isActive: Bool? = nil, sellerId: String? = nil, status: String? = nil) {
+
+ self.configField = configField
+
+ self.status = status
+
+ self.isActive = isActive
+
+ self.sellerId = sellerId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ configField = try container.decode(String.self, forKey: .configField)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(String.self, forKey: .sellerId)
+
+ } 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(configField, forKey: .configField)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetEngineReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetEngineReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..e4498f561d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetEngineReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetEngineReq
+ Used By: Finance
+ */
+
+ class GetEngineReq: Codable {
+
+
+ public var data: GetEngineData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetEngineData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GetEngineData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetEngineResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetEngineResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..6085cd0b4b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetEngineResponseFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetEngineResponse
+ Used By: Finance
+ */
+
+ class GetEngineResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var items: [[String: Any]]?
+
+ public var page: Page?
+
+ public var itemCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case items = "items"
+
+ case page = "page"
+
+ case itemCount = "item_count"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, itemCount: Int? = nil, page: Page? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.items = items
+
+ self.page = page
+
+ self.itemCount = itemCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetPdfUrlViewReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetPdfUrlViewReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..d6af54d9b1
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetPdfUrlViewReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetPdfUrlViewReq
+ Used By: Finance
+ */
+
+ class GetPdfUrlViewReq: Codable {
+
+
+ public var data: CnReferenceNumber?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: CnReferenceNumber? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(CnReferenceNumber.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..4dea59d322
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetPdfUrlViewResponseData
+ Used By: Finance
+ */
+
+ class GetPdfUrlViewResponseData: Codable {
+
+
+ public var s3PdfLink: String?
+
+ public var cnReferenceNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case s3PdfLink = "s3_pdf_link"
+
+ case cnReferenceNumber = "cn_reference_number"
+
+ }
+
+ public init(cnReferenceNumber: String? = nil, s3PdfLink: String? = nil) {
+
+ self.s3PdfLink = s3PdfLink
+
+ self.cnReferenceNumber = cnReferenceNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ s3PdfLink = try container.decode(String.self, forKey: .s3PdfLink)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cnReferenceNumber = try container.decode(String.self, forKey: .cnReferenceNumber)
+
+ } 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(s3PdfLink, forKey: .s3PdfLink)
+
+
+
+
+ try? container.encodeIfPresent(cnReferenceNumber, forKey: .cnReferenceNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..d42664744a
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetPdfUrlViewResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetPdfUrlViewResponse
+ Used By: Finance
+ */
+
+ class GetPdfUrlViewResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: GetPdfUrlViewResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: GetPdfUrlViewResponseData? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(GetPdfUrlViewResponseData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReasonFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReasonFinancePlatformModel.swift
new file mode 100644
index 0000000000..6be3497c82
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReasonFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReason
+ Used By: Finance
+ */
+
+ class GetReason: Codable {
+
+
+ public var reasonType: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasonType = "reason_type"
+
+ }
+
+ public init(reasonType: String? = nil) {
+
+ self.reasonType = reasonType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reasonType = try container.decode(String.self, forKey: .reasonType)
+
+ } 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(reasonType, forKey: .reasonType)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReasonReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReasonReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..72ea85afea
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReasonReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReasonReq
+ Used By: Finance
+ */
+
+ class GetReasonReq: Codable {
+
+
+ public var data: GetReason?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetReason? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GetReason.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReasonResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReasonResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..0766b1bac7
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReasonResponseFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReasonResponse
+ Used By: Finance
+ */
+
+ class GetReasonResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var itemList: [ReasonItem]?
+
+ public var itemCount: Int?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case itemList = "item_list"
+
+ case itemCount = "item_count"
+
+ case page = "page"
+
+ }
+
+ public init(itemCount: Int? = nil, itemList: [ReasonItem]? = nil, page: Page? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.itemList = itemList
+
+ self.itemCount = itemCount
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ itemList = try container.decode([ReasonItem].self, forKey: .itemList)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(itemList, forKey: .itemList)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportListDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportListDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..acd16c85aa
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportListDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportListData
+ Used By: Finance
+ */
+
+ class GetReportListData: Codable {
+
+
+ public var roleName: String?
+
+ public var listingEnabled: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case roleName = "role_name"
+
+ case listingEnabled = "listing_enabled"
+
+ }
+
+ public init(listingEnabled: Bool? = nil, roleName: String? = nil) {
+
+ self.roleName = roleName
+
+ self.listingEnabled = listingEnabled
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ roleName = try container.decode(String.self, forKey: .roleName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ listingEnabled = try container.decode(Bool.self, forKey: .listingEnabled)
+
+ } 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(roleName, forKey: .roleName)
+
+
+
+
+ try? container.encodeIfPresent(listingEnabled, forKey: .listingEnabled)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportListReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportListReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..c4829c757c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportListReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportListReq
+ Used By: Finance
+ */
+
+ class GetReportListReq: Codable {
+
+
+ public var data: GetReportListData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetReportListData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(GetReportListData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportListResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportListResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..63e80fc065
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportListResponseFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportListResponse
+ Used By: Finance
+ */
+
+ class GetReportListResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var items: [ReportItem]?
+
+ public var page: Page?
+
+ public var totalCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case items = "items"
+
+ case page = "page"
+
+ case totalCount = "total_count"
+
+ }
+
+ public init(items: [ReportItem]? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.success = success
+
+ self.items = items
+
+ self.page = page
+
+ self.totalCount = totalCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ items = try container.decode([ReportItem].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(totalCount, forKey: .totalCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportingFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportingFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..faf566dc4a
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportingFiltersFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportingFilters
+ Used By: Finance
+ */
+
+ class GetReportingFilters: Codable {
+
+
+ public var text: String?
+
+ public var type: String?
+
+ public var options: [[String: Any]]?
+
+ public var value: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case text = "text"
+
+ case type = "type"
+
+ case options = "options"
+
+ case value = "value"
+
+ }
+
+ public init(options: [[String: Any]]? = nil, text: String? = nil, type: String? = nil, value: String? = nil) {
+
+ self.text = text
+
+ self.type = type
+
+ self.options = options
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+ options = try container.decode([[String: Any]].self, forKey: .options)
+
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(text, forKey: .text)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(options, forKey: .options)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportingFiltersReasonFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportingFiltersReasonFinancePlatformModel.swift
new file mode 100644
index 0000000000..ccd9a68005
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportingFiltersReasonFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportingFiltersReason
+ Used By: Finance
+ */
+
+ class GetReportingFiltersReason: Codable {
+
+
+ public var text: String?
+
+ public var type: String?
+
+ public var value: String?
+
+ public var options: [GetReportingFiltersReasonOptions]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case text = "text"
+
+ case type = "type"
+
+ case value = "value"
+
+ case options = "options"
+
+ }
+
+ public init(options: [GetReportingFiltersReasonOptions]? = nil, text: String? = nil, type: String? = nil, value: String? = nil) {
+
+ self.text = text
+
+ self.type = type
+
+ self.value = value
+
+ self.options = options
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+ 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 {
+ options = try container.decode([GetReportingFiltersReasonOptions].self, forKey: .options)
+
+ } 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(text, forKey: .text)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(options, forKey: .options)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportingFiltersReasonOptionsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportingFiltersReasonOptionsFinancePlatformModel.swift
new file mode 100644
index 0000000000..bf9be70b50
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportingFiltersReasonOptionsFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportingFiltersReasonOptions
+ Used By: Finance
+ */
+
+ class GetReportingFiltersReasonOptions: Codable {
+
+
+ public var text: String?
+
+ public var value: String?
+
+ public var placeholderText: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case text = "text"
+
+ case value = "value"
+
+ case placeholderText = "placeholder_text"
+
+ }
+
+ public init(placeholderText: String? = nil, text: String? = nil, value: String? = nil) {
+
+ self.text = text
+
+ self.value = value
+
+ self.placeholderText = placeholderText
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ placeholderText = try container.decode(String.self, forKey: .placeholderText)
+
+ } 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(text, forKey: .text)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(placeholderText, forKey: .placeholderText)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportingFiltersResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportingFiltersResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..86f0c32ca5
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportingFiltersResponseFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportingFiltersResponse
+ Used By: Finance
+ */
+
+ class GetReportingFiltersResponse: Codable {
+
+
+ public var reason: GetReportingFiltersReason?
+
+ public var search: GetReportingFilters?
+
+ public var filters: [GetReportingNestedFilters]?
+
+ public var status: GetReportingFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ case search = "search"
+
+ case filters = "filters"
+
+ case status = "status"
+
+ }
+
+ public init(filters: [GetReportingNestedFilters]? = nil, reason: GetReportingFiltersReason? = nil, search: GetReportingFilters? = nil, status: GetReportingFilters? = nil) {
+
+ self.reason = reason
+
+ self.search = search
+
+ self.filters = filters
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(GetReportingFiltersReason.self, forKey: .reason)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ search = try container.decode(GetReportingFilters.self, forKey: .search)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filters = try container.decode([GetReportingNestedFilters].self, forKey: .filters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ status = try container.decode(GetReportingFilters.self, forKey: .status)
+
+ } 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(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/GetReportingNestedFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/GetReportingNestedFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..b26a7c76d3
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/GetReportingNestedFiltersFinancePlatformModel.swift
@@ -0,0 +1,177 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: GetReportingNestedFilters
+ Used By: Finance
+ */
+
+ class GetReportingNestedFilters: Codable {
+
+
+ public var text: String?
+
+ public var options: [[String: Any]]?
+
+ public var required: Bool?
+
+ public var placeholderText: String?
+
+ public var type: String?
+
+ public var value: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case text = "text"
+
+ case options = "options"
+
+ case required = "required"
+
+ case placeholderText = "placeholder_text"
+
+ case type = "type"
+
+ case value = "value"
+
+ }
+
+ public init(options: [[String: Any]]? = nil, placeholderText: String? = nil, required: Bool? = nil, text: String? = nil, type: String? = nil, value: String? = nil) {
+
+ self.text = text
+
+ self.options = options
+
+ self.required = required
+
+ self.placeholderText = placeholderText
+
+ self.type = type
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ options = try container.decode([[String: Any]].self, forKey: .options)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ required = try container.decode(Bool.self, forKey: .required)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ placeholderText = try container.decode(String.self, forKey: .placeholderText)
+
+ } 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(text, forKey: .text)
+
+
+
+
+ try? container.encodeIfPresent(options, forKey: .options)
+
+
+
+
+ try? container.encodeIfPresent(required, forKey: .required)
+
+
+
+
+ try? container.encodeIfPresent(placeholderText, forKey: .placeholderText)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InoviceListingPayloadDataFiltersFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InoviceListingPayloadDataFiltersFinancePlatformModel.swift
new file mode 100644
index 0000000000..b8d906db44
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InoviceListingPayloadDataFiltersFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InoviceListingPayloadDataFilters
+ Used By: Finance
+ */
+
+ class InoviceListingPayloadDataFilters: Codable {
+
+
+ public var paymentStatus: [String]?
+
+ public var invoiceType: [String]?
+
+ public var companyId: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentStatus = "payment_status"
+
+ case invoiceType = "invoice_type"
+
+ case companyId = "company_id"
+
+ }
+
+ public init(companyId: [String]? = nil, invoiceType: [String]? = nil, paymentStatus: [String]? = nil) {
+
+ self.paymentStatus = paymentStatus
+
+ self.invoiceType = invoiceType
+
+ self.companyId = companyId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paymentStatus = try container.decode([String].self, forKey: .paymentStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceType = try container.decode([String].self, forKey: .invoiceType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode([String].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 {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentStatus, forKey: .paymentStatus)
+
+
+
+
+ try? container.encodeIfPresent(invoiceType, forKey: .invoiceType)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceActivityLogErrorFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceActivityLogErrorFinancePlatformModel.swift
new file mode 100644
index 0000000000..69db1d7cfa
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceActivityLogErrorFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceActivityLogError
+ Used By: Finance
+ */
+
+ class InvoiceActivityLogError: Codable {
+
+
+ public var reason: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ }
+
+ public init(reason: String? = nil) {
+
+ self.reason = reason
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } 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(reason, forKey: .reason)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..dc0dcd46b4
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseDataFinancePlatformModel.swift
@@ -0,0 +1,177 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceActivityLogsResponseData
+ Used By: Finance
+ */
+
+ class InvoiceActivityLogsResponseData: Codable {
+
+
+ public var performedBy: String?
+
+ public var status: String?
+
+ public var reason: String?
+
+ public var isResolved: Bool?
+
+ public var retryAttempts: Double?
+
+ public var maxRetryAttempts: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case performedBy = "performed_by"
+
+ case status = "status"
+
+ case reason = "reason"
+
+ case isResolved = "is_resolved"
+
+ case retryAttempts = "retry_attempts"
+
+ case maxRetryAttempts = "max_retry_attempts"
+
+ }
+
+ public init(isResolved: Bool? = nil, maxRetryAttempts: Double? = nil, performedBy: String? = nil, reason: String? = nil, retryAttempts: Double? = nil, status: String? = nil) {
+
+ self.performedBy = performedBy
+
+ self.status = status
+
+ self.reason = reason
+
+ self.isResolved = isResolved
+
+ self.retryAttempts = retryAttempts
+
+ self.maxRetryAttempts = maxRetryAttempts
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ performedBy = try container.decode(String.self, forKey: .performedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isResolved = try container.decode(Bool.self, forKey: .isResolved)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ retryAttempts = try container.decode(Double.self, forKey: .retryAttempts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ maxRetryAttempts = try container.decode(Double.self, forKey: .maxRetryAttempts)
+
+ } 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(performedBy, forKey: .performedBy)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(isResolved, forKey: .isResolved)
+
+
+
+
+ try? container.encodeIfPresent(retryAttempts, forKey: .retryAttempts)
+
+
+
+
+ try? container.encodeIfPresent(maxRetryAttempts, forKey: .maxRetryAttempts)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..3a9d54dfc7
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceActivityLogsResponseFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceActivityLogsResponse
+ Used By: Finance
+ */
+
+ class InvoiceActivityLogsResponse: Codable {
+
+
+ public var data: [InvoiceActivityLogsResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: [InvoiceActivityLogsResponseData]? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode([InvoiceActivityLogsResponseData].self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceBillingItemFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceBillingItemFinancePlatformModel.swift
new file mode 100644
index 0000000000..3dedc9b539
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceBillingItemFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceBillingItem
+ Used By: Finance
+ */
+
+ class InvoiceBillingItem: Codable {
+
+
+ public var invoiceNumber: String?
+
+ public var amount: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case invoiceNumber = "invoice_number"
+
+ case amount = "amount"
+
+ }
+
+ public init(amount: Double? = nil, invoiceNumber: String? = nil) {
+
+ self.invoiceNumber = invoiceNumber
+
+ self.amount = amount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } 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(invoiceNumber, forKey: .invoiceNumber)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceListingPayloadDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceListingPayloadDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..fedcfe0dd3
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceListingPayloadDataFinancePlatformModel.swift
@@ -0,0 +1,177 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceListingPayloadData
+ Used By: Finance
+ */
+
+ class InvoiceListingPayloadData: Codable {
+
+
+ public var pageSize: Int?
+
+ public var page: Int?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var search: String?
+
+ public var filters: InoviceListingPayloadDataFilters?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case pageSize = "page_size"
+
+ case page = "page"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case search = "search"
+
+ case filters = "filters"
+
+ }
+
+ public init(endDate: String? = nil, filters: InoviceListingPayloadDataFilters? = nil, page: Int? = nil, pageSize: Int? = nil, search: String? = nil, startDate: String? = nil) {
+
+ self.pageSize = pageSize
+
+ self.page = page
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.search = search
+
+ self.filters = filters
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ page = try container.decode(Int.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ do {
+ filters = try container.decode(InoviceListingPayloadDataFilters.self, forKey: .filters)
+
+ } 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(pageSize, forKey: .pageSize)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(search, forKey: .search)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceListingReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceListingReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..696eeb6f1b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceListingReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceListingReq
+ Used By: Finance
+ */
+
+ class InvoiceListingReq: Codable {
+
+
+ public var data: InvoiceListingPayloadData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: InvoiceListingPayloadData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(InvoiceListingPayloadData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceListingResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceListingResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..b781d5cf3b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceListingResponseFinancePlatformModel.swift
@@ -0,0 +1,177 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceListingResponse
+ Used By: Finance
+ */
+
+ class InvoiceListingResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var headers: [String]?
+
+ public var unpaidInvoiceData: UnpaidInvoiceDataItems?
+
+ public var items: [InvoiceListingResponseItems]?
+
+ public var page: Page?
+
+ public var itemCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case headers = "headers"
+
+ case unpaidInvoiceData = "unpaid_invoice_data"
+
+ case items = "items"
+
+ case page = "page"
+
+ case itemCount = "item_count"
+
+ }
+
+ public init(headers: [String]? = nil, items: [InvoiceListingResponseItems]? = nil, itemCount: Int? = nil, page: Page? = nil, success: Bool? = nil, unpaidInvoiceData: UnpaidInvoiceDataItems? = nil) {
+
+ self.success = success
+
+ self.headers = headers
+
+ self.unpaidInvoiceData = unpaidInvoiceData
+
+ self.items = items
+
+ self.page = page
+
+ self.itemCount = itemCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ headers = try container.decode([String].self, forKey: .headers)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ unpaidInvoiceData = try container.decode(UnpaidInvoiceDataItems.self, forKey: .unpaidInvoiceData)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ items = try container.decode([InvoiceListingResponseItems].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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ itemCount = try container.decode(Int.self, forKey: .itemCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(headers, forKey: .headers)
+
+
+
+
+ try? container.encodeIfPresent(unpaidInvoiceData, forKey: .unpaidInvoiceData)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(itemCount, forKey: .itemCount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceListingResponseItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceListingResponseItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..d9ca541fb5
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceListingResponseItemsFinancePlatformModel.swift
@@ -0,0 +1,292 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceListingResponseItems
+ Used By: Finance
+ */
+
+ class InvoiceListingResponseItems: Codable {
+
+
+ public var amount: Double?
+
+ public var company: String?
+
+ public var status: String?
+
+ public var dueDate: String?
+
+ public var invoiceDate: String?
+
+ public var invoiceType: String?
+
+ public var period: String?
+
+ public var invoiceNumber: String?
+
+ public var isDownloadable: Bool?
+
+ public var invoiceId: String?
+
+ public var currency: Currency?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case amount = "amount"
+
+ case company = "company"
+
+ case status = "status"
+
+ case dueDate = "due_date"
+
+ case invoiceDate = "invoice_date"
+
+ case invoiceType = "invoice_type"
+
+ case period = "period"
+
+ case invoiceNumber = "invoice_number"
+
+ case isDownloadable = "is_downloadable"
+
+ case invoiceId = "invoice_id"
+
+ case currency = "currency"
+
+ }
+
+ public init(amount: Double? = nil, company: String? = nil, currency: Currency? = nil, dueDate: String? = nil, invoiceDate: String? = nil, invoiceId: String? = nil, invoiceNumber: String? = nil, invoiceType: String? = nil, isDownloadable: Bool? = nil, period: String? = nil, status: String? = nil) {
+
+ self.amount = amount
+
+ self.company = company
+
+ self.status = status
+
+ self.dueDate = dueDate
+
+ self.invoiceDate = invoiceDate
+
+ self.invoiceType = invoiceType
+
+ self.period = period
+
+ self.invoiceNumber = invoiceNumber
+
+ self.isDownloadable = isDownloadable
+
+ self.invoiceId = invoiceId
+
+ self.currency = currency
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ dueDate = try container.decode(String.self, forKey: .dueDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceDate = try container.decode(String.self, forKey: .invoiceDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceType = try container.decode(String.self, forKey: .invoiceType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ period = try container.decode(String.self, forKey: .period)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isDownloadable = try container.decode(Bool.self, forKey: .isDownloadable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceId = try container.decode(String.self, forKey: .invoiceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(Currency.self, forKey: .currency)
+
+ } 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(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(dueDate, forKey: .dueDate)
+
+
+
+
+ try? container.encodeIfPresent(invoiceDate, forKey: .invoiceDate)
+
+
+
+
+ try? container.encodeIfPresent(invoiceType, forKey: .invoiceType)
+
+
+
+
+ try? container.encodeIfPresent(period, forKey: .period)
+
+
+
+
+ try? container.encodeIfPresent(invoiceNumber, forKey: .invoiceNumber)
+
+
+
+
+ try? container.encodeIfPresent(isDownloadable, forKey: .isDownloadable)
+
+
+
+
+ try? container.encodeIfPresent(invoiceId, forKey: .invoiceId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..e0fa52d491
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentDetailsResponseData
+ Used By: Finance
+ */
+
+ class InvoicePaymentDetailsResponseData: Codable {
+
+
+ public var paidInvoicePaymentDetails: [PaidInvoicePaymentDetail]?
+
+ public var failedAttemptsDetails: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paidInvoicePaymentDetails = "paid_invoice_payment_details"
+
+ case failedAttemptsDetails = "failed_attempts_details"
+
+ }
+
+ public init(failedAttemptsDetails: [[String: Any]]? = nil, paidInvoicePaymentDetails: [PaidInvoicePaymentDetail]? = nil) {
+
+ self.paidInvoicePaymentDetails = paidInvoicePaymentDetails
+
+ self.failedAttemptsDetails = failedAttemptsDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paidInvoicePaymentDetails = try container.decode([PaidInvoicePaymentDetail].self, forKey: .paidInvoicePaymentDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ failedAttemptsDetails = try container.decode([[String: Any]].self, forKey: .failedAttemptsDetails)
+
+ } 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(paidInvoicePaymentDetails, forKey: .paidInvoicePaymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(failedAttemptsDetails, forKey: .failedAttemptsDetails)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..30541177f0
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentDetailsResponseFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentDetailsResponse
+ Used By: Finance
+ */
+
+ class InvoicePaymentDetailsResponse: Codable {
+
+
+ public var reason: String?
+
+ public var data: InvoicePaymentDetailsResponseData?
+
+ public var success: Bool?
+
+ public var paymentDetailsVisible: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ case data = "data"
+
+ case success = "success"
+
+ case paymentDetailsVisible = "payment_details_visible"
+
+ }
+
+ public init(data: InvoicePaymentDetailsResponseData? = nil, paymentDetailsVisible: Bool? = nil, reason: String? = nil, success: Bool? = nil) {
+
+ self.reason = reason
+
+ self.data = data
+
+ self.success = success
+
+ self.paymentDetailsVisible = paymentDetailsVisible
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(InvoicePaymentDetailsResponseData.self, forKey: .data)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ paymentDetailsVisible = try container.decode(Bool.self, forKey: .paymentDetailsVisible)
+
+ } 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(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentDetailsVisible, forKey: .paymentDetailsVisible)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsPayloadDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsPayloadDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..274bc93a25
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsPayloadDataFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsPayloadData
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsPayloadData: Codable {
+
+
+ public var invoiceNumbers: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case invoiceNumbers = "invoice_numbers"
+
+ }
+
+ public init(invoiceNumbers: [String]? = nil) {
+
+ self.invoiceNumbers = invoiceNumbers
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ invoiceNumbers = try container.decode([String].self, forKey: .invoiceNumbers)
+
+ } 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(invoiceNumbers, forKey: .invoiceNumbers)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..6882b6a6bc
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsReq
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsReq: Codable {
+
+
+ public var data: InvoicePaymentOptionsPayloadData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: InvoicePaymentOptionsPayloadData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(InvoicePaymentOptionsPayloadData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..4c91a08d75
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDataFinancePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsResponseData
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsResponseData: Codable {
+
+
+ public var invoiceNumber: String?
+
+ public var invoiceType: String?
+
+ public var displayAmounts: [InvoicePaymentOptionsResponsePayableAmounts]?
+
+ public var totalAmount: [String: Any]?
+
+ public var deductedAmounts: [String: Any]?
+
+ public var payableAmounts: [InvoicePaymentOptionsResponsePayableAmounts]?
+
+ public var currency: Currency?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case invoiceNumber = "invoice_number"
+
+ case invoiceType = "invoice_type"
+
+ case displayAmounts = "display_amounts"
+
+ case totalAmount = "total_amount"
+
+ case deductedAmounts = "deducted_amounts"
+
+ case payableAmounts = "payable_amounts"
+
+ case currency = "currency"
+
+ }
+
+ public init(currency: Currency? = nil, deductedAmounts: [String: Any]? = nil, displayAmounts: [InvoicePaymentOptionsResponsePayableAmounts]? = nil, invoiceNumber: String? = nil, invoiceType: String? = nil, payableAmounts: [InvoicePaymentOptionsResponsePayableAmounts]? = nil, totalAmount: [String: Any]? = nil) {
+
+ self.invoiceNumber = invoiceNumber
+
+ self.invoiceType = invoiceType
+
+ self.displayAmounts = displayAmounts
+
+ self.totalAmount = totalAmount
+
+ self.deductedAmounts = deductedAmounts
+
+ self.payableAmounts = payableAmounts
+
+ self.currency = currency
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceType = try container.decode(String.self, forKey: .invoiceType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ displayAmounts = try container.decode([InvoicePaymentOptionsResponsePayableAmounts].self, forKey: .displayAmounts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalAmount = try container.decode([String: Any].self, forKey: .totalAmount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deductedAmounts = try container.decode([String: Any].self, forKey: .deductedAmounts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ payableAmounts = try container.decode([InvoicePaymentOptionsResponsePayableAmounts].self, forKey: .payableAmounts)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ currency = try container.decode(Currency.self, forKey: .currency)
+
+ } 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(invoiceNumber, forKey: .invoiceNumber)
+
+
+
+
+ try? container.encodeIfPresent(invoiceType, forKey: .invoiceType)
+
+
+
+
+ try? container.encodeIfPresent(displayAmounts, forKey: .displayAmounts)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(deductedAmounts, forKey: .deductedAmounts)
+
+
+
+
+ try? container.encodeIfPresent(payableAmounts, forKey: .payableAmounts)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDeductedAmountsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDeductedAmountsFinancePlatformModel.swift
new file mode 100644
index 0000000000..24e335e038
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseDeductedAmountsFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsResponseDeductedAmounts
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsResponseDeductedAmounts: Codable {
+
+
+ public var amount: Double?
+
+ public var header: String?
+
+ public var amountKey: String?
+
+ public var isPayable: Bool?
+
+ public var symbol: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case amount = "amount"
+
+ case header = "header"
+
+ case amountKey = "amount_key"
+
+ case isPayable = "is_payable"
+
+ case symbol = "symbol"
+
+ }
+
+ public init(amount: Double? = nil, amountKey: String? = nil, header: String? = nil, isPayable: Bool? = nil, symbol: String? = nil) {
+
+ self.amount = amount
+
+ self.header = header
+
+ self.amountKey = amountKey
+
+ self.isPayable = isPayable
+
+ self.symbol = symbol
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ header = try container.decode(String.self, forKey: .header)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountKey = try container.decode(String.self, forKey: .amountKey)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isPayable = try container.decode(Bool.self, forKey: .isPayable)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ symbol = try container.decode(String.self, forKey: .symbol)
+
+ } 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(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(header, forKey: .header)
+
+
+
+
+ try? container.encodeIfPresent(amountKey, forKey: .amountKey)
+
+
+
+
+ try? container.encodeIfPresent(isPayable, forKey: .isPayable)
+
+
+
+
+ try? container.encodeIfPresent(symbol, forKey: .symbol)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..e59c5c9e45
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponseFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsResponse
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsResponse: Codable {
+
+
+ public var reason: String?
+
+ public var data: [InvoicePaymentOptionsResponseData]?
+
+ public var totalPayableAmount: Double?
+
+ public var invoiceCount: Int?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reason = "reason"
+
+ case data = "data"
+
+ case totalPayableAmount = "total_payable_amount"
+
+ case invoiceCount = "invoice_count"
+
+ case success = "success"
+
+ }
+
+ public init(data: [InvoicePaymentOptionsResponseData]? = nil, invoiceCount: Int? = nil, reason: String? = nil, success: Bool? = nil, totalPayableAmount: Double? = nil) {
+
+ self.reason = reason
+
+ self.data = data
+
+ self.totalPayableAmount = totalPayableAmount
+
+ self.invoiceCount = invoiceCount
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reason = try container.decode(String.self, forKey: .reason)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode([InvoicePaymentOptionsResponseData].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalPayableAmount = try container.decode(Double.self, forKey: .totalPayableAmount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceCount = try container.decode(Int.self, forKey: .invoiceCount)
+
+ } 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(reason, forKey: .reason)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(totalPayableAmount, forKey: .totalPayableAmount)
+
+
+
+
+ try? container.encodeIfPresent(invoiceCount, forKey: .invoiceCount)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponsePayableAmountsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponsePayableAmountsFinancePlatformModel.swift
new file mode 100644
index 0000000000..aaef0b9704
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePaymentOptionsResponsePayableAmountsFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePaymentOptionsResponsePayableAmounts
+ Used By: Finance
+ */
+
+ class InvoicePaymentOptionsResponsePayableAmounts: Codable {
+
+
+ public var amount: Double?
+
+ public var amountKey: String?
+
+ public var header: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case amount = "amount"
+
+ case amountKey = "amount_key"
+
+ case header = "header"
+
+ }
+
+ public init(amount: Double? = nil, amountKey: String? = nil, header: String? = nil) {
+
+ self.amount = amount
+
+ self.amountKey = amountKey
+
+ self.header = header
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountKey = try container.decode(String.self, forKey: .amountKey)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ header = try container.decode(String.self, forKey: .header)
+
+ } 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(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(amountKey, forKey: .amountKey)
+
+
+
+
+ try? container.encodeIfPresent(header, forKey: .header)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePdfPayloadDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePdfPayloadDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..16f08eb241
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePdfPayloadDataFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePdfPayloadData
+ Used By: Finance
+ */
+
+ class InvoicePdfPayloadData: Codable {
+
+
+ public var invoiceNumber: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case invoiceNumber = "invoice_number"
+
+ }
+
+ public init(invoiceNumber: [String]? = nil) {
+
+ self.invoiceNumber = invoiceNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ invoiceNumber = try container.decode([String].self, forKey: .invoiceNumber)
+
+ } 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(invoiceNumber, forKey: .invoiceNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePdfReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePdfReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..a6f4e21f37
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePdfReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePdfReq
+ Used By: Finance
+ */
+
+ class InvoicePdfReq: Codable {
+
+
+ public var data: InvoicePdfPayloadData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: InvoicePdfPayloadData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(InvoicePdfPayloadData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoicePdfResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoicePdfResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..f59fd85801
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoicePdfResponseFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoicePdfResponse
+ Used By: Finance
+ */
+
+ class InvoicePdfResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [String]?
+
+ public var error: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case error = "error"
+
+ }
+
+ public init(data: [String]? = nil, error: [String]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([String].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode([String].self, forKey: .error)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceTypePayloadDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceTypePayloadDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..dadd7e7707
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceTypePayloadDataFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceTypePayloadData
+ Used By: Finance
+ */
+
+ class InvoiceTypePayloadData: Codable {
+
+
+ public var isActive: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isActive = "is_active"
+
+ }
+
+ public init(isActive: Bool? = nil) {
+
+ self.isActive = isActive
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceTypeReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceTypeReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..e850a42ecd
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceTypeReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceTypeReq
+ Used By: Finance
+ */
+
+ class InvoiceTypeReq: Codable {
+
+
+ public var data: InvoiceTypePayloadData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: InvoiceTypePayloadData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(InvoiceTypePayloadData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceTypeResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceTypeResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..26fa5e6369
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceTypeResponseFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceTypeResponse
+ Used By: Finance
+ */
+
+ class InvoiceTypeResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var invoiceTypeList: [InvoiceTypeResponseItems]?
+
+ public var paymentStatusList: [InvoiceTypeResponseItems]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case invoiceTypeList = "invoice_type_list"
+
+ case paymentStatusList = "payment_status_list"
+
+ }
+
+ public init(invoiceTypeList: [InvoiceTypeResponseItems]? = nil, paymentStatusList: [InvoiceTypeResponseItems]? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.invoiceTypeList = invoiceTypeList
+
+ self.paymentStatusList = paymentStatusList
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ invoiceTypeList = try container.decode([InvoiceTypeResponseItems].self, forKey: .invoiceTypeList)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentStatusList = try container.decode([InvoiceTypeResponseItems].self, forKey: .paymentStatusList)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(invoiceTypeList, forKey: .invoiceTypeList)
+
+
+
+
+ try? container.encodeIfPresent(paymentStatusList, forKey: .paymentStatusList)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/InvoiceTypeResponseItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/InvoiceTypeResponseItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..3e6364cb2b
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/InvoiceTypeResponseItemsFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: InvoiceTypeResponseItems
+ Used By: Finance
+ */
+
+ class InvoiceTypeResponseItems: Codable {
+
+
+ public var text: String?
+
+ public var value: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case text = "text"
+
+ case value = "value"
+
+ }
+
+ public init(text: String? = nil, value: String? = nil) {
+
+ self.text = text
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(text, forKey: .text)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCnRefundMethodDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCnRefundMethodDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..50770f8170
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCnRefundMethodDataFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCnRefundMethodData
+ Used By: Finance
+ */
+
+ class IsCnRefundMethodData: Codable {
+
+
+ public var affiliateId: String?
+
+ public var toggleEditRequired: Bool?
+
+ public var sellerId: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case affiliateId = "affiliate_id"
+
+ case toggleEditRequired = "toggle_edit_required"
+
+ case sellerId = "seller_id"
+
+ }
+
+ public init(affiliateId: String? = nil, sellerId: Int? = nil, toggleEditRequired: Bool? = nil) {
+
+ self.affiliateId = affiliateId
+
+ self.toggleEditRequired = toggleEditRequired
+
+ self.sellerId = sellerId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ toggleEditRequired = try container.decode(Bool.self, forKey: .toggleEditRequired)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } 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(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(toggleEditRequired, forKey: .toggleEditRequired)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCnRefundMethodReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCnRefundMethodReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..b722d1fddc
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCnRefundMethodReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCnRefundMethodReq
+ Used By: Finance
+ */
+
+ class IsCnRefundMethodReq: Codable {
+
+
+ public var data: IsCnRefundMethodData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: IsCnRefundMethodData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(IsCnRefundMethodData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..9691f41f0d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseDataFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCnRefundMethodResponseData
+ Used By: Finance
+ */
+
+ class IsCnRefundMethodResponseData: Codable {
+
+
+ public var isFirstTimeUser: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isFirstTimeUser = "is_first_time_user"
+
+ }
+
+ public init(isFirstTimeUser: Bool? = nil) {
+
+ self.isFirstTimeUser = isFirstTimeUser
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isFirstTimeUser = try container.decode(Bool.self, forKey: .isFirstTimeUser)
+
+ } 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(isFirstTimeUser, forKey: .isFirstTimeUser)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..d8d530c527
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCnRefundMethodResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCnRefundMethodResponse
+ Used By: Finance
+ */
+
+ class IsCnRefundMethodResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: IsCnRefundMethodResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: IsCnRefundMethodResponseData? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(IsCnRefundMethodResponseData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCreditlinePayloadFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCreditlinePayloadFinancePlatformModel.swift
new file mode 100644
index 0000000000..0b6afec0da
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCreditlinePayloadFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCreditlinePayload
+ Used By: Finance
+ */
+
+ class IsCreditlinePayload: Codable {
+
+
+ public var sellerId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case sellerId = "seller_id"
+
+ }
+
+ public init(sellerId: String? = nil) {
+
+ self.sellerId = sellerId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ sellerId = try container.decode(String.self, forKey: .sellerId)
+
+ } 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(sellerId, forKey: .sellerId)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCreditlinePlatformReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCreditlinePlatformReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..1fa1a8e1e8
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCreditlinePlatformReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCreditlinePlatformReq
+ Used By: Finance
+ */
+
+ class IsCreditlinePlatformReq: Codable {
+
+
+ public var data: IsCreditlinePayload?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: IsCreditlinePayload? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(IsCreditlinePayload.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/IsCreditlinePlatformResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/IsCreditlinePlatformResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..bee5b42e7c
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/IsCreditlinePlatformResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: IsCreditlinePlatformResponse
+ Used By: Finance
+ */
+
+ class IsCreditlinePlatformResponse: Codable {
+
+
+ public var isCreditlineOpted: Bool?
+
+ public var code: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isCreditlineOpted = "is_creditline_opted"
+
+ case code = "code"
+
+ }
+
+ public init(code: Int? = nil, isCreditlineOpted: Bool? = nil) {
+
+ self.isCreditlineOpted = isCreditlineOpted
+
+ self.code = code
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isCreditlineOpted = try container.decode(Bool.self, forKey: .isCreditlineOpted)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ code = try container.decode(Int.self, forKey: .code)
+
+ } 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(isCreditlineOpted, forKey: .isCreditlineOpted)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/OrederFreezeResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/OrederFreezeResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..2dbb850f7e
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/OrederFreezeResponseFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: OrederFreezeResponse
+ Used By: Finance
+ */
+
+ class OrederFreezeResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var omsFreeze: Bool?
+
+ public var source: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case omsFreeze = "oms_freeze"
+
+ case source = "source"
+
+ }
+
+ public init(omsFreeze: Bool? = nil, source: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.omsFreeze = omsFreeze
+
+ self.source = source
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ omsFreeze = try container.decode(Bool.self, forKey: .omsFreeze)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ source = try container.decode(String.self, forKey: .source)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(omsFreeze, forKey: .omsFreeze)
+
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PageFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PageFinancePlatformModel.swift
new file mode 100644
index 0000000000..ffb412bc72
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PageFinancePlatformModel.swift
@@ -0,0 +1,193 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: Page
+ Used By: Finance
+ */
+
+ class Page: Codable {
+
+
+ public var itemTotal: Int?
+
+ public var nextId: String?
+
+ public var hasPrevious: Bool?
+
+ public var hasNext: Bool?
+
+ public var current: Int?
+
+ public var type: String
+
+ public var size: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case itemTotal = "item_total"
+
+ case nextId = "next_id"
+
+ case hasPrevious = "has_previous"
+
+ case hasNext = "has_next"
+
+ case current = "current"
+
+ case type = "type"
+
+ case size = "size"
+
+ }
+
+ public init(current: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, nextId: String? = nil, size: Int? = nil, type: String) {
+
+ self.itemTotal = itemTotal
+
+ self.nextId = nextId
+
+ self.hasPrevious = hasPrevious
+
+ self.hasNext = hasNext
+
+ self.current = current
+
+ self.type = type
+
+ self.size = size
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ nextId = try container.decode(String.self, forKey: .nextId)
+
+ } 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 {
+ 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 {
+ current = try container.decode(Int.self, forKey: .current)
+
+ } 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 {
+ 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(itemTotal, forKey: .itemTotal)
+
+
+
+
+ try? container.encodeIfPresent(nextId, forKey: .nextId)
+
+
+
+
+ try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
+
+
+
+
+ try? container.encodeIfPresent(hasNext, forKey: .hasNext)
+
+
+
+
+ try? container.encodeIfPresent(current, forKey: .current)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PaidInvoicePaymentDetailFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PaidInvoicePaymentDetailFinancePlatformModel.swift
new file mode 100644
index 0000000000..063cb639e1
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PaidInvoicePaymentDetailFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: PaidInvoicePaymentDetail
+ Used By: Finance
+ */
+
+ class PaidInvoicePaymentDetail: Codable {
+
+
+ public var paymentDetails: [PaymentDetail]?
+
+ public var dateOfPayment: String?
+
+ public var amount: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentDetails = "payment_details"
+
+ case dateOfPayment = "date_of_payment"
+
+ case amount = "amount"
+
+ }
+
+ public init(amount: Double? = nil, dateOfPayment: String? = nil, paymentDetails: [PaymentDetail]? = nil) {
+
+ self.paymentDetails = paymentDetails
+
+ self.dateOfPayment = dateOfPayment
+
+ self.amount = amount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ paymentDetails = try container.decode([PaymentDetail].self, forKey: .paymentDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dateOfPayment = try container.decode(String.self, forKey: .dateOfPayment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } 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(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(dateOfPayment, forKey: .dateOfPayment)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PaymentDetailFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PaymentDetailFinancePlatformModel.swift
new file mode 100644
index 0000000000..176e396513
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PaymentDetailFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: PaymentDetail
+ Used By: Finance
+ */
+
+ class PaymentDetail: Codable {
+
+
+ public var displayName: String?
+
+ public var value: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case displayName = "display_name"
+
+ case value = "value"
+
+ }
+
+ public init(displayName: String? = nil, value: String? = nil) {
+
+ self.displayName = displayName
+
+ self.value = value
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PaymentProcessPayloadFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PaymentProcessPayloadFinancePlatformModel.swift
new file mode 100644
index 0000000000..82795bcf63
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PaymentProcessPayloadFinancePlatformModel.swift
@@ -0,0 +1,269 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: PaymentProcessPayload
+ Used By: Finance
+ */
+
+ class PaymentProcessPayload: Codable {
+
+
+ public var platform: String?
+
+ public var amount: Double?
+
+ public var transactionType: String?
+
+ public var sourceReference: String?
+
+ public var totalAmount: Double?
+
+ public var meta: [String: Any]?
+
+ public var currency: String?
+
+ public var sellerId: String?
+
+ public var modeOfPayment: String?
+
+ public var invoiceBillingItems: [InvoiceBillingItem]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case platform = "platform"
+
+ case amount = "amount"
+
+ case transactionType = "transaction_type"
+
+ case sourceReference = "source_reference"
+
+ case totalAmount = "total_amount"
+
+ case meta = "meta"
+
+ case currency = "currency"
+
+ case sellerId = "seller_id"
+
+ case modeOfPayment = "mode_of_payment"
+
+ case invoiceBillingItems = "invoice_billing_items"
+
+ }
+
+ public init(amount: Double? = nil, currency: String? = nil, invoiceBillingItems: [InvoiceBillingItem]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, platform: String? = nil, sellerId: String? = nil, sourceReference: String? = nil, totalAmount: Double? = nil, transactionType: String? = nil) {
+
+ self.platform = platform
+
+ self.amount = amount
+
+ self.transactionType = transactionType
+
+ self.sourceReference = sourceReference
+
+ self.totalAmount = totalAmount
+
+ self.meta = meta
+
+ self.currency = currency
+
+ self.sellerId = sellerId
+
+ self.modeOfPayment = modeOfPayment
+
+ self.invoiceBillingItems = invoiceBillingItems
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ platform = try container.decode(String.self, forKey: .platform)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ transactionType = try container.decode(String.self, forKey: .transactionType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ sourceReference = try container.decode(String.self, forKey: .sourceReference)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalAmount = try container.decode(Double.self, forKey: .totalAmount)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ sellerId = try container.decode(String.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modeOfPayment = try container.decode(String.self, forKey: .modeOfPayment)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceBillingItems = try container.decode([InvoiceBillingItem].self, forKey: .invoiceBillingItems)
+
+ } 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(platform, forKey: .platform)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(transactionType, forKey: .transactionType)
+
+
+
+
+ try? container.encodeIfPresent(sourceReference, forKey: .sourceReference)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(modeOfPayment, forKey: .modeOfPayment)
+
+
+
+
+ try? container.encodeIfPresent(invoiceBillingItems, forKey: .invoiceBillingItems)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PaymentProcessReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PaymentProcessReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..86038f5099
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PaymentProcessReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: PaymentProcessReq
+ Used By: Finance
+ */
+
+ class PaymentProcessReq: Codable {
+
+
+ public var data: PaymentProcessPayload?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: PaymentProcessPayload? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(PaymentProcessPayload.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/PaymentProcessResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/PaymentProcessResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..7e287cc810
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/PaymentProcessResponseFinancePlatformModel.swift
@@ -0,0 +1,154 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: PaymentProcessResponse
+ Used By: Finance
+ */
+
+ class PaymentProcessResponse: Codable {
+
+
+ public var code: Int?
+
+ public var message: String?
+
+ public var meta: [String: Any]?
+
+ public var transactionId: String?
+
+ public var redirectUrl: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case code = "code"
+
+ case message = "message"
+
+ case meta = "meta"
+
+ case transactionId = "transaction_id"
+
+ case redirectUrl = "redirect_url"
+
+ }
+
+ public init(code: Int? = nil, message: String? = nil, meta: [String: Any]? = nil, redirectUrl: String? = nil, transactionId: String? = nil) {
+
+ self.code = code
+
+ self.message = message
+
+ self.meta = meta
+
+ self.transactionId = transactionId
+
+ self.redirectUrl = redirectUrl
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ code = try container.decode(Int.self, forKey: .code)
+
+ } 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)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ transactionId = try container.decode(String.self, forKey: .transactionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } 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(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(transactionId, forKey: .transactionId)
+
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ReasonItemFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ReasonItemFinancePlatformModel.swift
new file mode 100644
index 0000000000..3ba9b3d9c3
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ReasonItemFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ReasonItem
+ Used By: Finance
+ */
+
+ class ReasonItem: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var displayName: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case name = "name"
+
+ case displayName = "display_name"
+
+ }
+
+ public init(displayName: String? = nil, id: String? = nil, name: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.displayName = displayName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/RedemptionDetailsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/RedemptionDetailsFinancePlatformModel.swift
new file mode 100644
index 0000000000..26c194997d
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/RedemptionDetailsFinancePlatformModel.swift
@@ -0,0 +1,246 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: RedemptionDetails
+ Used By: Finance
+ */
+
+ class RedemptionDetails: Codable {
+
+
+ public var meta: [String: Any]?
+
+ public var staffId: String?
+
+ public var createdAt: String?
+
+ public var orderId: String?
+
+ public var storeId: String?
+
+ public var shipmentId: String?
+
+ public var orderingChannel: String?
+
+ public var amountDebited: Int?
+
+ public var invoiceNumber: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case staffId = "staff_id"
+
+ case createdAt = "created_at"
+
+ case orderId = "order_id"
+
+ case storeId = "store_id"
+
+ case shipmentId = "shipment_id"
+
+ case orderingChannel = "ordering_channel"
+
+ case amountDebited = "amount_debited"
+
+ case invoiceNumber = "invoice_number"
+
+ }
+
+ public init(amountDebited: Int? = nil, createdAt: String? = nil, invoiceNumber: String? = nil, meta: [String: Any]? = nil, orderingChannel: String? = nil, orderId: String? = nil, shipmentId: String? = nil, staffId: String? = nil, storeId: String? = nil) {
+
+ self.meta = meta
+
+ self.staffId = staffId
+
+ self.createdAt = createdAt
+
+ self.orderId = orderId
+
+ self.storeId = storeId
+
+ self.shipmentId = shipmentId
+
+ self.orderingChannel = orderingChannel
+
+ self.amountDebited = amountDebited
+
+ self.invoiceNumber = invoiceNumber
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ staffId = try container.decode(String.self, forKey: .staffId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeId = try container.decode(String.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderingChannel = try container.decode(String.self, forKey: .orderingChannel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amountDebited = try container.decode(Int.self, forKey: .amountDebited)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceNumber = try container.decode(String.self, forKey: .invoiceNumber)
+
+ } 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(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(staffId, forKey: .staffId)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
+
+
+
+
+ try? container.encodeIfPresent(amountDebited, forKey: .amountDebited)
+
+
+
+
+ try? container.encodeIfPresent(invoiceNumber, forKey: .invoiceNumber)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/ReportItemFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/ReportItemFinancePlatformModel.swift
new file mode 100644
index 0000000000..64198e4162
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/ReportItemFinancePlatformModel.swift
@@ -0,0 +1,200 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: ReportItem
+ Used By: Finance
+ */
+
+ class ReportItem: Codable {
+
+
+ public var id: String?
+
+ public var name: String?
+
+ public var description: String?
+
+ public var allowedFilters: [String]?
+
+ public var configMeta: [String: Any]?
+
+ public var reportType: String?
+
+ public var displayDate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "id"
+
+ case name = "name"
+
+ case description = "description"
+
+ case allowedFilters = "allowed_filters"
+
+ case configMeta = "config_meta"
+
+ case reportType = "report_type"
+
+ case displayDate = "display_date"
+
+ }
+
+ public init(allowedFilters: [String]? = nil, configMeta: [String: Any]? = nil, description: String? = nil, displayDate: String? = nil, id: String? = nil, name: String? = nil, reportType: String? = nil) {
+
+ self.id = id
+
+ self.name = name
+
+ self.description = description
+
+ self.allowedFilters = allowedFilters
+
+ self.configMeta = configMeta
+
+ self.reportType = reportType
+
+ self.displayDate = displayDate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ allowedFilters = try container.decode([String].self, forKey: .allowedFilters)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ configMeta = try container.decode([String: Any].self, forKey: .configMeta)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportType = try container.decode(String.self, forKey: .reportType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ displayDate = try container.decode(String.self, forKey: .displayDate)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(allowedFilters, forKey: .allowedFilters)
+
+
+
+
+ try? container.encodeIfPresent(configMeta, forKey: .configMeta)
+
+
+
+
+ try? container.encodeIfPresent(reportType, forKey: .reportType)
+
+
+
+
+ try? container.encodeIfPresent(displayDate, forKey: .displayDate)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/UnlockCreditNoteReqFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/UnlockCreditNoteReqFinancePlatformModel.swift
new file mode 100644
index 0000000000..313c3c67d9
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/UnlockCreditNoteReqFinancePlatformModel.swift
@@ -0,0 +1,62 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: UnlockCreditNoteReq
+ Used By: Finance
+ */
+
+ class UnlockCreditNoteReq: Codable {
+
+
+ public var data: UnlockCreditNoteRequestData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: UnlockCreditNoteRequestData? = nil) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ data = try container.decode(UnlockCreditNoteRequestData.self, forKey: .data)
+
+ } 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(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/UnlockCreditNoteRequestDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/UnlockCreditNoteRequestDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..d82e1929ca
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/UnlockCreditNoteRequestDataFinancePlatformModel.swift
@@ -0,0 +1,131 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: UnlockCreditNoteRequestData
+ Used By: Finance
+ */
+
+ class UnlockCreditNoteRequestData: Codable {
+
+
+ public var sellerId: String?
+
+ public var lockedCreditNotes: [String]?
+
+ public var unlockReason: String?
+
+ public var description: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case sellerId = "seller_id"
+
+ case lockedCreditNotes = "locked_credit_notes"
+
+ case unlockReason = "unlock_reason"
+
+ case description = "description"
+
+ }
+
+ public init(description: String? = nil, lockedCreditNotes: [String]? = nil, sellerId: String? = nil, unlockReason: String? = nil) {
+
+ self.sellerId = sellerId
+
+ self.lockedCreditNotes = lockedCreditNotes
+
+ self.unlockReason = unlockReason
+
+ self.description = description
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ sellerId = try container.decode(String.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lockedCreditNotes = try container.decode([String].self, forKey: .lockedCreditNotes)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ unlockReason = try container.decode(String.self, forKey: .unlockReason)
+
+ } 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(lockedCreditNotes, forKey: .lockedCreditNotes)
+
+
+
+
+ try? container.encodeIfPresent(unlockReason, forKey: .unlockReason)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseDataFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseDataFinancePlatformModel.swift
new file mode 100644
index 0000000000..70c59c69af
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseDataFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: UnlockCreditNoteResponseData
+ Used By: Finance
+ */
+
+ class UnlockCreditNoteResponseData: Codable {
+
+
+ public var isCnUnlocked: Bool?
+
+ public var status: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isCnUnlocked = "is_cn_unlocked"
+
+ case status = "status"
+
+ }
+
+ public init(isCnUnlocked: Bool? = nil, status: String? = nil) {
+
+ self.isCnUnlocked = isCnUnlocked
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isCnUnlocked = try container.decode(Bool.self, forKey: .isCnUnlocked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isCnUnlocked, forKey: .isCnUnlocked)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseFinancePlatformModel.swift
new file mode 100644
index 0000000000..bc022b7964
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/UnlockCreditNoteResponseFinancePlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: UnlockCreditNoteResponse
+ Used By: Finance
+ */
+
+ class UnlockCreditNoteResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: UnlockCreditNoteResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ }
+
+ public init(data: UnlockCreditNoteResponseData? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode(UnlockCreditNoteResponseData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Finance/UnpaidInvoiceDataItemsFinancePlatformModel.swift b/Sources/code/platform/Models/Finance/UnpaidInvoiceDataItemsFinancePlatformModel.swift
new file mode 100644
index 0000000000..cc2b1c6f31
--- /dev/null
+++ b/Sources/code/platform/Models/Finance/UnpaidInvoiceDataItemsFinancePlatformModel.swift
@@ -0,0 +1,108 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Finance {
+ /*
+ Model: UnpaidInvoiceDataItems
+ Used By: Finance
+ */
+
+ class UnpaidInvoiceDataItems: Codable {
+
+
+ public var totalUnpaidInvoiceCount: Int?
+
+ public var currency: String?
+
+ public var totalUnpaidAmount: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case totalUnpaidInvoiceCount = "total_unpaid_invoice_count"
+
+ case currency = "currency"
+
+ case totalUnpaidAmount = "total_unpaid_amount"
+
+ }
+
+ public init(currency: String? = nil, totalUnpaidAmount: Double? = nil, totalUnpaidInvoiceCount: Int? = nil) {
+
+ self.totalUnpaidInvoiceCount = totalUnpaidInvoiceCount
+
+ self.currency = currency
+
+ self.totalUnpaidAmount = totalUnpaidAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ totalUnpaidInvoiceCount = try container.decode(Int.self, forKey: .totalUnpaidInvoiceCount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalUnpaidAmount = try container.decode(Double.self, forKey: .totalUnpaidAmount)
+
+ } 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(totalUnpaidInvoiceCount, forKey: .totalUnpaidInvoiceCount)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(totalUnpaidAmount, forKey: .totalUnpaidAmount)
+
+
+ }
+
+ }
+}
+
+
+
+
diff --git a/Sources/code/platform/Models/Lead/GeneralConfigDetailsLeadPlatformModel.swift b/Sources/code/platform/Models/Lead/GeneralConfigDetailsLeadPlatformModel.swift
deleted file mode 100644
index 77da20c267..0000000000
--- a/Sources/code/platform/Models/Lead/GeneralConfigDetailsLeadPlatformModel.swift
+++ /dev/null
@@ -1,668 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Lead {
- /*
- Model: GeneralConfigDetails
- Used By: Lead
- */
-
- class GeneralConfigDetails: Codable {
-
-
- public var id: String?
-
- public var supportCommunication: [SupportCommunicationSchema]?
-
- public var showCommunicationInfo: Bool?
-
- public var showSupportDris: Bool?
-
- public var type: String?
-
- public var integration: GeneralConfigIntegrationSchema?
-
- public var allowTicketCreation: Bool?
-
- public var showListing: Bool?
-
- public var availableIntegration: [String]?
-
- public var enableDris: Bool?
-
- public var supportEmail: SupportSchema?
-
- public var supportPhone: SupportSchema?
-
- public var supportFaq: SupportSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case supportCommunication = "support_communication"
-
- case showCommunicationInfo = "show_communication_info"
-
- case showSupportDris = "show_support_dris"
-
- case type = "type"
-
- case integration = "integration"
-
- case allowTicketCreation = "allow_ticket_creation"
-
- case showListing = "show_listing"
-
- case availableIntegration = "available_integration"
-
- case enableDris = "enable_dris"
-
- case supportEmail = "support_email"
-
- case supportPhone = "support_phone"
-
- case supportFaq = "support_faq"
-
- }
-
- public init(allowTicketCreation: Bool? = nil, availableIntegration: [String]? = nil, enableDris: Bool? = nil, integration: GeneralConfigIntegrationSchema? = nil, showCommunicationInfo: Bool? = nil, showListing: Bool? = nil, showSupportDris: Bool? = nil, supportCommunication: [SupportCommunicationSchema]? = nil, supportEmail: SupportSchema? = nil, supportFaq: SupportSchema? = nil, supportPhone: SupportSchema? = nil, type: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.supportCommunication = supportCommunication
-
- self.showCommunicationInfo = showCommunicationInfo
-
- self.showSupportDris = showSupportDris
-
- self.type = type
-
- self.integration = integration
-
- self.allowTicketCreation = allowTicketCreation
-
- self.showListing = showListing
-
- self.availableIntegration = availableIntegration
-
- self.enableDris = enableDris
-
- self.supportEmail = supportEmail
-
- self.supportPhone = supportPhone
-
- self.supportFaq = supportFaq
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- supportCommunication = try container.decode([SupportCommunicationSchema].self, forKey: .supportCommunication)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showCommunicationInfo = try container.decode(Bool.self, forKey: .showCommunicationInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showSupportDris = try container.decode(Bool.self, forKey: .showSupportDris)
-
- } 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 {
- integration = try container.decode(GeneralConfigIntegrationSchema.self, forKey: .integration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allowTicketCreation = try container.decode(Bool.self, forKey: .allowTicketCreation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showListing = try container.decode(Bool.self, forKey: .showListing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- availableIntegration = try container.decode([String].self, forKey: .availableIntegration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- enableDris = try container.decode(Bool.self, forKey: .enableDris)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportEmail = try container.decode(SupportSchema.self, forKey: .supportEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportPhone = try container.decode(SupportSchema.self, forKey: .supportPhone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportFaq = try container.decode(SupportSchema.self, forKey: .supportFaq)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(supportCommunication, forKey: .supportCommunication)
-
-
-
-
- try? container.encodeIfPresent(showCommunicationInfo, forKey: .showCommunicationInfo)
-
-
-
-
- try? container.encodeIfPresent(showSupportDris, forKey: .showSupportDris)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(integration, forKey: .integration)
-
-
-
-
- try? container.encodeIfPresent(allowTicketCreation, forKey: .allowTicketCreation)
-
-
-
-
- try? container.encodeIfPresent(showListing, forKey: .showListing)
-
-
-
-
- try? container.encodeIfPresent(availableIntegration, forKey: .availableIntegration)
-
-
-
-
- try? container.encodeIfPresent(enableDris, forKey: .enableDris)
-
-
-
-
- try? container.encodeIfPresent(supportEmail, forKey: .supportEmail)
-
-
-
-
- try? container.encodeIfPresent(supportPhone, forKey: .supportPhone)
-
-
-
-
- try? container.encodeIfPresent(supportFaq, forKey: .supportFaq)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Lead {
- /*
- Model: GeneralConfigDetails
- Used By: Lead
- */
-
- class GeneralConfigDetails: Codable {
-
-
- public var id: String?
-
- public var supportCommunication: [SupportCommunicationSchema]?
-
- public var showCommunicationInfo: Bool?
-
- public var showSupportDris: Bool?
-
- public var type: String?
-
- public var integration: GeneralConfigIntegrationSchema?
-
- public var allowTicketCreation: Bool?
-
- public var showListing: Bool?
-
- public var availableIntegration: [String]?
-
- public var enableDris: Bool?
-
- public var supportEmail: SupportSchema?
-
- public var supportPhone: SupportSchema?
-
- public var supportFaq: SupportSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case supportCommunication = "support_communication"
-
- case showCommunicationInfo = "show_communication_info"
-
- case showSupportDris = "show_support_dris"
-
- case type = "type"
-
- case integration = "integration"
-
- case allowTicketCreation = "allow_ticket_creation"
-
- case showListing = "show_listing"
-
- case availableIntegration = "available_integration"
-
- case enableDris = "enable_dris"
-
- case supportEmail = "support_email"
-
- case supportPhone = "support_phone"
-
- case supportFaq = "support_faq"
-
- }
-
- public init(allowTicketCreation: Bool? = nil, availableIntegration: [String]? = nil, enableDris: Bool? = nil, integration: GeneralConfigIntegrationSchema? = nil, showCommunicationInfo: Bool? = nil, showListing: Bool? = nil, showSupportDris: Bool? = nil, supportCommunication: [SupportCommunicationSchema]? = nil, supportEmail: SupportSchema? = nil, supportFaq: SupportSchema? = nil, supportPhone: SupportSchema? = nil, type: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.supportCommunication = supportCommunication
-
- self.showCommunicationInfo = showCommunicationInfo
-
- self.showSupportDris = showSupportDris
-
- self.type = type
-
- self.integration = integration
-
- self.allowTicketCreation = allowTicketCreation
-
- self.showListing = showListing
-
- self.availableIntegration = availableIntegration
-
- self.enableDris = enableDris
-
- self.supportEmail = supportEmail
-
- self.supportPhone = supportPhone
-
- self.supportFaq = supportFaq
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- supportCommunication = try container.decode([SupportCommunicationSchema].self, forKey: .supportCommunication)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showCommunicationInfo = try container.decode(Bool.self, forKey: .showCommunicationInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showSupportDris = try container.decode(Bool.self, forKey: .showSupportDris)
-
- } 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 {
- integration = try container.decode(GeneralConfigIntegrationSchema.self, forKey: .integration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- allowTicketCreation = try container.decode(Bool.self, forKey: .allowTicketCreation)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showListing = try container.decode(Bool.self, forKey: .showListing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- availableIntegration = try container.decode([String].self, forKey: .availableIntegration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- enableDris = try container.decode(Bool.self, forKey: .enableDris)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportEmail = try container.decode(SupportSchema.self, forKey: .supportEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportPhone = try container.decode(SupportSchema.self, forKey: .supportPhone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- supportFaq = try container.decode(SupportSchema.self, forKey: .supportFaq)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(supportCommunication, forKey: .supportCommunication)
-
-
-
-
- try? container.encodeIfPresent(showCommunicationInfo, forKey: .showCommunicationInfo)
-
-
-
-
- try? container.encodeIfPresent(showSupportDris, forKey: .showSupportDris)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(integration, forKey: .integration)
-
-
-
-
- try? container.encodeIfPresent(allowTicketCreation, forKey: .allowTicketCreation)
-
-
-
-
- try? container.encodeIfPresent(showListing, forKey: .showListing)
-
-
-
-
- try? container.encodeIfPresent(availableIntegration, forKey: .availableIntegration)
-
-
-
-
- try? container.encodeIfPresent(enableDris, forKey: .enableDris)
-
-
-
-
- try? container.encodeIfPresent(supportEmail, forKey: .supportEmail)
-
-
-
-
- try? container.encodeIfPresent(supportPhone, forKey: .supportPhone)
-
-
-
-
- try? container.encodeIfPresent(supportFaq, forKey: .supportFaq)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Lead/GeneralConfigResponseLeadPlatformModel.swift b/Sources/code/platform/Models/Lead/GeneralConfigResponseLeadPlatformModel.swift
new file mode 100644
index 0000000000..f05ab96da0
--- /dev/null
+++ b/Sources/code/platform/Models/Lead/GeneralConfigResponseLeadPlatformModel.swift
@@ -0,0 +1,668 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Lead {
+ /*
+ Model: GeneralConfigResponse
+ Used By: Lead
+ */
+
+ class GeneralConfigResponse: Codable {
+
+
+ public var id: String?
+
+ public var supportCommunication: [SupportCommunicationSchema]?
+
+ public var showCommunicationInfo: Bool?
+
+ public var showSupportDris: Bool?
+
+ public var type: String?
+
+ public var integration: GeneralConfigIntegrationSchema?
+
+ public var allowTicketCreation: Bool?
+
+ public var showListing: Bool?
+
+ public var availableIntegration: [String]?
+
+ public var enableDris: Bool?
+
+ public var supportEmail: SupportSchema?
+
+ public var supportPhone: SupportSchema?
+
+ public var supportFaq: SupportSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case supportCommunication = "support_communication"
+
+ case showCommunicationInfo = "show_communication_info"
+
+ case showSupportDris = "show_support_dris"
+
+ case type = "type"
+
+ case integration = "integration"
+
+ case allowTicketCreation = "allow_ticket_creation"
+
+ case showListing = "show_listing"
+
+ case availableIntegration = "available_integration"
+
+ case enableDris = "enable_dris"
+
+ case supportEmail = "support_email"
+
+ case supportPhone = "support_phone"
+
+ case supportFaq = "support_faq"
+
+ }
+
+ public init(allowTicketCreation: Bool? = nil, availableIntegration: [String]? = nil, enableDris: Bool? = nil, integration: GeneralConfigIntegrationSchema? = nil, showCommunicationInfo: Bool? = nil, showListing: Bool? = nil, showSupportDris: Bool? = nil, supportCommunication: [SupportCommunicationSchema]? = nil, supportEmail: SupportSchema? = nil, supportFaq: SupportSchema? = nil, supportPhone: SupportSchema? = nil, type: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.supportCommunication = supportCommunication
+
+ self.showCommunicationInfo = showCommunicationInfo
+
+ self.showSupportDris = showSupportDris
+
+ self.type = type
+
+ self.integration = integration
+
+ self.allowTicketCreation = allowTicketCreation
+
+ self.showListing = showListing
+
+ self.availableIntegration = availableIntegration
+
+ self.enableDris = enableDris
+
+ self.supportEmail = supportEmail
+
+ self.supportPhone = supportPhone
+
+ self.supportFaq = supportFaq
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ supportCommunication = try container.decode([SupportCommunicationSchema].self, forKey: .supportCommunication)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showCommunicationInfo = try container.decode(Bool.self, forKey: .showCommunicationInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showSupportDris = try container.decode(Bool.self, forKey: .showSupportDris)
+
+ } 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 {
+ integration = try container.decode(GeneralConfigIntegrationSchema.self, forKey: .integration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ allowTicketCreation = try container.decode(Bool.self, forKey: .allowTicketCreation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showListing = try container.decode(Bool.self, forKey: .showListing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ availableIntegration = try container.decode([String].self, forKey: .availableIntegration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ enableDris = try container.decode(Bool.self, forKey: .enableDris)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportEmail = try container.decode(SupportSchema.self, forKey: .supportEmail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportPhone = try container.decode(SupportSchema.self, forKey: .supportPhone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportFaq = try container.decode(SupportSchema.self, forKey: .supportFaq)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(supportCommunication, forKey: .supportCommunication)
+
+
+
+
+ try? container.encodeIfPresent(showCommunicationInfo, forKey: .showCommunicationInfo)
+
+
+
+
+ try? container.encodeIfPresent(showSupportDris, forKey: .showSupportDris)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(integration, forKey: .integration)
+
+
+
+
+ try? container.encodeIfPresent(allowTicketCreation, forKey: .allowTicketCreation)
+
+
+
+
+ try? container.encodeIfPresent(showListing, forKey: .showListing)
+
+
+
+
+ try? container.encodeIfPresent(availableIntegration, forKey: .availableIntegration)
+
+
+
+
+ try? container.encodeIfPresent(enableDris, forKey: .enableDris)
+
+
+
+
+ try? container.encodeIfPresent(supportEmail, forKey: .supportEmail)
+
+
+
+
+ try? container.encodeIfPresent(supportPhone, forKey: .supportPhone)
+
+
+
+
+ try? container.encodeIfPresent(supportFaq, forKey: .supportFaq)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Lead {
+ /*
+ Model: GeneralConfigResponse
+ Used By: Lead
+ */
+
+ class GeneralConfigResponse: Codable {
+
+
+ public var id: String?
+
+ public var supportCommunication: [SupportCommunicationSchema]?
+
+ public var showCommunicationInfo: Bool?
+
+ public var showSupportDris: Bool?
+
+ public var type: String?
+
+ public var integration: GeneralConfigIntegrationSchema?
+
+ public var allowTicketCreation: Bool?
+
+ public var showListing: Bool?
+
+ public var availableIntegration: [String]?
+
+ public var enableDris: Bool?
+
+ public var supportEmail: SupportSchema?
+
+ public var supportPhone: SupportSchema?
+
+ public var supportFaq: SupportSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case supportCommunication = "support_communication"
+
+ case showCommunicationInfo = "show_communication_info"
+
+ case showSupportDris = "show_support_dris"
+
+ case type = "type"
+
+ case integration = "integration"
+
+ case allowTicketCreation = "allow_ticket_creation"
+
+ case showListing = "show_listing"
+
+ case availableIntegration = "available_integration"
+
+ case enableDris = "enable_dris"
+
+ case supportEmail = "support_email"
+
+ case supportPhone = "support_phone"
+
+ case supportFaq = "support_faq"
+
+ }
+
+ public init(allowTicketCreation: Bool? = nil, availableIntegration: [String]? = nil, enableDris: Bool? = nil, integration: GeneralConfigIntegrationSchema? = nil, showCommunicationInfo: Bool? = nil, showListing: Bool? = nil, showSupportDris: Bool? = nil, supportCommunication: [SupportCommunicationSchema]? = nil, supportEmail: SupportSchema? = nil, supportFaq: SupportSchema? = nil, supportPhone: SupportSchema? = nil, type: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.supportCommunication = supportCommunication
+
+ self.showCommunicationInfo = showCommunicationInfo
+
+ self.showSupportDris = showSupportDris
+
+ self.type = type
+
+ self.integration = integration
+
+ self.allowTicketCreation = allowTicketCreation
+
+ self.showListing = showListing
+
+ self.availableIntegration = availableIntegration
+
+ self.enableDris = enableDris
+
+ self.supportEmail = supportEmail
+
+ self.supportPhone = supportPhone
+
+ self.supportFaq = supportFaq
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ supportCommunication = try container.decode([SupportCommunicationSchema].self, forKey: .supportCommunication)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showCommunicationInfo = try container.decode(Bool.self, forKey: .showCommunicationInfo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showSupportDris = try container.decode(Bool.self, forKey: .showSupportDris)
+
+ } 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 {
+ integration = try container.decode(GeneralConfigIntegrationSchema.self, forKey: .integration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ allowTicketCreation = try container.decode(Bool.self, forKey: .allowTicketCreation)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showListing = try container.decode(Bool.self, forKey: .showListing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ availableIntegration = try container.decode([String].self, forKey: .availableIntegration)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ enableDris = try container.decode(Bool.self, forKey: .enableDris)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportEmail = try container.decode(SupportSchema.self, forKey: .supportEmail)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportPhone = try container.decode(SupportSchema.self, forKey: .supportPhone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ supportFaq = try container.decode(SupportSchema.self, forKey: .supportFaq)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(supportCommunication, forKey: .supportCommunication)
+
+
+
+
+ try? container.encodeIfPresent(showCommunicationInfo, forKey: .showCommunicationInfo)
+
+
+
+
+ try? container.encodeIfPresent(showSupportDris, forKey: .showSupportDris)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(integration, forKey: .integration)
+
+
+
+
+ try? container.encodeIfPresent(allowTicketCreation, forKey: .allowTicketCreation)
+
+
+
+
+ try? container.encodeIfPresent(showListing, forKey: .showListing)
+
+
+
+
+ try? container.encodeIfPresent(availableIntegration, forKey: .availableIntegration)
+
+
+
+
+ try? container.encodeIfPresent(enableDris, forKey: .enableDris)
+
+
+
+
+ try? container.encodeIfPresent(supportEmail, forKey: .supportEmail)
+
+
+
+
+ try? container.encodeIfPresent(supportPhone, forKey: .supportPhone)
+
+
+
+
+ try? container.encodeIfPresent(supportFaq, forKey: .supportFaq)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/APIFailedResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/APIFailedResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..bea33e7cf3
--- /dev/null
+++ b/Sources/code/platform/Models/Order/APIFailedResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: APIFailedResponse
+ Used By: Order
+ */
+
+ class APIFailedResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: APIFailedResponse
+ Used By: Order
+ */
+
+ class APIFailedResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/APIFailedResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/APIFailedResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index e1163b5973..0000000000
--- a/Sources/code/platform/Models/Order/APIFailedResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: APIFailedResponseSchema
- Used By: Order
- */
-
- class APIFailedResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: APIFailedResponseSchema
- Used By: Order
- */
-
- class APIFailedResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ActionDetailSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ActionDetailSchemaOrderPlatformModel.swift
deleted file mode 100644
index fee338fc55..0000000000
--- a/Sources/code/platform/Models/Order/ActionDetailSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ActionDetailSchema
- Used By: Order
- */
-
- class ActionDetailSchema: Codable {
-
-
- public var name: [String: Any]
-
- public var currentMode: String
-
- public var currentIdentifier: String
-
- public var refundTo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case currentMode = "current_mode"
-
- case currentIdentifier = "current_identifier"
-
- case refundTo = "refund_to"
-
- }
-
- public init(currentIdentifier: String, currentMode: String, name: [String: Any], refundTo: String? = nil) {
-
- self.name = name
-
- self.currentMode = currentMode
-
- self.currentIdentifier = currentIdentifier
-
- self.refundTo = refundTo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode([String: Any].self, forKey: .name)
-
-
-
-
- currentMode = try container.decode(String.self, forKey: .currentMode)
-
-
-
-
- currentIdentifier = try container.decode(String.self, forKey: .currentIdentifier)
-
-
-
-
- do {
- refundTo = try container.decode(String.self, forKey: .refundTo)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(currentMode, forKey: .currentMode)
-
-
-
-
- try? container.encodeIfPresent(currentIdentifier, forKey: .currentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(refundTo, forKey: .refundTo)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ActionDetailSchema
- Used By: Order
- */
-
- class ActionDetailSchema: Codable {
-
-
- public var name: [String: Any]
-
- public var currentMode: String
-
- public var currentIdentifier: String
-
- public var refundTo: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case currentMode = "current_mode"
-
- case currentIdentifier = "current_identifier"
-
- case refundTo = "refund_to"
-
- }
-
- public init(currentIdentifier: String, currentMode: String, name: [String: Any], refundTo: String? = nil) {
-
- self.name = name
-
- self.currentMode = currentMode
-
- self.currentIdentifier = currentIdentifier
-
- self.refundTo = refundTo
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode([String: Any].self, forKey: .name)
-
-
-
-
- currentMode = try container.decode(String.self, forKey: .currentMode)
-
-
-
-
- currentIdentifier = try container.decode(String.self, forKey: .currentIdentifier)
-
-
-
-
- do {
- refundTo = try container.decode(String.self, forKey: .refundTo)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(currentMode, forKey: .currentMode)
-
-
-
-
- try? container.encodeIfPresent(currentIdentifier, forKey: .currentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(refundTo, forKey: .refundTo)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AddressOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AddressOrderPlatformModel.swift
deleted file mode 100644
index f96bb25901..0000000000
--- a/Sources/code/platform/Models/Order/AddressOrderPlatformModel.swift
+++ /dev/null
@@ -1,1496 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: Address
- Used By: Order
- */
-
- class Address: Codable {
-
-
- public var phone: String?
-
- public var address2: String?
-
- public var address: String?
-
- public var longitude: Int?
-
- public var pincode: String?
-
- public var area: String?
-
- public var addressType: String?
-
- public var country: String?
-
- public var addressCategory: String?
-
- public var email: String?
-
- public var createdAt: String?
-
- public var address1: String?
-
- public var displayAddress: String?
-
- public var landmark: String?
-
- public var updatedAt: String?
-
- public var version: String?
-
- public var latitude: Int?
-
- public var contactPerson: String?
-
- public var state: String?
-
- public var city: String?
-
- public var areaCodeSlug: String?
-
- public var countryCode: String?
-
- public var countryIsoCode: String?
-
- public var countryPhoneCode: String?
-
- public var deliveryAddressId: String?
-
- public var geoLocation: [String: Any]?
-
- public var name: String?
-
- public var sector: String?
-
- public var stateCode: String?
-
- public var uid: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phone = "phone"
-
- case address2 = "address2"
-
- case address = "address"
-
- case longitude = "longitude"
-
- case pincode = "pincode"
-
- case area = "area"
-
- case addressType = "address_type"
-
- case country = "country"
-
- case addressCategory = "address_category"
-
- case email = "email"
-
- case createdAt = "created_at"
-
- case address1 = "address1"
-
- case displayAddress = "display_address"
-
- case landmark = "landmark"
-
- case updatedAt = "updated_at"
-
- case version = "version"
-
- case latitude = "latitude"
-
- case contactPerson = "contact_person"
-
- case state = "state"
-
- case city = "city"
-
- case areaCodeSlug = "area_code_slug"
-
- case countryCode = "country_code"
-
- case countryIsoCode = "country_iso_code"
-
- case countryPhoneCode = "country_phone_code"
-
- case deliveryAddressId = "delivery_address_id"
-
- case geoLocation = "geo_location"
-
- case name = "name"
-
- case sector = "sector"
-
- case stateCode = "state_code"
-
- case uid = "uid"
-
- case userId = "user_id"
-
- }
-
- public init(address: String? = nil, address1: String? = nil, address2: String? = nil, addressCategory: String? = nil, addressType: String? = nil, area: String? = nil, areaCodeSlug: String? = nil, city: String? = nil, contactPerson: String? = nil, country: String? = nil, countryCode: String? = nil, countryIsoCode: String? = nil, countryPhoneCode: String? = nil, createdAt: String? = nil, deliveryAddressId: String? = nil, displayAddress: String? = nil, email: String? = nil, geoLocation: [String: Any]? = nil, landmark: String? = nil, latitude: Int? = nil, longitude: Int? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil, uid: String? = nil, updatedAt: String? = nil, userId: String? = nil, version: String? = nil) {
-
- self.phone = phone
-
- self.address2 = address2
-
- self.address = address
-
- self.longitude = longitude
-
- self.pincode = pincode
-
- self.area = area
-
- self.addressType = addressType
-
- self.country = country
-
- self.addressCategory = addressCategory
-
- self.email = email
-
- self.createdAt = createdAt
-
- self.address1 = address1
-
- self.displayAddress = displayAddress
-
- self.landmark = landmark
-
- self.updatedAt = updatedAt
-
- self.version = version
-
- self.latitude = latitude
-
- self.contactPerson = contactPerson
-
- self.state = state
-
- self.city = city
-
- self.areaCodeSlug = areaCodeSlug
-
- self.countryCode = countryCode
-
- self.countryIsoCode = countryIsoCode
-
- self.countryPhoneCode = countryPhoneCode
-
- self.deliveryAddressId = deliveryAddressId
-
- self.geoLocation = geoLocation
-
- self.name = name
-
- self.sector = sector
-
- self.stateCode = stateCode
-
- self.uid = uid
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- phone = try container.decode(String.self, forKey: .phone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- longitude = try container.decode(Int.self, forKey: .longitude)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- addressCategory = try container.decode(String.self, forKey: .addressCategory)
-
- } 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 {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- displayAddress = try container.decode(String.self, forKey: .displayAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- version = try container.decode(String.self, forKey: .version)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- latitude = try container.decode(Int.self, forKey: .latitude)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- contactPerson = try container.decode(String.self, forKey: .contactPerson)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- areaCodeSlug = try container.decode(String.self, forKey: .areaCodeSlug)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddressId = try container.decode(String.self, forKey: .deliveryAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- geoLocation = try container.decode([String: Any].self, forKey: .geoLocation)
-
- } 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 {
-
- }
-
-
-
- do {
- sector = try container.decode(String.self, forKey: .sector)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(displayAddress, forKey: .displayAddress)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(version, forKey: .version)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(contactPerson, forKey: .contactPerson)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(areaCodeSlug, forKey: .areaCodeSlug)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddressId, forKey: .deliveryAddressId)
-
-
-
-
- try? container.encodeIfPresent(geoLocation, forKey: .geoLocation)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(sector, forKey: .sector)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: Address
- Used By: Order
- */
-
- class Address: Codable {
-
-
- public var phone: String?
-
- public var address2: String?
-
- public var address: String?
-
- public var longitude: Int?
-
- public var pincode: String?
-
- public var area: String?
-
- public var addressType: String?
-
- public var country: String?
-
- public var addressCategory: String?
-
- public var email: String?
-
- public var createdAt: String?
-
- public var address1: String?
-
- public var displayAddress: String?
-
- public var landmark: String?
-
- public var updatedAt: String?
-
- public var version: String?
-
- public var latitude: Int?
-
- public var contactPerson: String?
-
- public var state: String?
-
- public var city: String?
-
- public var areaCodeSlug: String?
-
- public var countryCode: String?
-
- public var countryIsoCode: String?
-
- public var countryPhoneCode: String?
-
- public var deliveryAddressId: String?
-
- public var geoLocation: [String: Any]?
-
- public var name: String?
-
- public var sector: String?
-
- public var stateCode: String?
-
- public var uid: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phone = "phone"
-
- case address2 = "address2"
-
- case address = "address"
-
- case longitude = "longitude"
-
- case pincode = "pincode"
-
- case area = "area"
-
- case addressType = "address_type"
-
- case country = "country"
-
- case addressCategory = "address_category"
-
- case email = "email"
-
- case createdAt = "created_at"
-
- case address1 = "address1"
-
- case displayAddress = "display_address"
-
- case landmark = "landmark"
-
- case updatedAt = "updated_at"
-
- case version = "version"
-
- case latitude = "latitude"
-
- case contactPerson = "contact_person"
-
- case state = "state"
-
- case city = "city"
-
- case areaCodeSlug = "area_code_slug"
-
- case countryCode = "country_code"
-
- case countryIsoCode = "country_iso_code"
-
- case countryPhoneCode = "country_phone_code"
-
- case deliveryAddressId = "delivery_address_id"
-
- case geoLocation = "geo_location"
-
- case name = "name"
-
- case sector = "sector"
-
- case stateCode = "state_code"
-
- case uid = "uid"
-
- case userId = "user_id"
-
- }
-
- public init(address: String? = nil, address1: String? = nil, address2: String? = nil, addressCategory: String? = nil, addressType: String? = nil, area: String? = nil, areaCodeSlug: String? = nil, city: String? = nil, contactPerson: String? = nil, country: String? = nil, countryCode: String? = nil, countryIsoCode: String? = nil, countryPhoneCode: String? = nil, createdAt: String? = nil, deliveryAddressId: String? = nil, displayAddress: String? = nil, email: String? = nil, geoLocation: [String: Any]? = nil, landmark: String? = nil, latitude: Int? = nil, longitude: Int? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, sector: String? = nil, state: String? = nil, stateCode: String? = nil, uid: String? = nil, updatedAt: String? = nil, userId: String? = nil, version: String? = nil) {
-
- self.phone = phone
-
- self.address2 = address2
-
- self.address = address
-
- self.longitude = longitude
-
- self.pincode = pincode
-
- self.area = area
-
- self.addressType = addressType
-
- self.country = country
-
- self.addressCategory = addressCategory
-
- self.email = email
-
- self.createdAt = createdAt
-
- self.address1 = address1
-
- self.displayAddress = displayAddress
-
- self.landmark = landmark
-
- self.updatedAt = updatedAt
-
- self.version = version
-
- self.latitude = latitude
-
- self.contactPerson = contactPerson
-
- self.state = state
-
- self.city = city
-
- self.areaCodeSlug = areaCodeSlug
-
- self.countryCode = countryCode
-
- self.countryIsoCode = countryIsoCode
-
- self.countryPhoneCode = countryPhoneCode
-
- self.deliveryAddressId = deliveryAddressId
-
- self.geoLocation = geoLocation
-
- self.name = name
-
- self.sector = sector
-
- self.stateCode = stateCode
-
- self.uid = uid
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- phone = try container.decode(String.self, forKey: .phone)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- longitude = try container.decode(Int.self, forKey: .longitude)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- addressCategory = try container.decode(String.self, forKey: .addressCategory)
-
- } 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 {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- displayAddress = try container.decode(String.self, forKey: .displayAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- version = try container.decode(String.self, forKey: .version)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- latitude = try container.decode(Int.self, forKey: .latitude)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- contactPerson = try container.decode(String.self, forKey: .contactPerson)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- areaCodeSlug = try container.decode(String.self, forKey: .areaCodeSlug)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddressId = try container.decode(String.self, forKey: .deliveryAddressId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- geoLocation = try container.decode([String: Any].self, forKey: .geoLocation)
-
- } 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 {
-
- }
-
-
-
- do {
- sector = try container.decode(String.self, forKey: .sector)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- 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(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(displayAddress, forKey: .displayAddress)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(version, forKey: .version)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(contactPerson, forKey: .contactPerson)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(areaCodeSlug, forKey: .areaCodeSlug)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddressId, forKey: .deliveryAddressId)
-
-
-
-
- try? container.encodeIfPresent(geoLocation, forKey: .geoLocation)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(sector, forKey: .sector)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateAppConfigMetaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateAppConfigMetaOrderPlatformModel.swift
deleted file mode 100644
index d0cbe83771..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateAppConfigMetaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateAppConfigMeta
- Used By: Order
- */
-
- class AffiliateAppConfigMeta: Codable {
-
-
- public var value: String
-
- public var name: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case name = "name"
-
- }
-
- public init(name: String, value: String) {
-
- self.value = value
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- 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(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateAppConfigMeta
- Used By: Order
- */
-
- class AffiliateAppConfigMeta: Codable {
-
-
- public var value: String
-
- public var name: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case name = "name"
-
- }
-
- public init(name: String, value: String) {
-
- self.value = value
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- 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(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateAppConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateAppConfigOrderPlatformModel.swift
deleted file mode 100644
index 0e4677dd77..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateAppConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,386 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateAppConfig
- Used By: Order
- */
-
- class AffiliateAppConfig: Codable {
-
-
- public var id: String
-
- public var description: String?
-
- public var updatedAt: String
-
- public var name: String
-
- public var token: String
-
- public var meta: [AffiliateAppConfigMeta]?
-
- public var owner: String
-
- public var secret: String
-
- public var createdAt: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case description = "description"
-
- case updatedAt = "updated_at"
-
- case name = "name"
-
- case token = "token"
-
- case meta = "meta"
-
- case owner = "owner"
-
- case secret = "secret"
-
- case createdAt = "created_at"
-
- }
-
- public init(createdAt: String, description: String? = nil, id: String, meta: [AffiliateAppConfigMeta]? = nil, name: String, owner: String, secret: String, token: String, updatedAt: String) {
-
- self.id = id
-
- self.description = description
-
- self.updatedAt = updatedAt
-
- self.name = name
-
- self.token = token
-
- self.meta = meta
-
- self.owner = owner
-
- self.secret = secret
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
-
- }
-
-
-
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- token = try container.decode(String.self, forKey: .token)
-
-
-
-
- do {
- meta = try container.decode([AffiliateAppConfigMeta].self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- owner = try container.decode(String.self, forKey: .owner)
-
-
-
-
- secret = try container.decode(String.self, forKey: .secret)
-
-
-
-
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(token, forKey: .token)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(owner, forKey: .owner)
-
-
-
-
- try? container.encodeIfPresent(secret, forKey: .secret)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateAppConfig
- Used By: Order
- */
-
- class AffiliateAppConfig: Codable {
-
-
- public var id: String
-
- public var description: String?
-
- public var updatedAt: String
-
- public var name: String
-
- public var token: String
-
- public var meta: [AffiliateAppConfigMeta]?
-
- public var owner: String
-
- public var secret: String
-
- public var createdAt: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case description = "description"
-
- case updatedAt = "updated_at"
-
- case name = "name"
-
- case token = "token"
-
- case meta = "meta"
-
- case owner = "owner"
-
- case secret = "secret"
-
- case createdAt = "created_at"
-
- }
-
- public init(createdAt: String, description: String? = nil, id: String, meta: [AffiliateAppConfigMeta]? = nil, name: String, owner: String, secret: String, token: String, updatedAt: String) {
-
- self.id = id
-
- self.description = description
-
- self.updatedAt = updatedAt
-
- self.name = name
-
- self.token = token
-
- self.meta = meta
-
- self.owner = owner
-
- self.secret = secret
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
-
- }
-
-
-
- updatedAt = try container.decode(String.self, forKey: .updatedAt)
-
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- token = try container.decode(String.self, forKey: .token)
-
-
-
-
- do {
- meta = try container.decode([AffiliateAppConfigMeta].self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- owner = try container.decode(String.self, forKey: .owner)
-
-
-
-
- secret = try container.decode(String.self, forKey: .secret)
-
-
-
-
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(token, forKey: .token)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(owner, forKey: .owner)
-
-
-
-
- try? container.encodeIfPresent(secret, forKey: .secret)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateBagOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateBagOrderPlatformModel.swift
deleted file mode 100644
index 44f2d21143..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateBagOrderPlatformModel.swift
+++ /dev/null
@@ -1,820 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateBag
- Used By: Order
- */
-
- class AffiliateBag: Codable {
-
-
- public var pdfLinks: MarketPlacePdf?
-
- public var storeId: Int
-
- public var sku: String
-
- public var discount: Double
-
- public var unitPrice: Double
-
- public var priceEffective: Double
-
- public var affiliateStoreId: String
-
- public var identifier: [String: Any]
-
- public var sellerIdentifier: String
-
- public var itemSize: String
-
- public var amountPaid: Double
-
- public var fyndStoreId: String
-
- public var itemId: Int
-
- public var deliveryCharge: Double
-
- public var avlQty: Int
-
- public var priceMarked: Double
-
- public var quantity: Int
-
- public var companyId: Int
-
- public var hsnCodeId: String
-
- public var id: String
-
- public var affiliateMeta: [String: Any]
-
- public var modifiedOn: String
-
- public var transferPrice: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfLinks = "pdf_links"
-
- case storeId = "store_id"
-
- case sku = "sku"
-
- case discount = "discount"
-
- case unitPrice = "unit_price"
-
- case priceEffective = "price_effective"
-
- case affiliateStoreId = "affiliate_store_id"
-
- case identifier = "identifier"
-
- case sellerIdentifier = "seller_identifier"
-
- case itemSize = "item_size"
-
- case amountPaid = "amount_paid"
-
- case fyndStoreId = "fynd_store_id"
-
- case itemId = "item_id"
-
- case deliveryCharge = "delivery_charge"
-
- case avlQty = "avl_qty"
-
- case priceMarked = "price_marked"
-
- case quantity = "quantity"
-
- case companyId = "company_id"
-
- case hsnCodeId = "hsn_code_id"
-
- case id = "_id"
-
- case affiliateMeta = "affiliate_meta"
-
- case modifiedOn = "modified_on"
-
- case transferPrice = "transfer_price"
-
- }
-
- public init(affiliateMeta: [String: Any], affiliateStoreId: String, amountPaid: Double, avlQty: Int, companyId: Int, deliveryCharge: Double, discount: Double, fyndStoreId: String, hsnCodeId: String, identifier: [String: Any], itemId: Int, itemSize: String, modifiedOn: String, pdfLinks: MarketPlacePdf? = nil, priceEffective: Double, priceMarked: Double, quantity: Int, sellerIdentifier: String, sku: String, storeId: Int, transferPrice: Int, unitPrice: Double, id: String) {
-
- self.pdfLinks = pdfLinks
-
- self.storeId = storeId
-
- self.sku = sku
-
- self.discount = discount
-
- self.unitPrice = unitPrice
-
- self.priceEffective = priceEffective
-
- self.affiliateStoreId = affiliateStoreId
-
- self.identifier = identifier
-
- self.sellerIdentifier = sellerIdentifier
-
- self.itemSize = itemSize
-
- self.amountPaid = amountPaid
-
- self.fyndStoreId = fyndStoreId
-
- self.itemId = itemId
-
- self.deliveryCharge = deliveryCharge
-
- self.avlQty = avlQty
-
- self.priceMarked = priceMarked
-
- self.quantity = quantity
-
- self.companyId = companyId
-
- self.hsnCodeId = hsnCodeId
-
- self.id = id
-
- self.affiliateMeta = affiliateMeta
-
- self.modifiedOn = modifiedOn
-
- self.transferPrice = transferPrice
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfLinks = try container.decode(MarketPlacePdf.self, forKey: .pdfLinks)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- sku = try container.decode(String.self, forKey: .sku)
-
-
-
-
- discount = try container.decode(Double.self, forKey: .discount)
-
-
-
-
- unitPrice = try container.decode(Double.self, forKey: .unitPrice)
-
-
-
-
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
-
-
-
- affiliateStoreId = try container.decode(String.self, forKey: .affiliateStoreId)
-
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- itemSize = try container.decode(String.self, forKey: .itemSize)
-
-
-
-
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
-
-
-
- fyndStoreId = try container.decode(String.self, forKey: .fyndStoreId)
-
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- deliveryCharge = try container.decode(Double.self, forKey: .deliveryCharge)
-
-
-
-
- avlQty = try container.decode(Int.self, forKey: .avlQty)
-
-
-
-
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- hsnCodeId = try container.decode(String.self, forKey: .hsnCodeId)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- affiliateMeta = try container.decode([String: Any].self, forKey: .affiliateMeta)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- transferPrice = try container.decode(Int.self, forKey: .transferPrice)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfLinks, forKey: .pdfLinks)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(sku, forKey: .sku)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(unitPrice, forKey: .unitPrice)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(affiliateStoreId, forKey: .affiliateStoreId)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(itemSize, forKey: .itemSize)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(fyndStoreId, forKey: .fyndStoreId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharge, forKey: .deliveryCharge)
-
-
-
-
- try? container.encodeIfPresent(avlQty, forKey: .avlQty)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(hsnCodeId, forKey: .hsnCodeId)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(affiliateMeta, forKey: .affiliateMeta)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(transferPrice, forKey: .transferPrice)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateBag
- Used By: Order
- */
-
- class AffiliateBag: Codable {
-
-
- public var pdfLinks: MarketPlacePdf?
-
- public var storeId: Int
-
- public var sku: String
-
- public var discount: Double
-
- public var unitPrice: Double
-
- public var priceEffective: Double
-
- public var affiliateStoreId: String
-
- public var identifier: [String: Any]
-
- public var sellerIdentifier: String
-
- public var itemSize: String
-
- public var amountPaid: Double
-
- public var fyndStoreId: String
-
- public var itemId: Int
-
- public var deliveryCharge: Double
-
- public var avlQty: Int
-
- public var priceMarked: Double
-
- public var quantity: Int
-
- public var companyId: Int
-
- public var hsnCodeId: String
-
- public var id: String
-
- public var affiliateMeta: [String: Any]
-
- public var modifiedOn: String
-
- public var transferPrice: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pdfLinks = "pdf_links"
-
- case storeId = "store_id"
-
- case sku = "sku"
-
- case discount = "discount"
-
- case unitPrice = "unit_price"
-
- case priceEffective = "price_effective"
-
- case affiliateStoreId = "affiliate_store_id"
-
- case identifier = "identifier"
-
- case sellerIdentifier = "seller_identifier"
-
- case itemSize = "item_size"
-
- case amountPaid = "amount_paid"
-
- case fyndStoreId = "fynd_store_id"
-
- case itemId = "item_id"
-
- case deliveryCharge = "delivery_charge"
-
- case avlQty = "avl_qty"
-
- case priceMarked = "price_marked"
-
- case quantity = "quantity"
-
- case companyId = "company_id"
-
- case hsnCodeId = "hsn_code_id"
-
- case id = "_id"
-
- case affiliateMeta = "affiliate_meta"
-
- case modifiedOn = "modified_on"
-
- case transferPrice = "transfer_price"
-
- }
-
- public init(affiliateMeta: [String: Any], affiliateStoreId: String, amountPaid: Double, avlQty: Int, companyId: Int, deliveryCharge: Double, discount: Double, fyndStoreId: String, hsnCodeId: String, identifier: [String: Any], itemId: Int, itemSize: String, modifiedOn: String, pdfLinks: MarketPlacePdf? = nil, priceEffective: Double, priceMarked: Double, quantity: Int, sellerIdentifier: String, sku: String, storeId: Int, transferPrice: Int, unitPrice: Double, id: String) {
-
- self.pdfLinks = pdfLinks
-
- self.storeId = storeId
-
- self.sku = sku
-
- self.discount = discount
-
- self.unitPrice = unitPrice
-
- self.priceEffective = priceEffective
-
- self.affiliateStoreId = affiliateStoreId
-
- self.identifier = identifier
-
- self.sellerIdentifier = sellerIdentifier
-
- self.itemSize = itemSize
-
- self.amountPaid = amountPaid
-
- self.fyndStoreId = fyndStoreId
-
- self.itemId = itemId
-
- self.deliveryCharge = deliveryCharge
-
- self.avlQty = avlQty
-
- self.priceMarked = priceMarked
-
- self.quantity = quantity
-
- self.companyId = companyId
-
- self.hsnCodeId = hsnCodeId
-
- self.id = id
-
- self.affiliateMeta = affiliateMeta
-
- self.modifiedOn = modifiedOn
-
- self.transferPrice = transferPrice
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- pdfLinks = try container.decode(MarketPlacePdf.self, forKey: .pdfLinks)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- sku = try container.decode(String.self, forKey: .sku)
-
-
-
-
- discount = try container.decode(Double.self, forKey: .discount)
-
-
-
-
- unitPrice = try container.decode(Double.self, forKey: .unitPrice)
-
-
-
-
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
-
-
-
- affiliateStoreId = try container.decode(String.self, forKey: .affiliateStoreId)
-
-
-
-
- identifier = try container.decode([String: Any].self, forKey: .identifier)
-
-
-
-
- sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier)
-
-
-
-
- itemSize = try container.decode(String.self, forKey: .itemSize)
-
-
-
-
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
-
-
-
- fyndStoreId = try container.decode(String.self, forKey: .fyndStoreId)
-
-
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- deliveryCharge = try container.decode(Double.self, forKey: .deliveryCharge)
-
-
-
-
- avlQty = try container.decode(Int.self, forKey: .avlQty)
-
-
-
-
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- hsnCodeId = try container.decode(String.self, forKey: .hsnCodeId)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- affiliateMeta = try container.decode([String: Any].self, forKey: .affiliateMeta)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- transferPrice = try container.decode(Int.self, forKey: .transferPrice)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pdfLinks, forKey: .pdfLinks)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(sku, forKey: .sku)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(unitPrice, forKey: .unitPrice)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(affiliateStoreId, forKey: .affiliateStoreId)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier)
-
-
-
-
- try? container.encodeIfPresent(itemSize, forKey: .itemSize)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(fyndStoreId, forKey: .fyndStoreId)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharge, forKey: .deliveryCharge)
-
-
-
-
- try? container.encodeIfPresent(avlQty, forKey: .avlQty)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(hsnCodeId, forKey: .hsnCodeId)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(affiliateMeta, forKey: .affiliateMeta)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(transferPrice, forKey: .transferPrice)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateConfigOrderPlatformModel.swift
index febd7876f3..12231f8f36 100644
--- a/Sources/code/platform/Models/Order/AffiliateConfigOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/AffiliateConfigOrderPlatformModel.swift
@@ -12,28 +12,16 @@ public extension PlatformClient.Order {
class AffiliateConfig: Codable {
- public var app: AffiliateAppConfig?
-
- public var inventory: AffiliateInventoryConfig?
-
public var appCompanyId: Int?
public enum CodingKeys: String, CodingKey {
- case app = "app"
-
- case inventory = "inventory"
-
case appCompanyId = "app_company_id"
}
- public init(app: AffiliateAppConfig? = nil, appCompanyId: Int? = nil, inventory: AffiliateInventoryConfig? = nil) {
-
- self.app = app
-
- self.inventory = inventory
+ public init(appCompanyId: Int? = nil) {
self.appCompanyId = appCompanyId
@@ -43,30 +31,6 @@ public extension PlatformClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- app = try container.decode(AffiliateAppConfig.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- inventory = try container.decode(AffiliateInventoryConfig.self, forKey: .inventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
appCompanyId = try container.decode(Int.self, forKey: .appCompanyId)
@@ -85,16 +49,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(inventory, forKey: .inventory)
-
-
-
-
try? container.encodeIfPresent(appCompanyId, forKey: .appCompanyId)
@@ -114,28 +68,16 @@ public extension PlatformClient.ApplicationClient.Order {
class AffiliateConfig: Codable {
- public var app: AffiliateAppConfig?
-
- public var inventory: AffiliateInventoryConfig?
-
public var appCompanyId: Int?
public enum CodingKeys: String, CodingKey {
- case app = "app"
-
- case inventory = "inventory"
-
case appCompanyId = "app_company_id"
}
- public init(app: AffiliateAppConfig? = nil, appCompanyId: Int? = nil, inventory: AffiliateInventoryConfig? = nil) {
-
- self.app = app
-
- self.inventory = inventory
+ public init(appCompanyId: Int? = nil) {
self.appCompanyId = appCompanyId
@@ -145,30 +87,6 @@ public extension PlatformClient.ApplicationClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- app = try container.decode(AffiliateAppConfig.self, forKey: .app)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- inventory = try container.decode(AffiliateInventoryConfig.self, forKey: .inventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
appCompanyId = try container.decode(Int.self, forKey: .appCompanyId)
@@ -187,16 +105,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(app, forKey: .app)
-
-
-
-
- try? container.encodeIfPresent(inventory, forKey: .inventory)
-
-
-
-
try? container.encodeIfPresent(appCompanyId, forKey: .appCompanyId)
diff --git a/Sources/code/platform/Models/Order/AffiliateDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateDetailsOrderPlatformModel.swift
index d2bc86d1de..707eb745e2 100644
--- a/Sources/code/platform/Models/Order/AffiliateDetailsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/AffiliateDetailsOrderPlatformModel.swift
@@ -32,7 +32,7 @@ public extension PlatformClient.Order {
public var affiliateBagId: String
- public var id: String?
+ public var adId: String?
public enum CodingKeys: String, CodingKey {
@@ -57,11 +57,11 @@ public extension PlatformClient.Order {
case affiliateBagId = "affiliate_bag_id"
- case id = "id"
+ case adId = "ad_id"
}
- public init(affiliateBagId: String, affiliateId: String? = nil, affiliateMeta: AffiliateMeta, affiliateOrderId: String, affiliateShipmentId: String, affiliateStoreId: String, companyAffiliateTag: String? = nil, config: AffiliateConfig? = nil, id: String? = nil, pdfLinks: PDFLinks? = nil, shipmentMeta: ShipmentMeta) {
+ public init(adId: String? = nil, affiliateBagId: String, affiliateId: String? = nil, affiliateMeta: AffiliateMeta, affiliateOrderId: String, affiliateShipmentId: String, affiliateStoreId: String, companyAffiliateTag: String? = nil, config: AffiliateConfig? = nil, pdfLinks: PDFLinks? = nil, shipmentMeta: ShipmentMeta) {
self.shipmentMeta = shipmentMeta
@@ -83,7 +83,7 @@ public extension PlatformClient.Order {
self.affiliateBagId = affiliateBagId
- self.id = id
+ self.adId = adId
}
@@ -170,7 +170,7 @@ public extension PlatformClient.Order {
do {
- id = try container.decode(String.self, forKey: .id)
+ adId = try container.decode(String.self, forKey: .adId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -237,7 +237,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(adId, forKey: .adId)
}
@@ -276,7 +276,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var affiliateBagId: String
- public var id: String?
+ public var adId: String?
public enum CodingKeys: String, CodingKey {
@@ -301,11 +301,11 @@ public extension PlatformClient.ApplicationClient.Order {
case affiliateBagId = "affiliate_bag_id"
- case id = "id"
+ case adId = "ad_id"
}
- public init(affiliateBagId: String, affiliateId: String? = nil, affiliateMeta: AffiliateMeta, affiliateOrderId: String, affiliateShipmentId: String, affiliateStoreId: String, companyAffiliateTag: String? = nil, config: AffiliateConfig? = nil, id: String? = nil, pdfLinks: PDFLinks? = nil, shipmentMeta: ShipmentMeta) {
+ public init(adId: String? = nil, affiliateBagId: String, affiliateId: String? = nil, affiliateMeta: AffiliateMeta, affiliateOrderId: String, affiliateShipmentId: String, affiliateStoreId: String, companyAffiliateTag: String? = nil, config: AffiliateConfig? = nil, pdfLinks: PDFLinks? = nil, shipmentMeta: ShipmentMeta) {
self.shipmentMeta = shipmentMeta
@@ -327,7 +327,7 @@ public extension PlatformClient.ApplicationClient.Order {
self.affiliateBagId = affiliateBagId
- self.id = id
+ self.adId = adId
}
@@ -414,7 +414,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- id = try container.decode(String.self, forKey: .id)
+ adId = try container.decode(String.self, forKey: .adId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -481,7 +481,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(adId, forKey: .adId)
}
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryArticleAssignmentConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryArticleAssignmentConfigOrderPlatformModel.swift
deleted file mode 100644
index b0d1dd551f..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryArticleAssignmentConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryArticleAssignmentConfig
- Used By: Order
- */
-
- class AffiliateInventoryArticleAssignmentConfig: Codable {
-
-
- public var postOrderReassignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case postOrderReassignment = "post_order_reassignment"
-
- }
-
- public init(postOrderReassignment: Bool? = nil) {
-
- self.postOrderReassignment = postOrderReassignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- postOrderReassignment = try container.decode(Bool.self, forKey: .postOrderReassignment)
-
- } 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(postOrderReassignment, forKey: .postOrderReassignment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryArticleAssignmentConfig
- Used By: Order
- */
-
- class AffiliateInventoryArticleAssignmentConfig: Codable {
-
-
- public var postOrderReassignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case postOrderReassignment = "post_order_reassignment"
-
- }
-
- public init(postOrderReassignment: Bool? = nil) {
-
- self.postOrderReassignment = postOrderReassignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- postOrderReassignment = try container.decode(Bool.self, forKey: .postOrderReassignment)
-
- } 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(postOrderReassignment, forKey: .postOrderReassignment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryConfigOrderPlatformModel.swift
deleted file mode 100644
index 50a601bc1e..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryConfig
- Used By: Order
- */
-
- class AffiliateInventoryConfig: Codable {
-
-
- public var articleAssignment: AffiliateInventoryArticleAssignmentConfig?
-
- public var payment: AffiliateInventoryPaymentConfig?
-
- public var inventory: AffiliateInventoryStoreConfig?
-
- public var order: AffiliateInventoryOrderConfig?
-
- public var logistics: AffiliateInventoryLogisticsConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articleAssignment = "article_assignment"
-
- case payment = "payment"
-
- case inventory = "inventory"
-
- case order = "order"
-
- case logistics = "logistics"
-
- }
-
- public init(articleAssignment: AffiliateInventoryArticleAssignmentConfig? = nil, inventory: AffiliateInventoryStoreConfig? = nil, logistics: AffiliateInventoryLogisticsConfig? = nil, order: AffiliateInventoryOrderConfig? = nil, payment: AffiliateInventoryPaymentConfig? = nil) {
-
- self.articleAssignment = articleAssignment
-
- self.payment = payment
-
- self.inventory = inventory
-
- self.order = order
-
- self.logistics = logistics
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articleAssignment = try container.decode(AffiliateInventoryArticleAssignmentConfig.self, forKey: .articleAssignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payment = try container.decode(AffiliateInventoryPaymentConfig.self, forKey: .payment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- inventory = try container.decode(AffiliateInventoryStoreConfig.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(AffiliateInventoryOrderConfig.self, forKey: .order)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logistics = try container.decode(AffiliateInventoryLogisticsConfig.self, forKey: .logistics)
-
- } 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(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
-
-
-
-
- try? container.encodeIfPresent(inventory, forKey: .inventory)
-
-
-
-
- try? container.encodeIfPresent(order, forKey: .order)
-
-
-
-
- try? container.encodeIfPresent(logistics, forKey: .logistics)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryConfig
- Used By: Order
- */
-
- class AffiliateInventoryConfig: Codable {
-
-
- public var articleAssignment: AffiliateInventoryArticleAssignmentConfig?
-
- public var payment: AffiliateInventoryPaymentConfig?
-
- public var inventory: AffiliateInventoryStoreConfig?
-
- public var order: AffiliateInventoryOrderConfig?
-
- public var logistics: AffiliateInventoryLogisticsConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articleAssignment = "article_assignment"
-
- case payment = "payment"
-
- case inventory = "inventory"
-
- case order = "order"
-
- case logistics = "logistics"
-
- }
-
- public init(articleAssignment: AffiliateInventoryArticleAssignmentConfig? = nil, inventory: AffiliateInventoryStoreConfig? = nil, logistics: AffiliateInventoryLogisticsConfig? = nil, order: AffiliateInventoryOrderConfig? = nil, payment: AffiliateInventoryPaymentConfig? = nil) {
-
- self.articleAssignment = articleAssignment
-
- self.payment = payment
-
- self.inventory = inventory
-
- self.order = order
-
- self.logistics = logistics
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articleAssignment = try container.decode(AffiliateInventoryArticleAssignmentConfig.self, forKey: .articleAssignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payment = try container.decode(AffiliateInventoryPaymentConfig.self, forKey: .payment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- inventory = try container.decode(AffiliateInventoryStoreConfig.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(AffiliateInventoryOrderConfig.self, forKey: .order)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logistics = try container.decode(AffiliateInventoryLogisticsConfig.self, forKey: .logistics)
-
- } 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(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
-
-
-
-
- try? container.encodeIfPresent(inventory, forKey: .inventory)
-
-
-
-
- try? container.encodeIfPresent(order, forKey: .order)
-
-
-
-
- try? container.encodeIfPresent(logistics, forKey: .logistics)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryLogisticsConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryLogisticsConfigOrderPlatformModel.swift
deleted file mode 100644
index e7e5852af2..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryLogisticsConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryLogisticsConfig
- Used By: Order
- */
-
- class AffiliateInventoryLogisticsConfig: Codable {
-
-
- public var dpAssignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dpAssignment = "dp_assignment"
-
- }
-
- public init(dpAssignment: Bool? = nil) {
-
- self.dpAssignment = dpAssignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dpAssignment = try container.decode(Bool.self, forKey: .dpAssignment)
-
- } 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(dpAssignment, forKey: .dpAssignment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryLogisticsConfig
- Used By: Order
- */
-
- class AffiliateInventoryLogisticsConfig: Codable {
-
-
- public var dpAssignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dpAssignment = "dp_assignment"
-
- }
-
- public init(dpAssignment: Bool? = nil) {
-
- self.dpAssignment = dpAssignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dpAssignment = try container.decode(Bool.self, forKey: .dpAssignment)
-
- } 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(dpAssignment, forKey: .dpAssignment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryOrderConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryOrderConfigOrderPlatformModel.swift
deleted file mode 100644
index be72e7f02a..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryOrderConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryOrderConfig
- Used By: Order
- */
-
- class AffiliateInventoryOrderConfig: Codable {
-
-
- public var forceReassignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case forceReassignment = "force_reassignment"
-
- }
-
- public init(forceReassignment: Bool? = nil) {
-
- self.forceReassignment = forceReassignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- forceReassignment = try container.decode(Bool.self, forKey: .forceReassignment)
-
- } 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(forceReassignment, forKey: .forceReassignment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryOrderConfig
- Used By: Order
- */
-
- class AffiliateInventoryOrderConfig: Codable {
-
-
- public var forceReassignment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case forceReassignment = "force_reassignment"
-
- }
-
- public init(forceReassignment: Bool? = nil) {
-
- self.forceReassignment = forceReassignment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- forceReassignment = try container.decode(Bool.self, forKey: .forceReassignment)
-
- } 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(forceReassignment, forKey: .forceReassignment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryPaymentConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryPaymentConfigOrderPlatformModel.swift
deleted file mode 100644
index 976f7c8103..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryPaymentConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryPaymentConfig
- Used By: Order
- */
-
- class AffiliateInventoryPaymentConfig: Codable {
-
-
- public var source: String?
-
- public var modeOfPayment: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case source = "source"
-
- case modeOfPayment = "mode_of_payment"
-
- }
-
- public init(modeOfPayment: String? = nil, source: String? = nil) {
-
- self.source = source
-
- self.modeOfPayment = modeOfPayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modeOfPayment = try container.decode(String.self, forKey: .modeOfPayment)
-
- } 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(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(modeOfPayment, forKey: .modeOfPayment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryPaymentConfig
- Used By: Order
- */
-
- class AffiliateInventoryPaymentConfig: Codable {
-
-
- public var source: String?
-
- public var modeOfPayment: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case source = "source"
-
- case modeOfPayment = "mode_of_payment"
-
- }
-
- public init(modeOfPayment: String? = nil, source: String? = nil) {
-
- self.source = source
-
- self.modeOfPayment = modeOfPayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modeOfPayment = try container.decode(String.self, forKey: .modeOfPayment)
-
- } 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(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(modeOfPayment, forKey: .modeOfPayment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateInventoryStoreConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateInventoryStoreConfigOrderPlatformModel.swift
deleted file mode 100644
index 40b38640b0..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateInventoryStoreConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateInventoryStoreConfig
- Used By: Order
- */
-
- class AffiliateInventoryStoreConfig: Codable {
-
-
- public var store: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case store = "store"
-
- }
-
- public init(store: [String: Any]? = nil) {
-
- self.store = store
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- store = try container.decode([String: Any].self, forKey: .store)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateInventoryStoreConfig
- Used By: Order
- */
-
- class AffiliateInventoryStoreConfig: Codable {
-
-
- public var store: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case store = "store"
-
- }
-
- public init(store: [String: Any]? = nil) {
-
- self.store = store
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- store = try container.decode([String: Any].self, forKey: .store)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateOrderPlatformModel.swift
deleted file mode 100644
index 7ac57f5498..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateOrderPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: Affiliate
- Used By: Order
- */
-
- class Affiliate: Codable {
-
-
- public var id: String
-
- public var config: AffiliateConfig?
-
- public var token: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case config = "config"
-
- case token = "token"
-
- }
-
- public init(config: AffiliateConfig? = nil, id: String, token: String) {
-
- self.id = id
-
- self.config = config
-
- self.token = token
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- config = try container.decode(AffiliateConfig.self, forKey: .config)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- token = try container.decode(String.self, forKey: .token)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
-
-
- try? container.encodeIfPresent(token, forKey: .token)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: Affiliate
- Used By: Order
- */
-
- class Affiliate: Codable {
-
-
- public var id: String
-
- public var config: AffiliateConfig?
-
- public var token: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case config = "config"
-
- case token = "token"
-
- }
-
- public init(config: AffiliateConfig? = nil, id: String, token: String) {
-
- self.id = id
-
- self.config = config
-
- self.token = token
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- config = try container.decode(AffiliateConfig.self, forKey: .config)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- token = try container.decode(String.self, forKey: .token)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
-
-
- try? container.encodeIfPresent(token, forKey: .token)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AffiliateStoreIdMappingOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AffiliateStoreIdMappingOrderPlatformModel.swift
deleted file mode 100644
index c8170c9876..0000000000
--- a/Sources/code/platform/Models/Order/AffiliateStoreIdMappingOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AffiliateStoreIdMapping
- Used By: Order
- */
-
- class AffiliateStoreIdMapping: Codable {
-
-
- public var storeId: Int
-
- public var marketplaceStoreId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeId = "store_id"
-
- case marketplaceStoreId = "marketplace_store_id"
-
- }
-
- public init(marketplaceStoreId: String, storeId: Int) {
-
- self.storeId = storeId
-
- self.marketplaceStoreId = marketplaceStoreId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- marketplaceStoreId = try container.decode(String.self, forKey: .marketplaceStoreId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(marketplaceStoreId, forKey: .marketplaceStoreId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AffiliateStoreIdMapping
- Used By: Order
- */
-
- class AffiliateStoreIdMapping: Codable {
-
-
- public var storeId: Int
-
- public var marketplaceStoreId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeId = "store_id"
-
- case marketplaceStoreId = "marketplace_store_id"
-
- }
-
- public init(marketplaceStoreId: String, storeId: Int) {
-
- self.storeId = storeId
-
- self.marketplaceStoreId = marketplaceStoreId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- marketplaceStoreId = try container.decode(String.self, forKey: .marketplaceStoreId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(marketplaceStoreId, forKey: .marketplaceStoreId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AllowedTemplatesResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AllowedTemplatesResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..a8d8ce9a1c
--- /dev/null
+++ b/Sources/code/platform/Models/Order/AllowedTemplatesResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: AllowedTemplatesResponse
+ Used By: Order
+ */
+
+ class AllowedTemplatesResponse: Codable {
+
+
+ public var templateXSlug: [Templates]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case templateXSlug = "template_x_slug"
+
+ }
+
+ public init(templateXSlug: [Templates]? = nil) {
+
+ self.templateXSlug = templateXSlug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ templateXSlug = try container.decode([Templates].self, forKey: .templateXSlug)
+
+ } 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(templateXSlug, forKey: .templateXSlug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: AllowedTemplatesResponse
+ Used By: Order
+ */
+
+ class AllowedTemplatesResponse: Codable {
+
+
+ public var templateXSlug: [Templates]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case templateXSlug = "template_x_slug"
+
+ }
+
+ public init(templateXSlug: [Templates]? = nil) {
+
+ self.templateXSlug = templateXSlug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ templateXSlug = try container.decode([Templates].self, forKey: .templateXSlug)
+
+ } 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(templateXSlug, forKey: .templateXSlug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/AllowedTemplatesResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AllowedTemplatesResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index c66f84e865..0000000000
--- a/Sources/code/platform/Models/Order/AllowedTemplatesResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AllowedTemplatesResponseSchema
- Used By: Order
- */
-
- class AllowedTemplatesResponseSchema: Codable {
-
-
- public var templateXSlug: [Templates]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case templateXSlug = "template_x_slug"
-
- }
-
- public init(templateXSlug: [Templates]? = nil) {
-
- self.templateXSlug = templateXSlug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- templateXSlug = try container.decode([Templates].self, forKey: .templateXSlug)
-
- } 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(templateXSlug, forKey: .templateXSlug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AllowedTemplatesResponseSchema
- Used By: Order
- */
-
- class AllowedTemplatesResponseSchema: Codable {
-
-
- public var templateXSlug: [Templates]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case templateXSlug = "template_x_slug"
-
- }
-
- public init(templateXSlug: [Templates]? = nil) {
-
- self.templateXSlug = templateXSlug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- templateXSlug = try container.decode([Templates].self, forKey: .templateXSlug)
-
- } 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(templateXSlug, forKey: .templateXSlug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AnnouncementResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AnnouncementResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..018d608de7
--- /dev/null
+++ b/Sources/code/platform/Models/Order/AnnouncementResponseOrderPlatformModel.swift
@@ -0,0 +1,516 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: AnnouncementResponse
+ Used By: Order
+ */
+
+ class AnnouncementResponse: Codable {
+
+
+ public var toDatetime: String?
+
+ public var id: Int
+
+ public var description: String?
+
+ public var platformName: String?
+
+ public var fromDatetime: String?
+
+ public var platformId: String?
+
+ public var title: String?
+
+ public var companyId: Int?
+
+ public var logoUrl: String?
+
+ public var createdAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case toDatetime = "to_datetime"
+
+ case id = "id"
+
+ case description = "description"
+
+ case platformName = "platform_name"
+
+ case fromDatetime = "from_datetime"
+
+ case platformId = "platform_id"
+
+ case title = "title"
+
+ case companyId = "company_id"
+
+ case logoUrl = "logo_url"
+
+ case createdAt = "created_at"
+
+ }
+
+ public init(companyId: Int? = nil, createdAt: String? = nil, description: String? = nil, fromDatetime: String? = nil, id: Int, logoUrl: String? = nil, platformId: String? = nil, platformName: String? = nil, title: String? = nil, toDatetime: String? = nil) {
+
+ self.toDatetime = toDatetime
+
+ self.id = id
+
+ self.description = description
+
+ self.platformName = platformName
+
+ self.fromDatetime = fromDatetime
+
+ self.platformId = platformId
+
+ self.title = title
+
+ self.companyId = companyId
+
+ self.logoUrl = logoUrl
+
+ self.createdAt = createdAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ toDatetime = try container.decode(String.self, forKey: .toDatetime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(Int.self, forKey: .id)
+
+
+
+
+ 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 {
+ platformName = try container.decode(String.self, forKey: .platformName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fromDatetime = try container.decode(String.self, forKey: .fromDatetime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platformId = try container.decode(String.self, forKey: .platformId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ logoUrl = try container.decode(String.self, forKey: .logoUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } 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(toDatetime, forKey: .toDatetime)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(platformName, forKey: .platformName)
+
+
+
+
+ try? container.encodeIfPresent(fromDatetime, forKey: .fromDatetime)
+
+
+
+
+ try? container.encodeIfPresent(platformId, forKey: .platformId)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: AnnouncementResponse
+ Used By: Order
+ */
+
+ class AnnouncementResponse: Codable {
+
+
+ public var toDatetime: String?
+
+ public var id: Int
+
+ public var description: String?
+
+ public var platformName: String?
+
+ public var fromDatetime: String?
+
+ public var platformId: String?
+
+ public var title: String?
+
+ public var companyId: Int?
+
+ public var logoUrl: String?
+
+ public var createdAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case toDatetime = "to_datetime"
+
+ case id = "id"
+
+ case description = "description"
+
+ case platformName = "platform_name"
+
+ case fromDatetime = "from_datetime"
+
+ case platformId = "platform_id"
+
+ case title = "title"
+
+ case companyId = "company_id"
+
+ case logoUrl = "logo_url"
+
+ case createdAt = "created_at"
+
+ }
+
+ public init(companyId: Int? = nil, createdAt: String? = nil, description: String? = nil, fromDatetime: String? = nil, id: Int, logoUrl: String? = nil, platformId: String? = nil, platformName: String? = nil, title: String? = nil, toDatetime: String? = nil) {
+
+ self.toDatetime = toDatetime
+
+ self.id = id
+
+ self.description = description
+
+ self.platformName = platformName
+
+ self.fromDatetime = fromDatetime
+
+ self.platformId = platformId
+
+ self.title = title
+
+ self.companyId = companyId
+
+ self.logoUrl = logoUrl
+
+ self.createdAt = createdAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ toDatetime = try container.decode(String.self, forKey: .toDatetime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(Int.self, forKey: .id)
+
+
+
+
+ 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 {
+ platformName = try container.decode(String.self, forKey: .platformName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fromDatetime = try container.decode(String.self, forKey: .fromDatetime)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ platformId = try container.decode(String.self, forKey: .platformId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ logoUrl = try container.decode(String.self, forKey: .logoUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } 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(toDatetime, forKey: .toDatetime)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(platformName, forKey: .platformName)
+
+
+
+
+ try? container.encodeIfPresent(fromDatetime, forKey: .fromDatetime)
+
+
+
+
+ try? container.encodeIfPresent(platformId, forKey: .platformId)
+
+
+
+
+ try? container.encodeIfPresent(title, forKey: .title)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/AnnouncementResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AnnouncementResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9a77a54f05..0000000000
--- a/Sources/code/platform/Models/Order/AnnouncementResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,516 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AnnouncementResponseSchema
- Used By: Order
- */
-
- class AnnouncementResponseSchema: Codable {
-
-
- public var toDatetime: String?
-
- public var id: Int
-
- public var description: String?
-
- public var platformName: String?
-
- public var fromDatetime: String?
-
- public var platformId: String?
-
- public var title: String?
-
- public var companyId: Int?
-
- public var logoUrl: String?
-
- public var createdAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case toDatetime = "to_datetime"
-
- case id = "id"
-
- case description = "description"
-
- case platformName = "platform_name"
-
- case fromDatetime = "from_datetime"
-
- case platformId = "platform_id"
-
- case title = "title"
-
- case companyId = "company_id"
-
- case logoUrl = "logo_url"
-
- case createdAt = "created_at"
-
- }
-
- public init(companyId: Int? = nil, createdAt: String? = nil, description: String? = nil, fromDatetime: String? = nil, id: Int, logoUrl: String? = nil, platformId: String? = nil, platformName: String? = nil, title: String? = nil, toDatetime: String? = nil) {
-
- self.toDatetime = toDatetime
-
- self.id = id
-
- self.description = description
-
- self.platformName = platformName
-
- self.fromDatetime = fromDatetime
-
- self.platformId = platformId
-
- self.title = title
-
- self.companyId = companyId
-
- self.logoUrl = logoUrl
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- toDatetime = try container.decode(String.self, forKey: .toDatetime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(Int.self, forKey: .id)
-
-
-
-
- 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 {
- platformName = try container.decode(String.self, forKey: .platformName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromDatetime = try container.decode(String.self, forKey: .fromDatetime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platformId = try container.decode(String.self, forKey: .platformId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- logoUrl = try container.decode(String.self, forKey: .logoUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } 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(toDatetime, forKey: .toDatetime)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(platformName, forKey: .platformName)
-
-
-
-
- try? container.encodeIfPresent(fromDatetime, forKey: .fromDatetime)
-
-
-
-
- try? container.encodeIfPresent(platformId, forKey: .platformId)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AnnouncementResponseSchema
- Used By: Order
- */
-
- class AnnouncementResponseSchema: Codable {
-
-
- public var toDatetime: String?
-
- public var id: Int
-
- public var description: String?
-
- public var platformName: String?
-
- public var fromDatetime: String?
-
- public var platformId: String?
-
- public var title: String?
-
- public var companyId: Int?
-
- public var logoUrl: String?
-
- public var createdAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case toDatetime = "to_datetime"
-
- case id = "id"
-
- case description = "description"
-
- case platformName = "platform_name"
-
- case fromDatetime = "from_datetime"
-
- case platformId = "platform_id"
-
- case title = "title"
-
- case companyId = "company_id"
-
- case logoUrl = "logo_url"
-
- case createdAt = "created_at"
-
- }
-
- public init(companyId: Int? = nil, createdAt: String? = nil, description: String? = nil, fromDatetime: String? = nil, id: Int, logoUrl: String? = nil, platformId: String? = nil, platformName: String? = nil, title: String? = nil, toDatetime: String? = nil) {
-
- self.toDatetime = toDatetime
-
- self.id = id
-
- self.description = description
-
- self.platformName = platformName
-
- self.fromDatetime = fromDatetime
-
- self.platformId = platformId
-
- self.title = title
-
- self.companyId = companyId
-
- self.logoUrl = logoUrl
-
- self.createdAt = createdAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- toDatetime = try container.decode(String.self, forKey: .toDatetime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(Int.self, forKey: .id)
-
-
-
-
- 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 {
- platformName = try container.decode(String.self, forKey: .platformName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fromDatetime = try container.decode(String.self, forKey: .fromDatetime)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- platformId = try container.decode(String.self, forKey: .platformId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- logoUrl = try container.decode(String.self, forKey: .logoUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } 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(toDatetime, forKey: .toDatetime)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(platformName, forKey: .platformName)
-
-
-
-
- try? container.encodeIfPresent(fromDatetime, forKey: .fromDatetime)
-
-
-
-
- try? container.encodeIfPresent(platformId, forKey: .platformId)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AnnouncementsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AnnouncementsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..97579a4b60
--- /dev/null
+++ b/Sources/code/platform/Models/Order/AnnouncementsResponseOrderPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: AnnouncementsResponse
+ Used By: Order
+ */
+
+ class AnnouncementsResponse: Codable {
+
+
+ public var announcements: [AnnouncementResponse]?
+
+ public var success: Bool?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case announcements = "announcements"
+
+ case success = "success"
+
+ case status = "status"
+
+ }
+
+ public init(announcements: [AnnouncementResponse]? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.announcements = announcements
+
+ self.success = success
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ announcements = try container.decode([AnnouncementResponse].self, forKey: .announcements)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(announcements, forKey: .announcements)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: AnnouncementsResponse
+ Used By: Order
+ */
+
+ class AnnouncementsResponse: Codable {
+
+
+ public var announcements: [AnnouncementResponse]?
+
+ public var success: Bool?
+
+ public var status: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case announcements = "announcements"
+
+ case success = "success"
+
+ case status = "status"
+
+ }
+
+ public init(announcements: [AnnouncementResponse]? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.announcements = announcements
+
+ self.success = success
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ announcements = try container.decode([AnnouncementResponse].self, forKey: .announcements)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(announcements, forKey: .announcements)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/AnnouncementsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AnnouncementsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 25ba7bfdc3..0000000000
--- a/Sources/code/platform/Models/Order/AnnouncementsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AnnouncementsResponseSchema
- Used By: Order
- */
-
- class AnnouncementsResponseSchema: Codable {
-
-
- public var announcements: [AnnouncementResponseSchema]?
-
- public var success: Bool?
-
- public var status: Int?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case announcements = "announcements"
-
- case success = "success"
-
- case status = "status"
-
- case message = "message"
-
- }
-
- public init(announcements: [AnnouncementResponseSchema]? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.announcements = announcements
-
- self.success = success
-
- self.status = status
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- announcements = try container.decode([AnnouncementResponseSchema].self, forKey: .announcements)
-
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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(announcements, forKey: .announcements)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AnnouncementsResponseSchema
- Used By: Order
- */
-
- class AnnouncementsResponseSchema: Codable {
-
-
- public var announcements: [AnnouncementResponseSchema]?
-
- public var success: Bool?
-
- public var status: Int?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case announcements = "announcements"
-
- case success = "success"
-
- case status = "status"
-
- case message = "message"
-
- }
-
- public init(announcements: [AnnouncementResponseSchema]? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.announcements = announcements
-
- self.success = success
-
- self.status = status
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- announcements = try container.decode([AnnouncementResponseSchema].self, forKey: .announcements)
-
- } 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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(announcements, forKey: .announcements)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AppliedFreeArticlesOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AppliedFreeArticlesOrderPlatformModel.swift
deleted file mode 100644
index d55422c0b0..0000000000
--- a/Sources/code/platform/Models/Order/AppliedFreeArticlesOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AppliedFreeArticles
- Used By: Order
- */
-
- class AppliedFreeArticles: Codable {
-
-
- public var articleId: String?
-
- public var freeGiftItemDetails: FreeGiftItems?
-
- public var parentItemIdentifier: String?
-
- public var quantity: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articleId = "article_id"
-
- case freeGiftItemDetails = "free_gift_item_details"
-
- case parentItemIdentifier = "parent_item_identifier"
-
- case quantity = "quantity"
-
- }
-
- public init(articleId: String? = nil, freeGiftItemDetails: FreeGiftItems? = nil, parentItemIdentifier: String? = nil, quantity: Double? = nil) {
-
- self.articleId = articleId
-
- self.freeGiftItemDetails = freeGiftItemDetails
-
- self.parentItemIdentifier = parentItemIdentifier
-
- self.quantity = quantity
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articleId = try container.decode(String.self, forKey: .articleId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- freeGiftItemDetails = try container.decode(FreeGiftItems.self, forKey: .freeGiftItemDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- parentItemIdentifier = try container.decode(String.self, forKey: .parentItemIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- quantity = try container.decode(Double.self, forKey: .quantity)
-
- } 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(articleId, forKey: .articleId)
-
-
-
-
- try? container.encodeIfPresent(freeGiftItemDetails, forKey: .freeGiftItemDetails)
-
-
-
-
- try? container.encodeIfPresent(parentItemIdentifier, forKey: .parentItemIdentifier)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AppliedFreeArticles
- Used By: Order
- */
-
- class AppliedFreeArticles: Codable {
-
-
- public var articleId: String?
-
- public var freeGiftItemDetails: FreeGiftItems?
-
- public var parentItemIdentifier: String?
-
- public var quantity: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case articleId = "article_id"
-
- case freeGiftItemDetails = "free_gift_item_details"
-
- case parentItemIdentifier = "parent_item_identifier"
-
- case quantity = "quantity"
-
- }
-
- public init(articleId: String? = nil, freeGiftItemDetails: FreeGiftItems? = nil, parentItemIdentifier: String? = nil, quantity: Double? = nil) {
-
- self.articleId = articleId
-
- self.freeGiftItemDetails = freeGiftItemDetails
-
- self.parentItemIdentifier = parentItemIdentifier
-
- self.quantity = quantity
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- articleId = try container.decode(String.self, forKey: .articleId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- freeGiftItemDetails = try container.decode(FreeGiftItems.self, forKey: .freeGiftItemDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- parentItemIdentifier = try container.decode(String.self, forKey: .parentItemIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- quantity = try container.decode(Double.self, forKey: .quantity)
-
- } 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(articleId, forKey: .articleId)
-
-
-
-
- try? container.encodeIfPresent(freeGiftItemDetails, forKey: .freeGiftItemDetails)
-
-
-
-
- try? container.encodeIfPresent(parentItemIdentifier, forKey: .parentItemIdentifier)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/AppliedPromosOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AppliedPromosOrderPlatformModel.swift
index 17eece5c02..010c8b1bb9 100644
--- a/Sources/code/platform/Models/Order/AppliedPromosOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/AppliedPromosOrderPlatformModel.swift
@@ -28,8 +28,6 @@ public extension PlatformClient.Order {
public var mrpPromotion: Bool?
- public var appliedFreeArticles: [AppliedFreeArticles]?
-
public enum CodingKeys: String, CodingKey {
@@ -49,11 +47,9 @@ public extension PlatformClient.Order {
case mrpPromotion = "mrp_promotion"
- case appliedFreeArticles = "applied_free_articles"
-
}
- public init(amount: Double? = nil, appliedFreeArticles: [AppliedFreeArticles]? = nil, articleQuantity: Int? = nil, buyRules: [BuyRules]? = nil, discountRules: [DiscountRules]? = nil, mrpPromotion: Bool? = nil, promotionName: String? = nil, promotionType: String? = nil, promoId: String? = nil) {
+ public init(amount: Double? = nil, articleQuantity: Int? = nil, buyRules: [BuyRules]? = nil, discountRules: [DiscountRules]? = nil, mrpPromotion: Bool? = nil, promotionName: String? = nil, promotionType: String? = nil, promoId: String? = nil) {
self.promotionType = promotionType
@@ -71,8 +67,6 @@ public extension PlatformClient.Order {
self.mrpPromotion = mrpPromotion
- self.appliedFreeArticles = appliedFreeArticles
-
}
required public init(from decoder: Decoder) throws {
@@ -174,18 +168,6 @@ public extension PlatformClient.Order {
}
-
- do {
- appliedFreeArticles = try container.decode([AppliedFreeArticles].self, forKey: .appliedFreeArticles)
-
- } 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 {
@@ -231,11 +213,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(mrpPromotion, forKey: .mrpPromotion)
-
-
- try? container.encodeIfPresent(appliedFreeArticles, forKey: .appliedFreeArticles)
-
-
}
}
@@ -268,8 +245,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var mrpPromotion: Bool?
- public var appliedFreeArticles: [AppliedFreeArticles]?
-
public enum CodingKeys: String, CodingKey {
@@ -289,11 +264,9 @@ public extension PlatformClient.ApplicationClient.Order {
case mrpPromotion = "mrp_promotion"
- case appliedFreeArticles = "applied_free_articles"
-
}
- public init(amount: Double? = nil, appliedFreeArticles: [AppliedFreeArticles]? = nil, articleQuantity: Int? = nil, buyRules: [BuyRules]? = nil, discountRules: [DiscountRules]? = nil, mrpPromotion: Bool? = nil, promotionName: String? = nil, promotionType: String? = nil, promoId: String? = nil) {
+ public init(amount: Double? = nil, articleQuantity: Int? = nil, buyRules: [BuyRules]? = nil, discountRules: [DiscountRules]? = nil, mrpPromotion: Bool? = nil, promotionName: String? = nil, promotionType: String? = nil, promoId: String? = nil) {
self.promotionType = promotionType
@@ -311,8 +284,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.mrpPromotion = mrpPromotion
- self.appliedFreeArticles = appliedFreeArticles
-
}
required public init(from decoder: Decoder) throws {
@@ -414,18 +385,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- appliedFreeArticles = try container.decode([AppliedFreeArticles].self, forKey: .appliedFreeArticles)
-
- } 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 {
@@ -471,11 +430,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(mrpPromotion, forKey: .mrpPromotion)
-
-
- try? container.encodeIfPresent(appliedFreeArticles, forKey: .appliedFreeArticles)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/ArticleDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ArticleDetailsOrderPlatformModel.swift
deleted file mode 100644
index 08385c7c51..0000000000
--- a/Sources/code/platform/Models/Order/ArticleDetailsOrderPlatformModel.swift
+++ /dev/null
@@ -1,294 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ArticleDetails
- Used By: Order
- */
-
- class ArticleDetails: Codable {
-
-
- public var id: String
-
- public var brandId: Int
-
- public var dimension: [String: Any]
-
- public var category: [String: Any]
-
- public var weight: [String: Any]
-
- public var attributes: [String: Any]
-
- public var quantity: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case brandId = "brand_id"
-
- case dimension = "dimension"
-
- case category = "category"
-
- case weight = "weight"
-
- case attributes = "attributes"
-
- case quantity = "quantity"
-
- }
-
- public init(attributes: [String: Any], brandId: Int, category: [String: Any], dimension: [String: Any], quantity: Int, weight: [String: Any], id: String) {
-
- self.id = id
-
- self.brandId = brandId
-
- self.dimension = dimension
-
- self.category = category
-
- self.weight = weight
-
- self.attributes = attributes
-
- self.quantity = quantity
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- brandId = try container.decode(Int.self, forKey: .brandId)
-
-
-
-
- dimension = try container.decode([String: Any].self, forKey: .dimension)
-
-
-
-
- category = try container.decode([String: Any].self, forKey: .category)
-
-
-
-
- weight = try container.decode([String: Any].self, forKey: .weight)
-
-
-
-
- attributes = try container.decode([String: Any].self, forKey: .attributes)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ArticleDetails
- Used By: Order
- */
-
- class ArticleDetails: Codable {
-
-
- public var id: String
-
- public var brandId: Int
-
- public var dimension: [String: Any]
-
- public var category: [String: Any]
-
- public var weight: [String: Any]
-
- public var attributes: [String: Any]
-
- public var quantity: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case brandId = "brand_id"
-
- case dimension = "dimension"
-
- case category = "category"
-
- case weight = "weight"
-
- case attributes = "attributes"
-
- case quantity = "quantity"
-
- }
-
- public init(attributes: [String: Any], brandId: Int, category: [String: Any], dimension: [String: Any], quantity: Int, weight: [String: Any], id: String) {
-
- self.id = id
-
- self.brandId = brandId
-
- self.dimension = dimension
-
- self.category = category
-
- self.weight = weight
-
- self.attributes = attributes
-
- self.quantity = quantity
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- brandId = try container.decode(Int.self, forKey: .brandId)
-
-
-
-
- dimension = try container.decode([String: Any].self, forKey: .dimension)
-
-
-
-
- category = try container.decode([String: Any].self, forKey: .category)
-
-
-
-
- weight = try container.decode([String: Any].self, forKey: .weight)
-
-
-
-
- attributes = try container.decode([String: Any].self, forKey: .attributes)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(brandId, forKey: .brandId)
-
-
-
-
- try? container.encodeIfPresent(dimension, forKey: .dimension)
-
-
-
-
- try? container.encodeIfPresent(category, forKey: .category)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(attributes, forKey: .attributes)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ArticleOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ArticleOrderPlatformModel.swift
index 60375ce53c..5404dbe8e0 100644
--- a/Sources/code/platform/Models/Order/ArticleOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ArticleOrderPlatformModel.swift
@@ -18,7 +18,7 @@ public extension PlatformClient.Order {
public var uid: String
- public var set: [String: Any]?
+ public var aSet: [String: Any]?
public var dimensions: Dimensions?
@@ -53,7 +53,7 @@ public extension PlatformClient.Order {
case uid = "uid"
- case set = "set"
+ case aSet = "a_set"
case dimensions = "dimensions"
@@ -81,7 +81,7 @@ public extension PlatformClient.Order {
}
- public init(childDetails: [String: Any]? = nil, code: String? = nil, currency: [String: Any]? = nil, dimensions: Dimensions? = nil, espModified: Bool? = nil, identifiers: [String: Any], isSet: Bool? = nil, rawMeta: String? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String, set: [String: Any]? = nil, size: String, tags: [String]? = nil, uid: String, weight: Weight? = nil, id: String) {
+ public init(aSet: [String: Any]? = nil, childDetails: [String: Any]? = nil, code: String? = nil, currency: [String: Any]? = nil, dimensions: Dimensions? = nil, espModified: Bool? = nil, identifiers: [String: Any], isSet: Bool? = nil, rawMeta: String? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String, size: String, tags: [String]? = nil, uid: String, weight: Weight? = nil, id: String) {
self.childDetails = childDetails
@@ -89,7 +89,7 @@ public extension PlatformClient.Order {
self.uid = uid
- self.set = set
+ self.aSet = aSet
self.dimensions = dimensions
@@ -144,7 +144,7 @@ public extension PlatformClient.Order {
do {
- set = try container.decode([String: Any].self, forKey: .set)
+ aSet = try container.decode([String: Any].self, forKey: .aSet)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -299,7 +299,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(set, forKey: .set)
+ try? container.encodeIfPresent(aSet, forKey: .aSet)
@@ -384,7 +384,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var uid: String
- public var set: [String: Any]?
+ public var aSet: [String: Any]?
public var dimensions: Dimensions?
@@ -419,7 +419,7 @@ public extension PlatformClient.ApplicationClient.Order {
case uid = "uid"
- case set = "set"
+ case aSet = "a_set"
case dimensions = "dimensions"
@@ -447,7 +447,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(childDetails: [String: Any]? = nil, code: String? = nil, currency: [String: Any]? = nil, dimensions: Dimensions? = nil, espModified: Bool? = nil, identifiers: [String: Any], isSet: Bool? = nil, rawMeta: String? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String, set: [String: Any]? = nil, size: String, tags: [String]? = nil, uid: String, weight: Weight? = nil, id: String) {
+ public init(aSet: [String: Any]? = nil, childDetails: [String: Any]? = nil, code: String? = nil, currency: [String: Any]? = nil, dimensions: Dimensions? = nil, espModified: Bool? = nil, identifiers: [String: Any], isSet: Bool? = nil, rawMeta: String? = nil, returnConfig: ReturnConfig? = nil, sellerIdentifier: String, size: String, tags: [String]? = nil, uid: String, weight: Weight? = nil, id: String) {
self.childDetails = childDetails
@@ -455,7 +455,7 @@ public extension PlatformClient.ApplicationClient.Order {
self.uid = uid
- self.set = set
+ self.aSet = aSet
self.dimensions = dimensions
@@ -510,7 +510,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- set = try container.decode([String: Any].self, forKey: .set)
+ aSet = try container.decode([String: Any].self, forKey: .aSet)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -665,7 +665,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(set, forKey: .set)
+ try? container.encodeIfPresent(aSet, forKey: .aSet)
diff --git a/Sources/code/platform/Models/Order/AttachOrderUserResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AttachOrderUserResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..75127a5e95
--- /dev/null
+++ b/Sources/code/platform/Models/Order/AttachOrderUserResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: AttachOrderUserResponse
+ Used By: Order
+ */
+
+ class AttachOrderUserResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: AttachOrderUserResponse
+ Used By: Order
+ */
+
+ class AttachOrderUserResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/AttachOrderUserResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/AttachOrderUserResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index fa7f93616d..0000000000
--- a/Sources/code/platform/Models/Order/AttachOrderUserResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: AttachOrderUserResponseSchema
- Used By: Order
- */
-
- class AttachOrderUserResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: AttachOrderUserResponseSchema
- Used By: Order
- */
-
- class AttachOrderUserResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BagDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BagDetailsOrderPlatformModel.swift
index a963342c6f..f93cab82f5 100644
--- a/Sources/code/platform/Models/Order/BagDetailsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/BagDetailsOrderPlatformModel.swift
@@ -42,7 +42,7 @@ public extension PlatformClient.Order {
public var dates: Dates?
- public var deliveryAddress: Address?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var deliverySlot: DeliverySlotDetails?
@@ -104,8 +104,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
public var qcRequired: Bool?
public var quantity: Double?
@@ -116,7 +114,7 @@ public extension PlatformClient.Order {
public var restorePromos: [String: Any]?
- public var rtoAddress: Address?
+ public var rtoAddress: PlatformDeliveryAddress?
public var sellerIdentifier: String?
@@ -249,8 +247,6 @@ public extension PlatformClient.Order {
case prices = "prices"
- case charges = "charges"
-
case qcRequired = "qc_required"
case quantity = "quantity"
@@ -301,7 +297,7 @@ public extension PlatformClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagDetails? = nil, affiliateDetails: AffiliateDetails? = nil, appliedPromos: [[String: Any]]? = nil, article: Article? = nil, articleDetails: ArticleStatusDetails? = nil, bagId: Int? = nil, bagStatus: [BagStatusHistory]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, bagUpdateTime: Double? = nil, brand: Brand? = nil, charges: [PriceAdjustmentCharge]? = nil, company: Company? = nil, currentOperationalStatus: BagStatusHistory? = nil, currentStatus: BagStatusHistory? = nil, dates: Dates? = nil, deliveryAddress: Address? = nil, deliverySlot: DeliverySlotDetails? = nil, displayName: String? = nil, dpDetails: [String: Any]? = nil, einvoiceInfo: [String: Any]? = nil, entityType: String? = nil, fallbackUser: [String: Any]? = nil, financialBreakup: [FinancialBreakup]? = nil, fulfillingStore: Store? = nil, fyndstoreEmp: [String: Any]? = nil, gstDetails: GSTDetailsData? = nil, id: String? = nil, identifier: String? = nil, invoice: InvoiceDetails? = nil, item: Item? = nil, journeyType: String? = nil, lineNumber: Int? = nil, lockStatus: Bool? = nil, manifestId: String? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, noOfBagsOrder: Int? = nil, operationalStatus: String? = nil, order: OrderDetails? = nil, orderingStore: Store? = nil, orderIntegrationId: String? = nil, orderType: String? = nil, orderValue: Double? = nil, originalBagList: [Int]? = nil, parentPromoBags: [String: Any]? = nil, payments: [String: Any]? = nil, paymentMethods: [String: Any]? = nil, paymentType: String? = nil, prices: Prices? = nil, qcRequired: Bool? = nil, quantity: Double? = nil, reasons: [[String: Any]]? = nil, restoreCoupon: Bool? = nil, restorePromos: [String: Any]? = nil, rtoAddress: Address? = nil, sellerIdentifier: String? = nil, shipment: Shipment? = nil, shipmentDetails: ShipmentDetails? = nil, shipmentGst: ShipmentGstDetails? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatusData? = nil, shipmentStatusHistory: [ShipmentStatusData]? = nil, status: BagReturnableCancelableStatus? = nil, tags: [String]? = nil, totalShipmentsInOrder: Int? = nil, totalShipmentBags: Int? = nil, transactionType: String? = nil, type: String? = nil, updatedAt: String? = nil, user: UserDetails? = nil, weight: WeightData? = nil) {
+ public init(affiliateBagDetails: AffiliateBagDetails? = nil, affiliateDetails: AffiliateDetails? = nil, appliedPromos: [[String: Any]]? = nil, article: Article? = nil, articleDetails: ArticleStatusDetails? = nil, bagId: Int? = nil, bagStatus: [BagStatusHistory]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, bagUpdateTime: Double? = nil, brand: Brand? = nil, company: Company? = nil, currentOperationalStatus: BagStatusHistory? = nil, currentStatus: BagStatusHistory? = nil, dates: Dates? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, deliverySlot: DeliverySlotDetails? = nil, displayName: String? = nil, dpDetails: [String: Any]? = nil, einvoiceInfo: [String: Any]? = nil, entityType: String? = nil, fallbackUser: [String: Any]? = nil, financialBreakup: [FinancialBreakup]? = nil, fulfillingStore: Store? = nil, fyndstoreEmp: [String: Any]? = nil, gstDetails: GSTDetailsData? = nil, id: String? = nil, identifier: String? = nil, invoice: InvoiceDetails? = nil, item: Item? = nil, journeyType: String? = nil, lineNumber: Int? = nil, lockStatus: Bool? = nil, manifestId: String? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, noOfBagsOrder: Int? = nil, operationalStatus: String? = nil, order: OrderDetails? = nil, orderingStore: Store? = nil, orderIntegrationId: String? = nil, orderType: String? = nil, orderValue: Double? = nil, originalBagList: [Int]? = nil, parentPromoBags: [String: Any]? = nil, payments: [String: Any]? = nil, paymentMethods: [String: Any]? = nil, paymentType: String? = nil, prices: Prices? = nil, qcRequired: Bool? = nil, quantity: Double? = nil, reasons: [[String: Any]]? = nil, restoreCoupon: Bool? = nil, restorePromos: [String: Any]? = nil, rtoAddress: PlatformDeliveryAddress? = nil, sellerIdentifier: String? = nil, shipment: Shipment? = nil, shipmentDetails: ShipmentDetails? = nil, shipmentGst: ShipmentGstDetails? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatusData? = nil, shipmentStatusHistory: [ShipmentStatusData]? = nil, status: BagReturnableCancelableStatus? = nil, tags: [String]? = nil, totalShipmentsInOrder: Int? = nil, totalShipmentBags: Int? = nil, transactionType: String? = nil, type: String? = nil, updatedAt: String? = nil, user: UserDetails? = nil, weight: WeightData? = nil) {
self.bagUpdateTime = bagUpdateTime
@@ -395,8 +391,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.charges = charges
-
self.qcRequired = qcRequired
self.quantity = quantity
@@ -632,7 +626,7 @@ public extension PlatformClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1003,18 +997,6 @@ public extension PlatformClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
qcRequired = try container.decode(Bool.self, forKey: .qcRequired)
@@ -1076,7 +1058,7 @@ public extension PlatformClient.Order {
do {
- rtoAddress = try container.decode(Address.self, forKey: .rtoAddress)
+ rtoAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .rtoAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1539,11 +1521,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
try? container.encodeIfPresent(qcRequired, forKey: .qcRequired)
@@ -1708,7 +1685,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var dates: Dates?
- public var deliveryAddress: Address?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var deliverySlot: DeliverySlotDetails?
@@ -1770,8 +1747,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
public var qcRequired: Bool?
public var quantity: Double?
@@ -1782,7 +1757,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var restorePromos: [String: Any]?
- public var rtoAddress: Address?
+ public var rtoAddress: PlatformDeliveryAddress?
public var sellerIdentifier: String?
@@ -1915,8 +1890,6 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case charges = "charges"
-
case qcRequired = "qc_required"
case quantity = "quantity"
@@ -1967,7 +1940,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagDetails? = nil, affiliateDetails: AffiliateDetails? = nil, appliedPromos: [[String: Any]]? = nil, article: Article? = nil, articleDetails: ArticleStatusDetails? = nil, bagId: Int? = nil, bagStatus: [BagStatusHistory]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, bagUpdateTime: Double? = nil, brand: Brand? = nil, charges: [PriceAdjustmentCharge]? = nil, company: Company? = nil, currentOperationalStatus: BagStatusHistory? = nil, currentStatus: BagStatusHistory? = nil, dates: Dates? = nil, deliveryAddress: Address? = nil, deliverySlot: DeliverySlotDetails? = nil, displayName: String? = nil, dpDetails: [String: Any]? = nil, einvoiceInfo: [String: Any]? = nil, entityType: String? = nil, fallbackUser: [String: Any]? = nil, financialBreakup: [FinancialBreakup]? = nil, fulfillingStore: Store? = nil, fyndstoreEmp: [String: Any]? = nil, gstDetails: GSTDetailsData? = nil, id: String? = nil, identifier: String? = nil, invoice: InvoiceDetails? = nil, item: Item? = nil, journeyType: String? = nil, lineNumber: Int? = nil, lockStatus: Bool? = nil, manifestId: String? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, noOfBagsOrder: Int? = nil, operationalStatus: String? = nil, order: OrderDetails? = nil, orderingStore: Store? = nil, orderIntegrationId: String? = nil, orderType: String? = nil, orderValue: Double? = nil, originalBagList: [Int]? = nil, parentPromoBags: [String: Any]? = nil, payments: [String: Any]? = nil, paymentMethods: [String: Any]? = nil, paymentType: String? = nil, prices: Prices? = nil, qcRequired: Bool? = nil, quantity: Double? = nil, reasons: [[String: Any]]? = nil, restoreCoupon: Bool? = nil, restorePromos: [String: Any]? = nil, rtoAddress: Address? = nil, sellerIdentifier: String? = nil, shipment: Shipment? = nil, shipmentDetails: ShipmentDetails? = nil, shipmentGst: ShipmentGstDetails? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatusData? = nil, shipmentStatusHistory: [ShipmentStatusData]? = nil, status: BagReturnableCancelableStatus? = nil, tags: [String]? = nil, totalShipmentsInOrder: Int? = nil, totalShipmentBags: Int? = nil, transactionType: String? = nil, type: String? = nil, updatedAt: String? = nil, user: UserDetails? = nil, weight: WeightData? = nil) {
+ public init(affiliateBagDetails: AffiliateBagDetails? = nil, affiliateDetails: AffiliateDetails? = nil, appliedPromos: [[String: Any]]? = nil, article: Article? = nil, articleDetails: ArticleStatusDetails? = nil, bagId: Int? = nil, bagStatus: [BagStatusHistory]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, bagUpdateTime: Double? = nil, brand: Brand? = nil, company: Company? = nil, currentOperationalStatus: BagStatusHistory? = nil, currentStatus: BagStatusHistory? = nil, dates: Dates? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, deliverySlot: DeliverySlotDetails? = nil, displayName: String? = nil, dpDetails: [String: Any]? = nil, einvoiceInfo: [String: Any]? = nil, entityType: String? = nil, fallbackUser: [String: Any]? = nil, financialBreakup: [FinancialBreakup]? = nil, fulfillingStore: Store? = nil, fyndstoreEmp: [String: Any]? = nil, gstDetails: GSTDetailsData? = nil, id: String? = nil, identifier: String? = nil, invoice: InvoiceDetails? = nil, item: Item? = nil, journeyType: String? = nil, lineNumber: Int? = nil, lockStatus: Bool? = nil, manifestId: String? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, noOfBagsOrder: Int? = nil, operationalStatus: String? = nil, order: OrderDetails? = nil, orderingStore: Store? = nil, orderIntegrationId: String? = nil, orderType: String? = nil, orderValue: Double? = nil, originalBagList: [Int]? = nil, parentPromoBags: [String: Any]? = nil, payments: [String: Any]? = nil, paymentMethods: [String: Any]? = nil, paymentType: String? = nil, prices: Prices? = nil, qcRequired: Bool? = nil, quantity: Double? = nil, reasons: [[String: Any]]? = nil, restoreCoupon: Bool? = nil, restorePromos: [String: Any]? = nil, rtoAddress: PlatformDeliveryAddress? = nil, sellerIdentifier: String? = nil, shipment: Shipment? = nil, shipmentDetails: ShipmentDetails? = nil, shipmentGst: ShipmentGstDetails? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatusData? = nil, shipmentStatusHistory: [ShipmentStatusData]? = nil, status: BagReturnableCancelableStatus? = nil, tags: [String]? = nil, totalShipmentsInOrder: Int? = nil, totalShipmentBags: Int? = nil, transactionType: String? = nil, type: String? = nil, updatedAt: String? = nil, user: UserDetails? = nil, weight: WeightData? = nil) {
self.bagUpdateTime = bagUpdateTime
@@ -2061,8 +2034,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.charges = charges
-
self.qcRequired = qcRequired
self.quantity = quantity
@@ -2298,7 +2269,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2669,18 +2640,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
qcRequired = try container.decode(Bool.self, forKey: .qcRequired)
@@ -2742,7 +2701,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- rtoAddress = try container.decode(Address.self, forKey: .rtoAddress)
+ rtoAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .rtoAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -3205,11 +3164,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
try? container.encodeIfPresent(qcRequired, forKey: .qcRequired)
diff --git a/Sources/code/platform/Models/Order/BagDetailsPlatformResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BagDetailsPlatformResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..2d1690e802
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BagDetailsPlatformResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BagDetailsPlatformResponse
+ Used By: Order
+ */
+
+ class BagDetailsPlatformResponse: Codable {
+
+
+ public var statusCode: Int?
+
+ public var data: BagDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ }
+
+ public init(data: BagDetails? = nil, statusCode: Int? = nil) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(BagDetails.self, forKey: .data)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BagDetailsPlatformResponse
+ Used By: Order
+ */
+
+ class BagDetailsPlatformResponse: Codable {
+
+
+ public var statusCode: Int?
+
+ public var data: BagDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ }
+
+ public init(data: BagDetails? = nil, statusCode: Int? = nil) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(BagDetails.self, forKey: .data)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BagDetailsPlatformResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BagDetailsPlatformResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 09c0226ca1..0000000000
--- a/Sources/code/platform/Models/Order/BagDetailsPlatformResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BagDetailsPlatformResponseSchema
- Used By: Order
- */
-
- class BagDetailsPlatformResponseSchema: Codable {
-
-
- public var statusCode: Int?
-
- public var data: BagDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- }
-
- public init(data: BagDetails? = nil, statusCode: Int? = nil) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(BagDetails.self, forKey: .data)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BagDetailsPlatformResponseSchema
- Used By: Order
- */
-
- class BagDetailsPlatformResponseSchema: Codable {
-
-
- public var statusCode: Int?
-
- public var data: BagDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- }
-
- public init(data: BagDetails? = nil, statusCode: Int? = nil) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(BagDetails.self, forKey: .data)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BagUnitOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BagUnitOrderPlatformModel.swift
index d7b9ca3e98..14944e31a3 100644
--- a/Sources/code/platform/Models/Order/BagUnitOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/BagUnitOrderPlatformModel.swift
@@ -50,8 +50,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var dates: Dates?
public var currentStatus: BagStatusHistory
@@ -103,8 +101,6 @@ public extension PlatformClient.Order {
case prices = "prices"
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case dates = "dates"
case currentStatus = "current_status"
@@ -117,7 +113,7 @@ public extension PlatformClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagDetails? = nil, article: Article? = nil, bagExpiryDate: String? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, bagType: String? = nil, brand: ShipmentListingBrand? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentOperationalStatus: BagStatusHistory, currentStatus: BagStatusHistory, dates: Dates? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: [FinancialBreakup], gst: GSTDetailsData? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, prices: Prices? = nil, productQuantity: Int, reasons: [[String: Any]]? = nil, size: String? = nil, status: BagReturnableCancelableStatus) {
+ public init(affiliateBagDetails: AffiliateBagDetails? = nil, article: Article? = nil, bagExpiryDate: String? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, bagType: String? = nil, brand: ShipmentListingBrand? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentOperationalStatus: BagStatusHistory, currentStatus: BagStatusHistory, dates: Dates? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: [FinancialBreakup], gst: GSTDetailsData? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, prices: Prices? = nil, productQuantity: Int, reasons: [[String: Any]]? = nil, size: String? = nil, status: BagReturnableCancelableStatus) {
self.bagType = bagType
@@ -157,8 +153,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.dates = dates
self.currentStatus = currentStatus
@@ -382,18 +376,6 @@ public extension PlatformClient.Order {
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
dates = try container.decode(Dates.self, forKey: .dates)
@@ -534,11 +516,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(dates, forKey: .dates)
@@ -616,8 +593,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var dates: Dates?
public var currentStatus: BagStatusHistory
@@ -669,8 +644,6 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case dates = "dates"
case currentStatus = "current_status"
@@ -683,7 +656,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagDetails? = nil, article: Article? = nil, bagExpiryDate: String? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, bagType: String? = nil, brand: ShipmentListingBrand? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentOperationalStatus: BagStatusHistory, currentStatus: BagStatusHistory, dates: Dates? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: [FinancialBreakup], gst: GSTDetailsData? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, prices: Prices? = nil, productQuantity: Int, reasons: [[String: Any]]? = nil, size: String? = nil, status: BagReturnableCancelableStatus) {
+ public init(affiliateBagDetails: AffiliateBagDetails? = nil, article: Article? = nil, bagExpiryDate: String? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, bagType: String? = nil, brand: ShipmentListingBrand? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentOperationalStatus: BagStatusHistory, currentStatus: BagStatusHistory, dates: Dates? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: [FinancialBreakup], gst: GSTDetailsData? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, prices: Prices? = nil, productQuantity: Int, reasons: [[String: Any]]? = nil, size: String? = nil, status: BagReturnableCancelableStatus) {
self.bagType = bagType
@@ -723,8 +696,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.dates = dates
self.currentStatus = currentStatus
@@ -948,18 +919,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
dates = try container.decode(Dates.self, forKey: .dates)
@@ -1100,11 +1059,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(dates, forKey: .dates)
diff --git a/Sources/code/platform/Models/Order/BaseResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BaseResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..ce8d3b7969
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BaseResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BaseResponse
+ Used By: Order
+ */
+
+ class BaseResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BaseResponse
+ Used By: Order
+ */
+
+ class BaseResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BaseResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BaseResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index aa0250a146..0000000000
--- a/Sources/code/platform/Models/Order/BaseResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BaseResponseSchema
- Used By: Order
- */
-
- class BaseResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BaseResponseSchema
- Used By: Order
- */
-
- class BaseResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BillingInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BillingInfoOrderPlatformModel.swift
deleted file mode 100644
index ff71e61970..0000000000
--- a/Sources/code/platform/Models/Order/BillingInfoOrderPlatformModel.swift
+++ /dev/null
@@ -1,1174 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BillingInfo
- Used By: Order
- */
-
- class BillingInfo: Codable {
-
-
- public var alternateMobileNumber: String?
-
- public var state: String?
-
- public var customerCode: String?
-
- public var middleName: String?
-
- public var primaryMobileNumber: String?
-
- public var lastName: String?
-
- public var gender: String?
-
- public var houseNo: String?
-
- public var firstName: String?
-
- public var title: String?
-
- public var country: String?
-
- public var stateCode: String?
-
- public var city: String?
-
- public var externalCustomerCode: String?
-
- public var floorNo: String?
-
- public var alternateEmail: String?
-
- public var address: String?
-
- public var area: String?
-
- public var address1: String?
-
- public var pincode: String?
-
- public var primaryEmail: String?
-
- public var address2: String?
-
- public var countryCode: String?
-
- public var countryIsoCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case alternateMobileNumber = "alternate_mobile_number"
-
- case state = "state"
-
- case customerCode = "customer_code"
-
- case middleName = "middle_name"
-
- case primaryMobileNumber = "primary_mobile_number"
-
- case lastName = "last_name"
-
- case gender = "gender"
-
- case houseNo = "house_no"
-
- case firstName = "first_name"
-
- case title = "title"
-
- case country = "country"
-
- case stateCode = "state_code"
-
- case city = "city"
-
- case externalCustomerCode = "external_customer_code"
-
- case floorNo = "floor_no"
-
- case alternateEmail = "alternate_email"
-
- case address = "address"
-
- case area = "area"
-
- case address1 = "address1"
-
- case pincode = "pincode"
-
- case primaryEmail = "primary_email"
-
- case address2 = "address2"
-
- case countryCode = "country_code"
-
- case countryIsoCode = "country_iso_code"
-
- }
-
- public init(address: String? = nil, address1: String? = nil, address2: String? = nil, alternateEmail: String? = nil, alternateMobileNumber: String? = nil, area: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, countryIsoCode: String? = nil, customerCode: String? = nil, externalCustomerCode: String? = nil, firstName: String? = nil, floorNo: String? = nil, gender: String? = nil, houseNo: String? = nil, lastName: String? = nil, middleName: String? = nil, pincode: String? = nil, primaryEmail: String? = nil, primaryMobileNumber: String? = nil, state: String? = nil, stateCode: String? = nil, title: String? = nil) {
-
- self.alternateMobileNumber = alternateMobileNumber
-
- self.state = state
-
- self.customerCode = customerCode
-
- self.middleName = middleName
-
- self.primaryMobileNumber = primaryMobileNumber
-
- self.lastName = lastName
-
- self.gender = gender
-
- self.houseNo = houseNo
-
- self.firstName = firstName
-
- self.title = title
-
- self.country = country
-
- self.stateCode = stateCode
-
- self.city = city
-
- self.externalCustomerCode = externalCustomerCode
-
- self.floorNo = floorNo
-
- self.alternateEmail = alternateEmail
-
- self.address = address
-
- self.area = area
-
- self.address1 = address1
-
- self.pincode = pincode
-
- self.primaryEmail = primaryEmail
-
- self.address2 = address2
-
- self.countryCode = countryCode
-
- self.countryIsoCode = countryIsoCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- alternateMobileNumber = try container.decode(String.self, forKey: .alternateMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- customerCode = try container.decode(String.self, forKey: .customerCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- middleName = try container.decode(String.self, forKey: .middleName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- primaryMobileNumber = try container.decode(String.self, forKey: .primaryMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastName = try container.decode(String.self, forKey: .lastName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- houseNo = try container.decode(String.self, forKey: .houseNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- firstName = try container.decode(String.self, forKey: .firstName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- externalCustomerCode = try container.decode(String.self, forKey: .externalCustomerCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- floorNo = try container.decode(String.self, forKey: .floorNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- alternateEmail = try container.decode(String.self, forKey: .alternateEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- primaryEmail = try container.decode(String.self, forKey: .primaryEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } 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(alternateMobileNumber, forKey: .alternateMobileNumber)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(customerCode, forKey: .customerCode)
-
-
-
-
- try? container.encodeIfPresent(middleName, forKey: .middleName)
-
-
-
-
- try? container.encodeIfPresent(primaryMobileNumber, forKey: .primaryMobileNumber)
-
-
-
-
- try? container.encodeIfPresent(lastName, forKey: .lastName)
-
-
-
-
- try? container.encodeIfPresent(gender, forKey: .gender)
-
-
-
-
- try? container.encodeIfPresent(houseNo, forKey: .houseNo)
-
-
-
-
- try? container.encodeIfPresent(firstName, forKey: .firstName)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(externalCustomerCode, forKey: .externalCustomerCode)
-
-
-
-
- try? container.encodeIfPresent(floorNo, forKey: .floorNo)
-
-
-
-
- try? container.encodeIfPresent(alternateEmail, forKey: .alternateEmail)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(primaryEmail, forKey: .primaryEmail)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BillingInfo
- Used By: Order
- */
-
- class BillingInfo: Codable {
-
-
- public var alternateMobileNumber: String?
-
- public var state: String?
-
- public var customerCode: String?
-
- public var middleName: String?
-
- public var primaryMobileNumber: String?
-
- public var lastName: String?
-
- public var gender: String?
-
- public var houseNo: String?
-
- public var firstName: String?
-
- public var title: String?
-
- public var country: String?
-
- public var stateCode: String?
-
- public var city: String?
-
- public var externalCustomerCode: String?
-
- public var floorNo: String?
-
- public var alternateEmail: String?
-
- public var address: String?
-
- public var area: String?
-
- public var address1: String?
-
- public var pincode: String?
-
- public var primaryEmail: String?
-
- public var address2: String?
-
- public var countryCode: String?
-
- public var countryIsoCode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case alternateMobileNumber = "alternate_mobile_number"
-
- case state = "state"
-
- case customerCode = "customer_code"
-
- case middleName = "middle_name"
-
- case primaryMobileNumber = "primary_mobile_number"
-
- case lastName = "last_name"
-
- case gender = "gender"
-
- case houseNo = "house_no"
-
- case firstName = "first_name"
-
- case title = "title"
-
- case country = "country"
-
- case stateCode = "state_code"
-
- case city = "city"
-
- case externalCustomerCode = "external_customer_code"
-
- case floorNo = "floor_no"
-
- case alternateEmail = "alternate_email"
-
- case address = "address"
-
- case area = "area"
-
- case address1 = "address1"
-
- case pincode = "pincode"
-
- case primaryEmail = "primary_email"
-
- case address2 = "address2"
-
- case countryCode = "country_code"
-
- case countryIsoCode = "country_iso_code"
-
- }
-
- public init(address: String? = nil, address1: String? = nil, address2: String? = nil, alternateEmail: String? = nil, alternateMobileNumber: String? = nil, area: String? = nil, city: String? = nil, country: String? = nil, countryCode: String? = nil, countryIsoCode: String? = nil, customerCode: String? = nil, externalCustomerCode: String? = nil, firstName: String? = nil, floorNo: String? = nil, gender: String? = nil, houseNo: String? = nil, lastName: String? = nil, middleName: String? = nil, pincode: String? = nil, primaryEmail: String? = nil, primaryMobileNumber: String? = nil, state: String? = nil, stateCode: String? = nil, title: String? = nil) {
-
- self.alternateMobileNumber = alternateMobileNumber
-
- self.state = state
-
- self.customerCode = customerCode
-
- self.middleName = middleName
-
- self.primaryMobileNumber = primaryMobileNumber
-
- self.lastName = lastName
-
- self.gender = gender
-
- self.houseNo = houseNo
-
- self.firstName = firstName
-
- self.title = title
-
- self.country = country
-
- self.stateCode = stateCode
-
- self.city = city
-
- self.externalCustomerCode = externalCustomerCode
-
- self.floorNo = floorNo
-
- self.alternateEmail = alternateEmail
-
- self.address = address
-
- self.area = area
-
- self.address1 = address1
-
- self.pincode = pincode
-
- self.primaryEmail = primaryEmail
-
- self.address2 = address2
-
- self.countryCode = countryCode
-
- self.countryIsoCode = countryIsoCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- alternateMobileNumber = try container.decode(String.self, forKey: .alternateMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- customerCode = try container.decode(String.self, forKey: .customerCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- middleName = try container.decode(String.self, forKey: .middleName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- primaryMobileNumber = try container.decode(String.self, forKey: .primaryMobileNumber)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lastName = try container.decode(String.self, forKey: .lastName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- houseNo = try container.decode(String.self, forKey: .houseNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- firstName = try container.decode(String.self, forKey: .firstName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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 {
- stateCode = try container.decode(String.self, forKey: .stateCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- externalCustomerCode = try container.decode(String.self, forKey: .externalCustomerCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- floorNo = try container.decode(String.self, forKey: .floorNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- alternateEmail = try container.decode(String.self, forKey: .alternateEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- primaryEmail = try container.decode(String.self, forKey: .primaryEmail)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- do {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } 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(alternateMobileNumber, forKey: .alternateMobileNumber)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(customerCode, forKey: .customerCode)
-
-
-
-
- try? container.encodeIfPresent(middleName, forKey: .middleName)
-
-
-
-
- try? container.encodeIfPresent(primaryMobileNumber, forKey: .primaryMobileNumber)
-
-
-
-
- try? container.encodeIfPresent(lastName, forKey: .lastName)
-
-
-
-
- try? container.encodeIfPresent(gender, forKey: .gender)
-
-
-
-
- try? container.encodeIfPresent(houseNo, forKey: .houseNo)
-
-
-
-
- try? container.encodeIfPresent(firstName, forKey: .firstName)
-
-
-
-
- try? container.encodeIfPresent(title, forKey: .title)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(stateCode, forKey: .stateCode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(externalCustomerCode, forKey: .externalCustomerCode)
-
-
-
-
- try? container.encodeIfPresent(floorNo, forKey: .floorNo)
-
-
-
-
- try? container.encodeIfPresent(alternateEmail, forKey: .alternateEmail)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(primaryEmail, forKey: .primaryEmail)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkActionListingDataOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkActionListingDataOrderPlatformModel.swift
index a0b82fd318..477d31a445 100644
--- a/Sources/code/platform/Models/Order/BulkActionListingDataOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/BulkActionListingDataOrderPlatformModel.swift
@@ -38,7 +38,7 @@ public extension PlatformClient.Order {
public var updatedTs: Int?
- public var status: String?
+ public var status: Bool?
public var storeCode: String?
@@ -145,7 +145,7 @@ public extension PlatformClient.Order {
}
- public init(batchId: String? = nil, bulkActionType: String? = nil, companyId: Int? = nil, createdTs: String? = nil, doInvoiceLabelGenerated: Bool? = nil, failedInvoicedCount: Int? = nil, failedShipments: [String]? = nil, failedShCount: Int? = nil, fileName: String? = nil, fileUrl: String? = nil, id: Int? = nil, invoicelabelDocumentType: String? = nil, invoiceDocumentType: String? = nil, invoiceStatus: String? = nil, isInvoiceable: Bool? = nil, labelDocumentType: String? = nil, lastSelectedInvoiceLabelType: String? = nil, meta: [String: Any]? = nil, shipmentsActionInfo: ShipmentActionInfo? = nil, status: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil, successfulInvoicedCount: Int? = nil, successfulShCount: Int? = nil, totalCount: Int? = nil, totalInvoicedCount: Int? = nil, updatedTs: Int? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil, userName: String? = nil) {
+ public init(batchId: String? = nil, bulkActionType: String? = nil, companyId: Int? = nil, createdTs: String? = nil, doInvoiceLabelGenerated: Bool? = nil, failedInvoicedCount: Int? = nil, failedShipments: [String]? = nil, failedShCount: Int? = nil, fileName: String? = nil, fileUrl: String? = nil, id: Int? = nil, invoicelabelDocumentType: String? = nil, invoiceDocumentType: String? = nil, invoiceStatus: String? = nil, isInvoiceable: Bool? = nil, labelDocumentType: String? = nil, lastSelectedInvoiceLabelType: String? = nil, meta: [String: Any]? = nil, shipmentsActionInfo: ShipmentActionInfo? = nil, status: Bool? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil, successfulInvoicedCount: Int? = nil, successfulShCount: Int? = nil, totalCount: Int? = nil, totalInvoicedCount: Int? = nil, updatedTs: Int? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil, userName: String? = nil) {
self.storeId = storeId
@@ -374,7 +374,7 @@ public extension PlatformClient.Order {
do {
- status = try container.decode(String.self, forKey: .status)
+ status = try container.decode(Bool.self, forKey: .status)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -807,7 +807,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var updatedTs: Int?
- public var status: String?
+ public var status: Bool?
public var storeCode: String?
@@ -914,7 +914,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(batchId: String? = nil, bulkActionType: String? = nil, companyId: Int? = nil, createdTs: String? = nil, doInvoiceLabelGenerated: Bool? = nil, failedInvoicedCount: Int? = nil, failedShipments: [String]? = nil, failedShCount: Int? = nil, fileName: String? = nil, fileUrl: String? = nil, id: Int? = nil, invoicelabelDocumentType: String? = nil, invoiceDocumentType: String? = nil, invoiceStatus: String? = nil, isInvoiceable: Bool? = nil, labelDocumentType: String? = nil, lastSelectedInvoiceLabelType: String? = nil, meta: [String: Any]? = nil, shipmentsActionInfo: ShipmentActionInfo? = nil, status: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil, successfulInvoicedCount: Int? = nil, successfulShCount: Int? = nil, totalCount: Int? = nil, totalInvoicedCount: Int? = nil, updatedTs: Int? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil, userName: String? = nil) {
+ public init(batchId: String? = nil, bulkActionType: String? = nil, companyId: Int? = nil, createdTs: String? = nil, doInvoiceLabelGenerated: Bool? = nil, failedInvoicedCount: Int? = nil, failedShipments: [String]? = nil, failedShCount: Int? = nil, fileName: String? = nil, fileUrl: String? = nil, id: Int? = nil, invoicelabelDocumentType: String? = nil, invoiceDocumentType: String? = nil, invoiceStatus: String? = nil, isInvoiceable: Bool? = nil, labelDocumentType: String? = nil, lastSelectedInvoiceLabelType: String? = nil, meta: [String: Any]? = nil, shipmentsActionInfo: ShipmentActionInfo? = nil, status: Bool? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil, successfulInvoicedCount: Int? = nil, successfulShCount: Int? = nil, totalCount: Int? = nil, totalInvoicedCount: Int? = nil, updatedTs: Int? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil, userName: String? = nil) {
self.storeId = storeId
@@ -1143,7 +1143,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- status = try container.decode(String.self, forKey: .status)
+ status = try container.decode(Bool.self, forKey: .status)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Order/BulkActionTemplateResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkActionTemplateResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..58f4df8222
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkActionTemplateResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkActionTemplateResponse
+ Used By: Order
+ */
+
+ class BulkActionTemplateResponse: Codable {
+
+
+ public var templateXSlug: [BulkActionTemplate]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case templateXSlug = "template_x_slug"
+
+ }
+
+ public init(templateXSlug: [BulkActionTemplate]? = nil) {
+
+ self.templateXSlug = templateXSlug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ templateXSlug = try container.decode([BulkActionTemplate].self, forKey: .templateXSlug)
+
+ } 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(templateXSlug, forKey: .templateXSlug)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkActionTemplateResponse
+ Used By: Order
+ */
+
+ class BulkActionTemplateResponse: Codable {
+
+
+ public var templateXSlug: [BulkActionTemplate]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case templateXSlug = "template_x_slug"
+
+ }
+
+ public init(templateXSlug: [BulkActionTemplate]? = nil) {
+
+ self.templateXSlug = templateXSlug
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ templateXSlug = try container.decode([BulkActionTemplate].self, forKey: .templateXSlug)
+
+ } 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(templateXSlug, forKey: .templateXSlug)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkActionTemplateResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkActionTemplateResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 99cae434fb..0000000000
--- a/Sources/code/platform/Models/Order/BulkActionTemplateResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkActionTemplateResponseSchema
- Used By: Order
- */
-
- class BulkActionTemplateResponseSchema: Codable {
-
-
- public var templateXSlug: [BulkActionTemplate]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case templateXSlug = "template_x_slug"
-
- }
-
- public init(templateXSlug: [BulkActionTemplate]? = nil) {
-
- self.templateXSlug = templateXSlug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- templateXSlug = try container.decode([BulkActionTemplate].self, forKey: .templateXSlug)
-
- } 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(templateXSlug, forKey: .templateXSlug)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkActionTemplateResponseSchema
- Used By: Order
- */
-
- class BulkActionTemplateResponseSchema: Codable {
-
-
- public var templateXSlug: [BulkActionTemplate]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case templateXSlug = "template_x_slug"
-
- }
-
- public init(templateXSlug: [BulkActionTemplate]? = nil) {
-
- self.templateXSlug = templateXSlug
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- templateXSlug = try container.decode([BulkActionTemplate].self, forKey: .templateXSlug)
-
- } 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(templateXSlug, forKey: .templateXSlug)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkFailedResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkFailedResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..1786d0a9a3
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkFailedResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkFailedResponse
+ Used By: Order
+ */
+
+ class BulkFailedResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkFailedResponse
+ Used By: Order
+ */
+
+ class BulkFailedResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkFailedResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkFailedResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index a3c3c6fbf4..0000000000
--- a/Sources/code/platform/Models/Order/BulkFailedResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkFailedResponseSchema
- Used By: Order
- */
-
- class BulkFailedResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkFailedResponseSchema
- Used By: Order
- */
-
- class BulkFailedResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkListingResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkListingResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..36bb02b494
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkListingResponseOrderPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkListingResponse
+ Used By: Order
+ */
+
+ class BulkListingResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [BulkActionListingData]?
+
+ public var page: BulkListinPage?
+
+ public var totalCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case page = "page"
+
+ case totalCount = "total_count"
+
+ }
+
+ public init(data: [BulkActionListingData]? = nil, page: BulkListinPage? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ self.page = page
+
+ self.totalCount = totalCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([BulkActionListingData].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ page = try container.decode(BulkListinPage.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(totalCount, forKey: .totalCount)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkListingResponse
+ Used By: Order
+ */
+
+ class BulkListingResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [BulkActionListingData]?
+
+ public var page: BulkListinPage?
+
+ public var totalCount: Int?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case page = "page"
+
+ case totalCount = "total_count"
+
+ }
+
+ public init(data: [BulkActionListingData]? = nil, page: BulkListinPage? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ self.page = page
+
+ self.totalCount = totalCount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([BulkActionListingData].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ page = try container.decode(BulkListinPage.self, forKey: .page)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(totalCount, forKey: .totalCount)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkListingResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkListingResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 62a74c67af..0000000000
--- a/Sources/code/platform/Models/Order/BulkListingResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkListingResponseSchema
- Used By: Order
- */
-
- class BulkListingResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var data: [BulkActionListingData]?
-
- public var page: BulkListinPage?
-
- public var totalCount: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- case page = "page"
-
- case totalCount = "total_count"
-
- }
-
- public init(data: [BulkActionListingData]? = nil, page: BulkListinPage? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.success = success
-
- self.data = data
-
- self.page = page
-
- self.totalCount = totalCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode([BulkActionListingData].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- page = try container.decode(BulkListinPage.self, forKey: .page)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(totalCount, forKey: .totalCount)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkListingResponseSchema
- Used By: Order
- */
-
- class BulkListingResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var data: [BulkActionListingData]?
-
- public var page: BulkListinPage?
-
- public var totalCount: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- case page = "page"
-
- case totalCount = "total_count"
-
- }
-
- public init(data: [BulkActionListingData]? = nil, page: BulkListinPage? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.success = success
-
- self.data = data
-
- self.page = page
-
- self.totalCount = totalCount
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode([BulkActionListingData].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- page = try container.decode(BulkListinPage.self, forKey: .page)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(totalCount, forKey: .totalCount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkReportsDownloadRequestOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkReportsDownloadRequestOrderPlatformModel.swift
new file mode 100644
index 0000000000..e494b4d956
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkReportsDownloadRequestOrderPlatformModel.swift
@@ -0,0 +1,530 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkReportsDownloadRequest
+ Used By: Order
+ */
+
+ class BulkReportsDownloadRequest: Codable {
+
+
+ public var storeIds: [String]?
+
+ public var laneType: String?
+
+ public var customHeaders: [String]?
+
+ public var reportType: String?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var entities: [String]?
+
+ public var filterType: String?
+
+ public var isCrossCompanyEnabled: Bool?
+
+ public var customFiltersForLane: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeIds = "store_ids"
+
+ case laneType = "lane_type"
+
+ case customHeaders = "custom_headers"
+
+ case reportType = "report_type"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case entities = "entities"
+
+ case filterType = "filter_type"
+
+ case isCrossCompanyEnabled = "is_cross_company_enabled"
+
+ case customFiltersForLane = "custom_filters_for_lane"
+
+ }
+
+ public init(customFiltersForLane: [String: Any]? = nil, customHeaders: [String]? = nil, endDate: String? = nil, entities: [String]? = nil, filterType: String? = nil, isCrossCompanyEnabled: Bool? = nil, laneType: String? = nil, reportType: String? = nil, startDate: String? = nil, storeIds: [String]? = nil) {
+
+ self.storeIds = storeIds
+
+ self.laneType = laneType
+
+ self.customHeaders = customHeaders
+
+ self.reportType = reportType
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.entities = entities
+
+ self.filterType = filterType
+
+ self.isCrossCompanyEnabled = isCrossCompanyEnabled
+
+ self.customFiltersForLane = customFiltersForLane
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ storeIds = try container.decode([String].self, forKey: .storeIds)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ laneType = try container.decode(String.self, forKey: .laneType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customHeaders = try container.decode([String].self, forKey: .customHeaders)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportType = try container.decode(String.self, forKey: .reportType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ entities = try container.decode([String].self, forKey: .entities)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filterType = try container.decode(String.self, forKey: .filterType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCrossCompanyEnabled = try container.decode(Bool.self, forKey: .isCrossCompanyEnabled)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customFiltersForLane = try container.decode([String: Any].self, forKey: .customFiltersForLane)
+
+ } 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(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(laneType, forKey: .laneType)
+
+
+
+
+ try? container.encodeIfPresent(customHeaders, forKey: .customHeaders)
+
+
+
+
+ try? container.encodeIfPresent(reportType, forKey: .reportType)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(entities, forKey: .entities)
+
+
+
+
+ try? container.encodeIfPresent(filterType, forKey: .filterType)
+
+
+
+
+ try? container.encodeIfPresent(isCrossCompanyEnabled, forKey: .isCrossCompanyEnabled)
+
+
+
+
+ try? container.encodeIfPresent(customFiltersForLane, forKey: .customFiltersForLane)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkReportsDownloadRequest
+ Used By: Order
+ */
+
+ class BulkReportsDownloadRequest: Codable {
+
+
+ public var storeIds: [String]?
+
+ public var laneType: String?
+
+ public var customHeaders: [String]?
+
+ public var reportType: String?
+
+ public var startDate: String?
+
+ public var endDate: String?
+
+ public var entities: [String]?
+
+ public var filterType: String?
+
+ public var isCrossCompanyEnabled: Bool?
+
+ public var customFiltersForLane: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeIds = "store_ids"
+
+ case laneType = "lane_type"
+
+ case customHeaders = "custom_headers"
+
+ case reportType = "report_type"
+
+ case startDate = "start_date"
+
+ case endDate = "end_date"
+
+ case entities = "entities"
+
+ case filterType = "filter_type"
+
+ case isCrossCompanyEnabled = "is_cross_company_enabled"
+
+ case customFiltersForLane = "custom_filters_for_lane"
+
+ }
+
+ public init(customFiltersForLane: [String: Any]? = nil, customHeaders: [String]? = nil, endDate: String? = nil, entities: [String]? = nil, filterType: String? = nil, isCrossCompanyEnabled: Bool? = nil, laneType: String? = nil, reportType: String? = nil, startDate: String? = nil, storeIds: [String]? = nil) {
+
+ self.storeIds = storeIds
+
+ self.laneType = laneType
+
+ self.customHeaders = customHeaders
+
+ self.reportType = reportType
+
+ self.startDate = startDate
+
+ self.endDate = endDate
+
+ self.entities = entities
+
+ self.filterType = filterType
+
+ self.isCrossCompanyEnabled = isCrossCompanyEnabled
+
+ self.customFiltersForLane = customFiltersForLane
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ storeIds = try container.decode([String].self, forKey: .storeIds)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ laneType = try container.decode(String.self, forKey: .laneType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customHeaders = try container.decode([String].self, forKey: .customHeaders)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ reportType = try container.decode(String.self, forKey: .reportType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ startDate = try container.decode(String.self, forKey: .startDate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ entities = try container.decode([String].self, forKey: .entities)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ filterType = try container.decode(String.self, forKey: .filterType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isCrossCompanyEnabled = try container.decode(Bool.self, forKey: .isCrossCompanyEnabled)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customFiltersForLane = try container.decode([String: Any].self, forKey: .customFiltersForLane)
+
+ } 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(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(laneType, forKey: .laneType)
+
+
+
+
+ try? container.encodeIfPresent(customHeaders, forKey: .customHeaders)
+
+
+
+
+ try? container.encodeIfPresent(reportType, forKey: .reportType)
+
+
+
+
+ try? container.encodeIfPresent(startDate, forKey: .startDate)
+
+
+
+
+ try? container.encodeIfPresent(endDate, forKey: .endDate)
+
+
+
+
+ try? container.encodeIfPresent(entities, forKey: .entities)
+
+
+
+
+ try? container.encodeIfPresent(filterType, forKey: .filterType)
+
+
+
+
+ try? container.encodeIfPresent(isCrossCompanyEnabled, forKey: .isCrossCompanyEnabled)
+
+
+
+
+ try? container.encodeIfPresent(customFiltersForLane, forKey: .customFiltersForLane)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkReportsDownloadRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkReportsDownloadRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index 7bb768d516..0000000000
--- a/Sources/code/platform/Models/Order/BulkReportsDownloadRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkReportsDownloadRequestSchema
- Used By: Order
- */
-
- class BulkReportsDownloadRequestSchema: Codable {
-
-
- public var storeIds: [String]?
-
- public var laneType: String?
-
- public var customHeaders: [String]?
-
- public var reportType: String?
-
- public var startDate: String?
-
- public var endDate: String?
-
- public var entities: [String]?
-
- public var filterType: String?
-
- public var isCrossCompanyEnabled: Bool?
-
- public var customFiltersForLane: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeIds = "store_ids"
-
- case laneType = "lane_type"
-
- case customHeaders = "custom_headers"
-
- case reportType = "report_type"
-
- case startDate = "start_date"
-
- case endDate = "end_date"
-
- case entities = "entities"
-
- case filterType = "filter_type"
-
- case isCrossCompanyEnabled = "is_cross_company_enabled"
-
- case customFiltersForLane = "custom_filters_for_lane"
-
- }
-
- public init(customFiltersForLane: [String: Any]? = nil, customHeaders: [String]? = nil, endDate: String? = nil, entities: [String]? = nil, filterType: String? = nil, isCrossCompanyEnabled: Bool? = nil, laneType: String? = nil, reportType: String? = nil, startDate: String? = nil, storeIds: [String]? = nil) {
-
- self.storeIds = storeIds
-
- self.laneType = laneType
-
- self.customHeaders = customHeaders
-
- self.reportType = reportType
-
- self.startDate = startDate
-
- self.endDate = endDate
-
- self.entities = entities
-
- self.filterType = filterType
-
- self.isCrossCompanyEnabled = isCrossCompanyEnabled
-
- self.customFiltersForLane = customFiltersForLane
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- storeIds = try container.decode([String].self, forKey: .storeIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- laneType = try container.decode(String.self, forKey: .laneType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customHeaders = try container.decode([String].self, forKey: .customHeaders)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reportType = try container.decode(String.self, forKey: .reportType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- startDate = try container.decode(String.self, forKey: .startDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- entities = try container.decode([String].self, forKey: .entities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- filterType = try container.decode(String.self, forKey: .filterType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCrossCompanyEnabled = try container.decode(Bool.self, forKey: .isCrossCompanyEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customFiltersForLane = try container.decode([String: Any].self, forKey: .customFiltersForLane)
-
- } 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(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(laneType, forKey: .laneType)
-
-
-
-
- try? container.encodeIfPresent(customHeaders, forKey: .customHeaders)
-
-
-
-
- try? container.encodeIfPresent(reportType, forKey: .reportType)
-
-
-
-
- try? container.encodeIfPresent(startDate, forKey: .startDate)
-
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(entities, forKey: .entities)
-
-
-
-
- try? container.encodeIfPresent(filterType, forKey: .filterType)
-
-
-
-
- try? container.encodeIfPresent(isCrossCompanyEnabled, forKey: .isCrossCompanyEnabled)
-
-
-
-
- try? container.encodeIfPresent(customFiltersForLane, forKey: .customFiltersForLane)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkReportsDownloadRequestSchema
- Used By: Order
- */
-
- class BulkReportsDownloadRequestSchema: Codable {
-
-
- public var storeIds: [String]?
-
- public var laneType: String?
-
- public var customHeaders: [String]?
-
- public var reportType: String?
-
- public var startDate: String?
-
- public var endDate: String?
-
- public var entities: [String]?
-
- public var filterType: String?
-
- public var isCrossCompanyEnabled: Bool?
-
- public var customFiltersForLane: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeIds = "store_ids"
-
- case laneType = "lane_type"
-
- case customHeaders = "custom_headers"
-
- case reportType = "report_type"
-
- case startDate = "start_date"
-
- case endDate = "end_date"
-
- case entities = "entities"
-
- case filterType = "filter_type"
-
- case isCrossCompanyEnabled = "is_cross_company_enabled"
-
- case customFiltersForLane = "custom_filters_for_lane"
-
- }
-
- public init(customFiltersForLane: [String: Any]? = nil, customHeaders: [String]? = nil, endDate: String? = nil, entities: [String]? = nil, filterType: String? = nil, isCrossCompanyEnabled: Bool? = nil, laneType: String? = nil, reportType: String? = nil, startDate: String? = nil, storeIds: [String]? = nil) {
-
- self.storeIds = storeIds
-
- self.laneType = laneType
-
- self.customHeaders = customHeaders
-
- self.reportType = reportType
-
- self.startDate = startDate
-
- self.endDate = endDate
-
- self.entities = entities
-
- self.filterType = filterType
-
- self.isCrossCompanyEnabled = isCrossCompanyEnabled
-
- self.customFiltersForLane = customFiltersForLane
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- storeIds = try container.decode([String].self, forKey: .storeIds)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- laneType = try container.decode(String.self, forKey: .laneType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customHeaders = try container.decode([String].self, forKey: .customHeaders)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reportType = try container.decode(String.self, forKey: .reportType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- startDate = try container.decode(String.self, forKey: .startDate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- entities = try container.decode([String].self, forKey: .entities)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- filterType = try container.decode(String.self, forKey: .filterType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isCrossCompanyEnabled = try container.decode(Bool.self, forKey: .isCrossCompanyEnabled)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customFiltersForLane = try container.decode([String: Any].self, forKey: .customFiltersForLane)
-
- } 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(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(laneType, forKey: .laneType)
-
-
-
-
- try? container.encodeIfPresent(customHeaders, forKey: .customHeaders)
-
-
-
-
- try? container.encodeIfPresent(reportType, forKey: .reportType)
-
-
-
-
- try? container.encodeIfPresent(startDate, forKey: .startDate)
-
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(entities, forKey: .entities)
-
-
-
-
- try? container.encodeIfPresent(filterType, forKey: .filterType)
-
-
-
-
- try? container.encodeIfPresent(isCrossCompanyEnabled, forKey: .isCrossCompanyEnabled)
-
-
-
-
- try? container.encodeIfPresent(customFiltersForLane, forKey: .customFiltersForLane)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkReportsDownloadResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkReportsDownloadResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..5276bf0301
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkReportsDownloadResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkReportsDownloadResponse
+ Used By: Order
+ */
+
+ class BulkReportsDownloadResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var batchId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case batchId = "batch_id"
+
+ }
+
+ public init(batchId: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.batchId = batchId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkReportsDownloadResponse
+ Used By: Order
+ */
+
+ class BulkReportsDownloadResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var batchId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case batchId = "batch_id"
+
+ }
+
+ public init(batchId: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.batchId = batchId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkReportsDownloadResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkReportsDownloadResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 93182e9ef3..0000000000
--- a/Sources/code/platform/Models/Order/BulkReportsDownloadResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkReportsDownloadResponseSchema
- Used By: Order
- */
-
- class BulkReportsDownloadResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var batchId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case batchId = "batch_id"
-
- }
-
- public init(batchId: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.batchId = batchId
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- batchId = try container.decode(String.self, forKey: .batchId)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkReportsDownloadResponseSchema
- Used By: Order
- */
-
- class BulkReportsDownloadResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var batchId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case batchId = "batch_id"
-
- }
-
- public init(batchId: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.batchId = batchId
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- batchId = try container.decode(String.self, forKey: .batchId)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/BulkStateTransistionResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkStateTransistionResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..4efb0a1391
--- /dev/null
+++ b/Sources/code/platform/Models/Order/BulkStateTransistionResponseOrderPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: BulkStateTransistionResponse
+ Used By: Order
+ */
+
+ class BulkStateTransistionResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var message: String?
+
+ public var batchId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case message = "message"
+
+ case batchId = "batch_id"
+
+ }
+
+ public init(batchId: String? = nil, message: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.message = message
+
+ self.batchId = batchId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: BulkStateTransistionResponse
+ Used By: Order
+ */
+
+ class BulkStateTransistionResponse: Codable {
+
+
+ public var status: Bool?
+
+ public var message: String?
+
+ public var batchId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case message = "message"
+
+ case batchId = "batch_id"
+
+ }
+
+ public init(batchId: String? = nil, message: String? = nil, status: Bool? = nil) {
+
+ self.status = status
+
+ self.message = message
+
+ self.batchId = batchId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ status = try container.decode(Bool.self, forKey: .status)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/BulkStateTransistionResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/BulkStateTransistionResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index de6136ccad..0000000000
--- a/Sources/code/platform/Models/Order/BulkStateTransistionResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: BulkStateTransistionResponseSchema
- Used By: Order
- */
-
- class BulkStateTransistionResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var message: String?
-
- public var batchId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case message = "message"
-
- case batchId = "batch_id"
-
- }
-
- public init(batchId: String? = nil, message: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.message = message
-
- self.batchId = batchId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- batchId = try container.decode(String.self, forKey: .batchId)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: BulkStateTransistionResponseSchema
- Used By: Order
- */
-
- class BulkStateTransistionResponseSchema: Codable {
-
-
- public var status: Bool?
-
- public var message: String?
-
- public var batchId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case message = "message"
-
- case batchId = "batch_id"
-
- }
-
- public init(batchId: String? = nil, message: String? = nil, status: Bool? = nil) {
-
- self.status = status
-
- self.message = message
-
- self.batchId = batchId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- status = try container.decode(Bool.self, forKey: .status)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- batchId = try container.decode(String.self, forKey: .batchId)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ChargeAmountCurrencyOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ChargeAmountCurrencyOrderPlatformModel.swift
deleted file mode 100644
index c2b4296294..0000000000
--- a/Sources/code/platform/Models/Order/ChargeAmountCurrencyOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ChargeAmountCurrency
- Used By: Order
- */
-
- class ChargeAmountCurrency: Codable {
-
-
- public var value: Double
-
- public var currency: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case currency = "currency"
-
- }
-
- public init(currency: String, value: Double) {
-
- self.value = value
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(Double.self, forKey: .value)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ChargeAmountCurrency
- Used By: Order
- */
-
- class ChargeAmountCurrency: Codable {
-
-
- public var value: Double
-
- public var currency: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case currency = "currency"
-
- }
-
- public init(currency: String, value: Double) {
-
- self.value = value
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(Double.self, forKey: .value)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ChargeAmountOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ChargeAmountOrderPlatformModel.swift
deleted file mode 100644
index 5f8ceb0bae..0000000000
--- a/Sources/code/platform/Models/Order/ChargeAmountOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ChargeAmount
- Used By: Order
- */
-
- class ChargeAmount: Codable {
-
-
- public var baseCurrency: ChargeAmountCurrency
-
- public var orderingCurrency: ChargeAmountCurrency
-
-
- public enum CodingKeys: String, CodingKey {
-
- case baseCurrency = "base_currency"
-
- case orderingCurrency = "ordering_currency"
-
- }
-
- public init(baseCurrency: ChargeAmountCurrency, orderingCurrency: ChargeAmountCurrency) {
-
- self.baseCurrency = baseCurrency
-
- self.orderingCurrency = orderingCurrency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- baseCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .baseCurrency)
-
-
-
-
- orderingCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .orderingCurrency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(baseCurrency, forKey: .baseCurrency)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrency, forKey: .orderingCurrency)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ChargeAmount
- Used By: Order
- */
-
- class ChargeAmount: Codable {
-
-
- public var baseCurrency: ChargeAmountCurrency
-
- public var orderingCurrency: ChargeAmountCurrency
-
-
- public enum CodingKeys: String, CodingKey {
-
- case baseCurrency = "base_currency"
-
- case orderingCurrency = "ordering_currency"
-
- }
-
- public init(baseCurrency: ChargeAmountCurrency, orderingCurrency: ChargeAmountCurrency) {
-
- self.baseCurrency = baseCurrency
-
- self.orderingCurrency = orderingCurrency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- baseCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .baseCurrency)
-
-
-
-
- orderingCurrency = try container.decode(ChargeAmountCurrency.self, forKey: .orderingCurrency)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(baseCurrency, forKey: .baseCurrency)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrency, forKey: .orderingCurrency)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ChargeDistributionLogicOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ChargeDistributionLogicOrderPlatformModel.swift
deleted file mode 100644
index 0ebb2da009..0000000000
--- a/Sources/code/platform/Models/Order/ChargeDistributionLogicOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ChargeDistributionLogic
- Used By: Order
- */
-
- class ChargeDistributionLogic: Codable {
-
-
- public var distribution: ChargeDistributionSchema
-
- public var distributionLevel: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case distribution = "distribution"
-
- case distributionLevel = "distribution_level"
-
- }
-
- public init(distribution: ChargeDistributionSchema, distributionLevel: String) {
-
- self.distribution = distribution
-
- self.distributionLevel = distributionLevel
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- distribution = try container.decode(ChargeDistributionSchema.self, forKey: .distribution)
-
-
-
-
- distributionLevel = try container.decode(String.self, forKey: .distributionLevel)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(distribution, forKey: .distribution)
-
-
-
-
- try? container.encodeIfPresent(distributionLevel, forKey: .distributionLevel)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ChargeDistributionLogic
- Used By: Order
- */
-
- class ChargeDistributionLogic: Codable {
-
-
- public var distribution: ChargeDistributionSchema
-
- public var distributionLevel: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case distribution = "distribution"
-
- case distributionLevel = "distribution_level"
-
- }
-
- public init(distribution: ChargeDistributionSchema, distributionLevel: String) {
-
- self.distribution = distribution
-
- self.distributionLevel = distributionLevel
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- distribution = try container.decode(ChargeDistributionSchema.self, forKey: .distribution)
-
-
-
-
- distributionLevel = try container.decode(String.self, forKey: .distributionLevel)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(distribution, forKey: .distribution)
-
-
-
-
- try? container.encodeIfPresent(distributionLevel, forKey: .distributionLevel)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ChargeDistributionSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ChargeDistributionSchemaOrderPlatformModel.swift
deleted file mode 100644
index 98b022d8ae..0000000000
--- a/Sources/code/platform/Models/Order/ChargeDistributionSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ChargeDistributionSchema
- Used By: Order
- */
-
- class ChargeDistributionSchema: Codable {
-
-
- public var type: String
-
- public var logic: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case logic = "logic"
-
- }
-
- public init(logic: String, type: String) {
-
- self.type = type
-
- self.logic = logic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- logic = try container.decode(String.self, forKey: .logic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(logic, forKey: .logic)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ChargeDistributionSchema
- Used By: Order
- */
-
- class ChargeDistributionSchema: Codable {
-
-
- public var type: String
-
- public var logic: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case logic = "logic"
-
- }
-
- public init(logic: String, type: String) {
-
- self.type = type
-
- self.logic = logic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- logic = try container.decode(String.self, forKey: .logic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(logic, forKey: .logic)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CheckResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CheckResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..4f8185f241
--- /dev/null
+++ b/Sources/code/platform/Models/Order/CheckResponseOrderPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: CheckResponse
+ Used By: Order
+ */
+
+ class CheckResponse: Codable {
+
+
+ public var shipmentId: String?
+
+ public var status: String?
+
+ public var isBagLocked: Bool?
+
+ public var affiliateId: String?
+
+ public var originalFilter: OriginalFilter?
+
+ public var isShipmentLocked: Bool?
+
+ public var lockStatus: String?
+
+ public var affiliateShipmentId: String?
+
+ public var bags: [Bags]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipmentId = "shipment_id"
+
+ case status = "status"
+
+ case isBagLocked = "is_bag_locked"
+
+ case affiliateId = "affiliate_id"
+
+ case originalFilter = "original_filter"
+
+ case isShipmentLocked = "is_shipment_locked"
+
+ case lockStatus = "lock_status"
+
+ case affiliateShipmentId = "affiliate_shipment_id"
+
+ case bags = "bags"
+
+ }
+
+ public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, bags: [Bags]? = nil, isBagLocked: Bool? = nil, isShipmentLocked: Bool? = nil, lockStatus: String? = nil, originalFilter: OriginalFilter? = nil, shipmentId: String? = nil, status: String? = nil) {
+
+ self.shipmentId = shipmentId
+
+ self.status = status
+
+ self.isBagLocked = isBagLocked
+
+ self.affiliateId = affiliateId
+
+ self.originalFilter = originalFilter
+
+ self.isShipmentLocked = isShipmentLocked
+
+ self.lockStatus = lockStatus
+
+ self.affiliateShipmentId = affiliateShipmentId
+
+ self.bags = bags
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ isBagLocked = try container.decode(Bool.self, forKey: .isBagLocked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ originalFilter = try container.decode(OriginalFilter.self, forKey: .originalFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isShipmentLocked = try container.decode(Bool.self, forKey: .isShipmentLocked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lockStatus = try container.decode(String.self, forKey: .lockStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bags = try container.decode([Bags].self, forKey: .bags)
+
+ } 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(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(isBagLocked, forKey: .isBagLocked)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(originalFilter, forKey: .originalFilter)
+
+
+
+
+ try? container.encodeIfPresent(isShipmentLocked, forKey: .isShipmentLocked)
+
+
+
+
+ try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
+
+
+
+
+ try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
+
+
+
+
+ try? container.encodeIfPresent(bags, forKey: .bags)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: CheckResponse
+ Used By: Order
+ */
+
+ class CheckResponse: Codable {
+
+
+ public var shipmentId: String?
+
+ public var status: String?
+
+ public var isBagLocked: Bool?
+
+ public var affiliateId: String?
+
+ public var originalFilter: OriginalFilter?
+
+ public var isShipmentLocked: Bool?
+
+ public var lockStatus: String?
+
+ public var affiliateShipmentId: String?
+
+ public var bags: [Bags]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipmentId = "shipment_id"
+
+ case status = "status"
+
+ case isBagLocked = "is_bag_locked"
+
+ case affiliateId = "affiliate_id"
+
+ case originalFilter = "original_filter"
+
+ case isShipmentLocked = "is_shipment_locked"
+
+ case lockStatus = "lock_status"
+
+ case affiliateShipmentId = "affiliate_shipment_id"
+
+ case bags = "bags"
+
+ }
+
+ public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, bags: [Bags]? = nil, isBagLocked: Bool? = nil, isShipmentLocked: Bool? = nil, lockStatus: String? = nil, originalFilter: OriginalFilter? = nil, shipmentId: String? = nil, status: String? = nil) {
+
+ self.shipmentId = shipmentId
+
+ self.status = status
+
+ self.isBagLocked = isBagLocked
+
+ self.affiliateId = affiliateId
+
+ self.originalFilter = originalFilter
+
+ self.isShipmentLocked = isShipmentLocked
+
+ self.lockStatus = lockStatus
+
+ self.affiliateShipmentId = affiliateShipmentId
+
+ self.bags = bags
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ isBagLocked = try container.decode(Bool.self, forKey: .isBagLocked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateId = try container.decode(String.self, forKey: .affiliateId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ originalFilter = try container.decode(OriginalFilter.self, forKey: .originalFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isShipmentLocked = try container.decode(Bool.self, forKey: .isShipmentLocked)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lockStatus = try container.decode(String.self, forKey: .lockStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bags = try container.decode([Bags].self, forKey: .bags)
+
+ } 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(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(isBagLocked, forKey: .isBagLocked)
+
+
+
+
+ try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
+
+
+
+
+ try? container.encodeIfPresent(originalFilter, forKey: .originalFilter)
+
+
+
+
+ try? container.encodeIfPresent(isShipmentLocked, forKey: .isShipmentLocked)
+
+
+
+
+ try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
+
+
+
+
+ try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
+
+
+
+
+ try? container.encodeIfPresent(bags, forKey: .bags)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/CheckResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CheckResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index a38f6899d4..0000000000
--- a/Sources/code/platform/Models/Order/CheckResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CheckResponseSchema
- Used By: Order
- */
-
- class CheckResponseSchema: Codable {
-
-
- public var shipmentId: String?
-
- public var status: String?
-
- public var isBagLocked: Bool?
-
- public var affiliateId: String?
-
- public var originalFilter: OriginalFilter?
-
- public var isShipmentLocked: Bool?
-
- public var lockStatus: String?
-
- public var affiliateShipmentId: String?
-
- public var bags: [Bags]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case status = "status"
-
- case isBagLocked = "is_bag_locked"
-
- case affiliateId = "affiliate_id"
-
- case originalFilter = "original_filter"
-
- case isShipmentLocked = "is_shipment_locked"
-
- case lockStatus = "lock_status"
-
- case affiliateShipmentId = "affiliate_shipment_id"
-
- case bags = "bags"
-
- }
-
- public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, bags: [Bags]? = nil, isBagLocked: Bool? = nil, isShipmentLocked: Bool? = nil, lockStatus: String? = nil, originalFilter: OriginalFilter? = nil, shipmentId: String? = nil, status: String? = nil) {
-
- self.shipmentId = shipmentId
-
- self.status = status
-
- self.isBagLocked = isBagLocked
-
- self.affiliateId = affiliateId
-
- self.originalFilter = originalFilter
-
- self.isShipmentLocked = isShipmentLocked
-
- self.lockStatus = lockStatus
-
- self.affiliateShipmentId = affiliateShipmentId
-
- self.bags = bags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isBagLocked = try container.decode(Bool.self, forKey: .isBagLocked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- originalFilter = try container.decode(OriginalFilter.self, forKey: .originalFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isShipmentLocked = try container.decode(Bool.self, forKey: .isShipmentLocked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lockStatus = try container.decode(String.self, forKey: .lockStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bags = try container.decode([Bags].self, forKey: .bags)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(isBagLocked, forKey: .isBagLocked)
-
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(originalFilter, forKey: .originalFilter)
-
-
-
-
- try? container.encodeIfPresent(isShipmentLocked, forKey: .isShipmentLocked)
-
-
-
-
- try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
-
-
-
-
- try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
-
-
-
-
- try? container.encodeIfPresent(bags, forKey: .bags)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CheckResponseSchema
- Used By: Order
- */
-
- class CheckResponseSchema: Codable {
-
-
- public var shipmentId: String?
-
- public var status: String?
-
- public var isBagLocked: Bool?
-
- public var affiliateId: String?
-
- public var originalFilter: OriginalFilter?
-
- public var isShipmentLocked: Bool?
-
- public var lockStatus: String?
-
- public var affiliateShipmentId: String?
-
- public var bags: [Bags]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case status = "status"
-
- case isBagLocked = "is_bag_locked"
-
- case affiliateId = "affiliate_id"
-
- case originalFilter = "original_filter"
-
- case isShipmentLocked = "is_shipment_locked"
-
- case lockStatus = "lock_status"
-
- case affiliateShipmentId = "affiliate_shipment_id"
-
- case bags = "bags"
-
- }
-
- public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, bags: [Bags]? = nil, isBagLocked: Bool? = nil, isShipmentLocked: Bool? = nil, lockStatus: String? = nil, originalFilter: OriginalFilter? = nil, shipmentId: String? = nil, status: String? = nil) {
-
- self.shipmentId = shipmentId
-
- self.status = status
-
- self.isBagLocked = isBagLocked
-
- self.affiliateId = affiliateId
-
- self.originalFilter = originalFilter
-
- self.isShipmentLocked = isShipmentLocked
-
- self.lockStatus = lockStatus
-
- self.affiliateShipmentId = affiliateShipmentId
-
- self.bags = bags
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- isBagLocked = try container.decode(Bool.self, forKey: .isBagLocked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- originalFilter = try container.decode(OriginalFilter.self, forKey: .originalFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isShipmentLocked = try container.decode(Bool.self, forKey: .isShipmentLocked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lockStatus = try container.decode(String.self, forKey: .lockStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bags = try container.decode([Bags].self, forKey: .bags)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(isBagLocked, forKey: .isBagLocked)
-
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(originalFilter, forKey: .originalFilter)
-
-
-
-
- try? container.encodeIfPresent(isShipmentLocked, forKey: .isShipmentLocked)
-
-
-
-
- try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
-
-
-
-
- try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
-
-
-
-
- try? container.encodeIfPresent(bags, forKey: .bags)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CommonErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CommonErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..11fc07c496
--- /dev/null
+++ b/Sources/code/platform/Models/Order/CommonErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: CommonErrorResponse
+ Used By: Order
+ */
+
+ class CommonErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: CommonErrorResponse
+ Used By: Order
+ */
+
+ class CommonErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/CommonErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CommonErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 3e9176b0c7..0000000000
--- a/Sources/code/platform/Models/Order/CommonErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CommonErrorResponseSchema
- Used By: Order
- */
-
- class CommonErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CommonErrorResponseSchema
- Used By: Order
- */
-
- class CommonErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ConditionsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ConditionsOrderPlatformModel.swift
deleted file mode 100644
index 1d332bf18b..0000000000
--- a/Sources/code/platform/Models/Order/ConditionsOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: Conditions
- Used By: Order
- */
-
- class Conditions: Codable {
-
-
- public var department: String?
-
- public var l3: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case department = "department"
-
- case l3 = "l3"
-
- }
-
- public init(department: String? = nil, l3: String? = nil) {
-
- self.department = department
-
- self.l3 = l3
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- department = try container.decode(String.self, forKey: .department)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l3 = try container.decode(String.self, forKey: .l3)
-
- } 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(department, forKey: .department)
-
-
-
-
- try? container.encodeIfPresent(l3, forKey: .l3)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: Conditions
- Used By: Order
- */
-
- class Conditions: Codable {
-
-
- public var department: String?
-
- public var l3: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case department = "department"
-
- case l3 = "l3"
-
- }
-
- public init(department: String? = nil, l3: String? = nil) {
-
- self.department = department
-
- self.l3 = l3
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- department = try container.decode(String.self, forKey: .department)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- l3 = try container.decode(String.self, forKey: .l3)
-
- } 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(department, forKey: .department)
-
-
-
-
- try? container.encodeIfPresent(l3, forKey: .l3)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ConfigUpdatedResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ConfigUpdatedResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..547324801e
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ConfigUpdatedResponseOrderPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ConfigUpdatedResponse
+ Used By: Order
+ */
+
+ class ConfigUpdatedResponse: Codable {
+
+
+ public var data: [ConfigData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [ConfigData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([ConfigData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ConfigUpdatedResponse
+ Used By: Order
+ */
+
+ class ConfigUpdatedResponse: Codable {
+
+
+ public var data: [ConfigData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [ConfigData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([ConfigData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ConfigUpdatedResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ConfigUpdatedResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 167940efc3..0000000000
--- a/Sources/code/platform/Models/Order/ConfigUpdatedResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ConfigUpdatedResponseSchema
- Used By: Order
- */
-
- class ConfigUpdatedResponseSchema: Codable {
-
-
- public var data: [ConfigData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [ConfigData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([ConfigData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ConfigUpdatedResponseSchema
- Used By: Order
- */
-
- class ConfigUpdatedResponseSchema: Codable {
-
-
- public var data: [ConfigData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [ConfigData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([ConfigData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..fcc4061248
--- /dev/null
+++ b/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: CourierPartnerTrackingResponse
+ Used By: Order
+ */
+
+ class CourierPartnerTrackingResponse: Codable {
+
+
+ public var items: [CourierPartnerTrackingDetails]?
+
+ public var page: PageDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierPartnerTrackingDetails]? = nil, page: PageDetails? = nil) {
+
+ 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([CourierPartnerTrackingDetails].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(PageDetails.self, forKey: .page)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: CourierPartnerTrackingResponse
+ Used By: Order
+ */
+
+ class CourierPartnerTrackingResponse: Codable {
+
+
+ public var items: [CourierPartnerTrackingDetails]?
+
+ public var page: PageDetails?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierPartnerTrackingDetails]? = nil, page: PageDetails? = nil) {
+
+ 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([CourierPartnerTrackingDetails].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(PageDetails.self, forKey: .page)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 7689ba2785..0000000000
--- a/Sources/code/platform/Models/Order/CourierPartnerTrackingResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CourierPartnerTrackingResponseSchema
- Used By: Order
- */
-
- class CourierPartnerTrackingResponseSchema: Codable {
-
-
- public var items: [CourierPartnerTrackingDetails]?
-
- public var page: PageDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierPartnerTrackingDetails]? = nil, page: PageDetails? = nil) {
-
- 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([CourierPartnerTrackingDetails].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(PageDetails.self, forKey: .page)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CourierPartnerTrackingResponseSchema
- Used By: Order
- */
-
- class CourierPartnerTrackingResponseSchema: Codable {
-
-
- public var items: [CourierPartnerTrackingDetails]?
-
- public var page: PageDetails?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierPartnerTrackingDetails]? = nil, page: PageDetails? = nil) {
-
- 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([CourierPartnerTrackingDetails].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(PageDetails.self, forKey: .page)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateChannelConfigDataOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateChannelConfigDataOrderPlatformModel.swift
deleted file mode 100644
index da5afb36d6..0000000000
--- a/Sources/code/platform/Models/Order/CreateChannelConfigDataOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateChannelConfigData
- Used By: Order
- */
-
- class CreateChannelConfigData: Codable {
-
-
- public var configData: CreateChannelConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case configData = "config_data"
-
- }
-
- public init(configData: CreateChannelConfig? = nil) {
-
- self.configData = configData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- configData = try container.decode(CreateChannelConfig.self, forKey: .configData)
-
- } 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(configData, forKey: .configData)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateChannelConfigData
- Used By: Order
- */
-
- class CreateChannelConfigData: Codable {
-
-
- public var configData: CreateChannelConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case configData = "config_data"
-
- }
-
- public init(configData: CreateChannelConfig? = nil) {
-
- self.configData = configData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- configData = try container.decode(CreateChannelConfig.self, forKey: .configData)
-
- } 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(configData, forKey: .configData)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateChannelConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateChannelConfigOrderPlatformModel.swift
deleted file mode 100644
index ac653d755b..0000000000
--- a/Sources/code/platform/Models/Order/CreateChannelConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateChannelConfig
- Used By: Order
- */
-
- class CreateChannelConfig: Codable {
-
-
- public var dpConfiguration: DPConfiguration?
-
- public var shipmentAssignment: String?
-
- public var locationReassignment: Bool?
-
- public var logoUrl: [String: Any]?
-
- public var paymentInfo: CreateChannelPaymentInfo?
-
- public var lockStates: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dpConfiguration = "dp_configuration"
-
- case shipmentAssignment = "shipment_assignment"
-
- case locationReassignment = "location_reassignment"
-
- case logoUrl = "logo_url"
-
- case paymentInfo = "payment_info"
-
- case lockStates = "lock_states"
-
- }
-
- public init(dpConfiguration: DPConfiguration? = nil, locationReassignment: Bool? = nil, lockStates: [String]? = nil, logoUrl: [String: Any]? = nil, paymentInfo: CreateChannelPaymentInfo? = nil, shipmentAssignment: String? = nil) {
-
- self.dpConfiguration = dpConfiguration
-
- self.shipmentAssignment = shipmentAssignment
-
- self.locationReassignment = locationReassignment
-
- self.logoUrl = logoUrl
-
- self.paymentInfo = paymentInfo
-
- self.lockStates = lockStates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dpConfiguration = try container.decode(DPConfiguration.self, forKey: .dpConfiguration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentAssignment = try container.decode(String.self, forKey: .shipmentAssignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logoUrl = try container.decode([String: Any].self, forKey: .logoUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentInfo = try container.decode(CreateChannelPaymentInfo.self, forKey: .paymentInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lockStates = try container.decode([String].self, forKey: .lockStates)
-
- } 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(dpConfiguration, forKey: .dpConfiguration)
-
-
-
-
- try? container.encodeIfPresent(shipmentAssignment, forKey: .shipmentAssignment)
-
-
-
-
- try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentInfo, forKey: .paymentInfo)
-
-
-
-
- try? container.encodeIfPresent(lockStates, forKey: .lockStates)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateChannelConfig
- Used By: Order
- */
-
- class CreateChannelConfig: Codable {
-
-
- public var dpConfiguration: DPConfiguration?
-
- public var shipmentAssignment: String?
-
- public var locationReassignment: Bool?
-
- public var logoUrl: [String: Any]?
-
- public var paymentInfo: CreateChannelPaymentInfo?
-
- public var lockStates: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dpConfiguration = "dp_configuration"
-
- case shipmentAssignment = "shipment_assignment"
-
- case locationReassignment = "location_reassignment"
-
- case logoUrl = "logo_url"
-
- case paymentInfo = "payment_info"
-
- case lockStates = "lock_states"
-
- }
-
- public init(dpConfiguration: DPConfiguration? = nil, locationReassignment: Bool? = nil, lockStates: [String]? = nil, logoUrl: [String: Any]? = nil, paymentInfo: CreateChannelPaymentInfo? = nil, shipmentAssignment: String? = nil) {
-
- self.dpConfiguration = dpConfiguration
-
- self.shipmentAssignment = shipmentAssignment
-
- self.locationReassignment = locationReassignment
-
- self.logoUrl = logoUrl
-
- self.paymentInfo = paymentInfo
-
- self.lockStates = lockStates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dpConfiguration = try container.decode(DPConfiguration.self, forKey: .dpConfiguration)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentAssignment = try container.decode(String.self, forKey: .shipmentAssignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logoUrl = try container.decode([String: Any].self, forKey: .logoUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentInfo = try container.decode(CreateChannelPaymentInfo.self, forKey: .paymentInfo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lockStates = try container.decode([String].self, forKey: .lockStates)
-
- } 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(dpConfiguration, forKey: .dpConfiguration)
-
-
-
-
- try? container.encodeIfPresent(shipmentAssignment, forKey: .shipmentAssignment)
-
-
-
-
- try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentInfo, forKey: .paymentInfo)
-
-
-
-
- try? container.encodeIfPresent(lockStates, forKey: .lockStates)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateChannelConfigResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateChannelConfigResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index ef8f69950a..0000000000
--- a/Sources/code/platform/Models/Order/CreateChannelConfigResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateChannelConfigResponseSchema
- Used By: Order
- */
-
- class CreateChannelConfigResponseSchema: Codable {
-
-
- public var isInserted: Bool?
-
- public var isUpserted: Bool?
-
- public var acknowledged: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isInserted = "is_inserted"
-
- case isUpserted = "is_upserted"
-
- case acknowledged = "acknowledged"
-
- }
-
- public init(acknowledged: Bool? = nil, isInserted: Bool? = nil, isUpserted: Bool? = nil) {
-
- self.isInserted = isInserted
-
- self.isUpserted = isUpserted
-
- self.acknowledged = acknowledged
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isInserted = try container.decode(Bool.self, forKey: .isInserted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isUpserted = try container.decode(Bool.self, forKey: .isUpserted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- acknowledged = try container.decode(Bool.self, forKey: .acknowledged)
-
- } 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(isInserted, forKey: .isInserted)
-
-
-
-
- try? container.encodeIfPresent(isUpserted, forKey: .isUpserted)
-
-
-
-
- try? container.encodeIfPresent(acknowledged, forKey: .acknowledged)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateChannelConfigResponseSchema
- Used By: Order
- */
-
- class CreateChannelConfigResponseSchema: Codable {
-
-
- public var isInserted: Bool?
-
- public var isUpserted: Bool?
-
- public var acknowledged: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isInserted = "is_inserted"
-
- case isUpserted = "is_upserted"
-
- case acknowledged = "acknowledged"
-
- }
-
- public init(acknowledged: Bool? = nil, isInserted: Bool? = nil, isUpserted: Bool? = nil) {
-
- self.isInserted = isInserted
-
- self.isUpserted = isUpserted
-
- self.acknowledged = acknowledged
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isInserted = try container.decode(Bool.self, forKey: .isInserted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isUpserted = try container.decode(Bool.self, forKey: .isUpserted)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- acknowledged = try container.decode(Bool.self, forKey: .acknowledged)
-
- } 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(isInserted, forKey: .isInserted)
-
-
-
-
- try? container.encodeIfPresent(isUpserted, forKey: .isUpserted)
-
-
-
-
- try? container.encodeIfPresent(acknowledged, forKey: .acknowledged)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateChannelConifgErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateChannelConifgErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 89d2a481e1..0000000000
--- a/Sources/code/platform/Models/Order/CreateChannelConifgErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateChannelConifgErrorResponseSchema
- Used By: Order
- */
-
- class CreateChannelConifgErrorResponseSchema: Codable {
-
-
- public var error: String?
-
- public var requestId: String?
-
- public var status: Int
-
- public var info: [String: Any]?
-
- public var stackTrace: String?
-
- public var code: String?
-
- public var meta: String?
-
- public var message: String
-
- public var exception: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case requestId = "request_id"
-
- case status = "status"
-
- case info = "info"
-
- case stackTrace = "stack_trace"
-
- case code = "code"
-
- case meta = "meta"
-
- case message = "message"
-
- case exception = "exception"
-
- }
-
- public init(code: String? = nil, error: String? = nil, exception: String? = nil, info: [String: Any]? = nil, message: String, meta: String? = nil, requestId: String? = nil, stackTrace: String? = nil, status: Int) {
-
- self.error = error
-
- self.requestId = requestId
-
- self.status = status
-
- self.info = info
-
- self.stackTrace = stackTrace
-
- self.code = code
-
- self.meta = meta
-
- self.message = message
-
- self.exception = exception
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(Int.self, forKey: .status)
-
-
-
-
- do {
- info = try container.decode([String: Any].self, forKey: .info)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(String.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } 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(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(info, forKey: .info)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateChannelConifgErrorResponseSchema
- Used By: Order
- */
-
- class CreateChannelConifgErrorResponseSchema: Codable {
-
-
- public var error: String?
-
- public var requestId: String?
-
- public var status: Int
-
- public var info: [String: Any]?
-
- public var stackTrace: String?
-
- public var code: String?
-
- public var meta: String?
-
- public var message: String
-
- public var exception: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case requestId = "request_id"
-
- case status = "status"
-
- case info = "info"
-
- case stackTrace = "stack_trace"
-
- case code = "code"
-
- case meta = "meta"
-
- case message = "message"
-
- case exception = "exception"
-
- }
-
- public init(code: String? = nil, error: String? = nil, exception: String? = nil, info: [String: Any]? = nil, message: String, meta: String? = nil, requestId: String? = nil, stackTrace: String? = nil, status: Int) {
-
- self.error = error
-
- self.requestId = requestId
-
- self.status = status
-
- self.info = info
-
- self.stackTrace = stackTrace
-
- self.code = code
-
- self.meta = meta
-
- self.message = message
-
- self.exception = exception
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- requestId = try container.decode(String.self, forKey: .requestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(Int.self, forKey: .status)
-
-
-
-
- do {
- info = try container.decode([String: Any].self, forKey: .info)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- meta = try container.decode(String.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } 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(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(info, forKey: .info)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateChannelPaymentInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateChannelPaymentInfoOrderPlatformModel.swift
deleted file mode 100644
index bcb51e7069..0000000000
--- a/Sources/code/platform/Models/Order/CreateChannelPaymentInfoOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateChannelPaymentInfo
- Used By: Order
- */
-
- class CreateChannelPaymentInfo: Codable {
-
-
- public var source: String?
-
- public var paymentMethods: [PaymentMethods]?
-
- public var modeOfPayment: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case source = "source"
-
- case paymentMethods = "payment_methods"
-
- case modeOfPayment = "mode_of_payment"
-
- }
-
- public init(modeOfPayment: String? = nil, paymentMethods: [PaymentMethods]? = nil, source: String? = nil) {
-
- self.source = source
-
- self.paymentMethods = paymentMethods
-
- self.modeOfPayment = modeOfPayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMethods = try container.decode([PaymentMethods].self, forKey: .paymentMethods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modeOfPayment = try container.decode(String.self, forKey: .modeOfPayment)
-
- } 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(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(modeOfPayment, forKey: .modeOfPayment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateChannelPaymentInfo
- Used By: Order
- */
-
- class CreateChannelPaymentInfo: Codable {
-
-
- public var source: String?
-
- public var paymentMethods: [PaymentMethods]?
-
- public var modeOfPayment: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case source = "source"
-
- case paymentMethods = "payment_methods"
-
- case modeOfPayment = "mode_of_payment"
-
- }
-
- public init(modeOfPayment: String? = nil, paymentMethods: [PaymentMethods]? = nil, source: String? = nil) {
-
- self.source = source
-
- self.paymentMethods = paymentMethods
-
- self.modeOfPayment = modeOfPayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMethods = try container.decode([PaymentMethods].self, forKey: .paymentMethods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modeOfPayment = try container.decode(String.self, forKey: .modeOfPayment)
-
- } 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(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(modeOfPayment, forKey: .modeOfPayment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreateOrderAPIOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateOrderAPIOrderPlatformModel.swift
index 10e7c48335..a98dd310e0 100644
--- a/Sources/code/platform/Models/Order/CreateOrderAPIOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/CreateOrderAPIOrderPlatformModel.swift
@@ -40,10 +40,6 @@ public extension PlatformClient.Order {
public var orderPlatform: String?
- public var status: String?
-
- public var systemMessages: [SystemMessages]?
-
public var orderType: String?
public var fyndOrderId: String?
@@ -83,10 +79,6 @@ public extension PlatformClient.Order {
case orderPlatform = "order_platform"
- case status = "status"
-
- case systemMessages = "system_messages"
-
case orderType = "order_type"
case fyndOrderId = "fynd_order_id"
@@ -97,7 +89,7 @@ public extension PlatformClient.Order {
}
- public init(applicationId: String? = nil, billingInfo: ShippingInfo, charges: [Charge]? = nil, config: CreateOrderConfig, currencyInfo: [String: Any]? = nil, externalCreationDate: String? = nil, externalOrderId: String? = nil, externalShipmentId: String? = nil, fyndOrderId: String? = nil, meta: [String: Any]? = nil, orderingStoreId: Int? = nil, orderPlatform: String? = nil, orderType: String? = nil, paymentInfo: PaymentInfo, shipments: [Shipment], shippingInfo: ShippingInfo, status: String? = nil, systemMessages: [SystemMessages]? = nil, taxInfo: TaxInfo? = nil, userInfo: UserInfo? = nil) {
+ public init(applicationId: String? = nil, billingInfo: ShippingInfo, charges: [Charge]? = nil, config: CreateOrderConfig, currencyInfo: [String: Any]? = nil, externalCreationDate: String? = nil, externalOrderId: String? = nil, externalShipmentId: String? = nil, fyndOrderId: String? = nil, meta: [String: Any]? = nil, orderingStoreId: Int? = nil, orderPlatform: String? = nil, orderType: String? = nil, paymentInfo: PaymentInfo, shipments: [Shipment], shippingInfo: ShippingInfo, taxInfo: TaxInfo? = nil, userInfo: UserInfo? = nil) {
self.shipments = shipments
@@ -127,10 +119,6 @@ public extension PlatformClient.Order {
self.orderPlatform = orderPlatform
- self.status = status
-
- self.systemMessages = systemMessages
-
self.orderType = orderType
self.fyndOrderId = fyndOrderId
@@ -278,30 +266,6 @@ public extension PlatformClient.Order {
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- systemMessages = try container.decode([SystemMessages].self, forKey: .systemMessages)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
orderType = try container.decode(String.self, forKey: .orderType)
@@ -426,16 +390,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(systemMessages, forKey: .systemMessages)
-
-
-
-
try? container.encodeIfPresent(orderType, forKey: .orderType)
@@ -498,10 +452,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var orderPlatform: String?
- public var status: String?
-
- public var systemMessages: [SystemMessages]?
-
public var orderType: String?
public var fyndOrderId: String?
@@ -541,10 +491,6 @@ public extension PlatformClient.ApplicationClient.Order {
case orderPlatform = "order_platform"
- case status = "status"
-
- case systemMessages = "system_messages"
-
case orderType = "order_type"
case fyndOrderId = "fynd_order_id"
@@ -555,7 +501,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(applicationId: String? = nil, billingInfo: ShippingInfo, charges: [Charge]? = nil, config: CreateOrderConfig, currencyInfo: [String: Any]? = nil, externalCreationDate: String? = nil, externalOrderId: String? = nil, externalShipmentId: String? = nil, fyndOrderId: String? = nil, meta: [String: Any]? = nil, orderingStoreId: Int? = nil, orderPlatform: String? = nil, orderType: String? = nil, paymentInfo: PaymentInfo, shipments: [Shipment], shippingInfo: ShippingInfo, status: String? = nil, systemMessages: [SystemMessages]? = nil, taxInfo: TaxInfo? = nil, userInfo: UserInfo? = nil) {
+ public init(applicationId: String? = nil, billingInfo: ShippingInfo, charges: [Charge]? = nil, config: CreateOrderConfig, currencyInfo: [String: Any]? = nil, externalCreationDate: String? = nil, externalOrderId: String? = nil, externalShipmentId: String? = nil, fyndOrderId: String? = nil, meta: [String: Any]? = nil, orderingStoreId: Int? = nil, orderPlatform: String? = nil, orderType: String? = nil, paymentInfo: PaymentInfo, shipments: [Shipment], shippingInfo: ShippingInfo, taxInfo: TaxInfo? = nil, userInfo: UserInfo? = nil) {
self.shipments = shipments
@@ -585,10 +531,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.orderPlatform = orderPlatform
- self.status = status
-
- self.systemMessages = systemMessages
-
self.orderType = orderType
self.fyndOrderId = fyndOrderId
@@ -736,30 +678,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- systemMessages = try container.decode([SystemMessages].self, forKey: .systemMessages)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
orderType = try container.decode(String.self, forKey: .orderType)
@@ -884,16 +802,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(systemMessages, forKey: .systemMessages)
-
-
-
-
try? container.encodeIfPresent(orderType, forKey: .orderType)
diff --git a/Sources/code/platform/Models/Order/CreateOrderConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateOrderConfigOrderPlatformModel.swift
index 2ef9269b19..9be5a3acc1 100644
--- a/Sources/code/platform/Models/Order/CreateOrderConfigOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/CreateOrderConfigOrderPlatformModel.swift
@@ -14,47 +14,41 @@ public extension PlatformClient.Order {
public var dpConfiguration: DPConfiguration
+ public var integrationType: String?
+
public var locationReassignment: Bool?
public var payment: PaymentConfig?
public var optimalShipmentCreation: Bool?
- public var lockStateMessages: [LockStateMessage]?
-
- public var integrationType: String?
-
public enum CodingKeys: String, CodingKey {
case dpConfiguration = "dp_configuration"
+ case integrationType = "integration_type"
+
case locationReassignment = "location_reassignment"
case payment = "payment"
case optimalShipmentCreation = "optimal_shipment_creation"
- case lockStateMessages = "lock_state_messages"
-
- case integrationType = "integration_type"
-
}
- public init(dpConfiguration: DPConfiguration, integrationType: String? = nil, locationReassignment: Bool? = nil, lockStateMessages: [LockStateMessage]? = nil, optimalShipmentCreation: Bool? = nil, payment: PaymentConfig? = nil) {
+ public init(dpConfiguration: DPConfiguration, integrationType: String? = nil, locationReassignment: Bool? = nil, optimalShipmentCreation: Bool? = nil, payment: PaymentConfig? = nil) {
self.dpConfiguration = dpConfiguration
+ self.integrationType = integrationType
+
self.locationReassignment = locationReassignment
self.payment = payment
self.optimalShipmentCreation = optimalShipmentCreation
- self.lockStateMessages = lockStateMessages
-
- self.integrationType = integrationType
-
}
required public init(from decoder: Decoder) throws {
@@ -67,19 +61,7 @@ public extension PlatformClient.Order {
do {
- locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payment = try container.decode(PaymentConfig.self, forKey: .payment)
+ integrationType = try container.decode(String.self, forKey: .integrationType)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +73,7 @@ public extension PlatformClient.Order {
do {
- optimalShipmentCreation = try container.decode(Bool.self, forKey: .optimalShipmentCreation)
+ locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -103,7 +85,7 @@ public extension PlatformClient.Order {
do {
- lockStateMessages = try container.decode([LockStateMessage].self, forKey: .lockStateMessages)
+ payment = try container.decode(PaymentConfig.self, forKey: .payment)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -115,7 +97,7 @@ public extension PlatformClient.Order {
do {
- integrationType = try container.decode(String.self, forKey: .integrationType)
+ optimalShipmentCreation = try container.decode(Bool.self, forKey: .optimalShipmentCreation)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -137,27 +119,22 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
- try? container.encodeIfPresent(optimalShipmentCreation, forKey: .optimalShipmentCreation)
+ try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
- try? container.encodeIfPresent(lockStateMessages, forKey: .lockStateMessages)
+ try? container.encodeIfPresent(payment, forKey: .payment)
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+ try? container.encodeIfPresent(optimalShipmentCreation, forKey: .optimalShipmentCreation)
}
@@ -178,47 +155,41 @@ public extension PlatformClient.ApplicationClient.Order {
public var dpConfiguration: DPConfiguration
+ public var integrationType: String?
+
public var locationReassignment: Bool?
public var payment: PaymentConfig?
public var optimalShipmentCreation: Bool?
- public var lockStateMessages: [LockStateMessage]?
-
- public var integrationType: String?
-
public enum CodingKeys: String, CodingKey {
case dpConfiguration = "dp_configuration"
+ case integrationType = "integration_type"
+
case locationReassignment = "location_reassignment"
case payment = "payment"
case optimalShipmentCreation = "optimal_shipment_creation"
- case lockStateMessages = "lock_state_messages"
-
- case integrationType = "integration_type"
-
}
- public init(dpConfiguration: DPConfiguration, integrationType: String? = nil, locationReassignment: Bool? = nil, lockStateMessages: [LockStateMessage]? = nil, optimalShipmentCreation: Bool? = nil, payment: PaymentConfig? = nil) {
+ public init(dpConfiguration: DPConfiguration, integrationType: String? = nil, locationReassignment: Bool? = nil, optimalShipmentCreation: Bool? = nil, payment: PaymentConfig? = nil) {
self.dpConfiguration = dpConfiguration
+ self.integrationType = integrationType
+
self.locationReassignment = locationReassignment
self.payment = payment
self.optimalShipmentCreation = optimalShipmentCreation
- self.lockStateMessages = lockStateMessages
-
- self.integrationType = integrationType
-
}
required public init(from decoder: Decoder) throws {
@@ -231,19 +202,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- payment = try container.decode(PaymentConfig.self, forKey: .payment)
+ integrationType = try container.decode(String.self, forKey: .integrationType)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -255,7 +214,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- optimalShipmentCreation = try container.decode(Bool.self, forKey: .optimalShipmentCreation)
+ locationReassignment = try container.decode(Bool.self, forKey: .locationReassignment)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -267,7 +226,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- lockStateMessages = try container.decode([LockStateMessage].self, forKey: .lockStateMessages)
+ payment = try container.decode(PaymentConfig.self, forKey: .payment)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -279,7 +238,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- integrationType = try container.decode(String.self, forKey: .integrationType)
+ optimalShipmentCreation = try container.decode(Bool.self, forKey: .optimalShipmentCreation)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -301,27 +260,22 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
- try? container.encodeIfPresent(optimalShipmentCreation, forKey: .optimalShipmentCreation)
+ try? container.encodeIfPresent(locationReassignment, forKey: .locationReassignment)
- try? container.encodeIfPresent(lockStateMessages, forKey: .lockStateMessages)
+ try? container.encodeIfPresent(payment, forKey: .payment)
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+ try? container.encodeIfPresent(optimalShipmentCreation, forKey: .optimalShipmentCreation)
}
diff --git a/Sources/code/platform/Models/Order/CreateOrderResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateOrderResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..1822c3f303
--- /dev/null
+++ b/Sources/code/platform/Models/Order/CreateOrderResponseOrderPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: CreateOrderResponse
+ Used By: Order
+ */
+
+ class CreateOrderResponse: Codable {
+
+
+ public var fyndOrderId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fyndOrderId = "fynd_order_id"
+
+ }
+
+ public init(fyndOrderId: String) {
+
+ self.fyndOrderId = fyndOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fyndOrderId = try container.decode(String.self, forKey: .fyndOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fyndOrderId, forKey: .fyndOrderId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: CreateOrderResponse
+ Used By: Order
+ */
+
+ class CreateOrderResponse: Codable {
+
+
+ public var fyndOrderId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fyndOrderId = "fynd_order_id"
+
+ }
+
+ public init(fyndOrderId: String) {
+
+ self.fyndOrderId = fyndOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fyndOrderId = try container.decode(String.self, forKey: .fyndOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fyndOrderId, forKey: .fyndOrderId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/CreateOrderResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreateOrderResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index cead69f9cc..0000000000
--- a/Sources/code/platform/Models/Order/CreateOrderResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreateOrderResponseSchema
- Used By: Order
- */
-
- class CreateOrderResponseSchema: Codable {
-
-
- public var fyndOrderId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fyndOrderId = "fynd_order_id"
-
- }
-
- public init(fyndOrderId: String) {
-
- self.fyndOrderId = fyndOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fyndOrderId = try container.decode(String.self, forKey: .fyndOrderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fyndOrderId, forKey: .fyndOrderId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreateOrderResponseSchema
- Used By: Order
- */
-
- class CreateOrderResponseSchema: Codable {
-
-
- public var fyndOrderId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fyndOrderId = "fynd_order_id"
-
- }
-
- public init(fyndOrderId: String) {
-
- self.fyndOrderId = fyndOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fyndOrderId = try container.decode(String.self, forKey: .fyndOrderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fyndOrderId, forKey: .fyndOrderId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CreditBalanceInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CreditBalanceInfoOrderPlatformModel.swift
deleted file mode 100644
index fe999bfae6..0000000000
--- a/Sources/code/platform/Models/Order/CreditBalanceInfoOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CreditBalanceInfo
- Used By: Order
- */
-
- class CreditBalanceInfo: Codable {
-
-
- public var totalCreditedBalance: String?
-
- public var reason: String?
-
- public var customerMobileNumber: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCreditedBalance = "total_credited_balance"
-
- case reason = "reason"
-
- case customerMobileNumber = "customer_mobile_number"
-
- }
-
- public init(customerMobileNumber: String? = nil, reason: String? = nil, totalCreditedBalance: String? = nil) {
-
- self.totalCreditedBalance = totalCreditedBalance
-
- self.reason = reason
-
- self.customerMobileNumber = customerMobileNumber
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCreditedBalance = try container.decode(String.self, forKey: .totalCreditedBalance)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
- } 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(totalCreditedBalance, forKey: .totalCreditedBalance)
-
-
-
-
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
-
- try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CreditBalanceInfo
- Used By: Order
- */
-
- class CreditBalanceInfo: Codable {
-
-
- public var totalCreditedBalance: String?
-
- public var reason: String?
-
- public var customerMobileNumber: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCreditedBalance = "total_credited_balance"
-
- case reason = "reason"
-
- case customerMobileNumber = "customer_mobile_number"
-
- }
-
- public init(customerMobileNumber: String? = nil, reason: String? = nil, totalCreditedBalance: String? = nil) {
-
- self.totalCreditedBalance = totalCreditedBalance
-
- self.reason = reason
-
- self.customerMobileNumber = customerMobileNumber
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCreditedBalance = try container.decode(String.self, forKey: .totalCreditedBalance)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- reason = try container.decode(String.self, forKey: .reason)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
- } 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(totalCreditedBalance, forKey: .totalCreditedBalance)
-
-
-
-
- try? container.encodeIfPresent(reason, forKey: .reason)
-
-
-
-
- try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/CurrencySchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/CurrencySchemaOrderPlatformModel.swift
deleted file mode 100644
index 6463338e63..0000000000
--- a/Sources/code/platform/Models/Order/CurrencySchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: CurrencySchema
- Used By: Order
- */
-
- class CurrencySchema: Codable {
-
-
- public var currencyCode: String?
-
- public var currencySymbol: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case currencySymbol = "currency_symbol"
-
- }
-
- public init(currencyCode: String? = nil, currencySymbol: String? = nil) {
-
- self.currencyCode = currencyCode
-
- self.currencySymbol = currencySymbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: CurrencySchema
- Used By: Order
- */
-
- class CurrencySchema: Codable {
-
-
- public var currencyCode: String?
-
- public var currencySymbol: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case currencyCode = "currency_code"
-
- case currencySymbol = "currency_symbol"
-
- }
-
- public init(currencyCode: String? = nil, currencySymbol: String? = nil) {
-
- self.currencyCode = currencyCode
-
- self.currencySymbol = currencySymbol
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(currencyCode, forKey: .currencyCode)
-
-
-
-
- try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/DataUpdatesOrderPlatformModel.swift b/Sources/code/platform/Models/Order/DataUpdatesOrderPlatformModel.swift
index ec310adaec..c6afdea1b5 100644
--- a/Sources/code/platform/Models/Order/DataUpdatesOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/DataUpdatesOrderPlatformModel.swift
@@ -18,8 +18,6 @@ public extension PlatformClient.Order {
public var entities: [EntitiesDataUpdates]?
- public var order: [OrderDataUpdates]?
-
public enum CodingKeys: String, CodingKey {
@@ -29,11 +27,9 @@ public extension PlatformClient.Order {
case entities = "entities"
- case order = "order"
-
}
- public init(entities: [EntitiesDataUpdates]? = nil, order: [OrderDataUpdates]? = nil, orderItemStatus: [OrderItemDataUpdates]? = nil, products: [ProductsDataUpdates]? = nil) {
+ public init(entities: [EntitiesDataUpdates]? = nil, orderItemStatus: [OrderItemDataUpdates]? = nil, products: [ProductsDataUpdates]? = nil) {
self.orderItemStatus = orderItemStatus
@@ -41,8 +37,6 @@ public extension PlatformClient.Order {
self.entities = entities
- self.order = order
-
}
required public init(from decoder: Decoder) throws {
@@ -84,18 +78,6 @@ public extension PlatformClient.Order {
}
-
- do {
- order = try container.decode([OrderDataUpdates].self, forKey: .order)
-
- } 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 {
@@ -116,11 +98,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(entities, forKey: .entities)
-
-
- try? container.encodeIfPresent(order, forKey: .order)
-
-
}
}
@@ -143,8 +120,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var entities: [EntitiesDataUpdates]?
- public var order: [OrderDataUpdates]?
-
public enum CodingKeys: String, CodingKey {
@@ -154,11 +129,9 @@ public extension PlatformClient.ApplicationClient.Order {
case entities = "entities"
- case order = "order"
-
}
- public init(entities: [EntitiesDataUpdates]? = nil, order: [OrderDataUpdates]? = nil, orderItemStatus: [OrderItemDataUpdates]? = nil, products: [ProductsDataUpdates]? = nil) {
+ public init(entities: [EntitiesDataUpdates]? = nil, orderItemStatus: [OrderItemDataUpdates]? = nil, products: [ProductsDataUpdates]? = nil) {
self.orderItemStatus = orderItemStatus
@@ -166,8 +139,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.entities = entities
- self.order = order
-
}
required public init(from decoder: Decoder) throws {
@@ -209,18 +180,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- order = try container.decode([OrderDataUpdates].self, forKey: .order)
-
- } 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 {
@@ -241,11 +200,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(entities, forKey: .entities)
-
-
- try? container.encodeIfPresent(order, forKey: .order)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/DocumentOrderPlatformModel.swift b/Sources/code/platform/Models/Order/DocumentOrderPlatformModel.swift
index 84c4ca6285..b7c74ca893 100644
--- a/Sources/code/platform/Models/Order/DocumentOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/DocumentOrderPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Order {
public var value: String
- public var type: String
+ public var dsType: String
public var verified: Bool
@@ -27,7 +27,7 @@ public extension PlatformClient.Order {
case value = "value"
- case type = "type"
+ case dsType = "ds_type"
case verified = "verified"
@@ -37,11 +37,11 @@ public extension PlatformClient.Order {
}
- public init(legalName: String, type: String, url: String? = nil, value: String, verified: Bool) {
+ public init(dsType: String, legalName: String, url: String? = nil, value: String, verified: Bool) {
self.value = value
- self.type = type
+ self.dsType = dsType
self.verified = verified
@@ -60,7 +60,7 @@ public extension PlatformClient.Order {
- type = try container.decode(String.self, forKey: .type)
+ dsType = try container.decode(String.self, forKey: .dsType)
@@ -98,7 +98,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(type, forKey: .type)
+ try? container.encodeIfPresent(dsType, forKey: .dsType)
@@ -134,7 +134,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var value: String
- public var type: String
+ public var dsType: String
public var verified: Bool
@@ -147,7 +147,7 @@ public extension PlatformClient.ApplicationClient.Order {
case value = "value"
- case type = "type"
+ case dsType = "ds_type"
case verified = "verified"
@@ -157,11 +157,11 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(legalName: String, type: String, url: String? = nil, value: String, verified: Bool) {
+ public init(dsType: String, legalName: String, url: String? = nil, value: String, verified: Bool) {
self.value = value
- self.type = type
+ self.dsType = dsType
self.verified = verified
@@ -180,7 +180,7 @@ public extension PlatformClient.ApplicationClient.Order {
- type = try container.decode(String.self, forKey: .type)
+ dsType = try container.decode(String.self, forKey: .dsType)
@@ -218,7 +218,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(type, forKey: .type)
+ try? container.encodeIfPresent(dsType, forKey: .dsType)
diff --git a/Sources/code/platform/Models/Order/EInvoiceErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/EInvoiceErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..bb556e4f50
--- /dev/null
+++ b/Sources/code/platform/Models/Order/EInvoiceErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: EInvoiceErrorResponse
+ Used By: Order
+ */
+
+ class EInvoiceErrorResponse: Codable {
+
+
+ public var responseData: [EInvoiceErrorResponseData]?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case responseData = "response_data"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, responseData: [EInvoiceErrorResponseData]? = nil) {
+
+ self.responseData = responseData
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ responseData = try container.decode([EInvoiceErrorResponseData].self, forKey: .responseData)
+
+ } 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)
+
+ } 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(responseData, forKey: .responseData)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: EInvoiceErrorResponse
+ Used By: Order
+ */
+
+ class EInvoiceErrorResponse: Codable {
+
+
+ public var responseData: [EInvoiceErrorResponseData]?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case responseData = "response_data"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, responseData: [EInvoiceErrorResponseData]? = nil) {
+
+ self.responseData = responseData
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ responseData = try container.decode([EInvoiceErrorResponseData].self, forKey: .responseData)
+
+ } 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)
+
+ } 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(responseData, forKey: .responseData)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/EInvoiceErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/EInvoiceErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 1f507757a5..0000000000
--- a/Sources/code/platform/Models/Order/EInvoiceErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: EInvoiceErrorResponseSchema
- Used By: Order
- */
-
- class EInvoiceErrorResponseSchema: Codable {
-
-
- public var responseData: [EInvoiceErrorResponseData]?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case responseData = "response_data"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, responseData: [EInvoiceErrorResponseData]? = nil) {
-
- self.responseData = responseData
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- responseData = try container.decode([EInvoiceErrorResponseData].self, forKey: .responseData)
-
- } 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)
-
- } 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(responseData, forKey: .responseData)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: EInvoiceErrorResponseSchema
- Used By: Order
- */
-
- class EInvoiceErrorResponseSchema: Codable {
-
-
- public var responseData: [EInvoiceErrorResponseData]?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case responseData = "response_data"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, responseData: [EInvoiceErrorResponseData]? = nil) {
-
- self.responseData = responseData
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- responseData = try container.decode([EInvoiceErrorResponseData].self, forKey: .responseData)
-
- } 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)
-
- } 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(responseData, forKey: .responseData)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/EInvoiceRetryResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/EInvoiceRetryResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..acc2f99d2a
--- /dev/null
+++ b/Sources/code/platform/Models/Order/EInvoiceRetryResponseOrderPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: EInvoiceRetryResponse
+ Used By: Order
+ */
+
+ class EInvoiceRetryResponse: Codable {
+
+
+ public var responseData: [EInvoiceResponseData]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case responseData = "response_data"
+
+ }
+
+ public init(responseData: [EInvoiceResponseData]) {
+
+ self.responseData = responseData
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ responseData = try container.decode([EInvoiceResponseData].self, forKey: .responseData)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(responseData, forKey: .responseData)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: EInvoiceRetryResponse
+ Used By: Order
+ */
+
+ class EInvoiceRetryResponse: Codable {
+
+
+ public var responseData: [EInvoiceResponseData]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case responseData = "response_data"
+
+ }
+
+ public init(responseData: [EInvoiceResponseData]) {
+
+ self.responseData = responseData
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ responseData = try container.decode([EInvoiceResponseData].self, forKey: .responseData)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(responseData, forKey: .responseData)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/EInvoiceRetryResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/EInvoiceRetryResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 251d6053d5..0000000000
--- a/Sources/code/platform/Models/Order/EInvoiceRetryResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: EInvoiceRetryResponseSchema
- Used By: Order
- */
-
- class EInvoiceRetryResponseSchema: Codable {
-
-
- public var responseData: [EInvoiceResponseData]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case responseData = "response_data"
-
- }
-
- public init(responseData: [EInvoiceResponseData]) {
-
- self.responseData = responseData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- responseData = try container.decode([EInvoiceResponseData].self, forKey: .responseData)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(responseData, forKey: .responseData)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: EInvoiceRetryResponseSchema
- Used By: Order
- */
-
- class EInvoiceRetryResponseSchema: Codable {
-
-
- public var responseData: [EInvoiceResponseData]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case responseData = "response_data"
-
- }
-
- public init(responseData: [EInvoiceResponseData]) {
-
- self.responseData = responseData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- responseData = try container.decode([EInvoiceResponseData].self, forKey: .responseData)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(responseData, forKey: .responseData)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..2dfc73aa3d
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,286 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ErrorResponse
+ Used By: Order
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var success: Bool?
+
+ public var message: String
+
+ public var errorTrace: String?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case success = "success"
+
+ case message = "message"
+
+ case errorTrace = "error_trace"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, errorTrace: String? = nil, message: String, status: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.success = success
+
+ self.message = message
+
+ self.errorTrace = errorTrace
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ errorTrace = try container.decode(String.self, forKey: .errorTrace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(errorTrace, forKey: .errorTrace)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ErrorResponse
+ Used By: Order
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var success: Bool?
+
+ public var message: String
+
+ public var errorTrace: String?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case success = "success"
+
+ case message = "message"
+
+ case errorTrace = "error_trace"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, errorTrace: String? = nil, message: String, status: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.success = success
+
+ self.message = message
+
+ self.errorTrace = errorTrace
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ errorTrace = try container.decode(String.self, forKey: .errorTrace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(errorTrace, forKey: .errorTrace)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9acccb56b7..0000000000
--- a/Sources/code/platform/Models/Order/ErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ErrorResponseSchema
- Used By: Order
- */
-
- class ErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var success: Bool?
-
- public var message: String
-
- public var errorTrace: String?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case success = "success"
-
- case message = "message"
-
- case errorTrace = "error_trace"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, errorTrace: String? = nil, message: String, status: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.success = success
-
- self.message = message
-
- self.errorTrace = errorTrace
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- errorTrace = try container.decode(String.self, forKey: .errorTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(errorTrace, forKey: .errorTrace)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ErrorResponseSchema
- Used By: Order
- */
-
- class ErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var success: Bool?
-
- public var message: String
-
- public var errorTrace: String?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case success = "success"
-
- case message = "message"
-
- case errorTrace = "error_trace"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, errorTrace: String? = nil, message: String, status: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.success = success
-
- self.message = message
-
- self.errorTrace = errorTrace
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- errorTrace = try container.decode(String.self, forKey: .errorTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(errorTrace, forKey: .errorTrace)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ExceptionErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ExceptionErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..0b1c57d568
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ExceptionErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ExceptionErrorResponse
+ Used By: Order
+ */
+
+ class ExceptionErrorResponse: Codable {
+
+
+ public var message: String?
+
+ public var exception: String?
+
+ public var stackTrace: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case exception = "exception"
+
+ case stackTrace = "stack_trace"
+
+ }
+
+ public init(exception: String? = nil, message: String? = nil, stackTrace: String? = nil) {
+
+ self.message = message
+
+ self.exception = exception
+
+ self.stackTrace = stackTrace
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ExceptionErrorResponse
+ Used By: Order
+ */
+
+ class ExceptionErrorResponse: Codable {
+
+
+ public var message: String?
+
+ public var exception: String?
+
+ public var stackTrace: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case exception = "exception"
+
+ case stackTrace = "stack_trace"
+
+ }
+
+ public init(exception: String? = nil, message: String? = nil, stackTrace: String? = nil) {
+
+ self.message = message
+
+ self.exception = exception
+
+ self.stackTrace = stackTrace
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ExceptionErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ExceptionErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index abc7855ebf..0000000000
--- a/Sources/code/platform/Models/Order/ExceptionErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ExceptionErrorResponseSchema
- Used By: Order
- */
-
- class ExceptionErrorResponseSchema: Codable {
-
-
- public var message: String?
-
- public var exception: String?
-
- public var stackTrace: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case exception = "exception"
-
- case stackTrace = "stack_trace"
-
- }
-
- public init(exception: String? = nil, message: String? = nil, stackTrace: String? = nil) {
-
- self.message = message
-
- self.exception = exception
-
- self.stackTrace = stackTrace
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ExceptionErrorResponseSchema
- Used By: Order
- */
-
- class ExceptionErrorResponseSchema: Codable {
-
-
- public var message: String?
-
- public var exception: String?
-
- public var stackTrace: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case exception = "exception"
-
- case stackTrace = "stack_trace"
-
- }
-
- public init(exception: String? = nil, message: String? = nil, stackTrace: String? = nil) {
-
- self.message = message
-
- self.exception = exception
-
- self.stackTrace = stackTrace
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FetchCreditBalanceRequestPayloadOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FetchCreditBalanceRequestPayloadOrderPlatformModel.swift
deleted file mode 100644
index 79dd9a8b33..0000000000
--- a/Sources/code/platform/Models/Order/FetchCreditBalanceRequestPayloadOrderPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FetchCreditBalanceRequestPayload
- Used By: Order
- */
-
- class FetchCreditBalanceRequestPayload: Codable {
-
-
- public var affiliateId: String
-
- public var sellerId: String
-
- public var customerMobileNumber: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case affiliateId = "affiliate_id"
-
- case sellerId = "seller_id"
-
- case customerMobileNumber = "customer_mobile_number"
-
- }
-
- public init(affiliateId: String, customerMobileNumber: String, sellerId: String) {
-
- self.affiliateId = affiliateId
-
- self.sellerId = sellerId
-
- self.customerMobileNumber = customerMobileNumber
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
-
-
-
- sellerId = try container.decode(String.self, forKey: .sellerId)
-
-
-
-
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FetchCreditBalanceRequestPayload
- Used By: Order
- */
-
- class FetchCreditBalanceRequestPayload: Codable {
-
-
- public var affiliateId: String
-
- public var sellerId: String
-
- public var customerMobileNumber: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case affiliateId = "affiliate_id"
-
- case sellerId = "seller_id"
-
- case customerMobileNumber = "customer_mobile_number"
-
- }
-
- public init(affiliateId: String, customerMobileNumber: String, sellerId: String) {
-
- self.affiliateId = affiliateId
-
- self.sellerId = sellerId
-
- self.customerMobileNumber = customerMobileNumber
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
-
-
-
- sellerId = try container.decode(String.self, forKey: .sellerId)
-
-
-
-
- customerMobileNumber = try container.decode(String.self, forKey: .customerMobileNumber)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(customerMobileNumber, forKey: .customerMobileNumber)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FetchCreditBalanceResponsePayloadOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FetchCreditBalanceResponsePayloadOrderPlatformModel.swift
deleted file mode 100644
index abacb5ffd1..0000000000
--- a/Sources/code/platform/Models/Order/FetchCreditBalanceResponsePayloadOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FetchCreditBalanceResponsePayload
- Used By: Order
- */
-
- class FetchCreditBalanceResponsePayload: Codable {
-
-
- public var success: Bool
-
- public var data: CreditBalanceInfo
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(data: CreditBalanceInfo, success: Bool) {
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- data = try container.decode(CreditBalanceInfo.self, forKey: .data)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FetchCreditBalanceResponsePayload
- Used By: Order
- */
-
- class FetchCreditBalanceResponsePayload: Codable {
-
-
- public var success: Bool
-
- public var data: CreditBalanceInfo
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- }
-
- public init(data: CreditBalanceInfo, success: Bool) {
-
- self.success = success
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- data = try container.decode(CreditBalanceInfo.self, forKey: .data)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FileResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FileResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..bbc0e13158
--- /dev/null
+++ b/Sources/code/platform/Models/Order/FileResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: FileResponse
+ Used By: Order
+ */
+
+ class FileResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var cdn: URL?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case cdn = "cdn"
+
+ }
+
+ public init(cdn: URL? = nil, fileName: String? = nil) {
+
+ self.fileName = fileName
+
+ self.cdn = cdn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cdn = try container.decode(URL.self, forKey: .cdn)
+
+ } 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(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: FileResponse
+ Used By: Order
+ */
+
+ class FileResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var cdn: URL?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case cdn = "cdn"
+
+ }
+
+ public init(cdn: URL? = nil, fileName: String? = nil) {
+
+ self.fileName = fileName
+
+ self.cdn = cdn
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cdn = try container.decode(URL.self, forKey: .cdn)
+
+ } 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(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(cdn, forKey: .cdn)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/FileResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FileResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 2f43fa03e2..0000000000
--- a/Sources/code/platform/Models/Order/FileResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FileResponseSchema
- Used By: Order
- */
-
- class FileResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var cdn: URL?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case cdn = "cdn"
-
- }
-
- public init(cdn: URL? = nil, fileName: String? = nil) {
-
- self.fileName = fileName
-
- self.cdn = cdn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cdn = try container.decode(URL.self, forKey: .cdn)
-
- } 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(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(cdn, forKey: .cdn)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FileResponseSchema
- Used By: Order
- */
-
- class FileResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var cdn: URL?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case cdn = "cdn"
-
- }
-
- public init(cdn: URL? = nil, fileName: String? = nil) {
-
- self.fileName = fileName
-
- self.cdn = cdn
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cdn = try container.decode(URL.self, forKey: .cdn)
-
- } 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(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(cdn, forKey: .cdn)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FiltersRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FiltersRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index 749ddc1071..0000000000
--- a/Sources/code/platform/Models/Order/FiltersRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,322 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FiltersRequestSchema
- Used By: Order
- */
-
- class FiltersRequestSchema: Codable {
-
-
- public var dateRange: DateRange?
-
- public var logo: String?
-
- public var stores: Int
-
- public var dpName: String
-
- public var dpIds: Int
-
- public var lane: String
-
- public var storeName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dateRange = "date_range"
-
- case logo = "logo"
-
- case stores = "stores"
-
- case dpName = "dp_name"
-
- case dpIds = "dp_ids"
-
- case lane = "lane"
-
- case storeName = "store_name"
-
- }
-
- public init(dateRange: DateRange? = nil, dpIds: Int, dpName: String, lane: String, logo: String? = nil, stores: Int, storeName: String) {
-
- self.dateRange = dateRange
-
- self.logo = logo
-
- self.stores = stores
-
- self.dpName = dpName
-
- self.dpIds = dpIds
-
- self.lane = lane
-
- self.storeName = storeName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dateRange = try container.decode(DateRange.self, forKey: .dateRange)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- stores = try container.decode(Int.self, forKey: .stores)
-
-
-
-
- dpName = try container.decode(String.self, forKey: .dpName)
-
-
-
-
- dpIds = try container.decode(Int.self, forKey: .dpIds)
-
-
-
-
- lane = try container.decode(String.self, forKey: .lane)
-
-
-
-
- storeName = try container.decode(String.self, forKey: .storeName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(dateRange, forKey: .dateRange)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(stores, forKey: .stores)
-
-
-
-
- try? container.encodeIfPresent(dpName, forKey: .dpName)
-
-
-
-
- try? container.encodeIfPresent(dpIds, forKey: .dpIds)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(storeName, forKey: .storeName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FiltersRequestSchema
- Used By: Order
- */
-
- class FiltersRequestSchema: Codable {
-
-
- public var dateRange: DateRange?
-
- public var logo: String?
-
- public var stores: Int
-
- public var dpName: String
-
- public var dpIds: Int
-
- public var lane: String
-
- public var storeName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case dateRange = "date_range"
-
- case logo = "logo"
-
- case stores = "stores"
-
- case dpName = "dp_name"
-
- case dpIds = "dp_ids"
-
- case lane = "lane"
-
- case storeName = "store_name"
-
- }
-
- public init(dateRange: DateRange? = nil, dpIds: Int, dpName: String, lane: String, logo: String? = nil, stores: Int, storeName: String) {
-
- self.dateRange = dateRange
-
- self.logo = logo
-
- self.stores = stores
-
- self.dpName = dpName
-
- self.dpIds = dpIds
-
- self.lane = lane
-
- self.storeName = storeName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- dateRange = try container.decode(DateRange.self, forKey: .dateRange)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- stores = try container.decode(Int.self, forKey: .stores)
-
-
-
-
- dpName = try container.decode(String.self, forKey: .dpName)
-
-
-
-
- dpIds = try container.decode(Int.self, forKey: .dpIds)
-
-
-
-
- lane = try container.decode(String.self, forKey: .lane)
-
-
-
-
- storeName = try container.decode(String.self, forKey: .storeName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(dateRange, forKey: .dateRange)
-
-
-
-
- try? container.encodeIfPresent(logo, forKey: .logo)
-
-
-
-
- try? container.encodeIfPresent(stores, forKey: .stores)
-
-
-
-
- try? container.encodeIfPresent(dpName, forKey: .dpName)
-
-
-
-
- try? container.encodeIfPresent(dpIds, forKey: .dpIds)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(storeName, forKey: .storeName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FiltersResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FiltersResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..76dbaf113f
--- /dev/null
+++ b/Sources/code/platform/Models/Order/FiltersResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: FiltersResponse
+ Used By: Order
+ */
+
+ class FiltersResponse: Codable {
+
+
+ public var advanceFilter: AdvanceFilterInfo?
+
+ public var globalFilter: [FiltersInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case advanceFilter = "advance_filter"
+
+ case globalFilter = "global_filter"
+
+ }
+
+ public init(advanceFilter: AdvanceFilterInfo? = nil, globalFilter: [FiltersInfo]? = nil) {
+
+ self.advanceFilter = advanceFilter
+
+ self.globalFilter = globalFilter
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ advanceFilter = try container.decode(AdvanceFilterInfo.self, forKey: .advanceFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
+
+ } 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(advanceFilter, forKey: .advanceFilter)
+
+
+
+
+ try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: FiltersResponse
+ Used By: Order
+ */
+
+ class FiltersResponse: Codable {
+
+
+ public var advanceFilter: AdvanceFilterInfo?
+
+ public var globalFilter: [FiltersInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case advanceFilter = "advance_filter"
+
+ case globalFilter = "global_filter"
+
+ }
+
+ public init(advanceFilter: AdvanceFilterInfo? = nil, globalFilter: [FiltersInfo]? = nil) {
+
+ self.advanceFilter = advanceFilter
+
+ self.globalFilter = globalFilter
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ advanceFilter = try container.decode(AdvanceFilterInfo.self, forKey: .advanceFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
+
+ } 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(advanceFilter, forKey: .advanceFilter)
+
+
+
+
+ try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/FiltersResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FiltersResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 49669e335b..0000000000
--- a/Sources/code/platform/Models/Order/FiltersResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FiltersResponseSchema
- Used By: Order
- */
-
- class FiltersResponseSchema: Codable {
-
-
- public var advance: AdvanceFilterInfo?
-
- public var global1: FiltersInfo?
-
- public var advanceFilter: AdvanceFilterInfo?
-
- public var globalFilter: [FiltersInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case advance = "advance"
-
- case global1 = "global_1"
-
- case advanceFilter = "advance_filter"
-
- case globalFilter = "global_filter"
-
- }
-
- public init(advance: AdvanceFilterInfo? = nil, advanceFilter: AdvanceFilterInfo? = nil, global1: FiltersInfo? = nil, globalFilter: [FiltersInfo]? = nil) {
-
- self.advance = advance
-
- self.global1 = global1
-
- self.advanceFilter = advanceFilter
-
- self.globalFilter = globalFilter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- advance = try container.decode(AdvanceFilterInfo.self, forKey: .advance)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- global1 = try container.decode(FiltersInfo.self, forKey: .global1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- advanceFilter = try container.decode(AdvanceFilterInfo.self, forKey: .advanceFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
-
- } 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(advance, forKey: .advance)
-
-
-
-
- try? container.encodeIfPresent(global1, forKey: .global1)
-
-
-
-
- try? container.encodeIfPresent(advanceFilter, forKey: .advanceFilter)
-
-
-
-
- try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FiltersResponseSchema
- Used By: Order
- */
-
- class FiltersResponseSchema: Codable {
-
-
- public var advance: AdvanceFilterInfo?
-
- public var global1: FiltersInfo?
-
- public var advanceFilter: AdvanceFilterInfo?
-
- public var globalFilter: [FiltersInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case advance = "advance"
-
- case global1 = "global_1"
-
- case advanceFilter = "advance_filter"
-
- case globalFilter = "global_filter"
-
- }
-
- public init(advance: AdvanceFilterInfo? = nil, advanceFilter: AdvanceFilterInfo? = nil, global1: FiltersInfo? = nil, globalFilter: [FiltersInfo]? = nil) {
-
- self.advance = advance
-
- self.global1 = global1
-
- self.advanceFilter = advanceFilter
-
- self.globalFilter = globalFilter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- advance = try container.decode(AdvanceFilterInfo.self, forKey: .advance)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- global1 = try container.decode(FiltersInfo.self, forKey: .global1)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- advanceFilter = try container.decode(AdvanceFilterInfo.self, forKey: .advanceFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
-
- } 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(advance, forKey: .advance)
-
-
-
-
- try? container.encodeIfPresent(global1, forKey: .global1)
-
-
-
-
- try? container.encodeIfPresent(advanceFilter, forKey: .advanceFilter)
-
-
-
-
- try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/FreeGiftItemsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/FreeGiftItemsOrderPlatformModel.swift
deleted file mode 100644
index fce0a5494a..0000000000
--- a/Sources/code/platform/Models/Order/FreeGiftItemsOrderPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: FreeGiftItems
- Used By: Order
- */
-
- class FreeGiftItems: Codable {
-
-
- public var itemSlug: String?
-
- public var itemName: String?
-
- public var itemPriceDetails: ItemPriceDetails?
-
- public var itemBrandName: String?
-
- public var itemId: Int?
-
- public var itemImagesUrl: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemSlug = "item_slug"
-
- case itemName = "item_name"
-
- case itemPriceDetails = "item_price_details"
-
- case itemBrandName = "item_brand_name"
-
- case itemId = "item_id"
-
- case itemImagesUrl = "item_images_url"
-
- }
-
- public init(itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil) {
-
- self.itemSlug = itemSlug
-
- self.itemName = itemName
-
- self.itemPriceDetails = itemPriceDetails
-
- self.itemBrandName = itemBrandName
-
- self.itemId = itemId
-
- self.itemImagesUrl = itemImagesUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- itemSlug = try container.decode(String.self, forKey: .itemSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemName = try container.decode(String.self, forKey: .itemName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemPriceDetails = try container.decode(ItemPriceDetails.self, forKey: .itemPriceDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemBrandName = try container.decode(String.self, forKey: .itemBrandName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemImagesUrl = try container.decode([String].self, forKey: .itemImagesUrl)
-
- } 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(itemSlug, forKey: .itemSlug)
-
-
-
-
- try? container.encodeIfPresent(itemName, forKey: .itemName)
-
-
-
-
- try? container.encodeIfPresent(itemPriceDetails, forKey: .itemPriceDetails)
-
-
-
-
- try? container.encodeIfPresent(itemBrandName, forKey: .itemBrandName)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(itemImagesUrl, forKey: .itemImagesUrl)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: FreeGiftItems
- Used By: Order
- */
-
- class FreeGiftItems: Codable {
-
-
- public var itemSlug: String?
-
- public var itemName: String?
-
- public var itemPriceDetails: ItemPriceDetails?
-
- public var itemBrandName: String?
-
- public var itemId: Int?
-
- public var itemImagesUrl: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemSlug = "item_slug"
-
- case itemName = "item_name"
-
- case itemPriceDetails = "item_price_details"
-
- case itemBrandName = "item_brand_name"
-
- case itemId = "item_id"
-
- case itemImagesUrl = "item_images_url"
-
- }
-
- public init(itemBrandName: String? = nil, itemId: Int? = nil, itemImagesUrl: [String]? = nil, itemName: String? = nil, itemPriceDetails: ItemPriceDetails? = nil, itemSlug: String? = nil) {
-
- self.itemSlug = itemSlug
-
- self.itemName = itemName
-
- self.itemPriceDetails = itemPriceDetails
-
- self.itemBrandName = itemBrandName
-
- self.itemId = itemId
-
- self.itemImagesUrl = itemImagesUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- itemSlug = try container.decode(String.self, forKey: .itemSlug)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemName = try container.decode(String.self, forKey: .itemName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemPriceDetails = try container.decode(ItemPriceDetails.self, forKey: .itemPriceDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemBrandName = try container.decode(String.self, forKey: .itemBrandName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- itemImagesUrl = try container.decode([String].self, forKey: .itemImagesUrl)
-
- } 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(itemSlug, forKey: .itemSlug)
-
-
-
-
- try? container.encodeIfPresent(itemName, forKey: .itemName)
-
-
-
-
- try? container.encodeIfPresent(itemPriceDetails, forKey: .itemPriceDetails)
-
-
-
-
- try? container.encodeIfPresent(itemBrandName, forKey: .itemBrandName)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(itemImagesUrl, forKey: .itemImagesUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..f96f86834d
--- /dev/null
+++ b/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: GenerateInvoiceIDErrorResponse
+ Used By: Order
+ */
+
+ class GenerateInvoiceIDErrorResponse: Codable {
+
+
+ public var items: [GenerateInvoiceIDErrorResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [GenerateInvoiceIDErrorResponseData]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([GenerateInvoiceIDErrorResponseData].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: GenerateInvoiceIDErrorResponse
+ Used By: Order
+ */
+
+ class GenerateInvoiceIDErrorResponse: Codable {
+
+
+ public var items: [GenerateInvoiceIDErrorResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [GenerateInvoiceIDErrorResponseData]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([GenerateInvoiceIDErrorResponseData].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index f981493127..0000000000
--- a/Sources/code/platform/Models/Order/GenerateInvoiceIDErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: GenerateInvoiceIDErrorResponseSchema
- Used By: Order
- */
-
- class GenerateInvoiceIDErrorResponseSchema: Codable {
-
-
- public var items: [GenerateInvoiceIDErrorResponseData]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [GenerateInvoiceIDErrorResponseData]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([GenerateInvoiceIDErrorResponseData].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: GenerateInvoiceIDErrorResponseSchema
- Used By: Order
- */
-
- class GenerateInvoiceIDErrorResponseSchema: Codable {
-
-
- public var items: [GenerateInvoiceIDErrorResponseData]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [GenerateInvoiceIDErrorResponseData]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([GenerateInvoiceIDErrorResponseData].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..b15e8e488b
--- /dev/null
+++ b/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: GenerateInvoiceIDResponse
+ Used By: Order
+ */
+
+ class GenerateInvoiceIDResponse: Codable {
+
+
+ public var items: [GenerateInvoiceIDResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [GenerateInvoiceIDResponseData]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([GenerateInvoiceIDResponseData].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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: GenerateInvoiceIDResponse
+ Used By: Order
+ */
+
+ class GenerateInvoiceIDResponse: Codable {
+
+
+ public var items: [GenerateInvoiceIDResponseData]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: [GenerateInvoiceIDResponseData]? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode([GenerateInvoiceIDResponseData].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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9f582eadd7..0000000000
--- a/Sources/code/platform/Models/Order/GenerateInvoiceIDResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: GenerateInvoiceIDResponseSchema
- Used By: Order
- */
-
- class GenerateInvoiceIDResponseSchema: Codable {
-
-
- public var items: [GenerateInvoiceIDResponseData]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [GenerateInvoiceIDResponseData]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([GenerateInvoiceIDResponseData].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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: GenerateInvoiceIDResponseSchema
- Used By: Order
- */
-
- class GenerateInvoiceIDResponseSchema: Codable {
-
-
- public var items: [GenerateInvoiceIDResponseData]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: [GenerateInvoiceIDResponseData]? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode([GenerateInvoiceIDResponseData].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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..ff7c956c20
--- /dev/null
+++ b/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseOrderPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: GeneratePosOrderReceiptResponse
+ Used By: Order
+ */
+
+ class GeneratePosOrderReceiptResponse: Codable {
+
+
+ public var customerCnReceipt: String?
+
+ public var success: Bool?
+
+ public var orderId: String?
+
+ public var invoiceReceipt: String?
+
+ public var paymentReceipt: String?
+
+ public var merchantCnReceipt: String?
+
+ public var paymentReceiptTemplate: String?
+
+ public var customerCnReceiptTemplate: String?
+
+ public var invoiceReceiptTemplate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customerCnReceipt = "customer_cn_receipt"
+
+ case success = "success"
+
+ case orderId = "order_id"
+
+ case invoiceReceipt = "invoice_receipt"
+
+ case paymentReceipt = "payment_receipt"
+
+ case merchantCnReceipt = "merchant_cn_receipt"
+
+ case paymentReceiptTemplate = "payment_receipt_template"
+
+ case customerCnReceiptTemplate = "customer_cn_receipt_template"
+
+ case invoiceReceiptTemplate = "invoice_receipt_template"
+
+ }
+
+ public init(customerCnReceipt: String? = nil, customerCnReceiptTemplate: String? = nil, invoiceReceipt: String? = nil, invoiceReceiptTemplate: String? = nil, merchantCnReceipt: String? = nil, orderId: String? = nil, paymentReceipt: String? = nil, paymentReceiptTemplate: String? = nil, success: Bool? = nil) {
+
+ self.customerCnReceipt = customerCnReceipt
+
+ self.success = success
+
+ self.orderId = orderId
+
+ self.invoiceReceipt = invoiceReceipt
+
+ self.paymentReceipt = paymentReceipt
+
+ self.merchantCnReceipt = merchantCnReceipt
+
+ self.paymentReceiptTemplate = paymentReceiptTemplate
+
+ self.customerCnReceiptTemplate = customerCnReceiptTemplate
+
+ self.invoiceReceiptTemplate = invoiceReceiptTemplate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ customerCnReceipt = try container.decode(String.self, forKey: .customerCnReceipt)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceReceipt = try container.decode(String.self, forKey: .invoiceReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentReceipt = try container.decode(String.self, forKey: .paymentReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCnReceipt = try container.decode(String.self, forKey: .merchantCnReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentReceiptTemplate = try container.decode(String.self, forKey: .paymentReceiptTemplate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerCnReceiptTemplate = try container.decode(String.self, forKey: .customerCnReceiptTemplate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceReceiptTemplate = try container.decode(String.self, forKey: .invoiceReceiptTemplate)
+
+ } 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(customerCnReceipt, forKey: .customerCnReceipt)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(invoiceReceipt, forKey: .invoiceReceipt)
+
+
+
+
+ try? container.encodeIfPresent(paymentReceipt, forKey: .paymentReceipt)
+
+
+
+
+ try? container.encodeIfPresent(merchantCnReceipt, forKey: .merchantCnReceipt)
+
+
+
+
+ try? container.encodeIfPresent(paymentReceiptTemplate, forKey: .paymentReceiptTemplate)
+
+
+
+
+ try? container.encodeIfPresent(customerCnReceiptTemplate, forKey: .customerCnReceiptTemplate)
+
+
+
+
+ try? container.encodeIfPresent(invoiceReceiptTemplate, forKey: .invoiceReceiptTemplate)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: GeneratePosOrderReceiptResponse
+ Used By: Order
+ */
+
+ class GeneratePosOrderReceiptResponse: Codable {
+
+
+ public var customerCnReceipt: String?
+
+ public var success: Bool?
+
+ public var orderId: String?
+
+ public var invoiceReceipt: String?
+
+ public var paymentReceipt: String?
+
+ public var merchantCnReceipt: String?
+
+ public var paymentReceiptTemplate: String?
+
+ public var customerCnReceiptTemplate: String?
+
+ public var invoiceReceiptTemplate: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case customerCnReceipt = "customer_cn_receipt"
+
+ case success = "success"
+
+ case orderId = "order_id"
+
+ case invoiceReceipt = "invoice_receipt"
+
+ case paymentReceipt = "payment_receipt"
+
+ case merchantCnReceipt = "merchant_cn_receipt"
+
+ case paymentReceiptTemplate = "payment_receipt_template"
+
+ case customerCnReceiptTemplate = "customer_cn_receipt_template"
+
+ case invoiceReceiptTemplate = "invoice_receipt_template"
+
+ }
+
+ public init(customerCnReceipt: String? = nil, customerCnReceiptTemplate: String? = nil, invoiceReceipt: String? = nil, invoiceReceiptTemplate: String? = nil, merchantCnReceipt: String? = nil, orderId: String? = nil, paymentReceipt: String? = nil, paymentReceiptTemplate: String? = nil, success: Bool? = nil) {
+
+ self.customerCnReceipt = customerCnReceipt
+
+ self.success = success
+
+ self.orderId = orderId
+
+ self.invoiceReceipt = invoiceReceipt
+
+ self.paymentReceipt = paymentReceipt
+
+ self.merchantCnReceipt = merchantCnReceipt
+
+ self.paymentReceiptTemplate = paymentReceiptTemplate
+
+ self.customerCnReceiptTemplate = customerCnReceiptTemplate
+
+ self.invoiceReceiptTemplate = invoiceReceiptTemplate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ customerCnReceipt = try container.decode(String.self, forKey: .customerCnReceipt)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceReceipt = try container.decode(String.self, forKey: .invoiceReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentReceipt = try container.decode(String.self, forKey: .paymentReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantCnReceipt = try container.decode(String.self, forKey: .merchantCnReceipt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentReceiptTemplate = try container.decode(String.self, forKey: .paymentReceiptTemplate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerCnReceiptTemplate = try container.decode(String.self, forKey: .customerCnReceiptTemplate)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ invoiceReceiptTemplate = try container.decode(String.self, forKey: .invoiceReceiptTemplate)
+
+ } 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(customerCnReceipt, forKey: .customerCnReceipt)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(invoiceReceipt, forKey: .invoiceReceipt)
+
+
+
+
+ try? container.encodeIfPresent(paymentReceipt, forKey: .paymentReceipt)
+
+
+
+
+ try? container.encodeIfPresent(merchantCnReceipt, forKey: .merchantCnReceipt)
+
+
+
+
+ try? container.encodeIfPresent(paymentReceiptTemplate, forKey: .paymentReceiptTemplate)
+
+
+
+
+ try? container.encodeIfPresent(customerCnReceiptTemplate, forKey: .customerCnReceiptTemplate)
+
+
+
+
+ try? container.encodeIfPresent(invoiceReceiptTemplate, forKey: .invoiceReceiptTemplate)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index f2e57f5dac..0000000000
--- a/Sources/code/platform/Models/Order/GeneratePosOrderReceiptResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: GeneratePosOrderReceiptResponseSchema
- Used By: Order
- */
-
- class GeneratePosOrderReceiptResponseSchema: Codable {
-
-
- public var customerCnReceipt: String?
-
- public var success: Bool?
-
- public var orderId: String?
-
- public var invoiceReceipt: String?
-
- public var paymentReceipt: String?
-
- public var merchantCnReceipt: String?
-
- public var paymentReceiptTemplate: String?
-
- public var customerCnReceiptTemplate: String?
-
- public var invoiceReceiptTemplate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customerCnReceipt = "customer_cn_receipt"
-
- case success = "success"
-
- case orderId = "order_id"
-
- case invoiceReceipt = "invoice_receipt"
-
- case paymentReceipt = "payment_receipt"
-
- case merchantCnReceipt = "merchant_cn_receipt"
-
- case paymentReceiptTemplate = "payment_receipt_template"
-
- case customerCnReceiptTemplate = "customer_cn_receipt_template"
-
- case invoiceReceiptTemplate = "invoice_receipt_template"
-
- }
-
- public init(customerCnReceipt: String? = nil, customerCnReceiptTemplate: String? = nil, invoiceReceipt: String? = nil, invoiceReceiptTemplate: String? = nil, merchantCnReceipt: String? = nil, orderId: String? = nil, paymentReceipt: String? = nil, paymentReceiptTemplate: String? = nil, success: Bool? = nil) {
-
- self.customerCnReceipt = customerCnReceipt
-
- self.success = success
-
- self.orderId = orderId
-
- self.invoiceReceipt = invoiceReceipt
-
- self.paymentReceipt = paymentReceipt
-
- self.merchantCnReceipt = merchantCnReceipt
-
- self.paymentReceiptTemplate = paymentReceiptTemplate
-
- self.customerCnReceiptTemplate = customerCnReceiptTemplate
-
- self.invoiceReceiptTemplate = invoiceReceiptTemplate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customerCnReceipt = try container.decode(String.self, forKey: .customerCnReceipt)
-
- } 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 {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceReceipt = try container.decode(String.self, forKey: .invoiceReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentReceipt = try container.decode(String.self, forKey: .paymentReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCnReceipt = try container.decode(String.self, forKey: .merchantCnReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentReceiptTemplate = try container.decode(String.self, forKey: .paymentReceiptTemplate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerCnReceiptTemplate = try container.decode(String.self, forKey: .customerCnReceiptTemplate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceReceiptTemplate = try container.decode(String.self, forKey: .invoiceReceiptTemplate)
-
- } 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(customerCnReceipt, forKey: .customerCnReceipt)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(invoiceReceipt, forKey: .invoiceReceipt)
-
-
-
-
- try? container.encodeIfPresent(paymentReceipt, forKey: .paymentReceipt)
-
-
-
-
- try? container.encodeIfPresent(merchantCnReceipt, forKey: .merchantCnReceipt)
-
-
-
-
- try? container.encodeIfPresent(paymentReceiptTemplate, forKey: .paymentReceiptTemplate)
-
-
-
-
- try? container.encodeIfPresent(customerCnReceiptTemplate, forKey: .customerCnReceiptTemplate)
-
-
-
-
- try? container.encodeIfPresent(invoiceReceiptTemplate, forKey: .invoiceReceiptTemplate)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: GeneratePosOrderReceiptResponseSchema
- Used By: Order
- */
-
- class GeneratePosOrderReceiptResponseSchema: Codable {
-
-
- public var customerCnReceipt: String?
-
- public var success: Bool?
-
- public var orderId: String?
-
- public var invoiceReceipt: String?
-
- public var paymentReceipt: String?
-
- public var merchantCnReceipt: String?
-
- public var paymentReceiptTemplate: String?
-
- public var customerCnReceiptTemplate: String?
-
- public var invoiceReceiptTemplate: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case customerCnReceipt = "customer_cn_receipt"
-
- case success = "success"
-
- case orderId = "order_id"
-
- case invoiceReceipt = "invoice_receipt"
-
- case paymentReceipt = "payment_receipt"
-
- case merchantCnReceipt = "merchant_cn_receipt"
-
- case paymentReceiptTemplate = "payment_receipt_template"
-
- case customerCnReceiptTemplate = "customer_cn_receipt_template"
-
- case invoiceReceiptTemplate = "invoice_receipt_template"
-
- }
-
- public init(customerCnReceipt: String? = nil, customerCnReceiptTemplate: String? = nil, invoiceReceipt: String? = nil, invoiceReceiptTemplate: String? = nil, merchantCnReceipt: String? = nil, orderId: String? = nil, paymentReceipt: String? = nil, paymentReceiptTemplate: String? = nil, success: Bool? = nil) {
-
- self.customerCnReceipt = customerCnReceipt
-
- self.success = success
-
- self.orderId = orderId
-
- self.invoiceReceipt = invoiceReceipt
-
- self.paymentReceipt = paymentReceipt
-
- self.merchantCnReceipt = merchantCnReceipt
-
- self.paymentReceiptTemplate = paymentReceiptTemplate
-
- self.customerCnReceiptTemplate = customerCnReceiptTemplate
-
- self.invoiceReceiptTemplate = invoiceReceiptTemplate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- customerCnReceipt = try container.decode(String.self, forKey: .customerCnReceipt)
-
- } 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 {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceReceipt = try container.decode(String.self, forKey: .invoiceReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentReceipt = try container.decode(String.self, forKey: .paymentReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantCnReceipt = try container.decode(String.self, forKey: .merchantCnReceipt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentReceiptTemplate = try container.decode(String.self, forKey: .paymentReceiptTemplate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerCnReceiptTemplate = try container.decode(String.self, forKey: .customerCnReceiptTemplate)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- invoiceReceiptTemplate = try container.decode(String.self, forKey: .invoiceReceiptTemplate)
-
- } 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(customerCnReceipt, forKey: .customerCnReceipt)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(invoiceReceipt, forKey: .invoiceReceipt)
-
-
-
-
- try? container.encodeIfPresent(paymentReceipt, forKey: .paymentReceipt)
-
-
-
-
- try? container.encodeIfPresent(merchantCnReceipt, forKey: .merchantCnReceipt)
-
-
-
-
- try? container.encodeIfPresent(paymentReceiptTemplate, forKey: .paymentReceiptTemplate)
-
-
-
-
- try? container.encodeIfPresent(customerCnReceiptTemplate, forKey: .customerCnReceiptTemplate)
-
-
-
-
- try? container.encodeIfPresent(invoiceReceiptTemplate, forKey: .invoiceReceiptTemplate)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/GetActionsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GetActionsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..8524523ac3
--- /dev/null
+++ b/Sources/code/platform/Models/Order/GetActionsResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: GetActionsResponse
+ Used By: Order
+ */
+
+ class GetActionsResponse: Codable {
+
+
+ public var permissions: [ActionInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case permissions = "permissions"
+
+ }
+
+ public init(permissions: [ActionInfo]? = nil) {
+
+ self.permissions = permissions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ permissions = try container.decode([ActionInfo].self, forKey: .permissions)
+
+ } 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(permissions, forKey: .permissions)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: GetActionsResponse
+ Used By: Order
+ */
+
+ class GetActionsResponse: Codable {
+
+
+ public var permissions: [ActionInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case permissions = "permissions"
+
+ }
+
+ public init(permissions: [ActionInfo]? = nil) {
+
+ self.permissions = permissions
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ permissions = try container.decode([ActionInfo].self, forKey: .permissions)
+
+ } 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(permissions, forKey: .permissions)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/GetActionsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GetActionsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index fbfd472c56..0000000000
--- a/Sources/code/platform/Models/Order/GetActionsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: GetActionsResponseSchema
- Used By: Order
- */
-
- class GetActionsResponseSchema: Codable {
-
-
- public var permissions: [ActionInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case permissions = "permissions"
-
- }
-
- public init(permissions: [ActionInfo]? = nil) {
-
- self.permissions = permissions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- permissions = try container.decode([ActionInfo].self, forKey: .permissions)
-
- } 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(permissions, forKey: .permissions)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: GetActionsResponseSchema
- Used By: Order
- */
-
- class GetActionsResponseSchema: Codable {
-
-
- public var permissions: [ActionInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case permissions = "permissions"
-
- }
-
- public init(permissions: [ActionInfo]? = nil) {
-
- self.permissions = permissions
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- permissions = try container.decode([ActionInfo].self, forKey: .permissions)
-
- } 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(permissions, forKey: .permissions)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/GetBagsPlatformResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GetBagsPlatformResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..aed6c66245
--- /dev/null
+++ b/Sources/code/platform/Models/Order/GetBagsPlatformResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: GetBagsPlatformResponse
+ Used By: Order
+ */
+
+ class GetBagsPlatformResponse: Codable {
+
+
+ public var statusCode: Int?
+
+ public var data: BagData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ }
+
+ public init(data: BagData? = nil, statusCode: Int? = nil) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(BagData.self, forKey: .data)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: GetBagsPlatformResponse
+ Used By: Order
+ */
+
+ class GetBagsPlatformResponse: Codable {
+
+
+ public var statusCode: Int?
+
+ public var data: BagData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case data = "data"
+
+ }
+
+ public init(data: BagData? = nil, statusCode: Int? = nil) {
+
+ self.statusCode = statusCode
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(BagData.self, forKey: .data)
+
+ } 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(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/GetBagsPlatformResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/GetBagsPlatformResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index fbc2a9a5ea..0000000000
--- a/Sources/code/platform/Models/Order/GetBagsPlatformResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: GetBagsPlatformResponseSchema
- Used By: Order
- */
-
- class GetBagsPlatformResponseSchema: Codable {
-
-
- public var statusCode: Int?
-
- public var data: BagData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- }
-
- public init(data: BagData? = nil, statusCode: Int? = nil) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(BagData.self, forKey: .data)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: GetBagsPlatformResponseSchema
- Used By: Order
- */
-
- class GetBagsPlatformResponseSchema: Codable {
-
-
- public var statusCode: Int?
-
- public var data: BagData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case data = "data"
-
- }
-
- public init(data: BagData? = nil, statusCode: Int? = nil) {
-
- self.statusCode = statusCode
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(BagData.self, forKey: .data)
-
- } 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(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/HistoryDictOrderPlatformModel.swift b/Sources/code/platform/Models/Order/HistoryDictOrderPlatformModel.swift
index 57e4bb86bd..2400119c8c 100644
--- a/Sources/code/platform/Models/Order/HistoryDictOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/HistoryDictOrderPlatformModel.swift
@@ -26,7 +26,7 @@ public extension PlatformClient.Order {
public var ticketId: String?
- public var activityType: String
+ public var type: String
public var l2Detail: String?
@@ -57,7 +57,7 @@ public extension PlatformClient.Order {
case ticketId = "ticket_id"
- case activityType = "activity_type"
+ case type = "type"
case l2Detail = "l2_detail"
@@ -73,7 +73,7 @@ public extension PlatformClient.Order {
}
- public init(activityType: String, assignedAgent: String? = nil, bagId: Int? = nil, createdat: String, createdTs: String? = nil, displayMessage: String? = nil, l1Detail: String? = nil, l2Detail: String? = nil, l3Detail: String? = nil, message: String, meta: HistoryMeta? = nil, ticketId: String? = nil, ticketUrl: String? = nil, user: String) {
+ public init(assignedAgent: String? = nil, bagId: Int? = nil, createdat: String, createdTs: String? = nil, displayMessage: String? = nil, l1Detail: String? = nil, l2Detail: String? = nil, l3Detail: String? = nil, message: String, meta: HistoryMeta? = nil, ticketId: String? = nil, ticketUrl: String? = nil, type: String, user: String) {
self.displayMessage = displayMessage
@@ -89,7 +89,7 @@ public extension PlatformClient.Order {
self.ticketId = ticketId
- self.activityType = activityType
+ self.type = type
self.l2Detail = l2Detail
@@ -186,7 +186,7 @@ public extension PlatformClient.Order {
- activityType = try container.decode(String.self, forKey: .activityType)
+ type = try container.decode(String.self, forKey: .type)
@@ -290,7 +290,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(activityType, forKey: .activityType)
+ try? container.encodeIfPresent(type, forKey: .type)
@@ -353,7 +353,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var ticketId: String?
- public var activityType: String
+ public var type: String
public var l2Detail: String?
@@ -384,7 +384,7 @@ public extension PlatformClient.ApplicationClient.Order {
case ticketId = "ticket_id"
- case activityType = "activity_type"
+ case type = "type"
case l2Detail = "l2_detail"
@@ -400,7 +400,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(activityType: String, assignedAgent: String? = nil, bagId: Int? = nil, createdat: String, createdTs: String? = nil, displayMessage: String? = nil, l1Detail: String? = nil, l2Detail: String? = nil, l3Detail: String? = nil, message: String, meta: HistoryMeta? = nil, ticketId: String? = nil, ticketUrl: String? = nil, user: String) {
+ public init(assignedAgent: String? = nil, bagId: Int? = nil, createdat: String, createdTs: String? = nil, displayMessage: String? = nil, l1Detail: String? = nil, l2Detail: String? = nil, l3Detail: String? = nil, message: String, meta: HistoryMeta? = nil, ticketId: String? = nil, ticketUrl: String? = nil, type: String, user: String) {
self.displayMessage = displayMessage
@@ -416,7 +416,7 @@ public extension PlatformClient.ApplicationClient.Order {
self.ticketId = ticketId
- self.activityType = activityType
+ self.type = type
self.l2Detail = l2Detail
@@ -513,7 +513,7 @@ public extension PlatformClient.ApplicationClient.Order {
- activityType = try container.decode(String.self, forKey: .activityType)
+ type = try container.decode(String.self, forKey: .type)
@@ -617,7 +617,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(activityType, forKey: .activityType)
+ try? container.encodeIfPresent(type, forKey: .type)
diff --git a/Sources/code/platform/Models/Order/HistoryMetaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/HistoryMetaOrderPlatformModel.swift
index 75b9c9ef88..14514ce1a9 100644
--- a/Sources/code/platform/Models/Order/HistoryMetaOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/HistoryMetaOrderPlatformModel.swift
@@ -58,16 +58,6 @@ public extension PlatformClient.Order {
public var message: String?
- public var prevStoreName: String?
-
- public var prevStoreCode: String?
-
- public var prevStoreId: String?
-
- public var refundTo: String?
-
- public var refundInformation: [RefundInformation]?
-
public enum CodingKeys: String, CodingKey {
@@ -117,19 +107,9 @@ public extension PlatformClient.Order {
case message = "message"
- case prevStoreName = "prev_store_name"
-
- case prevStoreCode = "prev_store_code"
-
- case prevStoreId = "prev_store_id"
-
- case refundTo = "refund_to"
-
- case refundInformation = "refund_information"
-
}
- public init(activityComment: String? = nil, activityType: String? = nil, billsec: String? = nil, caller: String? = nil, callerid: String? = nil, callId: String? = nil, channelType: String? = nil, duration: String? = nil, endtime: String? = nil, message: String? = nil, prevStoreCode: String? = nil, prevStoreId: String? = nil, prevStoreName: String? = nil, reason: HistoryReason? = nil, receiver: String? = nil, recipient: String? = nil, recordpath: String? = nil, refundInformation: [RefundInformation]? = nil, refundTo: String? = nil, shortLink: String? = nil, slug: String? = nil, starttime: String? = nil, status: String? = nil, status1: String? = nil, status2: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil) {
+ public init(activityComment: String? = nil, activityType: String? = nil, billsec: String? = nil, caller: String? = nil, callerid: String? = nil, callId: String? = nil, channelType: String? = nil, duration: String? = nil, endtime: String? = nil, message: String? = nil, reason: HistoryReason? = nil, receiver: String? = nil, recipient: String? = nil, recordpath: String? = nil, shortLink: String? = nil, slug: String? = nil, starttime: String? = nil, status: String? = nil, status1: String? = nil, status2: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil) {
self.storeId = storeId
@@ -177,16 +157,6 @@ public extension PlatformClient.Order {
self.message = message
- self.prevStoreName = prevStoreName
-
- self.prevStoreCode = prevStoreCode
-
- self.prevStoreId = prevStoreId
-
- self.refundTo = refundTo
-
- self.refundInformation = refundInformation
-
}
required public init(from decoder: Decoder) throws {
@@ -468,66 +438,6 @@ public extension PlatformClient.Order {
}
-
- do {
- prevStoreName = try container.decode(String.self, forKey: .prevStoreName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- prevStoreCode = try container.decode(String.self, forKey: .prevStoreCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- prevStoreId = try container.decode(String.self, forKey: .prevStoreId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundTo = try container.decode(String.self, forKey: .refundTo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundInformation = try container.decode([RefundInformation].self, forKey: .refundInformation)
-
- } 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 {
@@ -648,31 +558,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(message, forKey: .message)
-
-
- try? container.encodeIfPresent(prevStoreName, forKey: .prevStoreName)
-
-
-
-
- try? container.encodeIfPresent(prevStoreCode, forKey: .prevStoreCode)
-
-
-
-
- try? container.encodeIfPresent(prevStoreId, forKey: .prevStoreId)
-
-
-
-
- try? container.encodeIfPresent(refundTo, forKey: .refundTo)
-
-
-
-
- try? container.encodeIfPresent(refundInformation, forKey: .refundInformation)
-
-
}
}
@@ -735,16 +620,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var message: String?
- public var prevStoreName: String?
-
- public var prevStoreCode: String?
-
- public var prevStoreId: String?
-
- public var refundTo: String?
-
- public var refundInformation: [RefundInformation]?
-
public enum CodingKeys: String, CodingKey {
@@ -794,19 +669,9 @@ public extension PlatformClient.ApplicationClient.Order {
case message = "message"
- case prevStoreName = "prev_store_name"
-
- case prevStoreCode = "prev_store_code"
-
- case prevStoreId = "prev_store_id"
-
- case refundTo = "refund_to"
-
- case refundInformation = "refund_information"
-
}
- public init(activityComment: String? = nil, activityType: String? = nil, billsec: String? = nil, caller: String? = nil, callerid: String? = nil, callId: String? = nil, channelType: String? = nil, duration: String? = nil, endtime: String? = nil, message: String? = nil, prevStoreCode: String? = nil, prevStoreId: String? = nil, prevStoreName: String? = nil, reason: HistoryReason? = nil, receiver: String? = nil, recipient: String? = nil, recordpath: String? = nil, refundInformation: [RefundInformation]? = nil, refundTo: String? = nil, shortLink: String? = nil, slug: String? = nil, starttime: String? = nil, status: String? = nil, status1: String? = nil, status2: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil) {
+ public init(activityComment: String? = nil, activityType: String? = nil, billsec: String? = nil, caller: String? = nil, callerid: String? = nil, callId: String? = nil, channelType: String? = nil, duration: String? = nil, endtime: String? = nil, message: String? = nil, reason: HistoryReason? = nil, receiver: String? = nil, recipient: String? = nil, recordpath: String? = nil, shortLink: String? = nil, slug: String? = nil, starttime: String? = nil, status: String? = nil, status1: String? = nil, status2: String? = nil, storeCode: String? = nil, storeId: Int? = nil, storeName: String? = nil) {
self.storeId = storeId
@@ -854,16 +719,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.message = message
- self.prevStoreName = prevStoreName
-
- self.prevStoreCode = prevStoreCode
-
- self.prevStoreId = prevStoreId
-
- self.refundTo = refundTo
-
- self.refundInformation = refundInformation
-
}
required public init(from decoder: Decoder) throws {
@@ -1145,66 +1000,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- prevStoreName = try container.decode(String.self, forKey: .prevStoreName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- prevStoreCode = try container.decode(String.self, forKey: .prevStoreCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- prevStoreId = try container.decode(String.self, forKey: .prevStoreId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundTo = try container.decode(String.self, forKey: .refundTo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundInformation = try container.decode([RefundInformation].self, forKey: .refundInformation)
-
- } 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 {
@@ -1325,31 +1120,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(message, forKey: .message)
-
-
- try? container.encodeIfPresent(prevStoreName, forKey: .prevStoreName)
-
-
-
-
- try? container.encodeIfPresent(prevStoreCode, forKey: .prevStoreCode)
-
-
-
-
- try? container.encodeIfPresent(prevStoreId, forKey: .prevStoreId)
-
-
-
-
- try? container.encodeIfPresent(refundTo, forKey: .refundTo)
-
-
-
-
- try? container.encodeIfPresent(refundInformation, forKey: .refundInformation)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..54dd468d99
--- /dev/null
+++ b/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseOrderPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: InvalidateShipmentCacheNestedResponse
+ Used By: Order
+ */
+
+ class InvalidateShipmentCacheNestedResponse: Codable {
+
+
+ public var shipmentId: String?
+
+ public var status: Int?
+
+ public var message: String?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipmentId = "shipment_id"
+
+ case status = "status"
+
+ case message = "message"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, message: String? = nil, shipmentId: String? = nil, status: Int? = nil) {
+
+ self.shipmentId = shipmentId
+
+ self.status = status
+
+ self.message = message
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: InvalidateShipmentCacheNestedResponse
+ Used By: Order
+ */
+
+ class InvalidateShipmentCacheNestedResponse: Codable {
+
+
+ public var shipmentId: String?
+
+ public var status: Int?
+
+ public var message: String?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipmentId = "shipment_id"
+
+ case status = "status"
+
+ case message = "message"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, message: String? = nil, shipmentId: String? = nil, status: Int? = nil) {
+
+ self.shipmentId = shipmentId
+
+ self.status = status
+
+ self.message = message
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(shipmentId, forKey: .shipmentId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 3691fc2df0..0000000000
--- a/Sources/code/platform/Models/Order/InvalidateShipmentCacheNestedResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: InvalidateShipmentCacheNestedResponseSchema
- Used By: Order
- */
-
- class InvalidateShipmentCacheNestedResponseSchema: Codable {
-
-
- public var shipmentId: String?
-
- public var status: Int?
-
- public var message: String?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case status = "status"
-
- case message = "message"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, message: String? = nil, shipmentId: String? = nil, status: Int? = nil) {
-
- self.shipmentId = shipmentId
-
- self.status = status
-
- self.message = message
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: InvalidateShipmentCacheNestedResponseSchema
- Used By: Order
- */
-
- class InvalidateShipmentCacheNestedResponseSchema: Codable {
-
-
- public var shipmentId: String?
-
- public var status: Int?
-
- public var message: String?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case status = "status"
-
- case message = "message"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, message: String? = nil, shipmentId: String? = nil, status: Int? = nil) {
-
- self.shipmentId = shipmentId
-
- self.status = status
-
- self.message = message
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..fa4d085402
--- /dev/null
+++ b/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: InvalidateShipmentCacheResponse
+ Used By: Order
+ */
+
+ class InvalidateShipmentCacheResponse: Codable {
+
+
+ public var response: [InvalidateShipmentCacheNestedResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case response = "response"
+
+ }
+
+ public init(response: [InvalidateShipmentCacheNestedResponse]? = nil) {
+
+ self.response = response
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ response = try container.decode([InvalidateShipmentCacheNestedResponse].self, forKey: .response)
+
+ } 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(response, forKey: .response)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: InvalidateShipmentCacheResponse
+ Used By: Order
+ */
+
+ class InvalidateShipmentCacheResponse: Codable {
+
+
+ public var response: [InvalidateShipmentCacheNestedResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case response = "response"
+
+ }
+
+ public init(response: [InvalidateShipmentCacheNestedResponse]? = nil) {
+
+ self.response = response
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ response = try container.decode([InvalidateShipmentCacheNestedResponse].self, forKey: .response)
+
+ } 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(response, forKey: .response)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 80c8a04730..0000000000
--- a/Sources/code/platform/Models/Order/InvalidateShipmentCacheResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: InvalidateShipmentCacheResponseSchema
- Used By: Order
- */
-
- class InvalidateShipmentCacheResponseSchema: Codable {
-
-
- public var response: [InvalidateShipmentCacheNestedResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case response = "response"
-
- }
-
- public init(response: [InvalidateShipmentCacheNestedResponseSchema]? = nil) {
-
- self.response = response
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- response = try container.decode([InvalidateShipmentCacheNestedResponseSchema].self, forKey: .response)
-
- } 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(response, forKey: .response)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: InvalidateShipmentCacheResponseSchema
- Used By: Order
- */
-
- class InvalidateShipmentCacheResponseSchema: Codable {
-
-
- public var response: [InvalidateShipmentCacheNestedResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case response = "response"
-
- }
-
- public init(response: [InvalidateShipmentCacheNestedResponseSchema]? = nil) {
-
- self.response = response
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- response = try container.decode([InvalidateShipmentCacheNestedResponseSchema].self, forKey: .response)
-
- } 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(response, forKey: .response)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ItemPriceDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ItemPriceDetailsOrderPlatformModel.swift
deleted file mode 100644
index baf4fcb113..0000000000
--- a/Sources/code/platform/Models/Order/ItemPriceDetailsOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ItemPriceDetails
- Used By: Order
- */
-
- class ItemPriceDetails: Codable {
-
-
- public var marked: PriceMinMax?
-
- public var effective: PriceMinMax?
-
- public var currency: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case marked = "marked"
-
- case effective = "effective"
-
- case currency = "currency"
-
- }
-
- public init(currency: String? = nil, effective: PriceMinMax? = nil, marked: PriceMinMax? = nil) {
-
- self.marked = marked
-
- self.effective = effective
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- marked = try container.decode(PriceMinMax.self, forKey: .marked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- effective = try container.decode(PriceMinMax.self, forKey: .effective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(marked, forKey: .marked)
-
-
-
-
- try? container.encodeIfPresent(effective, forKey: .effective)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ItemPriceDetails
- Used By: Order
- */
-
- class ItemPriceDetails: Codable {
-
-
- public var marked: PriceMinMax?
-
- public var effective: PriceMinMax?
-
- public var currency: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case marked = "marked"
-
- case effective = "effective"
-
- case currency = "currency"
-
- }
-
- public init(currency: String? = nil, effective: PriceMinMax? = nil, marked: PriceMinMax? = nil) {
-
- self.marked = marked
-
- self.effective = effective
-
- self.currency = currency
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- marked = try container.decode(PriceMinMax.self, forKey: .marked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- effective = try container.decode(PriceMinMax.self, forKey: .effective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(marked, forKey: .marked)
-
-
-
-
- try? container.encodeIfPresent(effective, forKey: .effective)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/JobDetailsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/JobDetailsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..74cfafd3ae
--- /dev/null
+++ b/Sources/code/platform/Models/Order/JobDetailsResponseOrderPlatformModel.swift
@@ -0,0 +1,530 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: JobDetailsResponse
+ Used By: Order
+ */
+
+ class JobDetailsResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [JobDetailsData]?
+
+ public var fileUrl: String?
+
+ public var message: String?
+
+ public var failedRecords: [[String: String]]?
+
+ public var uploadedBy: String?
+
+ public var userId: String?
+
+ public var createdTs: String?
+
+ public var uploadedOn: String?
+
+ public var status: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case fileUrl = "file_url"
+
+ case message = "message"
+
+ case failedRecords = "failed_records"
+
+ case uploadedBy = "uploaded_by"
+
+ case userId = "user_id"
+
+ case createdTs = "created_ts"
+
+ case uploadedOn = "uploaded_on"
+
+ case status = "status"
+
+ }
+
+ public init(createdTs: String? = nil, data: [JobDetailsData]? = nil, failedRecords: [[String: String]]? = nil, fileUrl: String? = nil, message: String? = nil, status: String? = nil, success: Bool? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ self.fileUrl = fileUrl
+
+ self.message = message
+
+ self.failedRecords = failedRecords
+
+ self.uploadedBy = uploadedBy
+
+ self.userId = userId
+
+ self.createdTs = createdTs
+
+ self.uploadedOn = uploadedOn
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([JobDetailsData].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fileUrl = try container.decode(String.self, forKey: .fileUrl)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ failedRecords = try container.decode([[String: String]].self, forKey: .failedRecords)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ uploadedBy = try container.decode(String.self, forKey: .uploadedBy)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdTs = try container.decode(String.self, forKey: .createdTs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ uploadedOn = try container.decode(String.self, forKey: .uploadedOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(fileUrl, forKey: .fileUrl)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(uploadedBy, forKey: .uploadedBy)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(createdTs, forKey: .createdTs)
+
+
+
+
+ try? container.encodeIfPresent(uploadedOn, forKey: .uploadedOn)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: JobDetailsResponse
+ Used By: Order
+ */
+
+ class JobDetailsResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var data: [JobDetailsData]?
+
+ public var fileUrl: String?
+
+ public var message: String?
+
+ public var failedRecords: [[String: String]]?
+
+ public var uploadedBy: String?
+
+ public var userId: String?
+
+ public var createdTs: String?
+
+ public var uploadedOn: String?
+
+ public var status: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case data = "data"
+
+ case fileUrl = "file_url"
+
+ case message = "message"
+
+ case failedRecords = "failed_records"
+
+ case uploadedBy = "uploaded_by"
+
+ case userId = "user_id"
+
+ case createdTs = "created_ts"
+
+ case uploadedOn = "uploaded_on"
+
+ case status = "status"
+
+ }
+
+ public init(createdTs: String? = nil, data: [JobDetailsData]? = nil, failedRecords: [[String: String]]? = nil, fileUrl: String? = nil, message: String? = nil, status: String? = nil, success: Bool? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil) {
+
+ self.success = success
+
+ self.data = data
+
+ self.fileUrl = fileUrl
+
+ self.message = message
+
+ self.failedRecords = failedRecords
+
+ self.uploadedBy = uploadedBy
+
+ self.userId = userId
+
+ self.createdTs = createdTs
+
+ self.uploadedOn = uploadedOn
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ data = try container.decode([JobDetailsData].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ fileUrl = try container.decode(String.self, forKey: .fileUrl)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ failedRecords = try container.decode([[String: String]].self, forKey: .failedRecords)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ uploadedBy = try container.decode(String.self, forKey: .uploadedBy)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdTs = try container.decode(String.self, forKey: .createdTs)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ uploadedOn = try container.decode(String.self, forKey: .uploadedOn)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(fileUrl, forKey: .fileUrl)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(uploadedBy, forKey: .uploadedBy)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(createdTs, forKey: .createdTs)
+
+
+
+
+ try? container.encodeIfPresent(uploadedOn, forKey: .uploadedOn)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/JobDetailsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/JobDetailsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 28f7f3573c..0000000000
--- a/Sources/code/platform/Models/Order/JobDetailsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: JobDetailsResponseSchema
- Used By: Order
- */
-
- class JobDetailsResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var data: [JobDetailsData]?
-
- public var fileUrl: String?
-
- public var message: String?
-
- public var failedRecords: [[String: String]]?
-
- public var uploadedBy: String?
-
- public var userId: String?
-
- public var createdTs: String?
-
- public var uploadedOn: String?
-
- public var status: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- case fileUrl = "file_url"
-
- case message = "message"
-
- case failedRecords = "failed_records"
-
- case uploadedBy = "uploaded_by"
-
- case userId = "user_id"
-
- case createdTs = "created_ts"
-
- case uploadedOn = "uploaded_on"
-
- case status = "status"
-
- }
-
- public init(createdTs: String? = nil, data: [JobDetailsData]? = nil, failedRecords: [[String: String]]? = nil, fileUrl: String? = nil, message: String? = nil, status: String? = nil, success: Bool? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil) {
-
- self.success = success
-
- self.data = data
-
- self.fileUrl = fileUrl
-
- self.message = message
-
- self.failedRecords = failedRecords
-
- self.uploadedBy = uploadedBy
-
- self.userId = userId
-
- self.createdTs = createdTs
-
- self.uploadedOn = uploadedOn
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode([JobDetailsData].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fileUrl = try container.decode(String.self, forKey: .fileUrl)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failedRecords = try container.decode([[String: String]].self, forKey: .failedRecords)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- uploadedBy = try container.decode(String.self, forKey: .uploadedBy)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- createdTs = try container.decode(String.self, forKey: .createdTs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- uploadedOn = try container.decode(String.self, forKey: .uploadedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(fileUrl, forKey: .fileUrl)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(uploadedBy, forKey: .uploadedBy)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(createdTs, forKey: .createdTs)
-
-
-
-
- try? container.encodeIfPresent(uploadedOn, forKey: .uploadedOn)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: JobDetailsResponseSchema
- Used By: Order
- */
-
- class JobDetailsResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var data: [JobDetailsData]?
-
- public var fileUrl: String?
-
- public var message: String?
-
- public var failedRecords: [[String: String]]?
-
- public var uploadedBy: String?
-
- public var userId: String?
-
- public var createdTs: String?
-
- public var uploadedOn: String?
-
- public var status: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case data = "data"
-
- case fileUrl = "file_url"
-
- case message = "message"
-
- case failedRecords = "failed_records"
-
- case uploadedBy = "uploaded_by"
-
- case userId = "user_id"
-
- case createdTs = "created_ts"
-
- case uploadedOn = "uploaded_on"
-
- case status = "status"
-
- }
-
- public init(createdTs: String? = nil, data: [JobDetailsData]? = nil, failedRecords: [[String: String]]? = nil, fileUrl: String? = nil, message: String? = nil, status: String? = nil, success: Bool? = nil, uploadedBy: String? = nil, uploadedOn: String? = nil, userId: String? = nil) {
-
- self.success = success
-
- self.data = data
-
- self.fileUrl = fileUrl
-
- self.message = message
-
- self.failedRecords = failedRecords
-
- self.uploadedBy = uploadedBy
-
- self.userId = userId
-
- self.createdTs = createdTs
-
- self.uploadedOn = uploadedOn
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- data = try container.decode([JobDetailsData].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fileUrl = try container.decode(String.self, forKey: .fileUrl)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failedRecords = try container.decode([[String: String]].self, forKey: .failedRecords)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- uploadedBy = try container.decode(String.self, forKey: .uploadedBy)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- createdTs = try container.decode(String.self, forKey: .createdTs)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- uploadedOn = try container.decode(String.self, forKey: .uploadedOn)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(fileUrl, forKey: .fileUrl)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(uploadedBy, forKey: .uploadedBy)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(createdTs, forKey: .createdTs)
-
-
-
-
- try? container.encodeIfPresent(uploadedOn, forKey: .uploadedOn)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/JobFailedResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/JobFailedResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..24de8f11eb
--- /dev/null
+++ b/Sources/code/platform/Models/Order/JobFailedResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: JobFailedResponse
+ Used By: Order
+ */
+
+ class JobFailedResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case url = "url"
+
+ }
+
+ public init(fileName: String? = nil, url: String? = nil) {
+
+ self.fileName = fileName
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: JobFailedResponse
+ Used By: Order
+ */
+
+ class JobFailedResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case url = "url"
+
+ }
+
+ public init(fileName: String? = nil, url: String? = nil) {
+
+ self.fileName = fileName
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/JobFailedResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/JobFailedResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 385ca4e534..0000000000
--- a/Sources/code/platform/Models/Order/JobFailedResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: JobFailedResponseSchema
- Used By: Order
- */
-
- class JobFailedResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case url = "url"
-
- }
-
- public init(fileName: String? = nil, url: String? = nil) {
-
- self.fileName = fileName
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: JobFailedResponseSchema
- Used By: Order
- */
-
- class JobFailedResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case url = "url"
-
- }
-
- public init(fileName: String? = nil, url: String? = nil) {
-
- self.fileName = fileName
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/LaneConfigResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/LaneConfigResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..c8e6f4be17
--- /dev/null
+++ b/Sources/code/platform/Models/Order/LaneConfigResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: LaneConfigResponse
+ Used By: Order
+ */
+
+ class LaneConfigResponse: Codable {
+
+
+ public var superLanes: [SuperLane]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case superLanes = "super_lanes"
+
+ }
+
+ public init(superLanes: [SuperLane]? = nil) {
+
+ self.superLanes = superLanes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ superLanes = try container.decode([SuperLane].self, forKey: .superLanes)
+
+ } 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(superLanes, forKey: .superLanes)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: LaneConfigResponse
+ Used By: Order
+ */
+
+ class LaneConfigResponse: Codable {
+
+
+ public var superLanes: [SuperLane]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case superLanes = "super_lanes"
+
+ }
+
+ public init(superLanes: [SuperLane]? = nil) {
+
+ self.superLanes = superLanes
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ superLanes = try container.decode([SuperLane].self, forKey: .superLanes)
+
+ } 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(superLanes, forKey: .superLanes)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/LaneConfigResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/LaneConfigResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 6b8ebd4f8f..0000000000
--- a/Sources/code/platform/Models/Order/LaneConfigResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: LaneConfigResponseSchema
- Used By: Order
- */
-
- class LaneConfigResponseSchema: Codable {
-
-
- public var superLanes: [SuperLane]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case superLanes = "super_lanes"
-
- }
-
- public init(superLanes: [SuperLane]? = nil) {
-
- self.superLanes = superLanes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- superLanes = try container.decode([SuperLane].self, forKey: .superLanes)
-
- } 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(superLanes, forKey: .superLanes)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: LaneConfigResponseSchema
- Used By: Order
- */
-
- class LaneConfigResponseSchema: Codable {
-
-
- public var superLanes: [SuperLane]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case superLanes = "super_lanes"
-
- }
-
- public init(superLanes: [SuperLane]? = nil) {
-
- self.superLanes = superLanes
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- superLanes = try container.decode([SuperLane].self, forKey: .superLanes)
-
- } 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(superLanes, forKey: .superLanes)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/LocationDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/LocationDetailsOrderPlatformModel.swift
deleted file mode 100644
index 5f37d8a287..0000000000
--- a/Sources/code/platform/Models/Order/LocationDetailsOrderPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: LocationDetails
- Used By: Order
- */
-
- class LocationDetails: Codable {
-
-
- public var fulfillmentType: String
-
- public var articles: [ArticleDetails]
-
- public var fulfillmentId: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfillmentType = "fulfillment_type"
-
- case articles = "articles"
-
- case fulfillmentId = "fulfillment_id"
-
- }
-
- public init(articles: [ArticleDetails], fulfillmentId: Int, fulfillmentType: String) {
-
- self.fulfillmentType = fulfillmentType
-
- self.articles = articles
-
- self.fulfillmentId = fulfillmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
-
-
-
-
- articles = try container.decode([ArticleDetails].self, forKey: .articles)
-
-
-
-
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: LocationDetails
- Used By: Order
- */
-
- class LocationDetails: Codable {
-
-
- public var fulfillmentType: String
-
- public var articles: [ArticleDetails]
-
- public var fulfillmentId: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfillmentType = "fulfillment_type"
-
- case articles = "articles"
-
- case fulfillmentId = "fulfillment_id"
-
- }
-
- public init(articles: [ArticleDetails], fulfillmentId: Int, fulfillmentType: String) {
-
- self.fulfillmentType = fulfillmentType
-
- self.articles = articles
-
- self.fulfillmentId = fulfillmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fulfillmentType = try container.decode(String.self, forKey: .fulfillmentType)
-
-
-
-
- articles = try container.decode([ArticleDetails].self, forKey: .articles)
-
-
-
-
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fulfillmentType, forKey: .fulfillmentType)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/LockStateMessageOrderPlatformModel.swift b/Sources/code/platform/Models/Order/LockStateMessageOrderPlatformModel.swift
deleted file mode 100644
index b1faf841ce..0000000000
--- a/Sources/code/platform/Models/Order/LockStateMessageOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: LockStateMessage
- Used By: Order
- */
-
- class LockStateMessage: Codable {
-
-
- public var state: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case state = "state"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, state: String? = nil) {
-
- self.state = state
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: LockStateMessage
- Used By: Order
- */
-
- class LockStateMessage: Codable {
-
-
- public var state: String?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case state = "state"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, state: String? = nil) {
-
- self.state = state
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ManifestErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..02e52515b0
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ManifestErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ManifestErrorResponse
+ Used By: Order
+ */
+
+ class ManifestErrorResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ManifestErrorResponse
+ Used By: Order
+ */
+
+ class ManifestErrorResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ManifestErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index ed93c7a82a..0000000000
--- a/Sources/code/platform/Models/Order/ManifestErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ManifestErrorResponseSchema
- Used By: Order
- */
-
- class ManifestErrorResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ManifestErrorResponseSchema
- Used By: Order
- */
-
- class ManifestErrorResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ManifestFiltersResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestFiltersResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..e3b35dd2ac
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ManifestFiltersResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ManifestFiltersResponse
+ Used By: Order
+ */
+
+ class ManifestFiltersResponse: Codable {
+
+
+ public var advanceFilter: [FiltersInfo]?
+
+ public var globalFilter: [FiltersInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case advanceFilter = "advance_filter"
+
+ case globalFilter = "global_filter"
+
+ }
+
+ public init(advanceFilter: [FiltersInfo]? = nil, globalFilter: [FiltersInfo]? = nil) {
+
+ self.advanceFilter = advanceFilter
+
+ self.globalFilter = globalFilter
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ advanceFilter = try container.decode([FiltersInfo].self, forKey: .advanceFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
+
+ } 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(advanceFilter, forKey: .advanceFilter)
+
+
+
+
+ try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ManifestFiltersResponse
+ Used By: Order
+ */
+
+ class ManifestFiltersResponse: Codable {
+
+
+ public var advanceFilter: [FiltersInfo]?
+
+ public var globalFilter: [FiltersInfo]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case advanceFilter = "advance_filter"
+
+ case globalFilter = "global_filter"
+
+ }
+
+ public init(advanceFilter: [FiltersInfo]? = nil, globalFilter: [FiltersInfo]? = nil) {
+
+ self.advanceFilter = advanceFilter
+
+ self.globalFilter = globalFilter
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ advanceFilter = try container.decode([FiltersInfo].self, forKey: .advanceFilter)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
+
+ } 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(advanceFilter, forKey: .advanceFilter)
+
+
+
+
+ try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ManifestFiltersResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestFiltersResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index cdf90825af..0000000000
--- a/Sources/code/platform/Models/Order/ManifestFiltersResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ManifestFiltersResponseSchema
- Used By: Order
- */
-
- class ManifestFiltersResponseSchema: Codable {
-
-
- public var advanceFilter: [FiltersInfo]?
-
- public var globalFilter: [FiltersInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case advanceFilter = "advance_filter"
-
- case globalFilter = "global_filter"
-
- }
-
- public init(advanceFilter: [FiltersInfo]? = nil, globalFilter: [FiltersInfo]? = nil) {
-
- self.advanceFilter = advanceFilter
-
- self.globalFilter = globalFilter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- advanceFilter = try container.decode([FiltersInfo].self, forKey: .advanceFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
-
- } 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(advanceFilter, forKey: .advanceFilter)
-
-
-
-
- try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ManifestFiltersResponseSchema
- Used By: Order
- */
-
- class ManifestFiltersResponseSchema: Codable {
-
-
- public var advanceFilter: [FiltersInfo]?
-
- public var globalFilter: [FiltersInfo]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case advanceFilter = "advance_filter"
-
- case globalFilter = "global_filter"
-
- }
-
- public init(advanceFilter: [FiltersInfo]? = nil, globalFilter: [FiltersInfo]? = nil) {
-
- self.advanceFilter = advanceFilter
-
- self.globalFilter = globalFilter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- advanceFilter = try container.decode([FiltersInfo].self, forKey: .advanceFilter)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- globalFilter = try container.decode([FiltersInfo].self, forKey: .globalFilter)
-
- } 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(advanceFilter, forKey: .advanceFilter)
-
-
-
-
- try? container.encodeIfPresent(globalFilter, forKey: .globalFilter)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ManifestResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..30c30b47b7
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ManifestResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ManifestResponse
+ Used By: Order
+ */
+
+ class ManifestResponse: Codable {
+
+
+ public var items: ManifestItems?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: ManifestItems? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode(ManifestItems.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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ManifestResponse
+ Used By: Order
+ */
+
+ class ManifestResponse: Codable {
+
+
+ public var items: ManifestItems?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ }
+
+ public init(items: ManifestItems? = nil) {
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ items = try container.decode(ManifestItems.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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ManifestResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ManifestResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 6409f6bc5f..0000000000
--- a/Sources/code/platform/Models/Order/ManifestResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ManifestResponseSchema
- Used By: Order
- */
-
- class ManifestResponseSchema: Codable {
-
-
- public var items: ManifestItems?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: ManifestItems? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode(ManifestItems.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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ManifestResponseSchema
- Used By: Order
- */
-
- class ManifestResponseSchema: Codable {
-
-
- public var items: ManifestItems?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: ManifestItems? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode(ManifestItems.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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/MarketPlacePdfOrderPlatformModel.swift b/Sources/code/platform/Models/Order/MarketPlacePdfOrderPlatformModel.swift
deleted file mode 100644
index 6b458fbf64..0000000000
--- a/Sources/code/platform/Models/Order/MarketPlacePdfOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: MarketPlacePdf
- Used By: Order
- */
-
- class MarketPlacePdf: Codable {
-
-
- public var invoice: String?
-
- public var label: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case invoice = "invoice"
-
- case label = "label"
-
- }
-
- public init(invoice: String? = nil, label: String? = nil) {
-
- self.invoice = invoice
-
- self.label = label
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- invoice = try container.decode(String.self, forKey: .invoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- label = try container.decode(String.self, forKey: .label)
-
- } 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(invoice, forKey: .invoice)
-
-
-
-
- try? container.encodeIfPresent(label, forKey: .label)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: MarketPlacePdf
- Used By: Order
- */
-
- class MarketPlacePdf: Codable {
-
-
- public var invoice: String?
-
- public var label: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case invoice = "invoice"
-
- case label = "label"
-
- }
-
- public init(invoice: String? = nil, label: String? = nil) {
-
- self.invoice = invoice
-
- self.label = label
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- invoice = try container.decode(String.self, forKey: .invoice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- label = try container.decode(String.self, forKey: .label)
-
- } 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(invoice, forKey: .invoice)
-
-
-
-
- try? container.encodeIfPresent(label, forKey: .label)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderBagsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderBagsOrderPlatformModel.swift
index 918b0e6f7e..c36ee079e5 100644
--- a/Sources/code/platform/Models/Order/OrderBagsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/OrderBagsOrderPlatformModel.swift
@@ -24,7 +24,7 @@ public extension PlatformClient.Order {
public var sellerIdentifier: String?
- public var deliveryAddress: Address?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var article: OrderBagArticle?
@@ -58,10 +58,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var currentStatus: CurrentStatus?
public var bagId: Int
@@ -119,10 +115,6 @@ public extension PlatformClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case currentStatus = "current_status"
case bagId = "bag_id"
@@ -133,7 +125,7 @@ public extension PlatformClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagsDetails? = nil, appliedPromos: [AppliedPromos]? = nil, article: OrderBagArticle? = nil, bagConfigs: BagConfigs? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, brand: OrderBrandName? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, currentStatus: CurrentStatus? = nil, deliveryAddress: Address? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: FinancialBreakup? = nil, groupId: String? = nil, gstDetails: GSTDetailsData? = nil, identifier: String? = nil, isParent: Bool? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, parentPromoBags: [String: Any]? = nil, paymentInfo: [BagPaymentMethods]? = nil, paymentMethods: [BagPaymentMethods]? = nil, prices: Prices? = nil, quantity: Int? = nil, sellerIdentifier: String? = nil) {
+ public init(affiliateBagDetails: AffiliateBagsDetails? = nil, appliedPromos: [AppliedPromos]? = nil, article: OrderBagArticle? = nil, bagConfigs: BagConfigs? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, brand: OrderBrandName? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentStatus: CurrentStatus? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: FinancialBreakup? = nil, groupId: String? = nil, gstDetails: GSTDetailsData? = nil, identifier: String? = nil, isParent: Bool? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, parentPromoBags: [String: Any]? = nil, paymentInfo: [BagPaymentMethods]? = nil, paymentMethods: [BagPaymentMethods]? = nil, prices: Prices? = nil, quantity: Int? = nil, sellerIdentifier: String? = nil) {
self.gstDetails = gstDetails
@@ -181,10 +173,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.currentStatus = currentStatus
self.bagId = bagId
@@ -272,7 +260,7 @@ public extension PlatformClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -475,30 +463,6 @@ public extension PlatformClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
currentStatus = try container.decode(CurrentStatus.self, forKey: .currentStatus)
@@ -661,16 +625,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
@@ -717,7 +671,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var sellerIdentifier: String?
- public var deliveryAddress: Address?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var article: OrderBagArticle?
@@ -751,10 +705,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var currentStatus: CurrentStatus?
public var bagId: Int
@@ -812,10 +762,6 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case currentStatus = "current_status"
case bagId = "bag_id"
@@ -826,7 +772,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(affiliateBagDetails: AffiliateBagsDetails? = nil, appliedPromos: [AppliedPromos]? = nil, article: OrderBagArticle? = nil, bagConfigs: BagConfigs? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, brand: OrderBrandName? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, currentStatus: CurrentStatus? = nil, deliveryAddress: Address? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: FinancialBreakup? = nil, groupId: String? = nil, gstDetails: GSTDetailsData? = nil, identifier: String? = nil, isParent: Bool? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, parentPromoBags: [String: Any]? = nil, paymentInfo: [BagPaymentMethods]? = nil, paymentMethods: [BagPaymentMethods]? = nil, prices: Prices? = nil, quantity: Int? = nil, sellerIdentifier: String? = nil) {
+ public init(affiliateBagDetails: AffiliateBagsDetails? = nil, appliedPromos: [AppliedPromos]? = nil, article: OrderBagArticle? = nil, bagConfigs: BagConfigs? = nil, bagId: Int, bagStatus: [BagStatusHistory]? = nil, brand: OrderBrandName? = nil, canCancel: Bool? = nil, canReturn: Bool? = nil, currentStatus: CurrentStatus? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, displayName: String? = nil, entityType: String? = nil, financialBreakup: FinancialBreakup? = nil, groupId: String? = nil, gstDetails: GSTDetailsData? = nil, identifier: String? = nil, isParent: Bool? = nil, item: PlatformItem? = nil, lineNumber: Int? = nil, meta: [String: Any]? = nil, parentPromoBags: [String: Any]? = nil, paymentInfo: [BagPaymentMethods]? = nil, paymentMethods: [BagPaymentMethods]? = nil, prices: Prices? = nil, quantity: Int? = nil, sellerIdentifier: String? = nil) {
self.gstDetails = gstDetails
@@ -874,10 +820,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.currentStatus = currentStatus
self.bagId = bagId
@@ -965,7 +907,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1168,30 +1110,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
currentStatus = try container.decode(CurrentStatus.self, forKey: .currentStatus)
@@ -1354,16 +1272,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
diff --git a/Sources/code/platform/Models/Order/OrderConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderConfigOrderPlatformModel.swift
deleted file mode 100644
index d02010c992..0000000000
--- a/Sources/code/platform/Models/Order/OrderConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,318 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderConfig
- Used By: Order
- */
-
- class OrderConfig: Codable {
-
-
- public var createUser: Bool?
-
- public var articleLookup: String?
-
- public var bagEndState: String?
-
- public var affiliate: Affiliate
-
- public var storeLookup: String?
-
- public var affiliateStoreIdMapping: [AffiliateStoreIdMapping]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createUser = "create_user"
-
- case articleLookup = "article_lookup"
-
- case bagEndState = "bag_end_state"
-
- case affiliate = "affiliate"
-
- case storeLookup = "store_lookup"
-
- case affiliateStoreIdMapping = "affiliate_store_id_mapping"
-
- }
-
- public init(affiliate: Affiliate, affiliateStoreIdMapping: [AffiliateStoreIdMapping], articleLookup: String? = nil, bagEndState: String? = nil, createUser: Bool? = nil, storeLookup: String? = nil) {
-
- self.createUser = createUser
-
- self.articleLookup = articleLookup
-
- self.bagEndState = bagEndState
-
- self.affiliate = affiliate
-
- self.storeLookup = storeLookup
-
- self.affiliateStoreIdMapping = affiliateStoreIdMapping
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- createUser = try container.decode(Bool.self, forKey: .createUser)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articleLookup = try container.decode(String.self, forKey: .articleLookup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bagEndState = try container.decode(String.self, forKey: .bagEndState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- affiliate = try container.decode(Affiliate.self, forKey: .affiliate)
-
-
-
-
- do {
- storeLookup = try container.decode(String.self, forKey: .storeLookup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- affiliateStoreIdMapping = try container.decode([AffiliateStoreIdMapping].self, forKey: .affiliateStoreIdMapping)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(createUser, forKey: .createUser)
-
-
-
-
- try? container.encodeIfPresent(articleLookup, forKey: .articleLookup)
-
-
-
-
- try? container.encodeIfPresent(bagEndState, forKey: .bagEndState)
-
-
-
-
- try? container.encodeIfPresent(affiliate, forKey: .affiliate)
-
-
-
-
- try? container.encodeIfPresent(storeLookup, forKey: .storeLookup)
-
-
-
-
- try? container.encodeIfPresent(affiliateStoreIdMapping, forKey: .affiliateStoreIdMapping)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderConfig
- Used By: Order
- */
-
- class OrderConfig: Codable {
-
-
- public var createUser: Bool?
-
- public var articleLookup: String?
-
- public var bagEndState: String?
-
- public var affiliate: Affiliate
-
- public var storeLookup: String?
-
- public var affiliateStoreIdMapping: [AffiliateStoreIdMapping]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createUser = "create_user"
-
- case articleLookup = "article_lookup"
-
- case bagEndState = "bag_end_state"
-
- case affiliate = "affiliate"
-
- case storeLookup = "store_lookup"
-
- case affiliateStoreIdMapping = "affiliate_store_id_mapping"
-
- }
-
- public init(affiliate: Affiliate, affiliateStoreIdMapping: [AffiliateStoreIdMapping], articleLookup: String? = nil, bagEndState: String? = nil, createUser: Bool? = nil, storeLookup: String? = nil) {
-
- self.createUser = createUser
-
- self.articleLookup = articleLookup
-
- self.bagEndState = bagEndState
-
- self.affiliate = affiliate
-
- self.storeLookup = storeLookup
-
- self.affiliateStoreIdMapping = affiliateStoreIdMapping
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- createUser = try container.decode(Bool.self, forKey: .createUser)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- articleLookup = try container.decode(String.self, forKey: .articleLookup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bagEndState = try container.decode(String.self, forKey: .bagEndState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- affiliate = try container.decode(Affiliate.self, forKey: .affiliate)
-
-
-
-
- do {
- storeLookup = try container.decode(String.self, forKey: .storeLookup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- affiliateStoreIdMapping = try container.decode([AffiliateStoreIdMapping].self, forKey: .affiliateStoreIdMapping)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(createUser, forKey: .createUser)
-
-
-
-
- try? container.encodeIfPresent(articleLookup, forKey: .articleLookup)
-
-
-
-
- try? container.encodeIfPresent(bagEndState, forKey: .bagEndState)
-
-
-
-
- try? container.encodeIfPresent(affiliate, forKey: .affiliate)
-
-
-
-
- try? container.encodeIfPresent(storeLookup, forKey: .storeLookup)
-
-
-
-
- try? container.encodeIfPresent(affiliateStoreIdMapping, forKey: .affiliateStoreIdMapping)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderDataOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderDataOrderPlatformModel.swift
index dc2cd5e31b..b88b0558bc 100644
--- a/Sources/code/platform/Models/Order/OrderDataOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/OrderDataOrderPlatformModel.swift
@@ -12,8 +12,6 @@ public extension PlatformClient.Order {
class OrderData: Codable {
- public var orderingChannel: String?
-
public var orderDate: String
public var createdTs: String?
@@ -26,27 +24,13 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var paymentMethods: [String: Any]?
public var paymentInfo: [PaymentInfoData]?
- public var affiliateOrderId: String?
-
- public var affiliateId: String?
-
- public var source: String?
-
- public var currency: CurrencySchema?
-
public enum CodingKeys: String, CodingKey {
- case orderingChannel = "ordering_channel"
-
case orderDate = "order_date"
case createdTs = "created_ts"
@@ -59,27 +43,13 @@ public extension PlatformClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case paymentMethods = "payment_methods"
case paymentInfo = "payment_info"
- case affiliateOrderId = "affiliate_order_id"
-
- case affiliateId = "affiliate_id"
-
- case source = "source"
-
- case currency = "currency"
-
}
- public init(affiliateId: String? = nil, affiliateOrderId: String? = nil, charges: [PriceAdjustmentCharge]? = nil, createdTs: String? = nil, currency: CurrencySchema? = nil, fyndOrderId: String, meta: [String: Any]? = nil, orderingChannel: String? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderDate: String, paymentInfo: [PaymentInfoData]? = nil, paymentMethods: [String: Any]? = nil, prices: Prices? = nil, source: String? = nil, taxDetails: TaxDetails? = nil) {
-
- self.orderingChannel = orderingChannel
+ public init(createdTs: String? = nil, fyndOrderId: String, meta: [String: Any]? = nil, orderDate: String, paymentInfo: [PaymentInfoData]? = nil, paymentMethods: [String: Any]? = nil, prices: Prices? = nil, taxDetails: TaxDetails? = nil) {
self.orderDate = orderDate
@@ -93,40 +63,16 @@ public extension PlatformClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.paymentMethods = paymentMethods
self.paymentInfo = paymentInfo
- self.affiliateOrderId = affiliateOrderId
-
- self.affiliateId = affiliateId
-
- self.source = source
-
- self.currency = currency
-
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- orderingChannel = try container.decode(String.self, forKey: .orderingChannel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
orderDate = try container.decode(String.self, forKey: .orderDate)
@@ -185,30 +131,6 @@ public extension PlatformClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
paymentMethods = try container.decode([String: Any].self, forKey: .paymentMethods)
@@ -232,54 +154,6 @@ public extension PlatformClient.Order {
}
-
- do {
- affiliateOrderId = try container.decode(String.self, forKey: .affiliateOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CurrencySchema.self, forKey: .currency)
-
- } 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 {
@@ -287,11 +161,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
-
-
-
-
try? container.encodeIfPresent(orderDate, forKey: .orderDate)
@@ -322,16 +191,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
@@ -340,26 +199,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(paymentInfo, forKey: .paymentInfo)
-
-
- try? container.encodeIfPresent(affiliateOrderId, forKey: .affiliateOrderId)
-
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
}
}
@@ -376,8 +215,6 @@ public extension PlatformClient.ApplicationClient.Order {
class OrderData: Codable {
- public var orderingChannel: String?
-
public var orderDate: String
public var createdTs: String?
@@ -390,27 +227,13 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var paymentMethods: [String: Any]?
public var paymentInfo: [PaymentInfoData]?
- public var affiliateOrderId: String?
-
- public var affiliateId: String?
-
- public var source: String?
-
- public var currency: CurrencySchema?
-
public enum CodingKeys: String, CodingKey {
- case orderingChannel = "ordering_channel"
-
case orderDate = "order_date"
case createdTs = "created_ts"
@@ -423,27 +246,13 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case paymentMethods = "payment_methods"
case paymentInfo = "payment_info"
- case affiliateOrderId = "affiliate_order_id"
-
- case affiliateId = "affiliate_id"
-
- case source = "source"
-
- case currency = "currency"
-
}
- public init(affiliateId: String? = nil, affiliateOrderId: String? = nil, charges: [PriceAdjustmentCharge]? = nil, createdTs: String? = nil, currency: CurrencySchema? = nil, fyndOrderId: String, meta: [String: Any]? = nil, orderingChannel: String? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderDate: String, paymentInfo: [PaymentInfoData]? = nil, paymentMethods: [String: Any]? = nil, prices: Prices? = nil, source: String? = nil, taxDetails: TaxDetails? = nil) {
-
- self.orderingChannel = orderingChannel
+ public init(createdTs: String? = nil, fyndOrderId: String, meta: [String: Any]? = nil, orderDate: String, paymentInfo: [PaymentInfoData]? = nil, paymentMethods: [String: Any]? = nil, prices: Prices? = nil, taxDetails: TaxDetails? = nil) {
self.orderDate = orderDate
@@ -457,40 +266,16 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.paymentMethods = paymentMethods
self.paymentInfo = paymentInfo
- self.affiliateOrderId = affiliateOrderId
-
- self.affiliateId = affiliateId
-
- self.source = source
-
- self.currency = currency
-
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- orderingChannel = try container.decode(String.self, forKey: .orderingChannel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
orderDate = try container.decode(String.self, forKey: .orderDate)
@@ -549,30 +334,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
paymentMethods = try container.decode([String: Any].self, forKey: .paymentMethods)
@@ -596,54 +357,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- affiliateOrderId = try container.decode(String.self, forKey: .affiliateOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateId = try container.decode(String.self, forKey: .affiliateId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- currency = try container.decode(CurrencySchema.self, forKey: .currency)
-
- } 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 {
@@ -651,11 +364,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(orderingChannel, forKey: .orderingChannel)
-
-
-
-
try? container.encodeIfPresent(orderDate, forKey: .orderDate)
@@ -686,16 +394,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
@@ -704,26 +402,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(paymentInfo, forKey: .paymentInfo)
-
-
- try? container.encodeIfPresent(affiliateOrderId, forKey: .affiliateOrderId)
-
-
-
-
- try? container.encodeIfPresent(affiliateId, forKey: .affiliateId)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/OrderDataUpdatesOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderDataUpdatesOrderPlatformModel.swift
deleted file mode 100644
index af2986760c..0000000000
--- a/Sources/code/platform/Models/Order/OrderDataUpdatesOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderDataUpdates
- Used By: Order
- */
-
- class OrderDataUpdates: Codable {
-
-
- public var data: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [String: Any]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderDataUpdates
- Used By: Order
- */
-
- class OrderDataUpdates: Codable {
-
-
- public var data: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: [String: Any]? = nil) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } 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(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderDetailsOrderPlatformModel.swift
index acc61c2bf6..d978b9f4f7 100644
--- a/Sources/code/platform/Models/Order/OrderDetailsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/OrderDetailsOrderPlatformModel.swift
@@ -74,8 +74,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
public enum CodingKeys: String, CodingKey {
@@ -141,11 +139,9 @@ public extension PlatformClient.Order {
case prices = "prices"
- case charges = "charges"
-
}
- public init(affiliateId: String? = nil, affiliateOrderDate: String? = nil, affiliateOrderId: String? = nil, cashbackApplied: Double? = nil, cashbackValue: Double? = nil, charges: [PriceAdjustmentCharge]? = nil, codCharges: Double? = nil, collectBy: String? = nil, couponValue: Double? = nil, createdAt: String? = nil, createdTime: String? = nil, currency: String? = nil, deliveryCharges: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, fyndOrderId: String? = nil, headers: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, mongoCartId: Double? = nil, orderingChannel: String? = nil, orderingChannelLogo: String? = nil, orderValue: Double? = nil, paymentMethods: [String: Any]? = nil, paymentModeId: Double? = nil, prices: Prices? = nil, promotionEffectiveDiscount: Double? = nil, refundBy: String? = nil, taxDetails: TaxDetails? = nil, totalOrderValue: Double? = nil, transactionId: String? = nil, userId: String? = nil) {
+ public init(affiliateId: String? = nil, affiliateOrderDate: String? = nil, affiliateOrderId: String? = nil, cashbackApplied: Double? = nil, cashbackValue: Double? = nil, codCharges: Double? = nil, collectBy: String? = nil, couponValue: Double? = nil, createdAt: String? = nil, createdTime: String? = nil, currency: String? = nil, deliveryCharges: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, fyndOrderId: String? = nil, headers: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, mongoCartId: Double? = nil, orderingChannel: String? = nil, orderingChannelLogo: String? = nil, orderValue: Double? = nil, paymentMethods: [String: Any]? = nil, paymentModeId: Double? = nil, prices: Prices? = nil, promotionEffectiveDiscount: Double? = nil, refundBy: String? = nil, taxDetails: TaxDetails? = nil, totalOrderValue: Double? = nil, transactionId: String? = nil, userId: String? = nil) {
self.fyndOrderId = fyndOrderId
@@ -209,8 +205,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.charges = charges
-
}
required public init(from decoder: Decoder) throws {
@@ -588,18 +582,6 @@ public extension PlatformClient.Order {
}
-
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } 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 {
@@ -760,11 +742,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(prices, forKey: .prices)
-
-
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
}
}
@@ -843,8 +820,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
public enum CodingKeys: String, CodingKey {
@@ -910,11 +885,9 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case charges = "charges"
-
}
- public init(affiliateId: String? = nil, affiliateOrderDate: String? = nil, affiliateOrderId: String? = nil, cashbackApplied: Double? = nil, cashbackValue: Double? = nil, charges: [PriceAdjustmentCharge]? = nil, codCharges: Double? = nil, collectBy: String? = nil, couponValue: Double? = nil, createdAt: String? = nil, createdTime: String? = nil, currency: String? = nil, deliveryCharges: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, fyndOrderId: String? = nil, headers: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, mongoCartId: Double? = nil, orderingChannel: String? = nil, orderingChannelLogo: String? = nil, orderValue: Double? = nil, paymentMethods: [String: Any]? = nil, paymentModeId: Double? = nil, prices: Prices? = nil, promotionEffectiveDiscount: Double? = nil, refundBy: String? = nil, taxDetails: TaxDetails? = nil, totalOrderValue: Double? = nil, transactionId: String? = nil, userId: String? = nil) {
+ public init(affiliateId: String? = nil, affiliateOrderDate: String? = nil, affiliateOrderId: String? = nil, cashbackApplied: Double? = nil, cashbackValue: Double? = nil, codCharges: Double? = nil, collectBy: String? = nil, couponValue: Double? = nil, createdAt: String? = nil, createdTime: String? = nil, currency: String? = nil, deliveryCharges: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, fyndOrderId: String? = nil, headers: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, mongoCartId: Double? = nil, orderingChannel: String? = nil, orderingChannelLogo: String? = nil, orderValue: Double? = nil, paymentMethods: [String: Any]? = nil, paymentModeId: Double? = nil, prices: Prices? = nil, promotionEffectiveDiscount: Double? = nil, refundBy: String? = nil, taxDetails: TaxDetails? = nil, totalOrderValue: Double? = nil, transactionId: String? = nil, userId: String? = nil) {
self.fyndOrderId = fyndOrderId
@@ -978,8 +951,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.charges = charges
-
}
required public init(from decoder: Decoder) throws {
@@ -1357,18 +1328,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } 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 {
@@ -1529,11 +1488,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(prices, forKey: .prices)
-
-
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/OrderDetailsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderDetailsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..da14a2966d
--- /dev/null
+++ b/Sources/code/platform/Models/Order/OrderDetailsResponseOrderPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: OrderDetailsResponse
+ Used By: Order
+ */
+
+ class OrderDetailsResponse: Codable {
+
+
+ public var order: OrderData?
+
+ public var success: Bool
+
+ public var shipments: [PlatformShipment]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case order = "order"
+
+ case success = "success"
+
+ case shipments = "shipments"
+
+ }
+
+ public init(order: OrderData? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
+
+ self.order = order
+
+ self.success = success
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ order = try container.decode(OrderData.self, forKey: .order)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
+
+ } 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(order, forKey: .order)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: OrderDetailsResponse
+ Used By: Order
+ */
+
+ class OrderDetailsResponse: Codable {
+
+
+ public var order: OrderData?
+
+ public var success: Bool
+
+ public var shipments: [PlatformShipment]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case order = "order"
+
+ case success = "success"
+
+ case shipments = "shipments"
+
+ }
+
+ public init(order: OrderData? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
+
+ self.order = order
+
+ self.success = success
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ order = try container.decode(OrderData.self, forKey: .order)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
+
+ } 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(order, forKey: .order)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/OrderDetailsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderDetailsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 342224bcda..0000000000
--- a/Sources/code/platform/Models/Order/OrderDetailsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderDetailsResponseSchema
- Used By: Order
- */
-
- class OrderDetailsResponseSchema: Codable {
-
-
- public var order: OrderData?
-
- public var success: Bool
-
- public var shipments: [PlatformShipment]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case order = "order"
-
- case success = "success"
-
- case shipments = "shipments"
-
- }
-
- public init(order: OrderData? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
-
- self.order = order
-
- self.success = success
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- order = try container.decode(OrderData.self, forKey: .order)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
-
- } 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(order, forKey: .order)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderDetailsResponseSchema
- Used By: Order
- */
-
- class OrderDetailsResponseSchema: Codable {
-
-
- public var order: OrderData?
-
- public var success: Bool
-
- public var shipments: [PlatformShipment]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case order = "order"
-
- case success = "success"
-
- case shipments = "shipments"
-
- }
-
- public init(order: OrderData? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
-
- self.order = order
-
- self.success = success
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- order = try container.decode(OrderData.self, forKey: .order)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
-
- } 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(order, forKey: .order)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderInfoOrderPlatformModel.swift
deleted file mode 100644
index b63e7a245d..0000000000
--- a/Sources/code/platform/Models/Order/OrderInfoOrderPlatformModel.swift
+++ /dev/null
@@ -1,620 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderInfo
- Used By: Order
- */
-
- class OrderInfo: Codable {
-
-
- public var affiliateOrderId: String?
-
- public var codCharges: Double
-
- public var items: [String: Any]
-
- public var discount: Double
-
- public var billingAddress: OrderUser
-
- public var payment: [String: Any]?
-
- public var orderPriority: OrderPriority?
-
- public var shipment: ShipmentData?
-
- public var deliveryCharges: Double
-
- public var shippingAddress: OrderUser
-
- public var orderValue: Double
-
- public var paymentMode: String
-
- public var bags: [AffiliateBag]
-
- public var user: UserData
-
- public var coupon: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case affiliateOrderId = "affiliate_order_id"
-
- case codCharges = "cod_charges"
-
- case items = "items"
-
- case discount = "discount"
-
- case billingAddress = "billing_address"
-
- case payment = "payment"
-
- case orderPriority = "order_priority"
-
- case shipment = "shipment"
-
- case deliveryCharges = "delivery_charges"
-
- case shippingAddress = "shipping_address"
-
- case orderValue = "order_value"
-
- case paymentMode = "payment_mode"
-
- case bags = "bags"
-
- case user = "user"
-
- case coupon = "coupon"
-
- }
-
- public init(affiliateOrderId: String? = nil, bags: [AffiliateBag], billingAddress: OrderUser, codCharges: Double, coupon: String? = nil, deliveryCharges: Double, discount: Double, items: [String: Any], orderPriority: OrderPriority? = nil, orderValue: Double, payment: [String: Any]? = nil, paymentMode: String, shipment: ShipmentData? = nil, shippingAddress: OrderUser, user: UserData) {
-
- self.affiliateOrderId = affiliateOrderId
-
- self.codCharges = codCharges
-
- self.items = items
-
- self.discount = discount
-
- self.billingAddress = billingAddress
-
- self.payment = payment
-
- self.orderPriority = orderPriority
-
- self.shipment = shipment
-
- self.deliveryCharges = deliveryCharges
-
- self.shippingAddress = shippingAddress
-
- self.orderValue = orderValue
-
- self.paymentMode = paymentMode
-
- self.bags = bags
-
- self.user = user
-
- self.coupon = coupon
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- affiliateOrderId = try container.decode(String.self, forKey: .affiliateOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- codCharges = try container.decode(Double.self, forKey: .codCharges)
-
-
-
-
- items = try container.decode([String: Any].self, forKey: .items)
-
-
-
-
- discount = try container.decode(Double.self, forKey: .discount)
-
-
-
-
- billingAddress = try container.decode(OrderUser.self, forKey: .billingAddress)
-
-
-
-
- do {
- payment = try container.decode([String: Any].self, forKey: .payment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderPriority = try container.decode(OrderPriority.self, forKey: .orderPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipment = try container.decode(ShipmentData.self, forKey: .shipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- deliveryCharges = try container.decode(Double.self, forKey: .deliveryCharges)
-
-
-
-
- shippingAddress = try container.decode(OrderUser.self, forKey: .shippingAddress)
-
-
-
-
- orderValue = try container.decode(Double.self, forKey: .orderValue)
-
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- bags = try container.decode([AffiliateBag].self, forKey: .bags)
-
-
-
-
- user = try container.decode(UserData.self, forKey: .user)
-
-
-
-
- do {
- coupon = try container.decode(String.self, forKey: .coupon)
-
- } 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(affiliateOrderId, forKey: .affiliateOrderId)
-
-
-
-
- try? container.encodeIfPresent(codCharges, forKey: .codCharges)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
-
-
-
-
- try? container.encodeIfPresent(orderPriority, forKey: .orderPriority)
-
-
-
-
- try? container.encodeIfPresent(shipment, forKey: .shipment)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharges, forKey: .deliveryCharges)
-
-
-
-
- try? container.encodeIfPresent(shippingAddress, forKey: .shippingAddress)
-
-
-
-
- try? container.encodeIfPresent(orderValue, forKey: .orderValue)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(bags, forKey: .bags)
-
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
-
-
- try? container.encodeIfPresent(coupon, forKey: .coupon)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderInfo
- Used By: Order
- */
-
- class OrderInfo: Codable {
-
-
- public var affiliateOrderId: String?
-
- public var codCharges: Double
-
- public var items: [String: Any]
-
- public var discount: Double
-
- public var billingAddress: OrderUser
-
- public var payment: [String: Any]?
-
- public var orderPriority: OrderPriority?
-
- public var shipment: ShipmentData?
-
- public var deliveryCharges: Double
-
- public var shippingAddress: OrderUser
-
- public var orderValue: Double
-
- public var paymentMode: String
-
- public var bags: [AffiliateBag]
-
- public var user: UserData
-
- public var coupon: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case affiliateOrderId = "affiliate_order_id"
-
- case codCharges = "cod_charges"
-
- case items = "items"
-
- case discount = "discount"
-
- case billingAddress = "billing_address"
-
- case payment = "payment"
-
- case orderPriority = "order_priority"
-
- case shipment = "shipment"
-
- case deliveryCharges = "delivery_charges"
-
- case shippingAddress = "shipping_address"
-
- case orderValue = "order_value"
-
- case paymentMode = "payment_mode"
-
- case bags = "bags"
-
- case user = "user"
-
- case coupon = "coupon"
-
- }
-
- public init(affiliateOrderId: String? = nil, bags: [AffiliateBag], billingAddress: OrderUser, codCharges: Double, coupon: String? = nil, deliveryCharges: Double, discount: Double, items: [String: Any], orderPriority: OrderPriority? = nil, orderValue: Double, payment: [String: Any]? = nil, paymentMode: String, shipment: ShipmentData? = nil, shippingAddress: OrderUser, user: UserData) {
-
- self.affiliateOrderId = affiliateOrderId
-
- self.codCharges = codCharges
-
- self.items = items
-
- self.discount = discount
-
- self.billingAddress = billingAddress
-
- self.payment = payment
-
- self.orderPriority = orderPriority
-
- self.shipment = shipment
-
- self.deliveryCharges = deliveryCharges
-
- self.shippingAddress = shippingAddress
-
- self.orderValue = orderValue
-
- self.paymentMode = paymentMode
-
- self.bags = bags
-
- self.user = user
-
- self.coupon = coupon
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- affiliateOrderId = try container.decode(String.self, forKey: .affiliateOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- codCharges = try container.decode(Double.self, forKey: .codCharges)
-
-
-
-
- items = try container.decode([String: Any].self, forKey: .items)
-
-
-
-
- discount = try container.decode(Double.self, forKey: .discount)
-
-
-
-
- billingAddress = try container.decode(OrderUser.self, forKey: .billingAddress)
-
-
-
-
- do {
- payment = try container.decode([String: Any].self, forKey: .payment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderPriority = try container.decode(OrderPriority.self, forKey: .orderPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipment = try container.decode(ShipmentData.self, forKey: .shipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- deliveryCharges = try container.decode(Double.self, forKey: .deliveryCharges)
-
-
-
-
- shippingAddress = try container.decode(OrderUser.self, forKey: .shippingAddress)
-
-
-
-
- orderValue = try container.decode(Double.self, forKey: .orderValue)
-
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- bags = try container.decode([AffiliateBag].self, forKey: .bags)
-
-
-
-
- user = try container.decode(UserData.self, forKey: .user)
-
-
-
-
- do {
- coupon = try container.decode(String.self, forKey: .coupon)
-
- } 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(affiliateOrderId, forKey: .affiliateOrderId)
-
-
-
-
- try? container.encodeIfPresent(codCharges, forKey: .codCharges)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(payment, forKey: .payment)
-
-
-
-
- try? container.encodeIfPresent(orderPriority, forKey: .orderPriority)
-
-
-
-
- try? container.encodeIfPresent(shipment, forKey: .shipment)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharges, forKey: .deliveryCharges)
-
-
-
-
- try? container.encodeIfPresent(shippingAddress, forKey: .shippingAddress)
-
-
-
-
- try? container.encodeIfPresent(orderValue, forKey: .orderValue)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(bags, forKey: .bags)
-
-
-
-
- try? container.encodeIfPresent(user, forKey: .user)
-
-
-
-
- try? container.encodeIfPresent(coupon, forKey: .coupon)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderListingResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderListingResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..15ecff98fa
--- /dev/null
+++ b/Sources/code/platform/Models/Order/OrderListingResponseOrderPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: OrderListingResponse
+ Used By: Order
+ */
+
+ class OrderListingResponse: Codable {
+
+
+ public var totalCount: Int?
+
+ public var message: String?
+
+ public var success: Bool?
+
+ public var items: [PlatformOrderItems]?
+
+ public var lane: String?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case totalCount = "total_count"
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ case lane = "lane"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PlatformOrderItems]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.totalCount = totalCount
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ self.lane = lane
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([PlatformOrderItems].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lane = try container.decode(String.self, forKey: .lane)
+
+ } 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)
+
+ } 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(totalCount, forKey: .totalCount)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(lane, forKey: .lane)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: OrderListingResponse
+ Used By: Order
+ */
+
+ class OrderListingResponse: Codable {
+
+
+ public var totalCount: Int?
+
+ public var message: String?
+
+ public var success: Bool?
+
+ public var items: [PlatformOrderItems]?
+
+ public var lane: String?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case totalCount = "total_count"
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ case lane = "lane"
+
+ case page = "page"
+
+ }
+
+ public init(items: [PlatformOrderItems]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.totalCount = totalCount
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ self.lane = lane
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([PlatformOrderItems].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lane = try container.decode(String.self, forKey: .lane)
+
+ } 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)
+
+ } 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(totalCount, forKey: .totalCount)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(lane, forKey: .lane)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/OrderListingResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderListingResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 86ef2b1337..0000000000
--- a/Sources/code/platform/Models/Order/OrderListingResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderListingResponseSchema
- Used By: Order
- */
-
- class OrderListingResponseSchema: Codable {
-
-
- public var totalCount: Int?
-
- public var message: String?
-
- public var success: Bool?
-
- public var items: [PlatformOrderItems]?
-
- public var lane: String?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCount = "total_count"
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- case lane = "lane"
-
- case page = "page"
-
- }
-
- public init(items: [PlatformOrderItems]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.totalCount = totalCount
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- self.lane = lane
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- do {
- items = try container.decode([PlatformOrderItems].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lane = try container.decode(String.self, forKey: .lane)
-
- } 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)
-
- } 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(totalCount, forKey: .totalCount)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderListingResponseSchema
- Used By: Order
- */
-
- class OrderListingResponseSchema: Codable {
-
-
- public var totalCount: Int?
-
- public var message: String?
-
- public var success: Bool?
-
- public var items: [PlatformOrderItems]?
-
- public var lane: String?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCount = "total_count"
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- case lane = "lane"
-
- case page = "page"
-
- }
-
- public init(items: [PlatformOrderItems]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.totalCount = totalCount
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- self.lane = lane
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- do {
- items = try container.decode([PlatformOrderItems].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lane = try container.decode(String.self, forKey: .lane)
-
- } 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)
-
- } 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(totalCount, forKey: .totalCount)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderPriorityOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderPriorityOrderPlatformModel.swift
deleted file mode 100644
index 2b475c1d91..0000000000
--- a/Sources/code/platform/Models/Order/OrderPriorityOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderPriority
- Used By: Order
- */
-
- class OrderPriority: Codable {
-
-
- public var fulfilmentPriorityText: String?
-
- public var affiliatePriorityCode: String?
-
- public var fulfilmentPriority: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfilmentPriorityText = "fulfilment_priority_text"
-
- case affiliatePriorityCode = "affiliate_priority_code"
-
- case fulfilmentPriority = "fulfilment_priority"
-
- }
-
- public init(affiliatePriorityCode: String? = nil, fulfilmentPriority: Int? = nil, fulfilmentPriorityText: String? = nil) {
-
- self.fulfilmentPriorityText = fulfilmentPriorityText
-
- self.affiliatePriorityCode = affiliatePriorityCode
-
- self.fulfilmentPriority = fulfilmentPriority
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fulfilmentPriorityText = try container.decode(String.self, forKey: .fulfilmentPriorityText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliatePriorityCode = try container.decode(String.self, forKey: .affiliatePriorityCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfilmentPriority = try container.decode(Int.self, forKey: .fulfilmentPriority)
-
- } 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(fulfilmentPriorityText, forKey: .fulfilmentPriorityText)
-
-
-
-
- try? container.encodeIfPresent(affiliatePriorityCode, forKey: .affiliatePriorityCode)
-
-
-
-
- try? container.encodeIfPresent(fulfilmentPriority, forKey: .fulfilmentPriority)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderPriority
- Used By: Order
- */
-
- class OrderPriority: Codable {
-
-
- public var fulfilmentPriorityText: String?
-
- public var affiliatePriorityCode: String?
-
- public var fulfilmentPriority: Int?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fulfilmentPriorityText = "fulfilment_priority_text"
-
- case affiliatePriorityCode = "affiliate_priority_code"
-
- case fulfilmentPriority = "fulfilment_priority"
-
- }
-
- public init(affiliatePriorityCode: String? = nil, fulfilmentPriority: Int? = nil, fulfilmentPriorityText: String? = nil) {
-
- self.fulfilmentPriorityText = fulfilmentPriorityText
-
- self.affiliatePriorityCode = affiliatePriorityCode
-
- self.fulfilmentPriority = fulfilmentPriority
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fulfilmentPriorityText = try container.decode(String.self, forKey: .fulfilmentPriorityText)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliatePriorityCode = try container.decode(String.self, forKey: .affiliatePriorityCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fulfilmentPriority = try container.decode(Int.self, forKey: .fulfilmentPriority)
-
- } 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(fulfilmentPriorityText, forKey: .fulfilmentPriorityText)
-
-
-
-
- try? container.encodeIfPresent(affiliatePriorityCode, forKey: .affiliatePriorityCode)
-
-
-
-
- try? container.encodeIfPresent(fulfilmentPriority, forKey: .fulfilmentPriority)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderStatusOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderStatusOrderPlatformModel.swift
index 13468c3527..e2a7e2587b 100644
--- a/Sources/code/platform/Models/Order/OrderStatusOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/OrderStatusOrderPlatformModel.swift
@@ -14,35 +14,17 @@ public extension PlatformClient.Order {
public var orderDetails: [FyndOrderIdList]?
- public var startDate: String
-
- public var endDate: String
-
- public var mobile: Int
-
public enum CodingKeys: String, CodingKey {
case orderDetails = "order_details"
- case startDate = "start_date"
-
- case endDate = "end_date"
-
- case mobile = "mobile"
-
}
- public init(endDate: String, mobile: Int, orderDetails: [FyndOrderIdList]? = nil, startDate: String) {
+ public init(orderDetails: [FyndOrderIdList]? = nil) {
self.orderDetails = orderDetails
- self.startDate = startDate
-
- self.endDate = endDate
-
- self.mobile = mobile
-
}
required public init(from decoder: Decoder) throws {
@@ -60,21 +42,6 @@ public extension PlatformClient.Order {
}
-
- startDate = try container.decode(String.self, forKey: .startDate)
-
-
-
-
- endDate = try container.decode(String.self, forKey: .endDate)
-
-
-
-
- mobile = try container.decode(Int.self, forKey: .mobile)
-
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -85,21 +52,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
-
-
- try? container.encodeIfPresent(startDate, forKey: .startDate)
-
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
}
}
@@ -118,35 +70,17 @@ public extension PlatformClient.ApplicationClient.Order {
public var orderDetails: [FyndOrderIdList]?
- public var startDate: String
-
- public var endDate: String
-
- public var mobile: Int
-
public enum CodingKeys: String, CodingKey {
case orderDetails = "order_details"
- case startDate = "start_date"
-
- case endDate = "end_date"
-
- case mobile = "mobile"
-
}
- public init(endDate: String, mobile: Int, orderDetails: [FyndOrderIdList]? = nil, startDate: String) {
+ public init(orderDetails: [FyndOrderIdList]? = nil) {
self.orderDetails = orderDetails
- self.startDate = startDate
-
- self.endDate = endDate
-
- self.mobile = mobile
-
}
required public init(from decoder: Decoder) throws {
@@ -164,21 +98,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- startDate = try container.decode(String.self, forKey: .startDate)
-
-
-
-
- endDate = try container.decode(String.self, forKey: .endDate)
-
-
-
-
- mobile = try container.decode(Int.self, forKey: .mobile)
-
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -189,21 +108,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
-
-
- try? container.encodeIfPresent(startDate, forKey: .startDate)
-
-
-
-
- try? container.encodeIfPresent(endDate, forKey: .endDate)
-
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/OrderUserOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderUserOrderPlatformModel.swift
deleted file mode 100644
index aea60db2f8..0000000000
--- a/Sources/code/platform/Models/Order/OrderUserOrderPlatformModel.swift
+++ /dev/null
@@ -1,450 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderUser
- Used By: Order
- */
-
- class OrderUser: Codable {
-
-
- public var phone: Int
-
- public var lastName: String
-
- public var address1: String?
-
- public var state: String
-
- public var pincode: String
-
- public var firstName: String
-
- public var mobile: Int
-
- public var address2: String?
-
- public var email: String
-
- public var country: String
-
- public var city: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phone = "phone"
-
- case lastName = "last_name"
-
- case address1 = "address1"
-
- case state = "state"
-
- case pincode = "pincode"
-
- case firstName = "first_name"
-
- case mobile = "mobile"
-
- case address2 = "address2"
-
- case email = "email"
-
- case country = "country"
-
- case city = "city"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, city: String, country: String, email: String, firstName: String, lastName: String, mobile: Int, phone: Int, pincode: String, state: String) {
-
- self.phone = phone
-
- self.lastName = lastName
-
- self.address1 = address1
-
- self.state = state
-
- self.pincode = pincode
-
- self.firstName = firstName
-
- self.mobile = mobile
-
- self.address2 = address2
-
- self.email = email
-
- self.country = country
-
- self.city = city
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- phone = try container.decode(Int.self, forKey: .phone)
-
-
-
-
- lastName = try container.decode(String.self, forKey: .lastName)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- state = try container.decode(String.self, forKey: .state)
-
-
-
-
- pincode = try container.decode(String.self, forKey: .pincode)
-
-
-
-
- firstName = try container.decode(String.self, forKey: .firstName)
-
-
-
-
- mobile = try container.decode(Int.self, forKey: .mobile)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- city = try container.decode(String.self, forKey: .city)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(lastName, forKey: .lastName)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(firstName, forKey: .firstName)
-
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderUser
- Used By: Order
- */
-
- class OrderUser: Codable {
-
-
- public var phone: Int
-
- public var lastName: String
-
- public var address1: String?
-
- public var state: String
-
- public var pincode: String
-
- public var firstName: String
-
- public var mobile: Int
-
- public var address2: String?
-
- public var email: String
-
- public var country: String
-
- public var city: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phone = "phone"
-
- case lastName = "last_name"
-
- case address1 = "address1"
-
- case state = "state"
-
- case pincode = "pincode"
-
- case firstName = "first_name"
-
- case mobile = "mobile"
-
- case address2 = "address2"
-
- case email = "email"
-
- case country = "country"
-
- case city = "city"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, city: String, country: String, email: String, firstName: String, lastName: String, mobile: Int, phone: Int, pincode: String, state: String) {
-
- self.phone = phone
-
- self.lastName = lastName
-
- self.address1 = address1
-
- self.state = state
-
- self.pincode = pincode
-
- self.firstName = firstName
-
- self.mobile = mobile
-
- self.address2 = address2
-
- self.email = email
-
- self.country = country
-
- self.city = city
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- phone = try container.decode(Int.self, forKey: .phone)
-
-
-
-
- lastName = try container.decode(String.self, forKey: .lastName)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- state = try container.decode(String.self, forKey: .state)
-
-
-
-
- pincode = try container.decode(String.self, forKey: .pincode)
-
-
-
-
- firstName = try container.decode(String.self, forKey: .firstName)
-
-
-
-
- mobile = try container.decode(Int.self, forKey: .mobile)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- city = try container.decode(String.self, forKey: .city)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(lastName, forKey: .lastName)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(firstName, forKey: .firstName)
-
-
-
-
- try? container.encodeIfPresent(mobile, forKey: .mobile)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/OrderingCurrencyPricesOrderPlatformModel.swift b/Sources/code/platform/Models/Order/OrderingCurrencyPricesOrderPlatformModel.swift
deleted file mode 100644
index 3deb4e24cb..0000000000
--- a/Sources/code/platform/Models/Order/OrderingCurrencyPricesOrderPlatformModel.swift
+++ /dev/null
@@ -1,1082 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: OrderingCurrencyPrices
- Used By: Order
- */
-
- class OrderingCurrencyPrices: Codable {
-
-
- public var refundCredit: Double?
-
- public var amountPaidRoundoff: Double?
-
- public var priceEffective: Double?
-
- public var promotionEffectiveDiscount: Double?
-
- public var pmPriceSplit: Double?
-
- public var refundAmount: Double?
-
- public var transferPrice: Double?
-
- public var couponEffectiveDiscount: Double?
-
- public var taxCollectedAtSource: Double?
-
- public var brandCalculatedAmount: Double?
-
- public var deliveryCharge: Double?
-
- public var cashback: Double?
-
- public var valueOfGood: Double?
-
- public var cashbackApplied: Double?
-
- public var codCharges: Double?
-
- public var priceMarked: Double?
-
- public var amountPaid: Double?
-
- public var couponValue: Double?
-
- public var discount: Double?
-
- public var fyndCredits: Double?
-
- public var giftPrice: Double?
-
- public var amountToBeCollected: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case refundCredit = "refund_credit"
-
- case amountPaidRoundoff = "amount_paid_roundoff"
-
- case priceEffective = "price_effective"
-
- case promotionEffectiveDiscount = "promotion_effective_discount"
-
- case pmPriceSplit = "pm_price_split"
-
- case refundAmount = "refund_amount"
-
- case transferPrice = "transfer_price"
-
- case couponEffectiveDiscount = "coupon_effective_discount"
-
- case taxCollectedAtSource = "tax_collected_at_source"
-
- case brandCalculatedAmount = "brand_calculated_amount"
-
- case deliveryCharge = "delivery_charge"
-
- case cashback = "cashback"
-
- case valueOfGood = "value_of_good"
-
- case cashbackApplied = "cashback_applied"
-
- case codCharges = "cod_charges"
-
- case priceMarked = "price_marked"
-
- case amountPaid = "amount_paid"
-
- case couponValue = "coupon_value"
-
- case discount = "discount"
-
- case fyndCredits = "fynd_credits"
-
- case giftPrice = "gift_price"
-
- case amountToBeCollected = "amount_to_be_collected"
-
- }
-
- public init(amountPaid: Double? = nil, amountPaidRoundoff: Double? = nil, amountToBeCollected: Double? = nil, brandCalculatedAmount: Double? = nil, cashback: Double? = nil, cashbackApplied: Double? = nil, codCharges: Double? = nil, couponEffectiveDiscount: Double? = nil, couponValue: Double? = nil, deliveryCharge: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, giftPrice: Double? = nil, pmPriceSplit: Double? = nil, priceEffective: Double? = nil, priceMarked: Double? = nil, promotionEffectiveDiscount: Double? = nil, refundAmount: Double? = nil, refundCredit: Double? = nil, taxCollectedAtSource: Double? = nil, transferPrice: Double? = nil, valueOfGood: Double? = nil) {
-
- self.refundCredit = refundCredit
-
- self.amountPaidRoundoff = amountPaidRoundoff
-
- self.priceEffective = priceEffective
-
- self.promotionEffectiveDiscount = promotionEffectiveDiscount
-
- self.pmPriceSplit = pmPriceSplit
-
- self.refundAmount = refundAmount
-
- self.transferPrice = transferPrice
-
- self.couponEffectiveDiscount = couponEffectiveDiscount
-
- self.taxCollectedAtSource = taxCollectedAtSource
-
- self.brandCalculatedAmount = brandCalculatedAmount
-
- self.deliveryCharge = deliveryCharge
-
- self.cashback = cashback
-
- self.valueOfGood = valueOfGood
-
- self.cashbackApplied = cashbackApplied
-
- self.codCharges = codCharges
-
- self.priceMarked = priceMarked
-
- self.amountPaid = amountPaid
-
- self.couponValue = couponValue
-
- self.discount = discount
-
- self.fyndCredits = fyndCredits
-
- self.giftPrice = giftPrice
-
- self.amountToBeCollected = amountToBeCollected
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- refundCredit = try container.decode(Double.self, forKey: .refundCredit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaidRoundoff = try container.decode(Double.self, forKey: .amountPaidRoundoff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- promotionEffectiveDiscount = try container.decode(Double.self, forKey: .promotionEffectiveDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pmPriceSplit = try container.decode(Double.self, forKey: .pmPriceSplit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundAmount = try container.decode(Double.self, forKey: .refundAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- transferPrice = try container.decode(Double.self, forKey: .transferPrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponEffectiveDiscount = try container.decode(Double.self, forKey: .couponEffectiveDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- taxCollectedAtSource = try container.decode(Double.self, forKey: .taxCollectedAtSource)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- brandCalculatedAmount = try container.decode(Double.self, forKey: .brandCalculatedAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryCharge = try container.decode(Double.self, forKey: .deliveryCharge)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cashback = try container.decode(Double.self, forKey: .cashback)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- valueOfGood = try container.decode(Double.self, forKey: .valueOfGood)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cashbackApplied = try container.decode(Double.self, forKey: .cashbackApplied)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- codCharges = try container.decode(Double.self, forKey: .codCharges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponValue = try container.decode(Double.self, forKey: .couponValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discount = try container.decode(Double.self, forKey: .discount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fyndCredits = try container.decode(Double.self, forKey: .fyndCredits)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- giftPrice = try container.decode(Double.self, forKey: .giftPrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
-
- } 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(refundCredit, forKey: .refundCredit)
-
-
-
-
- try? container.encodeIfPresent(amountPaidRoundoff, forKey: .amountPaidRoundoff)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(promotionEffectiveDiscount, forKey: .promotionEffectiveDiscount)
-
-
-
-
- try? container.encodeIfPresent(pmPriceSplit, forKey: .pmPriceSplit)
-
-
-
-
- try? container.encodeIfPresent(refundAmount, forKey: .refundAmount)
-
-
-
-
- try? container.encodeIfPresent(transferPrice, forKey: .transferPrice)
-
-
-
-
- try? container.encodeIfPresent(couponEffectiveDiscount, forKey: .couponEffectiveDiscount)
-
-
-
-
- try? container.encodeIfPresent(taxCollectedAtSource, forKey: .taxCollectedAtSource)
-
-
-
-
- try? container.encodeIfPresent(brandCalculatedAmount, forKey: .brandCalculatedAmount)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharge, forKey: .deliveryCharge)
-
-
-
-
- try? container.encodeIfPresent(cashback, forKey: .cashback)
-
-
-
-
- try? container.encodeIfPresent(valueOfGood, forKey: .valueOfGood)
-
-
-
-
- try? container.encodeIfPresent(cashbackApplied, forKey: .cashbackApplied)
-
-
-
-
- try? container.encodeIfPresent(codCharges, forKey: .codCharges)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(couponValue, forKey: .couponValue)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(fyndCredits, forKey: .fyndCredits)
-
-
-
-
- try? container.encodeIfPresent(giftPrice, forKey: .giftPrice)
-
-
-
-
- try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: OrderingCurrencyPrices
- Used By: Order
- */
-
- class OrderingCurrencyPrices: Codable {
-
-
- public var refundCredit: Double?
-
- public var amountPaidRoundoff: Double?
-
- public var priceEffective: Double?
-
- public var promotionEffectiveDiscount: Double?
-
- public var pmPriceSplit: Double?
-
- public var refundAmount: Double?
-
- public var transferPrice: Double?
-
- public var couponEffectiveDiscount: Double?
-
- public var taxCollectedAtSource: Double?
-
- public var brandCalculatedAmount: Double?
-
- public var deliveryCharge: Double?
-
- public var cashback: Double?
-
- public var valueOfGood: Double?
-
- public var cashbackApplied: Double?
-
- public var codCharges: Double?
-
- public var priceMarked: Double?
-
- public var amountPaid: Double?
-
- public var couponValue: Double?
-
- public var discount: Double?
-
- public var fyndCredits: Double?
-
- public var giftPrice: Double?
-
- public var amountToBeCollected: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case refundCredit = "refund_credit"
-
- case amountPaidRoundoff = "amount_paid_roundoff"
-
- case priceEffective = "price_effective"
-
- case promotionEffectiveDiscount = "promotion_effective_discount"
-
- case pmPriceSplit = "pm_price_split"
-
- case refundAmount = "refund_amount"
-
- case transferPrice = "transfer_price"
-
- case couponEffectiveDiscount = "coupon_effective_discount"
-
- case taxCollectedAtSource = "tax_collected_at_source"
-
- case brandCalculatedAmount = "brand_calculated_amount"
-
- case deliveryCharge = "delivery_charge"
-
- case cashback = "cashback"
-
- case valueOfGood = "value_of_good"
-
- case cashbackApplied = "cashback_applied"
-
- case codCharges = "cod_charges"
-
- case priceMarked = "price_marked"
-
- case amountPaid = "amount_paid"
-
- case couponValue = "coupon_value"
-
- case discount = "discount"
-
- case fyndCredits = "fynd_credits"
-
- case giftPrice = "gift_price"
-
- case amountToBeCollected = "amount_to_be_collected"
-
- }
-
- public init(amountPaid: Double? = nil, amountPaidRoundoff: Double? = nil, amountToBeCollected: Double? = nil, brandCalculatedAmount: Double? = nil, cashback: Double? = nil, cashbackApplied: Double? = nil, codCharges: Double? = nil, couponEffectiveDiscount: Double? = nil, couponValue: Double? = nil, deliveryCharge: Double? = nil, discount: Double? = nil, fyndCredits: Double? = nil, giftPrice: Double? = nil, pmPriceSplit: Double? = nil, priceEffective: Double? = nil, priceMarked: Double? = nil, promotionEffectiveDiscount: Double? = nil, refundAmount: Double? = nil, refundCredit: Double? = nil, taxCollectedAtSource: Double? = nil, transferPrice: Double? = nil, valueOfGood: Double? = nil) {
-
- self.refundCredit = refundCredit
-
- self.amountPaidRoundoff = amountPaidRoundoff
-
- self.priceEffective = priceEffective
-
- self.promotionEffectiveDiscount = promotionEffectiveDiscount
-
- self.pmPriceSplit = pmPriceSplit
-
- self.refundAmount = refundAmount
-
- self.transferPrice = transferPrice
-
- self.couponEffectiveDiscount = couponEffectiveDiscount
-
- self.taxCollectedAtSource = taxCollectedAtSource
-
- self.brandCalculatedAmount = brandCalculatedAmount
-
- self.deliveryCharge = deliveryCharge
-
- self.cashback = cashback
-
- self.valueOfGood = valueOfGood
-
- self.cashbackApplied = cashbackApplied
-
- self.codCharges = codCharges
-
- self.priceMarked = priceMarked
-
- self.amountPaid = amountPaid
-
- self.couponValue = couponValue
-
- self.discount = discount
-
- self.fyndCredits = fyndCredits
-
- self.giftPrice = giftPrice
-
- self.amountToBeCollected = amountToBeCollected
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- refundCredit = try container.decode(Double.self, forKey: .refundCredit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaidRoundoff = try container.decode(Double.self, forKey: .amountPaidRoundoff)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- promotionEffectiveDiscount = try container.decode(Double.self, forKey: .promotionEffectiveDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pmPriceSplit = try container.decode(Double.self, forKey: .pmPriceSplit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundAmount = try container.decode(Double.self, forKey: .refundAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- transferPrice = try container.decode(Double.self, forKey: .transferPrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponEffectiveDiscount = try container.decode(Double.self, forKey: .couponEffectiveDiscount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- taxCollectedAtSource = try container.decode(Double.self, forKey: .taxCollectedAtSource)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- brandCalculatedAmount = try container.decode(Double.self, forKey: .brandCalculatedAmount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryCharge = try container.decode(Double.self, forKey: .deliveryCharge)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cashback = try container.decode(Double.self, forKey: .cashback)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- valueOfGood = try container.decode(Double.self, forKey: .valueOfGood)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cashbackApplied = try container.decode(Double.self, forKey: .cashbackApplied)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- codCharges = try container.decode(Double.self, forKey: .codCharges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- priceMarked = try container.decode(Double.self, forKey: .priceMarked)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountPaid = try container.decode(Double.self, forKey: .amountPaid)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- couponValue = try container.decode(Double.self, forKey: .couponValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- discount = try container.decode(Double.self, forKey: .discount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- fyndCredits = try container.decode(Double.self, forKey: .fyndCredits)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- giftPrice = try container.decode(Double.self, forKey: .giftPrice)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amountToBeCollected = try container.decode(Double.self, forKey: .amountToBeCollected)
-
- } 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(refundCredit, forKey: .refundCredit)
-
-
-
-
- try? container.encodeIfPresent(amountPaidRoundoff, forKey: .amountPaidRoundoff)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(promotionEffectiveDiscount, forKey: .promotionEffectiveDiscount)
-
-
-
-
- try? container.encodeIfPresent(pmPriceSplit, forKey: .pmPriceSplit)
-
-
-
-
- try? container.encodeIfPresent(refundAmount, forKey: .refundAmount)
-
-
-
-
- try? container.encodeIfPresent(transferPrice, forKey: .transferPrice)
-
-
-
-
- try? container.encodeIfPresent(couponEffectiveDiscount, forKey: .couponEffectiveDiscount)
-
-
-
-
- try? container.encodeIfPresent(taxCollectedAtSource, forKey: .taxCollectedAtSource)
-
-
-
-
- try? container.encodeIfPresent(brandCalculatedAmount, forKey: .brandCalculatedAmount)
-
-
-
-
- try? container.encodeIfPresent(deliveryCharge, forKey: .deliveryCharge)
-
-
-
-
- try? container.encodeIfPresent(cashback, forKey: .cashback)
-
-
-
-
- try? container.encodeIfPresent(valueOfGood, forKey: .valueOfGood)
-
-
-
-
- try? container.encodeIfPresent(cashbackApplied, forKey: .cashbackApplied)
-
-
-
-
- try? container.encodeIfPresent(codCharges, forKey: .codCharges)
-
-
-
-
- try? container.encodeIfPresent(priceMarked, forKey: .priceMarked)
-
-
-
-
- try? container.encodeIfPresent(amountPaid, forKey: .amountPaid)
-
-
-
-
- try? container.encodeIfPresent(couponValue, forKey: .couponValue)
-
-
-
-
- try? container.encodeIfPresent(discount, forKey: .discount)
-
-
-
-
- try? container.encodeIfPresent(fyndCredits, forKey: .fyndCredits)
-
-
-
-
- try? container.encodeIfPresent(giftPrice, forKey: .giftPrice)
-
-
-
-
- try? container.encodeIfPresent(amountToBeCollected, forKey: .amountToBeCollected)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PaymentMetaDataSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PaymentMetaDataSchemaOrderPlatformModel.swift
deleted file mode 100644
index 8567363a71..0000000000
--- a/Sources/code/platform/Models/Order/PaymentMetaDataSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PaymentMetaDataSchema
- Used By: Order
- */
-
- class PaymentMetaDataSchema: Codable {
-
-
- public var paymentGateway: String?
-
- public var paymentIdentifier: String?
-
- public var logoUrl: PaymentMetaLogoURLSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentGateway = "payment_gateway"
-
- case paymentIdentifier = "payment_identifier"
-
- case logoUrl = "logo_url"
-
- }
-
- public init(logoUrl: PaymentMetaLogoURLSchema? = nil, paymentGateway: String? = nil, paymentIdentifier: String? = nil) {
-
- self.paymentGateway = paymentGateway
-
- self.paymentIdentifier = paymentIdentifier
-
- self.logoUrl = logoUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logoUrl = try container.decode(PaymentMetaLogoURLSchema.self, forKey: .logoUrl)
-
- } 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(paymentGateway, forKey: .paymentGateway)
-
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PaymentMetaDataSchema
- Used By: Order
- */
-
- class PaymentMetaDataSchema: Codable {
-
-
- public var paymentGateway: String?
-
- public var paymentIdentifier: String?
-
- public var logoUrl: PaymentMetaLogoURLSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentGateway = "payment_gateway"
-
- case paymentIdentifier = "payment_identifier"
-
- case logoUrl = "logo_url"
-
- }
-
- public init(logoUrl: PaymentMetaLogoURLSchema? = nil, paymentGateway: String? = nil, paymentIdentifier: String? = nil) {
-
- self.paymentGateway = paymentGateway
-
- self.paymentIdentifier = paymentIdentifier
-
- self.logoUrl = logoUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentIdentifier = try container.decode(String.self, forKey: .paymentIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logoUrl = try container.decode(PaymentMetaLogoURLSchema.self, forKey: .logoUrl)
-
- } 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(paymentGateway, forKey: .paymentGateway)
-
-
-
-
- try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
-
-
-
-
- try? container.encodeIfPresent(logoUrl, forKey: .logoUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PaymentMetaLogoURLSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PaymentMetaLogoURLSchemaOrderPlatformModel.swift
deleted file mode 100644
index 21ed94e4cb..0000000000
--- a/Sources/code/platform/Models/Order/PaymentMetaLogoURLSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PaymentMetaLogoURLSchema
- Used By: Order
- */
-
- class PaymentMetaLogoURLSchema: Codable {
-
-
- public var large: String
-
- public var small: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case large = "large"
-
- case small = "small"
-
- }
-
- public init(large: String, small: String) {
-
- self.large = large
-
- self.small = small
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- large = try container.decode(String.self, forKey: .large)
-
-
-
-
- small = try container.decode(String.self, forKey: .small)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(large, forKey: .large)
-
-
-
-
- try? container.encodeIfPresent(small, forKey: .small)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PaymentMetaLogoURLSchema
- Used By: Order
- */
-
- class PaymentMetaLogoURLSchema: Codable {
-
-
- public var large: String
-
- public var small: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case large = "large"
-
- case small = "small"
-
- }
-
- public init(large: String, small: String) {
-
- self.large = large
-
- self.small = small
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- large = try container.decode(String.self, forKey: .large)
-
-
-
-
- small = try container.decode(String.self, forKey: .small)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(large, forKey: .large)
-
-
-
-
- try? container.encodeIfPresent(small, forKey: .small)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PaymentMethodSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PaymentMethodSchemaOrderPlatformModel.swift
deleted file mode 100644
index 55bbb62a68..0000000000
--- a/Sources/code/platform/Models/Order/PaymentMethodSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,404 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PaymentMethodSchema
- Used By: Order
- */
-
- class PaymentMethodSchema: Codable {
-
-
- public var name: String
-
- public var mode: String
-
- public var amount: Double
-
- public var meta: PaymentMetaDataSchema?
-
- public var identifier: String
-
- public var displayName: String
-
- public var aggregator: String
-
- public var action: ActionDetailSchema
-
- public var refundBy: String
-
- public var collectBy: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case mode = "mode"
-
- case amount = "amount"
-
- case meta = "meta"
-
- case identifier = "identifier"
-
- case displayName = "display_name"
-
- case aggregator = "aggregator"
-
- case action = "action"
-
- case refundBy = "refund_by"
-
- case collectBy = "collect_by"
-
- }
-
- public init(action: ActionDetailSchema, aggregator: String, amount: Double, collectBy: String, displayName: String, identifier: String, meta: PaymentMetaDataSchema? = nil, mode: String, name: String, refundBy: String) {
-
- self.name = name
-
- self.mode = mode
-
- self.amount = amount
-
- self.meta = meta
-
- self.identifier = identifier
-
- self.displayName = displayName
-
- self.aggregator = aggregator
-
- self.action = action
-
- self.refundBy = refundBy
-
- self.collectBy = collectBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- do {
- meta = try container.decode(PaymentMetaDataSchema.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- action = try container.decode(ActionDetailSchema.self, forKey: .action)
-
-
-
-
- refundBy = try container.decode(String.self, forKey: .refundBy)
-
-
-
-
- collectBy = try container.decode(String.self, forKey: .collectBy)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(refundBy, forKey: .refundBy)
-
-
-
-
- try? container.encodeIfPresent(collectBy, forKey: .collectBy)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PaymentMethodSchema
- Used By: Order
- */
-
- class PaymentMethodSchema: Codable {
-
-
- public var name: String
-
- public var mode: String
-
- public var amount: Double
-
- public var meta: PaymentMetaDataSchema?
-
- public var identifier: String
-
- public var displayName: String
-
- public var aggregator: String
-
- public var action: ActionDetailSchema
-
- public var refundBy: String
-
- public var collectBy: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case mode = "mode"
-
- case amount = "amount"
-
- case meta = "meta"
-
- case identifier = "identifier"
-
- case displayName = "display_name"
-
- case aggregator = "aggregator"
-
- case action = "action"
-
- case refundBy = "refund_by"
-
- case collectBy = "collect_by"
-
- }
-
- public init(action: ActionDetailSchema, aggregator: String, amount: Double, collectBy: String, displayName: String, identifier: String, meta: PaymentMetaDataSchema? = nil, mode: String, name: String, refundBy: String) {
-
- self.name = name
-
- self.mode = mode
-
- self.amount = amount
-
- self.meta = meta
-
- self.identifier = identifier
-
- self.displayName = displayName
-
- self.aggregator = aggregator
-
- self.action = action
-
- self.refundBy = refundBy
-
- self.collectBy = collectBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- do {
- meta = try container.decode(PaymentMetaDataSchema.self, forKey: .meta)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- action = try container.decode(ActionDetailSchema.self, forKey: .action)
-
-
-
-
- refundBy = try container.decode(String.self, forKey: .refundBy)
-
-
-
-
- collectBy = try container.decode(String.self, forKey: .collectBy)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(refundBy, forKey: .refundBy)
-
-
-
-
- try? container.encodeIfPresent(collectBy, forKey: .collectBy)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PaymentMethodsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PaymentMethodsOrderPlatformModel.swift
deleted file mode 100644
index a0c0be74cf..0000000000
--- a/Sources/code/platform/Models/Order/PaymentMethodsOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PaymentMethods
- Used By: Order
- */
-
- class PaymentMethods: Codable {
-
-
- public var collectBy: String?
-
- public var refundBy: String?
-
- public var mode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case collectBy = "collect_by"
-
- case refundBy = "refund_by"
-
- case mode = "mode"
-
- }
-
- public init(collectBy: String? = nil, mode: String? = nil, refundBy: String? = nil) {
-
- self.collectBy = collectBy
-
- self.refundBy = refundBy
-
- self.mode = mode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- collectBy = try container.decode(String.self, forKey: .collectBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundBy = try container.decode(String.self, forKey: .refundBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } 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(collectBy, forKey: .collectBy)
-
-
-
-
- try? container.encodeIfPresent(refundBy, forKey: .refundBy)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PaymentMethods
- Used By: Order
- */
-
- class PaymentMethods: Codable {
-
-
- public var collectBy: String?
-
- public var refundBy: String?
-
- public var mode: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case collectBy = "collect_by"
-
- case refundBy = "refund_by"
-
- case mode = "mode"
-
- }
-
- public init(collectBy: String? = nil, mode: String? = nil, refundBy: String? = nil) {
-
- self.collectBy = collectBy
-
- self.refundBy = refundBy
-
- self.mode = mode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- collectBy = try container.decode(String.self, forKey: .collectBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundBy = try container.decode(String.self, forKey: .refundBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } 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(collectBy, forKey: .collectBy)
-
-
-
-
- try? container.encodeIfPresent(refundBy, forKey: .refundBy)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PlatformDeliveryAddressOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PlatformDeliveryAddressOrderPlatformModel.swift
new file mode 100644
index 0000000000..02485b2303
--- /dev/null
+++ b/Sources/code/platform/Models/Order/PlatformDeliveryAddressOrderPlatformModel.swift
@@ -0,0 +1,944 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: PlatformDeliveryAddress
+ Used By: Order
+ */
+
+ class PlatformDeliveryAddress: Codable {
+
+
+ public var phone: String?
+
+ public var address2: String?
+
+ public var longitude: Int?
+
+ public var pincode: String?
+
+ public var area: String?
+
+ public var addressType: String?
+
+ public var country: String?
+
+ public var addressCategory: String?
+
+ public var email: String?
+
+ public var createdAt: String?
+
+ public var address1: String?
+
+ public var displayAddress: String?
+
+ public var landmark: String?
+
+ public var updatedAt: String?
+
+ public var version: String?
+
+ public var latitude: Int?
+
+ public var contactPerson: String?
+
+ public var state: String?
+
+ public var city: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case phone = "phone"
+
+ case address2 = "address2"
+
+ case longitude = "longitude"
+
+ case pincode = "pincode"
+
+ case area = "area"
+
+ case addressType = "address_type"
+
+ case country = "country"
+
+ case addressCategory = "address_category"
+
+ case email = "email"
+
+ case createdAt = "created_at"
+
+ case address1 = "address1"
+
+ case displayAddress = "display_address"
+
+ case landmark = "landmark"
+
+ case updatedAt = "updated_at"
+
+ case version = "version"
+
+ case latitude = "latitude"
+
+ case contactPerson = "contact_person"
+
+ case state = "state"
+
+ case city = "city"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressCategory: String? = nil, addressType: String? = nil, area: String? = nil, city: String? = nil, contactPerson: String? = nil, country: String? = nil, createdAt: String? = nil, displayAddress: String? = nil, email: String? = nil, landmark: String? = nil, latitude: Int? = nil, longitude: Int? = nil, phone: String? = nil, pincode: String? = nil, state: String? = nil, updatedAt: String? = nil, version: String? = nil) {
+
+ self.phone = phone
+
+ self.address2 = address2
+
+ self.longitude = longitude
+
+ self.pincode = pincode
+
+ self.area = area
+
+ self.addressType = addressType
+
+ self.country = country
+
+ self.addressCategory = addressCategory
+
+ self.email = email
+
+ self.createdAt = createdAt
+
+ self.address1 = address1
+
+ self.displayAddress = displayAddress
+
+ self.landmark = landmark
+
+ self.updatedAt = updatedAt
+
+ self.version = version
+
+ self.latitude = latitude
+
+ self.contactPerson = contactPerson
+
+ self.state = state
+
+ self.city = city
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ phone = try container.decode(String.self, forKey: .phone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ longitude = try container.decode(Int.self, forKey: .longitude)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ area = try container.decode(String.self, forKey: .area)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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 {
+ addressCategory = try container.decode(String.self, forKey: .addressCategory)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ displayAddress = try container.decode(String.self, forKey: .displayAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ version = try container.decode(String.self, forKey: .version)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ latitude = try container.decode(Int.self, forKey: .latitude)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ contactPerson = try container.decode(String.self, forKey: .contactPerson)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(phone, forKey: .phone)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(area, forKey: .area)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(displayAddress, forKey: .displayAddress)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
+ try? container.encodeIfPresent(version, forKey: .version)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(contactPerson, forKey: .contactPerson)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: PlatformDeliveryAddress
+ Used By: Order
+ */
+
+ class PlatformDeliveryAddress: Codable {
+
+
+ public var phone: String?
+
+ public var address2: String?
+
+ public var longitude: Int?
+
+ public var pincode: String?
+
+ public var area: String?
+
+ public var addressType: String?
+
+ public var country: String?
+
+ public var addressCategory: String?
+
+ public var email: String?
+
+ public var createdAt: String?
+
+ public var address1: String?
+
+ public var displayAddress: String?
+
+ public var landmark: String?
+
+ public var updatedAt: String?
+
+ public var version: String?
+
+ public var latitude: Int?
+
+ public var contactPerson: String?
+
+ public var state: String?
+
+ public var city: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case phone = "phone"
+
+ case address2 = "address2"
+
+ case longitude = "longitude"
+
+ case pincode = "pincode"
+
+ case area = "area"
+
+ case addressType = "address_type"
+
+ case country = "country"
+
+ case addressCategory = "address_category"
+
+ case email = "email"
+
+ case createdAt = "created_at"
+
+ case address1 = "address1"
+
+ case displayAddress = "display_address"
+
+ case landmark = "landmark"
+
+ case updatedAt = "updated_at"
+
+ case version = "version"
+
+ case latitude = "latitude"
+
+ case contactPerson = "contact_person"
+
+ case state = "state"
+
+ case city = "city"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, addressCategory: String? = nil, addressType: String? = nil, area: String? = nil, city: String? = nil, contactPerson: String? = nil, country: String? = nil, createdAt: String? = nil, displayAddress: String? = nil, email: String? = nil, landmark: String? = nil, latitude: Int? = nil, longitude: Int? = nil, phone: String? = nil, pincode: String? = nil, state: String? = nil, updatedAt: String? = nil, version: String? = nil) {
+
+ self.phone = phone
+
+ self.address2 = address2
+
+ self.longitude = longitude
+
+ self.pincode = pincode
+
+ self.area = area
+
+ self.addressType = addressType
+
+ self.country = country
+
+ self.addressCategory = addressCategory
+
+ self.email = email
+
+ self.createdAt = createdAt
+
+ self.address1 = address1
+
+ self.displayAddress = displayAddress
+
+ self.landmark = landmark
+
+ self.updatedAt = updatedAt
+
+ self.version = version
+
+ self.latitude = latitude
+
+ self.contactPerson = contactPerson
+
+ self.state = state
+
+ self.city = city
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ phone = try container.decode(String.self, forKey: .phone)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ longitude = try container.decode(Int.self, forKey: .longitude)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ area = try container.decode(String.self, forKey: .area)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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 {
+ addressCategory = try container.decode(String.self, forKey: .addressCategory)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ displayAddress = try container.decode(String.self, forKey: .displayAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ updatedAt = try container.decode(String.self, forKey: .updatedAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ version = try container.decode(String.self, forKey: .version)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ latitude = try container.decode(Int.self, forKey: .latitude)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ contactPerson = try container.decode(String.self, forKey: .contactPerson)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(phone, forKey: .phone)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(area, forKey: .area)
+
+
+
+
+ try? container.encodeIfPresent(addressType, forKey: .addressType)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(displayAddress, forKey: .displayAddress)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)
+
+
+
+
+ try? container.encodeIfPresent(version, forKey: .version)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(contactPerson, forKey: .contactPerson)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(city, forKey: .city)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/PlatformOrderItemsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PlatformOrderItemsOrderPlatformModel.swift
index 16875cfdfa..e5004973d4 100644
--- a/Sources/code/platform/Models/Order/PlatformOrderItemsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/PlatformOrderItemsOrderPlatformModel.swift
@@ -38,10 +38,6 @@ public extension PlatformClient.Order {
public var currencyInfo: CurrencyInfo?
- public var prices: Prices?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public enum CodingKeys: String, CodingKey {
@@ -71,13 +67,9 @@ public extension PlatformClient.Order {
case currencyInfo = "currency_info"
- case prices = "prices"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
}
- public init(breakupValues: [PlatformBreakupValues]? = nil, channel: PlatformChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, orderValue: Double? = nil, paymentMode: String? = nil, prices: Prices? = nil, shipments: [PlatformShipment]? = nil, totalOrderValue: Double? = nil, userInfo: UserDataInfo? = nil) {
+ public init(breakupValues: [PlatformBreakupValues]? = nil, channel: PlatformChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, meta: [String: Any]? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, orderValue: Double? = nil, paymentMode: String? = nil, shipments: [PlatformShipment]? = nil, totalOrderValue: Double? = nil, userInfo: UserDataInfo? = nil) {
self.breakupValues = breakupValues
@@ -105,10 +97,6 @@ public extension PlatformClient.Order {
self.currencyInfo = currencyInfo
- self.prices = prices
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
}
required public init(from decoder: Decoder) throws {
@@ -270,30 +258,6 @@ public extension PlatformClient.Order {
}
-
- do {
- prices = try container.decode(Prices.self, forKey: .prices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } 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 {
@@ -364,16 +328,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(currencyInfo, forKey: .currencyInfo)
-
-
- try? container.encodeIfPresent(prices, forKey: .prices)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
}
}
@@ -416,10 +370,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var currencyInfo: CurrencyInfo?
- public var prices: Prices?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public enum CodingKeys: String, CodingKey {
@@ -449,13 +399,9 @@ public extension PlatformClient.ApplicationClient.Order {
case currencyInfo = "currency_info"
- case prices = "prices"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
}
- public init(breakupValues: [PlatformBreakupValues]? = nil, channel: PlatformChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, meta: [String: Any]? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, orderValue: Double? = nil, paymentMode: String? = nil, prices: Prices? = nil, shipments: [PlatformShipment]? = nil, totalOrderValue: Double? = nil, userInfo: UserDataInfo? = nil) {
+ public init(breakupValues: [PlatformBreakupValues]? = nil, channel: PlatformChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, meta: [String: Any]? = nil, orderCreatedTime: String? = nil, orderCreatedTs: String? = nil, orderId: String? = nil, orderValue: Double? = nil, paymentMode: String? = nil, shipments: [PlatformShipment]? = nil, totalOrderValue: Double? = nil, userInfo: UserDataInfo? = nil) {
self.breakupValues = breakupValues
@@ -483,10 +429,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.currencyInfo = currencyInfo
- self.prices = prices
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
}
required public init(from decoder: Decoder) throws {
@@ -648,30 +590,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- prices = try container.decode(Prices.self, forKey: .prices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } 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 {
@@ -742,16 +660,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(currencyInfo, forKey: .currencyInfo)
-
-
- try? container.encodeIfPresent(prices, forKey: .prices)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/PlatformShipmentOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PlatformShipmentOrderPlatformModel.swift
index 608cee1651..6756682d51 100644
--- a/Sources/code/platform/Models/Order/PlatformShipmentOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/PlatformShipmentOrderPlatformModel.swift
@@ -42,9 +42,9 @@ public extension PlatformClient.Order {
public var shipmentImages: [String]?
- public var deliveryDetails: [String: Any]?
+ public var deliveryDetails: UserDetailsData?
- public var billingDetails: [String: Any]?
+ public var billingDetails: UserDetailsData?
public var forwardShipmentId: String?
@@ -106,10 +106,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var vertical: String?
public var shipmentId: String
@@ -134,7 +130,7 @@ public extension PlatformClient.Order {
public var shipmentUpdateTime: Double?
- public var rtoAddress: Address?
+ public var rtoAddress: PlatformDeliveryAddress?
public var creditNoteId: String?
@@ -144,10 +140,6 @@ public extension PlatformClient.Order {
public var isLapaEnabled: Bool?
- public var forwardEndShipmentId: String?
-
- public var logisticsMeta: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -245,10 +237,6 @@ public extension PlatformClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case vertical = "vertical"
case shipmentId = "shipment_id"
@@ -283,13 +271,9 @@ public extension PlatformClient.Order {
case isLapaEnabled = "is_lapa_enabled"
- case forwardEndShipmentId = "forward_end_shipment_id"
-
- case logisticsMeta = "logistics_meta"
-
}
- public init(affiliateDetails: AffiliateDetails? = nil, bags: [OrderBags]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, billingDetails: [String: Any]? = nil, canUpdateDimension: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, companyDetails: CompanyDetails? = nil, coupon: [String: Any]? = nil, creditNoteId: String? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customMessage: String? = nil, customMeta: [[String: Any]]? = nil, deliveryDetails: [String: Any]? = nil, deliverySlot: [String: Any]? = nil, dpAssignment: Bool? = nil, dpDetails: DPDetailsData? = nil, enableDpTracking: Bool? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardEndShipmentId: String? = nil, forwardShipmentId: String? = nil, fulfillingStore: FulfillingStore? = nil, fulfilmentPriority: Int? = nil, gstDetails: GSTDetailsData? = nil, invoice: InvoiceInfo? = nil, invoiceId: String? = nil, isDpAssignEnabled: Bool? = nil, isLapaEnabled: Bool? = nil, isSelfShip: Bool? = nil, journeyType: String? = nil, lockStatus: Bool? = nil, logisticsMeta: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, operationalStatus: String? = nil, order: OrderDetailsData? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderingStore: OrderingStoreDetails? = nil, orderPlatform: String? = nil, orderStatus: OrderStatusData? = nil, packagingType: String? = nil, payments: ShipmentPayments? = nil, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, pdfLinks: [String: Any]? = nil, pickedDate: String? = nil, platformLogo: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, priorityText: String? = nil, rtoAddress: Address? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentDetails: ShipmentLockDetails? = nil, shipmentId: String, shipmentImages: [String]? = nil, shipmentQuantity: Int? = nil, shipmentStatus: String? = nil, shipmentUpdateTime: Double? = nil, status: ShipmentStatusData? = nil, totalBags: Int? = nil, totalItems: Int? = nil, trackingList: [TrackingList]? = nil, user: UserDataInfo? = nil, userAgent: String? = nil, vertical: String? = nil) {
+ public init(affiliateDetails: AffiliateDetails? = nil, bags: [OrderBags]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, billingDetails: UserDetailsData? = nil, canUpdateDimension: Bool? = nil, companyDetails: CompanyDetails? = nil, coupon: [String: Any]? = nil, creditNoteId: String? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customMessage: String? = nil, customMeta: [[String: Any]]? = nil, deliveryDetails: UserDetailsData? = nil, deliverySlot: [String: Any]? = nil, dpAssignment: Bool? = nil, dpDetails: DPDetailsData? = nil, enableDpTracking: Bool? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardShipmentId: String? = nil, fulfillingStore: FulfillingStore? = nil, fulfilmentPriority: Int? = nil, gstDetails: GSTDetailsData? = nil, invoice: InvoiceInfo? = nil, invoiceId: String? = nil, isDpAssignEnabled: Bool? = nil, isLapaEnabled: Bool? = nil, isSelfShip: Bool? = nil, journeyType: String? = nil, lockStatus: Bool? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, operationalStatus: String? = nil, order: OrderDetailsData? = nil, orderingStore: OrderingStoreDetails? = nil, orderPlatform: String? = nil, orderStatus: OrderStatusData? = nil, packagingType: String? = nil, payments: ShipmentPayments? = nil, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, pdfLinks: [String: Any]? = nil, pickedDate: String? = nil, platformLogo: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, priorityText: String? = nil, rtoAddress: PlatformDeliveryAddress? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentDetails: ShipmentLockDetails? = nil, shipmentId: String, shipmentImages: [String]? = nil, shipmentQuantity: Int? = nil, shipmentStatus: String? = nil, shipmentUpdateTime: Double? = nil, status: ShipmentStatusData? = nil, totalBags: Int? = nil, totalItems: Int? = nil, trackingList: [TrackingList]? = nil, user: UserDataInfo? = nil, userAgent: String? = nil, vertical: String? = nil) {
self.pickedDate = pickedDate
@@ -385,10 +369,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.vertical = vertical
self.shipmentId = shipmentId
@@ -423,10 +403,6 @@ public extension PlatformClient.Order {
self.isLapaEnabled = isLapaEnabled
- self.forwardEndShipmentId = forwardEndShipmentId
-
- self.logisticsMeta = logisticsMeta
-
}
required public init(from decoder: Decoder) throws {
@@ -614,7 +590,7 @@ public extension PlatformClient.Order {
do {
- deliveryDetails = try container.decode([String: Any].self, forKey: .deliveryDetails)
+ deliveryDetails = try container.decode(UserDetailsData.self, forKey: .deliveryDetails)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -626,7 +602,7 @@ public extension PlatformClient.Order {
do {
- billingDetails = try container.decode([String: Any].self, forKey: .billingDetails)
+ billingDetails = try container.decode(UserDetailsData.self, forKey: .billingDetails)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -997,30 +973,6 @@ public extension PlatformClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
vertical = try container.decode(String.self, forKey: .vertical)
@@ -1159,7 +1111,7 @@ public extension PlatformClient.Order {
do {
- rtoAddress = try container.decode(Address.self, forKey: .rtoAddress)
+ rtoAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .rtoAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1217,30 +1169,6 @@ public extension PlatformClient.Order {
}
-
- do {
- forwardEndShipmentId = try container.decode(String.self, forKey: .forwardEndShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logisticsMeta = try container.decode([String: Any].self, forKey: .logisticsMeta)
-
- } 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 {
@@ -1483,16 +1411,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(vertical, forKey: .vertical)
@@ -1576,16 +1494,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(isLapaEnabled, forKey: .isLapaEnabled)
-
-
- try? container.encodeIfPresent(forwardEndShipmentId, forKey: .forwardEndShipmentId)
-
-
-
-
- try? container.encodeIfPresent(logisticsMeta, forKey: .logisticsMeta)
-
-
}
}
@@ -1632,9 +1540,9 @@ public extension PlatformClient.ApplicationClient.Order {
public var shipmentImages: [String]?
- public var deliveryDetails: [String: Any]?
+ public var deliveryDetails: UserDetailsData?
- public var billingDetails: [String: Any]?
+ public var billingDetails: UserDetailsData?
public var forwardShipmentId: String?
@@ -1696,10 +1604,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var charges: [PriceAdjustmentCharge]?
-
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var vertical: String?
public var shipmentId: String
@@ -1724,7 +1628,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var shipmentUpdateTime: Double?
- public var rtoAddress: Address?
+ public var rtoAddress: PlatformDeliveryAddress?
public var creditNoteId: String?
@@ -1734,10 +1638,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var isLapaEnabled: Bool?
- public var forwardEndShipmentId: String?
-
- public var logisticsMeta: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -1835,10 +1735,6 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case charges = "charges"
-
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case vertical = "vertical"
case shipmentId = "shipment_id"
@@ -1873,13 +1769,9 @@ public extension PlatformClient.ApplicationClient.Order {
case isLapaEnabled = "is_lapa_enabled"
- case forwardEndShipmentId = "forward_end_shipment_id"
-
- case logisticsMeta = "logistics_meta"
-
}
- public init(affiliateDetails: AffiliateDetails? = nil, bags: [OrderBags]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, billingDetails: [String: Any]? = nil, canUpdateDimension: Bool? = nil, charges: [PriceAdjustmentCharge]? = nil, companyDetails: CompanyDetails? = nil, coupon: [String: Any]? = nil, creditNoteId: String? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customMessage: String? = nil, customMeta: [[String: Any]]? = nil, deliveryDetails: [String: Any]? = nil, deliverySlot: [String: Any]? = nil, dpAssignment: Bool? = nil, dpDetails: DPDetailsData? = nil, enableDpTracking: Bool? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardEndShipmentId: String? = nil, forwardShipmentId: String? = nil, fulfillingStore: FulfillingStore? = nil, fulfilmentPriority: Int? = nil, gstDetails: GSTDetailsData? = nil, invoice: InvoiceInfo? = nil, invoiceId: String? = nil, isDpAssignEnabled: Bool? = nil, isLapaEnabled: Bool? = nil, isSelfShip: Bool? = nil, journeyType: String? = nil, lockStatus: Bool? = nil, logisticsMeta: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, operationalStatus: String? = nil, order: OrderDetailsData? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderingStore: OrderingStoreDetails? = nil, orderPlatform: String? = nil, orderStatus: OrderStatusData? = nil, packagingType: String? = nil, payments: ShipmentPayments? = nil, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, pdfLinks: [String: Any]? = nil, pickedDate: String? = nil, platformLogo: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, priorityText: String? = nil, rtoAddress: Address? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentDetails: ShipmentLockDetails? = nil, shipmentId: String, shipmentImages: [String]? = nil, shipmentQuantity: Int? = nil, shipmentStatus: String? = nil, shipmentUpdateTime: Double? = nil, status: ShipmentStatusData? = nil, totalBags: Int? = nil, totalItems: Int? = nil, trackingList: [TrackingList]? = nil, user: UserDataInfo? = nil, userAgent: String? = nil, vertical: String? = nil) {
+ public init(affiliateDetails: AffiliateDetails? = nil, bags: [OrderBags]? = nil, bagStatusHistory: [BagStatusHistory]? = nil, billingDetails: UserDetailsData? = nil, canUpdateDimension: Bool? = nil, companyDetails: CompanyDetails? = nil, coupon: [String: Any]? = nil, creditNoteId: String? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customMessage: String? = nil, customMeta: [[String: Any]]? = nil, deliveryDetails: UserDetailsData? = nil, deliverySlot: [String: Any]? = nil, dpAssignment: Bool? = nil, dpDetails: DPDetailsData? = nil, enableDpTracking: Bool? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardShipmentId: String? = nil, fulfillingStore: FulfillingStore? = nil, fulfilmentPriority: Int? = nil, gstDetails: GSTDetailsData? = nil, invoice: InvoiceInfo? = nil, invoiceId: String? = nil, isDpAssignEnabled: Bool? = nil, isLapaEnabled: Bool? = nil, isSelfShip: Bool? = nil, journeyType: String? = nil, lockStatus: Bool? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, operationalStatus: String? = nil, order: OrderDetailsData? = nil, orderingStore: OrderingStoreDetails? = nil, orderPlatform: String? = nil, orderStatus: OrderStatusData? = nil, packagingType: String? = nil, payments: ShipmentPayments? = nil, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, pdfLinks: [String: Any]? = nil, pickedDate: String? = nil, platformLogo: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, priorityText: String? = nil, rtoAddress: PlatformDeliveryAddress? = nil, shipmentCreatedAt: String? = nil, shipmentCreatedTs: String? = nil, shipmentDetails: ShipmentLockDetails? = nil, shipmentId: String, shipmentImages: [String]? = nil, shipmentQuantity: Int? = nil, shipmentStatus: String? = nil, shipmentUpdateTime: Double? = nil, status: ShipmentStatusData? = nil, totalBags: Int? = nil, totalItems: Int? = nil, trackingList: [TrackingList]? = nil, user: UserDataInfo? = nil, userAgent: String? = nil, vertical: String? = nil) {
self.pickedDate = pickedDate
@@ -1975,10 +1867,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.charges = charges
-
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.vertical = vertical
self.shipmentId = shipmentId
@@ -2013,10 +1901,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.isLapaEnabled = isLapaEnabled
- self.forwardEndShipmentId = forwardEndShipmentId
-
- self.logisticsMeta = logisticsMeta
-
}
required public init(from decoder: Decoder) throws {
@@ -2204,7 +2088,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- deliveryDetails = try container.decode([String: Any].self, forKey: .deliveryDetails)
+ deliveryDetails = try container.decode(UserDetailsData.self, forKey: .deliveryDetails)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2216,7 +2100,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- billingDetails = try container.decode([String: Any].self, forKey: .billingDetails)
+ billingDetails = try container.decode(UserDetailsData.self, forKey: .billingDetails)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2587,30 +2471,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- charges = try container.decode([PriceAdjustmentCharge].self, forKey: .charges)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
vertical = try container.decode(String.self, forKey: .vertical)
@@ -2749,7 +2609,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- rtoAddress = try container.decode(Address.self, forKey: .rtoAddress)
+ rtoAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .rtoAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -2807,30 +2667,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- forwardEndShipmentId = try container.decode(String.self, forKey: .forwardEndShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logisticsMeta = try container.decode([String: Any].self, forKey: .logisticsMeta)
-
- } 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 {
@@ -3073,16 +2909,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(charges, forKey: .charges)
-
-
-
-
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(vertical, forKey: .vertical)
@@ -3166,16 +2992,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(isLapaEnabled, forKey: .isLapaEnabled)
-
-
- try? container.encodeIfPresent(forwardEndShipmentId, forKey: .forwardEndShipmentId)
-
-
-
-
- try? container.encodeIfPresent(logisticsMeta, forKey: .logisticsMeta)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..e92fce5a53
--- /dev/null
+++ b/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: PlatformShipmentReasonsResponse
+ Used By: Order
+ */
+
+ class PlatformShipmentReasonsResponse: Codable {
+
+
+ public var reasons: [Reason]?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasons = "reasons"
+
+ case success = "success"
+
+ }
+
+ public init(reasons: [Reason]? = nil, success: Bool? = nil) {
+
+ self.reasons = reasons
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reasons = try container.decode([Reason].self, forKey: .reasons)
+
+ } 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(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: PlatformShipmentReasonsResponse
+ Used By: Order
+ */
+
+ class PlatformShipmentReasonsResponse: Codable {
+
+
+ public var reasons: [Reason]?
+
+ public var success: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasons = "reasons"
+
+ case success = "success"
+
+ }
+
+ public init(reasons: [Reason]? = nil, success: Bool? = nil) {
+
+ self.reasons = reasons
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ reasons = try container.decode([Reason].self, forKey: .reasons)
+
+ } 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(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9ff3378819..0000000000
--- a/Sources/code/platform/Models/Order/PlatformShipmentReasonsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PlatformShipmentReasonsResponseSchema
- Used By: Order
- */
-
- class PlatformShipmentReasonsResponseSchema: Codable {
-
-
- public var reasons: [Reason]?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- case success = "success"
-
- }
-
- public init(reasons: [Reason]? = nil, success: Bool? = nil) {
-
- self.reasons = reasons
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
-
- } 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(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PlatformShipmentReasonsResponseSchema
- Used By: Order
- */
-
- class PlatformShipmentReasonsResponseSchema: Codable {
-
-
- public var reasons: [Reason]?
-
- public var success: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- case success = "success"
-
- }
-
- public init(reasons: [Reason]? = nil, success: Bool? = nil) {
-
- self.reasons = reasons
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
-
- } 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(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PriceAdjustmentChargeOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PriceAdjustmentChargeOrderPlatformModel.swift
deleted file mode 100644
index 48aca322a8..0000000000
--- a/Sources/code/platform/Models/Order/PriceAdjustmentChargeOrderPlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PriceAdjustmentCharge
- Used By: Order
- */
-
- class PriceAdjustmentCharge: Codable {
-
-
- public var code: String?
-
- public var name: String
-
- public var type: String?
-
- public var amount: ChargeAmount
-
- public var distributionLogic: ChargeDistributionLogic
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case name = "name"
-
- case type = "type"
-
- case amount = "amount"
-
- case distributionLogic = "distribution_logic"
-
- }
-
- public init(amount: ChargeAmount, code: String? = nil, distributionLogic: ChargeDistributionLogic, name: String, type: String? = nil) {
-
- self.code = code
-
- self.name = name
-
- self.type = type
-
- self.amount = amount
-
- self.distributionLogic = distributionLogic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
-
- }
-
-
-
- amount = try container.decode(ChargeAmount.self, forKey: .amount)
-
-
-
-
- distributionLogic = try container.decode(ChargeDistributionLogic.self, forKey: .distributionLogic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PriceAdjustmentCharge
- Used By: Order
- */
-
- class PriceAdjustmentCharge: Codable {
-
-
- public var code: String?
-
- public var name: String
-
- public var type: String?
-
- public var amount: ChargeAmount
-
- public var distributionLogic: ChargeDistributionLogic
-
-
- public enum CodingKeys: String, CodingKey {
-
- case code = "code"
-
- case name = "name"
-
- case type = "type"
-
- case amount = "amount"
-
- case distributionLogic = "distribution_logic"
-
- }
-
- public init(amount: ChargeAmount, code: String? = nil, distributionLogic: ChargeDistributionLogic, name: String, type: String? = nil) {
-
- self.code = code
-
- self.name = name
-
- self.type = type
-
- self.amount = amount
-
- self.distributionLogic = distributionLogic
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
-
- }
-
-
-
- amount = try container.decode(ChargeAmount.self, forKey: .amount)
-
-
-
-
- distributionLogic = try container.decode(ChargeDistributionLogic.self, forKey: .distributionLogic)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(distributionLogic, forKey: .distributionLogic)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/PriceMinMaxOrderPlatformModel.swift b/Sources/code/platform/Models/Order/PriceMinMaxOrderPlatformModel.swift
deleted file mode 100644
index c4aecfe4c9..0000000000
--- a/Sources/code/platform/Models/Order/PriceMinMaxOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: PriceMinMax
- Used By: Order
- */
-
- class PriceMinMax: Codable {
-
-
- public var min: Double?
-
- public var max: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: Double? = nil, min: Double? = nil) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: PriceMinMax
- Used By: Order
- */
-
- class PriceMinMax: Codable {
-
-
- public var min: Double?
-
- public var max: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: Double? = nil, min: Double? = nil) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProcessAfterConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessAfterConfigOrderPlatformModel.swift
deleted file mode 100644
index 1a41caafe0..0000000000
--- a/Sources/code/platform/Models/Order/ProcessAfterConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProcessAfterConfig
- Used By: Order
- */
-
- class ProcessAfterConfig: Codable {
-
-
- public var isScheduledShipment: Bool?
-
- public var enableProcessingAfter: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isScheduledShipment = "is_scheduled_shipment"
-
- case enableProcessingAfter = "enable_processing_after"
-
- }
-
- public init(enableProcessingAfter: String? = nil, isScheduledShipment: Bool? = nil) {
-
- self.isScheduledShipment = isScheduledShipment
-
- self.enableProcessingAfter = enableProcessingAfter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isScheduledShipment = try container.decode(Bool.self, forKey: .isScheduledShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- enableProcessingAfter = try container.decode(String.self, forKey: .enableProcessingAfter)
-
- } 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(isScheduledShipment, forKey: .isScheduledShipment)
-
-
-
-
- try? container.encodeIfPresent(enableProcessingAfter, forKey: .enableProcessingAfter)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProcessAfterConfig
- Used By: Order
- */
-
- class ProcessAfterConfig: Codable {
-
-
- public var isScheduledShipment: Bool?
-
- public var enableProcessingAfter: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isScheduledShipment = "is_scheduled_shipment"
-
- case enableProcessingAfter = "enable_processing_after"
-
- }
-
- public init(enableProcessingAfter: String? = nil, isScheduledShipment: Bool? = nil) {
-
- self.isScheduledShipment = isScheduledShipment
-
- self.enableProcessingAfter = enableProcessingAfter
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isScheduledShipment = try container.decode(Bool.self, forKey: .isScheduledShipment)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- enableProcessingAfter = try container.decode(String.self, forKey: .enableProcessingAfter)
-
- } 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(isScheduledShipment, forKey: .isScheduledShipment)
-
-
-
-
- try? container.encodeIfPresent(enableProcessingAfter, forKey: .enableProcessingAfter)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProcessManifestItemResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessManifestItemResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 1687c74ac5..0000000000
--- a/Sources/code/platform/Models/Order/ProcessManifestItemResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProcessManifestItemResponseSchema
- Used By: Order
- */
-
- class ProcessManifestItemResponseSchema: Codable {
-
-
- public var items: ProcessManifestResponseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: ProcessManifestResponseSchema? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode(ProcessManifestResponseSchema.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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProcessManifestItemResponseSchema
- Used By: Order
- */
-
- class ProcessManifestItemResponseSchema: Codable {
-
-
- public var items: ProcessManifestResponseSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- }
-
- public init(items: ProcessManifestResponseSchema? = nil) {
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- items = try container.decode(ProcessManifestResponseSchema.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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProcessManifestOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessManifestOrderPlatformModel.swift
deleted file mode 100644
index 236c509c16..0000000000
--- a/Sources/code/platform/Models/Order/ProcessManifestOrderPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProcessManifest
- Used By: Order
- */
-
- class ProcessManifest: Codable {
-
-
- public var filters: FiltersRequestSchema
-
- public var action: String
-
- public var uniqueId: String
-
- public var manifestId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case action = "action"
-
- case uniqueId = "unique_id"
-
- case manifestId = "manifest_id"
-
- }
-
- public init(action: String, filters: FiltersRequestSchema, manifestId: String? = nil, uniqueId: String) {
-
- self.filters = filters
-
- self.action = action
-
- self.uniqueId = uniqueId
-
- self.manifestId = manifestId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- filters = try container.decode(FiltersRequestSchema.self, forKey: .filters)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- uniqueId = try container.decode(String.self, forKey: .uniqueId)
-
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } 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(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProcessManifest
- Used By: Order
- */
-
- class ProcessManifest: Codable {
-
-
- public var filters: FiltersRequestSchema
-
- public var action: String
-
- public var uniqueId: String
-
- public var manifestId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filters = "filters"
-
- case action = "action"
-
- case uniqueId = "unique_id"
-
- case manifestId = "manifest_id"
-
- }
-
- public init(action: String, filters: FiltersRequestSchema, manifestId: String? = nil, uniqueId: String) {
-
- self.filters = filters
-
- self.action = action
-
- self.uniqueId = uniqueId
-
- self.manifestId = manifestId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- filters = try container.decode(FiltersRequestSchema.self, forKey: .filters)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- uniqueId = try container.decode(String.self, forKey: .uniqueId)
-
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } 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(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProcessManifestRequestOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessManifestRequestOrderPlatformModel.swift
new file mode 100644
index 0000000000..cf007d235f
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ProcessManifestRequestOrderPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ProcessManifestRequest
+ Used By: Order
+ */
+
+ class ProcessManifestRequest: Codable {
+
+
+ public var action: String
+
+ public var manifestId: String?
+
+ public var filters: Filters
+
+ public var uniqueId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case action = "action"
+
+ case manifestId = "manifest_id"
+
+ case filters = "filters"
+
+ case uniqueId = "unique_id"
+
+ }
+
+ public init(action: String, filters: Filters, manifestId: String? = nil, uniqueId: String) {
+
+ self.action = action
+
+ self.manifestId = manifestId
+
+ self.filters = filters
+
+ self.uniqueId = uniqueId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ do {
+ manifestId = try container.decode(String.self, forKey: .manifestId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(Filters.self, forKey: .filters)
+
+
+
+
+ uniqueId = try container.decode(String.self, forKey: .uniqueId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(manifestId, forKey: .manifestId)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ProcessManifestRequest
+ Used By: Order
+ */
+
+ class ProcessManifestRequest: Codable {
+
+
+ public var action: String
+
+ public var manifestId: String?
+
+ public var filters: Filters
+
+ public var uniqueId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case action = "action"
+
+ case manifestId = "manifest_id"
+
+ case filters = "filters"
+
+ case uniqueId = "unique_id"
+
+ }
+
+ public init(action: String, filters: Filters, manifestId: String? = nil, uniqueId: String) {
+
+ self.action = action
+
+ self.manifestId = manifestId
+
+ self.filters = filters
+
+ self.uniqueId = uniqueId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ do {
+ manifestId = try container.decode(String.self, forKey: .manifestId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ filters = try container.decode(Filters.self, forKey: .filters)
+
+
+
+
+ uniqueId = try container.decode(String.self, forKey: .uniqueId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(manifestId, forKey: .manifestId)
+
+
+
+
+ try? container.encodeIfPresent(filters, forKey: .filters)
+
+
+
+
+ try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ProcessManifestRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessManifestRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index 5b6a35c7f9..0000000000
--- a/Sources/code/platform/Models/Order/ProcessManifestRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProcessManifestRequestSchema
- Used By: Order
- */
-
- class ProcessManifestRequestSchema: Codable {
-
-
- public var action: String
-
- public var manifestId: String?
-
- public var filters: Filters
-
- public var uniqueId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case action = "action"
-
- case manifestId = "manifest_id"
-
- case filters = "filters"
-
- case uniqueId = "unique_id"
-
- }
-
- public init(action: String, filters: Filters, manifestId: String? = nil, uniqueId: String) {
-
- self.action = action
-
- self.manifestId = manifestId
-
- self.filters = filters
-
- self.uniqueId = uniqueId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(Filters.self, forKey: .filters)
-
-
-
-
- uniqueId = try container.decode(String.self, forKey: .uniqueId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProcessManifestRequestSchema
- Used By: Order
- */
-
- class ProcessManifestRequestSchema: Codable {
-
-
- public var action: String
-
- public var manifestId: String?
-
- public var filters: Filters
-
- public var uniqueId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case action = "action"
-
- case manifestId = "manifest_id"
-
- case filters = "filters"
-
- case uniqueId = "unique_id"
-
- }
-
- public init(action: String, filters: Filters, manifestId: String? = nil, uniqueId: String) {
-
- self.action = action
-
- self.manifestId = manifestId
-
- self.filters = filters
-
- self.uniqueId = uniqueId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- filters = try container.decode(Filters.self, forKey: .filters)
-
-
-
-
- uniqueId = try container.decode(String.self, forKey: .uniqueId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(uniqueId, forKey: .uniqueId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProcessManifestResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProcessManifestResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9fd812c80c..0000000000
--- a/Sources/code/platform/Models/Order/ProcessManifestResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProcessManifestResponseSchema
- Used By: Order
- */
-
- class ProcessManifestResponseSchema: Codable {
-
-
- public var companyId: Int?
-
- public var filters: Filters?
-
- public var userId: String?
-
- public var manifestId: String?
-
- public var action: String?
-
- public var uid: String?
-
- public var createdBy: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case filters = "filters"
-
- case userId = "user_id"
-
- case manifestId = "manifest_id"
-
- case action = "action"
-
- case uid = "uid"
-
- case createdBy = "created_by"
-
- }
-
- public init(action: String? = nil, companyId: Int? = nil, createdBy: String? = nil, filters: Filters? = nil, manifestId: String? = nil, uid: String? = nil, userId: String? = nil) {
-
- self.companyId = companyId
-
- self.filters = filters
-
- self.userId = userId
-
- self.manifestId = manifestId
-
- self.action = action
-
- self.uid = uid
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- filters = try container.decode(Filters.self, forKey: .filters)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(String.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)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProcessManifestResponseSchema
- Used By: Order
- */
-
- class ProcessManifestResponseSchema: Codable {
-
-
- public var companyId: Int?
-
- public var filters: Filters?
-
- public var userId: String?
-
- public var manifestId: String?
-
- public var action: String?
-
- public var uid: String?
-
- public var createdBy: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case filters = "filters"
-
- case userId = "user_id"
-
- case manifestId = "manifest_id"
-
- case action = "action"
-
- case uid = "uid"
-
- case createdBy = "created_by"
-
- }
-
- public init(action: String? = nil, companyId: Int? = nil, createdBy: String? = nil, filters: Filters? = nil, manifestId: String? = nil, uid: String? = nil, userId: String? = nil) {
-
- self.companyId = companyId
-
- self.filters = filters
-
- self.userId = userId
-
- self.manifestId = manifestId
-
- self.action = action
-
- self.uid = uid
-
- self.createdBy = createdBy
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- filters = try container.decode(Filters.self, forKey: .filters)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- manifestId = try container.decode(String.self, forKey: .manifestId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- action = try container.decode(String.self, forKey: .action)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(String.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)
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(filters, forKey: .filters)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(manifestId, forKey: .manifestId)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProductSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProductSchemaOrderPlatformModel.swift
deleted file mode 100644
index d25d05bd02..0000000000
--- a/Sources/code/platform/Models/Order/ProductSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ProductSchema
- Used By: Order
- */
-
- class ProductSchema: Codable {
-
-
- public var lineNumber: Int
-
- public var paymentMethods: [PaymentMethodSchema]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case lineNumber = "line_number"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(lineNumber: Int, paymentMethods: [PaymentMethodSchema]) {
-
- self.lineNumber = lineNumber
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- lineNumber = try container.decode(Int.self, forKey: .lineNumber)
-
-
-
-
- paymentMethods = try container.decode([PaymentMethodSchema].self, forKey: .paymentMethods)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(lineNumber, forKey: .lineNumber)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ProductSchema
- Used By: Order
- */
-
- class ProductSchema: Codable {
-
-
- public var lineNumber: Int
-
- public var paymentMethods: [PaymentMethodSchema]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case lineNumber = "line_number"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(lineNumber: Int, paymentMethods: [PaymentMethodSchema]) {
-
- self.lineNumber = lineNumber
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- lineNumber = try container.decode(Int.self, forKey: .lineNumber)
-
-
-
-
- paymentMethods = try container.decode([PaymentMethodSchema].self, forKey: .paymentMethods)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(lineNumber, forKey: .lineNumber)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ProductsDataUpdatesFiltersOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ProductsDataUpdatesFiltersOrderPlatformModel.swift
index 9a265fd7b1..d5f4a23325 100644
--- a/Sources/code/platform/Models/Order/ProductsDataUpdatesFiltersOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ProductsDataUpdatesFiltersOrderPlatformModel.swift
@@ -16,8 +16,6 @@ public extension PlatformClient.Order {
public var identifier: String?
- public var quantity: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -25,18 +23,14 @@ public extension PlatformClient.Order {
case identifier = "identifier"
- case quantity = "quantity"
-
}
- public init(identifier: String? = nil, lineNumber: Int? = nil, quantity: Int? = nil) {
+ public init(identifier: String? = nil, lineNumber: Int? = nil) {
self.lineNumber = lineNumber
self.identifier = identifier
- self.quantity = quantity
-
}
required public init(from decoder: Decoder) throws {
@@ -66,18 +60,6 @@ public extension PlatformClient.Order {
}
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -93,11 +75,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
}
}
@@ -118,8 +95,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var identifier: String?
- public var quantity: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -127,18 +102,14 @@ public extension PlatformClient.ApplicationClient.Order {
case identifier = "identifier"
- case quantity = "quantity"
-
}
- public init(identifier: String? = nil, lineNumber: Int? = nil, quantity: Int? = nil) {
+ public init(identifier: String? = nil, lineNumber: Int? = nil) {
self.lineNumber = lineNumber
self.identifier = identifier
- self.quantity = quantity
-
}
required public init(from decoder: Decoder) throws {
@@ -168,18 +139,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- 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)
- } catch {
-
- }
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -195,11 +154,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/QuestionSetItemOrderPlatformModel.swift b/Sources/code/platform/Models/Order/QuestionSetItemOrderPlatformModel.swift
deleted file mode 100644
index eaedfda793..0000000000
--- a/Sources/code/platform/Models/Order/QuestionSetItemOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: QuestionSetItem
- Used By: Order
- */
-
- class QuestionSetItem: Codable {
-
-
- public var id: Int
-
- public var displayName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case displayName = "display_name"
-
- }
-
- public init(displayName: String, id: Int) {
-
- self.id = id
-
- self.displayName = displayName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(Int.self, forKey: .id)
-
-
-
-
- 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: QuestionSetItem
- Used By: Order
- */
-
- class QuestionSetItem: Codable {
-
-
- public var id: Int
-
- public var displayName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case displayName = "display_name"
-
- }
-
- public init(displayName: String, id: Int) {
-
- self.id = id
-
- self.displayName = displayName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(Int.self, forKey: .id)
-
-
-
-
- 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RMAPageInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RMAPageInfoOrderPlatformModel.swift
deleted file mode 100644
index 1c60863c52..0000000000
--- a/Sources/code/platform/Models/Order/RMAPageInfoOrderPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RMAPageInfo
- Used By: Order
- */
-
- class RMAPageInfo: Codable {
-
-
- public var type: String?
-
- public var current: Int?
-
- public var size: Int?
-
- public var itemTotal: Int?
-
- public var hasPrevious: Bool?
-
- public var hasNext: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case current = "current"
-
- case size = "size"
-
- case itemTotal = "item_total"
-
- case hasPrevious = "has_previous"
-
- case hasNext = "has_next"
-
- }
-
- public init(current: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil, type: String? = nil) {
-
- self.type = type
-
- self.current = current
-
- self.size = size
-
- self.itemTotal = itemTotal
-
- self.hasPrevious = hasPrevious
-
- self.hasNext = hasNext
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- current = try container.decode(Int.self, forKey: .current)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(current, forKey: .current)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
-
-
-
-
- try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
-
-
-
-
- try? container.encodeIfPresent(hasNext, forKey: .hasNext)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RMAPageInfo
- Used By: Order
- */
-
- class RMAPageInfo: Codable {
-
-
- public var type: String?
-
- public var current: Int?
-
- public var size: Int?
-
- public var itemTotal: Int?
-
- public var hasPrevious: Bool?
-
- public var hasNext: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case current = "current"
-
- case size = "size"
-
- case itemTotal = "item_total"
-
- case hasPrevious = "has_previous"
-
- case hasNext = "has_next"
-
- }
-
- public init(current: Int? = nil, hasNext: Bool? = nil, hasPrevious: Bool? = nil, itemTotal: Int? = nil, size: Int? = nil, type: String? = nil) {
-
- self.type = type
-
- self.current = current
-
- self.size = size
-
- self.itemTotal = itemTotal
-
- self.hasPrevious = hasPrevious
-
- self.hasNext = hasNext
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- current = try container.decode(Int.self, forKey: .current)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(current, forKey: .current)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(itemTotal, forKey: .itemTotal)
-
-
-
-
- try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious)
-
-
-
-
- try? container.encodeIfPresent(hasNext, forKey: .hasNext)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ReasonOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ReasonOrderPlatformModel.swift
index 91366d8a4e..ff9fca6ca6 100644
--- a/Sources/code/platform/Models/Order/ReasonOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ReasonOrderPlatformModel.swift
@@ -12,54 +12,36 @@ public extension PlatformClient.Order {
class Reason: Codable {
- public var id: Int?
-
- public var displayName: String
-
- public var reasons: [Reason]?
+ public var qcType: [String]?
- public var qcType: [String]
-
- public var questionSet: [QuestionSet]
+ public var id: Int?
- public var meta: [String: Any]
+ public var questionSet: [QuestionSet]?
- public var isActive: Bool
+ public var displayName: String?
public enum CodingKeys: String, CodingKey {
- case id = "id"
-
- case displayName = "display_name"
-
- case reasons = "reasons"
-
case qcType = "qc_type"
- case questionSet = "question_set"
+ case id = "id"
- case meta = "meta"
+ case questionSet = "question_set"
- case isActive = "is_active"
+ case displayName = "display_name"
}
- public init(displayName: String, id: Int? = nil, isActive: Bool, meta: [String: Any], qcType: [String], questionSet: [QuestionSet], reasons: [Reason]? = nil) {
-
- self.id = id
-
- self.displayName = displayName
-
- self.reasons = reasons
+ public init(displayName: String? = nil, id: Int? = nil, qcType: [String]? = nil, questionSet: [QuestionSet]? = nil) {
self.qcType = qcType
- self.questionSet = questionSet
+ self.id = id
- self.meta = meta
+ self.questionSet = questionSet
- self.isActive = isActive
+ self.displayName = displayName
}
@@ -68,7 +50,7 @@ public extension PlatformClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ qcType = try container.decode([String].self, forKey: .qcType)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -79,13 +61,8 @@ public extension PlatformClient.Order {
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
+ id = try container.decode(Int.self, forKey: .id)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -96,25 +73,29 @@ public extension PlatformClient.Order {
- qcType = try container.decode([String].self, forKey: .qcType)
+ do {
+ questionSet = try container.decode([QuestionSet].self, forKey: .questionSet)
-
-
-
- questionSet = try container.decode([QuestionSet].self, forKey: .questionSet)
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
-
- meta = try container.decode([String: Any].self, forKey: .meta)
+ do {
+ displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
- 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 func encode(to encoder: Encoder) throws {
@@ -122,37 +103,22 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
try? container.encodeIfPresent(qcType, forKey: .qcType)
- try? container.encodeIfPresent(questionSet, forKey: .questionSet)
+ try? container.encodeIfPresent(id, forKey: .id)
- try? container.encodeIfPresent(meta, forKey: .meta)
+ try? container.encodeIfPresent(questionSet, forKey: .questionSet)
- try? container.encodeIfPresent(isActive, forKey: .isActive)
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
}
@@ -171,54 +137,36 @@ public extension PlatformClient.ApplicationClient.Order {
class Reason: Codable {
- public var id: Int?
-
- public var displayName: String
-
- public var reasons: [Reason]?
+ public var qcType: [String]?
- public var qcType: [String]
-
- public var questionSet: [QuestionSet]
+ public var id: Int?
- public var meta: [String: Any]
+ public var questionSet: [QuestionSet]?
- public var isActive: Bool
+ public var displayName: String?
public enum CodingKeys: String, CodingKey {
- case id = "id"
-
- case displayName = "display_name"
-
- case reasons = "reasons"
-
case qcType = "qc_type"
- case questionSet = "question_set"
+ case id = "id"
- case meta = "meta"
+ case questionSet = "question_set"
- case isActive = "is_active"
+ case displayName = "display_name"
}
- public init(displayName: String, id: Int? = nil, isActive: Bool, meta: [String: Any], qcType: [String], questionSet: [QuestionSet], reasons: [Reason]? = nil) {
-
- self.id = id
-
- self.displayName = displayName
-
- self.reasons = reasons
+ public init(displayName: String? = nil, id: Int? = nil, qcType: [String]? = nil, questionSet: [QuestionSet]? = nil) {
self.qcType = qcType
- self.questionSet = questionSet
+ self.id = id
- self.meta = meta
+ self.questionSet = questionSet
- self.isActive = isActive
+ self.displayName = displayName
}
@@ -227,7 +175,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ qcType = try container.decode([String].self, forKey: .qcType)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -238,13 +186,8 @@ public extension PlatformClient.ApplicationClient.Order {
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
+ id = try container.decode(Int.self, forKey: .id)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -255,25 +198,29 @@ public extension PlatformClient.ApplicationClient.Order {
- qcType = try container.decode([String].self, forKey: .qcType)
+ do {
+ questionSet = try container.decode([QuestionSet].self, forKey: .questionSet)
-
-
-
- questionSet = try container.decode([QuestionSet].self, forKey: .questionSet)
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
-
- meta = try container.decode([String: Any].self, forKey: .meta)
+ do {
+ displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
- 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 func encode(to encoder: Encoder) throws {
@@ -281,37 +228,22 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
try? container.encodeIfPresent(qcType, forKey: .qcType)
- try? container.encodeIfPresent(questionSet, forKey: .questionSet)
+ try? container.encodeIfPresent(id, forKey: .id)
- try? container.encodeIfPresent(meta, forKey: .meta)
+ try? container.encodeIfPresent(questionSet, forKey: .questionSet)
- try? container.encodeIfPresent(isActive, forKey: .isActive)
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
}
diff --git a/Sources/code/platform/Models/Order/RefundInformationOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RefundInformationOrderPlatformModel.swift
deleted file mode 100644
index 6f413c8168..0000000000
--- a/Sources/code/platform/Models/Order/RefundInformationOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RefundInformation
- Used By: Order
- */
-
- class RefundInformation: Codable {
-
-
- public var mode: String?
-
- public var amount: Double?
-
- public var merchantTransactionId: String?
-
- public var refundStatus: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case mode = "mode"
-
- case amount = "amount"
-
- case merchantTransactionId = "merchant_transaction_id"
-
- case refundStatus = "refund_status"
-
- }
-
- public init(amount: Double? = nil, merchantTransactionId: String? = nil, mode: String? = nil, refundStatus: String? = nil) {
-
- self.mode = mode
-
- self.amount = amount
-
- self.merchantTransactionId = merchantTransactionId
-
- self.refundStatus = refundStatus
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundStatus = try container.decode(String.self, forKey: .refundStatus)
-
- } 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(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
-
-
-
-
- try? container.encodeIfPresent(refundStatus, forKey: .refundStatus)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RefundInformation
- Used By: Order
- */
-
- class RefundInformation: Codable {
-
-
- public var mode: String?
-
- public var amount: Double?
-
- public var merchantTransactionId: String?
-
- public var refundStatus: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case mode = "mode"
-
- case amount = "amount"
-
- case merchantTransactionId = "merchant_transaction_id"
-
- case refundStatus = "refund_status"
-
- }
-
- public init(amount: Double? = nil, merchantTransactionId: String? = nil, mode: String? = nil, refundStatus: String? = nil) {
-
- self.mode = mode
-
- self.amount = amount
-
- self.merchantTransactionId = merchantTransactionId
-
- self.refundStatus = refundStatus
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- mode = try container.decode(String.self, forKey: .mode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- refundStatus = try container.decode(String.self, forKey: .refundStatus)
-
- } 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(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
-
-
-
-
- try? container.encodeIfPresent(refundStatus, forKey: .refundStatus)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleActionOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleActionOrderPlatformModel.swift
deleted file mode 100644
index 783f5a60f2..0000000000
--- a/Sources/code/platform/Models/Order/RuleActionOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleAction
- Used By: Order
- */
-
- class RuleAction: Codable {
-
-
- public var reasons: [Reason]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- }
-
- public init(reasons: [Reason]? = nil) {
-
- self.reasons = reasons
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
-
- } 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(reasons, forKey: .reasons)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleAction
- Used By: Order
- */
-
- class RuleAction: Codable {
-
-
- public var reasons: [Reason]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- }
-
- public init(reasons: [Reason]? = nil) {
-
- self.reasons = reasons
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- reasons = try container.decode([Reason].self, forKey: .reasons)
-
- } 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(reasons, forKey: .reasons)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleErrorOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleErrorOrderPlatformModel.swift
deleted file mode 100644
index ee000e5d1a..0000000000
--- a/Sources/code/platform/Models/Order/RuleErrorOrderPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleError
- Used By: Order
- */
-
- class RuleError: Codable {
-
-
- public var type: String
-
- public var value: String
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case value = "value"
-
- case message = "message"
-
- }
-
- public init(message: String, type: String, value: String) {
-
- self.type = type
-
- self.value = value
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleError
- Used By: Order
- */
-
- class RuleError: Codable {
-
-
- public var type: String
-
- public var value: String
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case type = "type"
-
- case value = "value"
-
- case message = "message"
-
- }
-
- public init(message: String, type: String, value: String) {
-
- self.type = type
-
- self.value = value
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 2934e3447f..0000000000
--- a/Sources/code/platform/Models/Order/RuleErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleErrorResponseSchema
- Used By: Order
- */
-
- class RuleErrorResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleErrorResponseSchema
- Used By: Order
- */
-
- class RuleErrorResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- error = try container.decode(String.self, forKey: .error)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleItemOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleItemOrderPlatformModel.swift
deleted file mode 100644
index 7b2e957ed2..0000000000
--- a/Sources/code/platform/Models/Order/RuleItemOrderPlatformModel.swift
+++ /dev/null
@@ -1,422 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleItem
- Used By: Order
- */
-
- class RuleItem: Codable {
-
-
- public var id: String
-
- public var entityType: String
-
- public var value: String
-
- public var channel: String
-
- public var actions: RuleAction
-
- public var qcEnabled: Bool
-
- public var isDeleted: Bool
-
- public var conditions: Conditions
-
- public var meta: [String: Any]
-
- public var ruleType: String
-
- public var isActive: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case entityType = "entity_type"
-
- case value = "value"
-
- case channel = "channel"
-
- case actions = "actions"
-
- case qcEnabled = "qc_enabled"
-
- case isDeleted = "is_deleted"
-
- case conditions = "conditions"
-
- case meta = "meta"
-
- case ruleType = "rule_type"
-
- case isActive = "is_active"
-
- }
-
- public init(actions: RuleAction, channel: String, conditions: Conditions, entityType: String, id: String, isActive: Bool, isDeleted: Bool, meta: [String: Any], qcEnabled: Bool, ruleType: String, value: String) {
-
- self.id = id
-
- self.entityType = entityType
-
- self.value = value
-
- self.channel = channel
-
- self.actions = actions
-
- self.qcEnabled = qcEnabled
-
- self.isDeleted = isDeleted
-
- self.conditions = conditions
-
- self.meta = meta
-
- self.ruleType = ruleType
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- entityType = try container.decode(String.self, forKey: .entityType)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- channel = try container.decode(String.self, forKey: .channel)
-
-
-
-
- actions = try container.decode(RuleAction.self, forKey: .actions)
-
-
-
-
- qcEnabled = try container.decode(Bool.self, forKey: .qcEnabled)
-
-
-
-
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
-
-
-
- conditions = try container.decode(Conditions.self, forKey: .conditions)
-
-
-
-
- meta = try container.decode([String: Any].self, forKey: .meta)
-
-
-
-
- ruleType = try container.decode(String.self, forKey: .ruleType)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(entityType, forKey: .entityType)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(channel, forKey: .channel)
-
-
-
-
- try? container.encodeIfPresent(actions, forKey: .actions)
-
-
-
-
- try? container.encodeIfPresent(qcEnabled, forKey: .qcEnabled)
-
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(ruleType, forKey: .ruleType)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleItem
- Used By: Order
- */
-
- class RuleItem: Codable {
-
-
- public var id: String
-
- public var entityType: String
-
- public var value: String
-
- public var channel: String
-
- public var actions: RuleAction
-
- public var qcEnabled: Bool
-
- public var isDeleted: Bool
-
- public var conditions: Conditions
-
- public var meta: [String: Any]
-
- public var ruleType: String
-
- public var isActive: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "id"
-
- case entityType = "entity_type"
-
- case value = "value"
-
- case channel = "channel"
-
- case actions = "actions"
-
- case qcEnabled = "qc_enabled"
-
- case isDeleted = "is_deleted"
-
- case conditions = "conditions"
-
- case meta = "meta"
-
- case ruleType = "rule_type"
-
- case isActive = "is_active"
-
- }
-
- public init(actions: RuleAction, channel: String, conditions: Conditions, entityType: String, id: String, isActive: Bool, isDeleted: Bool, meta: [String: Any], qcEnabled: Bool, ruleType: String, value: String) {
-
- self.id = id
-
- self.entityType = entityType
-
- self.value = value
-
- self.channel = channel
-
- self.actions = actions
-
- self.qcEnabled = qcEnabled
-
- self.isDeleted = isDeleted
-
- self.conditions = conditions
-
- self.meta = meta
-
- self.ruleType = ruleType
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- entityType = try container.decode(String.self, forKey: .entityType)
-
-
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- channel = try container.decode(String.self, forKey: .channel)
-
-
-
-
- actions = try container.decode(RuleAction.self, forKey: .actions)
-
-
-
-
- qcEnabled = try container.decode(Bool.self, forKey: .qcEnabled)
-
-
-
-
- isDeleted = try container.decode(Bool.self, forKey: .isDeleted)
-
-
-
-
- conditions = try container.decode(Conditions.self, forKey: .conditions)
-
-
-
-
- meta = try container.decode([String: Any].self, forKey: .meta)
-
-
-
-
- ruleType = try container.decode(String.self, forKey: .ruleType)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(entityType, forKey: .entityType)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(channel, forKey: .channel)
-
-
-
-
- try? container.encodeIfPresent(actions, forKey: .actions)
-
-
-
-
- try? container.encodeIfPresent(qcEnabled, forKey: .qcEnabled)
-
-
-
-
- try? container.encodeIfPresent(isDeleted, forKey: .isDeleted)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(ruleType, forKey: .ruleType)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleListRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleListRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index ec84095226..0000000000
--- a/Sources/code/platform/Models/Order/RuleListRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,300 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleListRequestSchema
- Used By: Order
- */
-
- class RuleListRequestSchema: Codable {
-
-
- public var pageNo: Int?
-
- public var channel: [String]?
-
- public var department: [String]?
-
- public var id: [String]?
-
- public var isActive: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pageNo = "page_no"
-
- case channel = "channel"
-
- case department = "department"
-
- case id = "id"
-
- case isActive = "is_active"
-
- }
-
- public init(channel: [String]? = nil, department: [String]? = nil, id: [String]? = nil, isActive: Bool? = nil, pageNo: Int? = nil) {
-
- self.pageNo = pageNo
-
- self.channel = channel
-
- self.department = department
-
- self.id = id
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- channel = try container.decode([String].self, forKey: .channel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- department = try container.decode([String].self, forKey: .department)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pageNo, forKey: .pageNo)
-
-
-
-
- try? container.encodeIfPresent(channel, forKey: .channel)
-
-
-
-
- try? container.encodeIfPresent(department, forKey: .department)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleListRequestSchema
- Used By: Order
- */
-
- class RuleListRequestSchema: Codable {
-
-
- public var pageNo: Int?
-
- public var channel: [String]?
-
- public var department: [String]?
-
- public var id: [String]?
-
- public var isActive: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case pageNo = "page_no"
-
- case channel = "channel"
-
- case department = "department"
-
- case id = "id"
-
- case isActive = "is_active"
-
- }
-
- public init(channel: [String]? = nil, department: [String]? = nil, id: [String]? = nil, isActive: Bool? = nil, pageNo: Int? = nil) {
-
- self.pageNo = pageNo
-
- self.channel = channel
-
- self.department = department
-
- self.id = id
-
- self.isActive = isActive
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- channel = try container.decode([String].self, forKey: .channel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- department = try container.decode([String].self, forKey: .department)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(pageNo, forKey: .pageNo)
-
-
-
-
- try? container.encodeIfPresent(channel, forKey: .channel)
-
-
-
-
- try? container.encodeIfPresent(department, forKey: .department)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/RuleListResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/RuleListResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index f448555f69..0000000000
--- a/Sources/code/platform/Models/Order/RuleListResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: RuleListResponseSchema
- Used By: Order
- */
-
- class RuleListResponseSchema: Codable {
-
-
- public var page: RMAPageInfo?
-
- public var items: [RuleItem]?
-
- public var success: Bool?
-
- public var error: RuleError?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: RuleError? = nil, items: [RuleItem]? = nil, page: RMAPageInfo? = nil, success: Bool? = nil) {
-
- self.page = page
-
- self.items = items
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(RMAPageInfo.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([RuleItem].self, forKey: .items)
-
- } 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 {
-
- }
-
-
-
- do {
- error = try container.decode(RuleError.self, forKey: .error)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: RuleListResponseSchema
- Used By: Order
- */
-
- class RuleListResponseSchema: Codable {
-
-
- public var page: RMAPageInfo?
-
- public var items: [RuleItem]?
-
- public var success: Bool?
-
- public var error: RuleError?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: RuleError? = nil, items: [RuleItem]? = nil, page: RMAPageInfo? = nil, success: Bool? = nil) {
-
- self.page = page
-
- self.items = items
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- page = try container.decode(RMAPageInfo.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([RuleItem].self, forKey: .items)
-
- } 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 {
-
- }
-
-
-
- do {
- error = try container.decode(RuleError.self, forKey: .error)
-
- } 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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/SendSmsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SendSmsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 942dc1a7dc..0000000000
--- a/Sources/code/platform/Models/Order/SendSmsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: SendSmsResponseSchema
- Used By: Order
- */
-
- class SendSmsResponseSchema: Codable {
-
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, success: Bool) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: SendSmsResponseSchema
- Used By: Order
- */
-
- class SendSmsResponseSchema: Codable {
-
-
- public var success: Bool
-
- public var message: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String, success: Bool) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/SendUserMobileOtpResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SendUserMobileOtpResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..14b1b7875f
--- /dev/null
+++ b/Sources/code/platform/Models/Order/SendUserMobileOtpResponseOrderPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: SendUserMobileOtpResponse
+ Used By: Order
+ */
+
+ class SendUserMobileOtpResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var status: Int?
+
+ public var message: String?
+
+ public var data: PointBlankOtpData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case status = "status"
+
+ case message = "message"
+
+ case data = "data"
+
+ }
+
+ public init(data: PointBlankOtpData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.status = status
+
+ self.message = message
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode(PointBlankOtpData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: SendUserMobileOtpResponse
+ Used By: Order
+ */
+
+ class SendUserMobileOtpResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var status: Int?
+
+ public var message: String?
+
+ public var data: PointBlankOtpData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case status = "status"
+
+ case message = "message"
+
+ case data = "data"
+
+ }
+
+ public init(data: PointBlankOtpData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.status = status
+
+ self.message = message
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode(PointBlankOtpData.self, forKey: .data)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/SendUserMobileOtpResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SendUserMobileOtpResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index d9aadf4097..0000000000
--- a/Sources/code/platform/Models/Order/SendUserMobileOtpResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: SendUserMobileOtpResponseSchema
- Used By: Order
- */
-
- class SendUserMobileOtpResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var status: Int?
-
- public var message: String?
-
- public var data: PointBlankOtpData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case status = "status"
-
- case message = "message"
-
- case data = "data"
-
- }
-
- public init(data: PointBlankOtpData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.status = status
-
- self.message = message
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode(PointBlankOtpData.self, forKey: .data)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: SendUserMobileOtpResponseSchema
- Used By: Order
- */
-
- class SendUserMobileOtpResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var status: Int?
-
- public var message: String?
-
- public var data: PointBlankOtpData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case status = "status"
-
- case message = "message"
-
- case data = "data"
-
- }
-
- public init(data: PointBlankOtpData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.status = status
-
- self.message = message
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode(PointBlankOtpData.self, forKey: .data)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentActionInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentActionInfoOrderPlatformModel.swift
index c58c556597..993cbaac34 100644
--- a/Sources/code/platform/Models/Order/ShipmentActionInfoOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentActionInfoOrderPlatformModel.swift
@@ -24,7 +24,7 @@ public extension PlatformClient.Order {
public var invoiceableShipments: [String]?
- public var failedInvoicedShipments: [String: Any]?
+ public var failedInvoicedShipments: [String: String]?
public var processingInvoiceShipments: [String]?
@@ -53,7 +53,7 @@ public extension PlatformClient.Order {
}
- public init(failedInvoicedShipments: [String: Any]? = nil, failedShipments: [[String: String]]? = nil, invoice: [String]? = nil, invoiceableShipments: [String]? = nil, label: [String]? = nil, processingInvoiceShipments: [String]? = nil, processingShipments: [String]? = nil, successfulInvoicedShipments: [String]? = nil, successfulShipments: [String]? = nil) {
+ public init(failedInvoicedShipments: [String: String]? = nil, failedShipments: [[String: String]]? = nil, invoice: [String]? = nil, invoiceableShipments: [String]? = nil, label: [String]? = nil, processingInvoiceShipments: [String]? = nil, processingShipments: [String]? = nil, successfulInvoicedShipments: [String]? = nil, successfulShipments: [String]? = nil) {
self.label = label
@@ -152,7 +152,7 @@ public extension PlatformClient.Order {
do {
- failedInvoicedShipments = try container.decode([String: Any].self, forKey: .failedInvoicedShipments)
+ failedInvoicedShipments = try container.decode([String: String].self, forKey: .failedInvoicedShipments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -264,7 +264,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var invoiceableShipments: [String]?
- public var failedInvoicedShipments: [String: Any]?
+ public var failedInvoicedShipments: [String: String]?
public var processingInvoiceShipments: [String]?
@@ -293,7 +293,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(failedInvoicedShipments: [String: Any]? = nil, failedShipments: [[String: String]]? = nil, invoice: [String]? = nil, invoiceableShipments: [String]? = nil, label: [String]? = nil, processingInvoiceShipments: [String]? = nil, processingShipments: [String]? = nil, successfulInvoicedShipments: [String]? = nil, successfulShipments: [String]? = nil) {
+ public init(failedInvoicedShipments: [String: String]? = nil, failedShipments: [[String: String]]? = nil, invoice: [String]? = nil, invoiceableShipments: [String]? = nil, label: [String]? = nil, processingInvoiceShipments: [String]? = nil, processingShipments: [String]? = nil, successfulInvoicedShipments: [String]? = nil, successfulShipments: [String]? = nil) {
self.label = label
@@ -392,7 +392,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- failedInvoicedShipments = try container.decode([String: Any].self, forKey: .failedInvoicedShipments)
+ failedInvoicedShipments = try container.decode([String: String].self, forKey: .failedInvoicedShipments)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Order/ShipmentBagReasonsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentBagReasonsOrderPlatformModel.swift
index 1796b46f73..718e4a903d 100644
--- a/Sources/code/platform/Models/Order/ShipmentBagReasonsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentBagReasonsOrderPlatformModel.swift
@@ -16,8 +16,6 @@ public extension PlatformClient.Order {
public var success: Bool?
- public var ruleId: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -25,18 +23,14 @@ public extension PlatformClient.Order {
case success = "success"
- case ruleId = "rule_id"
-
}
- public init(reasons: [BagReasons]? = nil, ruleId: Int? = nil, success: Bool? = nil) {
+ public init(reasons: [BagReasons]? = nil, success: Bool? = nil) {
self.reasons = reasons
self.success = success
- self.ruleId = ruleId
-
}
required public init(from decoder: Decoder) throws {
@@ -66,18 +60,6 @@ public extension PlatformClient.Order {
}
-
- do {
- ruleId = try container.decode(Int.self, forKey: .ruleId)
-
- } 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 {
@@ -93,11 +75,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(success, forKey: .success)
-
-
- try? container.encodeIfPresent(ruleId, forKey: .ruleId)
-
-
}
}
@@ -118,8 +95,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var success: Bool?
- public var ruleId: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -127,18 +102,14 @@ public extension PlatformClient.ApplicationClient.Order {
case success = "success"
- case ruleId = "rule_id"
-
}
- public init(reasons: [BagReasons]? = nil, ruleId: Int? = nil, success: Bool? = nil) {
+ public init(reasons: [BagReasons]? = nil, success: Bool? = nil) {
self.reasons = reasons
self.success = success
- self.ruleId = ruleId
-
}
required public init(from decoder: Decoder) throws {
@@ -168,18 +139,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- ruleId = try container.decode(Int.self, forKey: .ruleId)
-
- } 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 {
@@ -195,11 +154,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(success, forKey: .success)
-
-
- try? container.encodeIfPresent(ruleId, forKey: .ruleId)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/ShipmentConfigOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentConfigOrderPlatformModel.swift
deleted file mode 100644
index 7278bc46e1..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentConfigOrderPlatformModel.swift
+++ /dev/null
@@ -1,340 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentConfig
- Used By: Order
- */
-
- class ShipmentConfig: Codable {
-
-
- public var locationDetails: LocationDetails?
-
- public var source: String
-
- public var toPincode: String
-
- public var shipment: [ShipmentDetails]
-
- public var identifier: String
-
- public var paymentMode: String
-
- public var action: String
-
- public var journey: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case locationDetails = "location_details"
-
- case source = "source"
-
- case toPincode = "to_pincode"
-
- case shipment = "shipment"
-
- case identifier = "identifier"
-
- case paymentMode = "payment_mode"
-
- case action = "action"
-
- case journey = "journey"
-
- }
-
- public init(action: String, identifier: String, journey: String, locationDetails: LocationDetails? = nil, paymentMode: String, shipment: [ShipmentDetails], source: String, toPincode: String) {
-
- self.locationDetails = locationDetails
-
- self.source = source
-
- self.toPincode = toPincode
-
- self.shipment = shipment
-
- self.identifier = identifier
-
- self.paymentMode = paymentMode
-
- self.action = action
-
- self.journey = journey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- locationDetails = try container.decode(LocationDetails.self, forKey: .locationDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- source = try container.decode(String.self, forKey: .source)
-
-
-
-
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
-
-
-
- shipment = try container.decode([ShipmentDetails].self, forKey: .shipment)
-
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- journey = try container.decode(String.self, forKey: .journey)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(toPincode, forKey: .toPincode)
-
-
-
-
- try? container.encodeIfPresent(shipment, forKey: .shipment)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(journey, forKey: .journey)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentConfig
- Used By: Order
- */
-
- class ShipmentConfig: Codable {
-
-
- public var locationDetails: LocationDetails?
-
- public var source: String
-
- public var toPincode: String
-
- public var shipment: [ShipmentDetails]
-
- public var identifier: String
-
- public var paymentMode: String
-
- public var action: String
-
- public var journey: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case locationDetails = "location_details"
-
- case source = "source"
-
- case toPincode = "to_pincode"
-
- case shipment = "shipment"
-
- case identifier = "identifier"
-
- case paymentMode = "payment_mode"
-
- case action = "action"
-
- case journey = "journey"
-
- }
-
- public init(action: String, identifier: String, journey: String, locationDetails: LocationDetails? = nil, paymentMode: String, shipment: [ShipmentDetails], source: String, toPincode: String) {
-
- self.locationDetails = locationDetails
-
- self.source = source
-
- self.toPincode = toPincode
-
- self.shipment = shipment
-
- self.identifier = identifier
-
- self.paymentMode = paymentMode
-
- self.action = action
-
- self.journey = journey
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- locationDetails = try container.decode(LocationDetails.self, forKey: .locationDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- source = try container.decode(String.self, forKey: .source)
-
-
-
-
- toPincode = try container.decode(String.self, forKey: .toPincode)
-
-
-
-
- shipment = try container.decode([ShipmentDetails].self, forKey: .shipment)
-
-
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- journey = try container.decode(String.self, forKey: .journey)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(locationDetails, forKey: .locationDetails)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
-
-
- try? container.encodeIfPresent(toPincode, forKey: .toPincode)
-
-
-
-
- try? container.encodeIfPresent(shipment, forKey: .shipment)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(journey, forKey: .journey)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentDataOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentDataOrderPlatformModel.swift
deleted file mode 100644
index d7a7b2de0f..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentDataOrderPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentData
- Used By: Order
- */
-
- class ShipmentData: Codable {
-
-
- public var shipmentData: ShipmentConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentData = "shipment_data"
-
- }
-
- public init(shipmentData: ShipmentConfig) {
-
- self.shipmentData = shipmentData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipmentData = try container.decode(ShipmentConfig.self, forKey: .shipmentData)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(shipmentData, forKey: .shipmentData)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentData
- Used By: Order
- */
-
- class ShipmentData: Codable {
-
-
- public var shipmentData: ShipmentConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentData = "shipment_data"
-
- }
-
- public init(shipmentData: ShipmentConfig) {
-
- self.shipmentData = shipmentData
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipmentData = try container.decode(ShipmentConfig.self, forKey: .shipmentData)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(shipmentData, forKey: .shipmentData)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentDetailsOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentDetailsOrderPlatformModel.swift
index 1f8a2edfa0..76344e7c80 100644
--- a/Sources/code/platform/Models/Order/ShipmentDetailsOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentDetailsOrderPlatformModel.swift
@@ -12,20 +12,8 @@ public extension PlatformClient.Order {
class ShipmentDetails: Codable {
- public var boxType: String?
-
- public var shipments: Int
-
- public var fulfillmentId: Int
-
- public var articles: [ArticleDetails]
-
public var dpId: String?
- public var meta: [String: Any]?
-
- public var affiliateShipmentId: String
-
public var dpOptions: [String: Any]?
public var lockStatus: Bool?
@@ -35,20 +23,8 @@ public extension PlatformClient.Order {
public enum CodingKeys: String, CodingKey {
- case boxType = "box_type"
-
- case shipments = "shipments"
-
- case fulfillmentId = "fulfillment_id"
-
- case articles = "articles"
-
case dpId = "dp_id"
- case meta = "meta"
-
- case affiliateShipmentId = "affiliate_shipment_id"
-
case dpOptions = "dp_options"
case lockStatus = "lock_status"
@@ -57,22 +33,10 @@ public extension PlatformClient.Order {
}
- public init(actionToStatus: [String: Any]? = nil, affiliateShipmentId: String, articles: [ArticleDetails], boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int, lockStatus: Bool? = nil, meta: [String: Any]? = nil, shipments: Int) {
-
- self.boxType = boxType
-
- self.shipments = shipments
-
- self.fulfillmentId = fulfillmentId
-
- self.articles = articles
+ public init(actionToStatus: [String: Any]? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, lockStatus: Bool? = nil) {
self.dpId = dpId
- self.meta = meta
-
- self.affiliateShipmentId = affiliateShipmentId
-
self.dpOptions = dpOptions
self.lockStatus = lockStatus
@@ -85,33 +49,6 @@ public extension PlatformClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- boxType = try container.decode(String.self, forKey: .boxType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- shipments = try container.decode(Int.self, forKey: .shipments)
-
-
-
-
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
-
-
-
- articles = try container.decode([ArticleDetails].self, forKey: .articles)
-
-
-
-
do {
dpId = try container.decode(String.self, forKey: .dpId)
@@ -124,23 +61,6 @@ public extension PlatformClient.Order {
- 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)
- } catch {
-
- }
-
-
-
- affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
-
-
-
-
do {
dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
@@ -183,41 +103,11 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(boxType, forKey: .boxType)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
-
-
try? container.encodeIfPresent(dpId, forKey: .dpId)
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
-
-
-
-
try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
@@ -247,20 +137,8 @@ public extension PlatformClient.ApplicationClient.Order {
class ShipmentDetails: Codable {
- public var boxType: String?
-
- public var shipments: Int
-
- public var fulfillmentId: Int
-
- public var articles: [ArticleDetails]
-
public var dpId: String?
- public var meta: [String: Any]?
-
- public var affiliateShipmentId: String
-
public var dpOptions: [String: Any]?
public var lockStatus: Bool?
@@ -270,20 +148,8 @@ public extension PlatformClient.ApplicationClient.Order {
public enum CodingKeys: String, CodingKey {
- case boxType = "box_type"
-
- case shipments = "shipments"
-
- case fulfillmentId = "fulfillment_id"
-
- case articles = "articles"
-
case dpId = "dp_id"
- case meta = "meta"
-
- case affiliateShipmentId = "affiliate_shipment_id"
-
case dpOptions = "dp_options"
case lockStatus = "lock_status"
@@ -292,22 +158,10 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(actionToStatus: [String: Any]? = nil, affiliateShipmentId: String, articles: [ArticleDetails], boxType: String? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, fulfillmentId: Int, lockStatus: Bool? = nil, meta: [String: Any]? = nil, shipments: Int) {
-
- self.boxType = boxType
-
- self.shipments = shipments
-
- self.fulfillmentId = fulfillmentId
-
- self.articles = articles
+ public init(actionToStatus: [String: Any]? = nil, dpId: String? = nil, dpOptions: [String: Any]? = nil, lockStatus: Bool? = nil) {
self.dpId = dpId
- self.meta = meta
-
- self.affiliateShipmentId = affiliateShipmentId
-
self.dpOptions = dpOptions
self.lockStatus = lockStatus
@@ -320,33 +174,6 @@ public extension PlatformClient.ApplicationClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- do {
- boxType = try container.decode(String.self, forKey: .boxType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- shipments = try container.decode(Int.self, forKey: .shipments)
-
-
-
-
- fulfillmentId = try container.decode(Int.self, forKey: .fulfillmentId)
-
-
-
-
- articles = try container.decode([ArticleDetails].self, forKey: .articles)
-
-
-
-
do {
dpId = try container.decode(String.self, forKey: .dpId)
@@ -359,23 +186,6 @@ public extension PlatformClient.ApplicationClient.Order {
- 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)
- } catch {
-
- }
-
-
-
- affiliateShipmentId = try container.decode(String.self, forKey: .affiliateShipmentId)
-
-
-
-
do {
dpOptions = try container.decode([String: Any].self, forKey: .dpOptions)
@@ -418,41 +228,11 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(boxType, forKey: .boxType)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(fulfillmentId, forKey: .fulfillmentId)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
-
-
try? container.encodeIfPresent(dpId, forKey: .dpId)
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(affiliateShipmentId, forKey: .affiliateShipmentId)
-
-
-
-
try? container.encodeIfPresent(dpOptions, forKey: .dpOptions)
diff --git a/Sources/code/platform/Models/Order/ShipmentHistoryResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentHistoryResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..667e8f7d2f
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentHistoryResponseOrderPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentHistoryResponse
+ Used By: Order
+ */
+
+ class ShipmentHistoryResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var activityHistory: [HistoryDict]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case activityHistory = "activity_history"
+
+ }
+
+ public init(activityHistory: [HistoryDict], success: Bool? = nil) {
+
+ self.success = success
+
+ self.activityHistory = activityHistory
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+
+ activityHistory = try container.decode([HistoryDict].self, forKey: .activityHistory)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(activityHistory, forKey: .activityHistory)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentHistoryResponse
+ Used By: Order
+ */
+
+ class ShipmentHistoryResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var activityHistory: [HistoryDict]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case activityHistory = "activity_history"
+
+ }
+
+ public init(activityHistory: [HistoryDict], success: Bool? = nil) {
+
+ self.success = success
+
+ self.activityHistory = activityHistory
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+
+ }
+
+
+
+ activityHistory = try container.decode([HistoryDict].self, forKey: .activityHistory)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(activityHistory, forKey: .activityHistory)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentHistoryResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentHistoryResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 9d2b573e84..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentHistoryResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentHistoryResponseSchema
- Used By: Order
- */
-
- class ShipmentHistoryResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var activityHistory: [HistoryDict]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case activityHistory = "activity_history"
-
- }
-
- public init(activityHistory: [HistoryDict], success: Bool? = nil) {
-
- self.success = success
-
- self.activityHistory = activityHistory
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
-
- activityHistory = try container.decode([HistoryDict].self, forKey: .activityHistory)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(activityHistory, forKey: .activityHistory)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentHistoryResponseSchema
- Used By: Order
- */
-
- class ShipmentHistoryResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var activityHistory: [HistoryDict]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case activityHistory = "activity_history"
-
- }
-
- public init(activityHistory: [HistoryDict], success: Bool? = nil) {
-
- self.success = success
-
- self.activityHistory = activityHistory
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
-
- }
-
-
-
- activityHistory = try container.decode([HistoryDict].self, forKey: .activityHistory)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(activityHistory, forKey: .activityHistory)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentInfoResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentInfoResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..6feaf89fb1
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentInfoResponseOrderPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentInfoResponse
+ Used By: Order
+ */
+
+ class ShipmentInfoResponse: Codable {
+
+
+ public var message: String?
+
+ public var success: Bool
+
+ public var shipments: [PlatformShipment]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case shipments = "shipments"
+
+ }
+
+ public init(message: String? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.shipments = shipments
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentInfoResponse
+ Used By: Order
+ */
+
+ class ShipmentInfoResponse: Codable {
+
+
+ public var message: String?
+
+ public var success: Bool
+
+ public var shipments: [PlatformShipment]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case shipments = "shipments"
+
+ }
+
+ public init(message: String? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.shipments = shipments
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentInfoResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentInfoResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 4e65d41b69..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentInfoResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentInfoResponseSchema
- Used By: Order
- */
-
- class ShipmentInfoResponseSchema: Codable {
-
-
- public var message: String?
-
- public var success: Bool
-
- public var shipments: [PlatformShipment]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case shipments = "shipments"
-
- }
-
- public init(message: String? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.shipments = shipments
-
- }
-
- 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 {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentInfoResponseSchema
- Used By: Order
- */
-
- class ShipmentInfoResponseSchema: Codable {
-
-
- public var message: String?
-
- public var success: Bool
-
- public var shipments: [PlatformShipment]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case shipments = "shipments"
-
- }
-
- public init(message: String? = nil, shipments: [PlatformShipment]? = nil, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.shipments = shipments
-
- }
-
- 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 {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- shipments = try container.decode([PlatformShipment].self, forKey: .shipments)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..ed61ccc152
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseOrderPlatformModel.swift
@@ -0,0 +1,346 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentInternalPlatformViewResponse
+ Used By: Order
+ */
+
+ class ShipmentInternalPlatformViewResponse: Codable {
+
+
+ public var totalCount: Int?
+
+ public var message: String?
+
+ public var success: Bool?
+
+ public var items: [ShipmentItem]?
+
+ public var lane: String?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case totalCount = "total_count"
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ case lane = "lane"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ShipmentItem]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.totalCount = totalCount
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ self.lane = lane
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([ShipmentItem].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lane = try container.decode(String.self, forKey: .lane)
+
+ } 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)
+
+ } 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(totalCount, forKey: .totalCount)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(lane, forKey: .lane)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentInternalPlatformViewResponse
+ Used By: Order
+ */
+
+ class ShipmentInternalPlatformViewResponse: Codable {
+
+
+ public var totalCount: Int?
+
+ public var message: String?
+
+ public var success: Bool?
+
+ public var items: [ShipmentItem]?
+
+ public var lane: String?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case totalCount = "total_count"
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ case lane = "lane"
+
+ case page = "page"
+
+ }
+
+ public init(items: [ShipmentItem]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
+
+ self.totalCount = totalCount
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ self.lane = lane
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ totalCount = try container.decode(Int.self, forKey: .totalCount)
+
+ } 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)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ items = try container.decode([ShipmentItem].self, forKey: .items)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ lane = try container.decode(String.self, forKey: .lane)
+
+ } 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)
+
+ } 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(totalCount, forKey: .totalCount)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(lane, forKey: .lane)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index c744c1685f..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentInternalPlatformViewResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentInternalPlatformViewResponseSchema
- Used By: Order
- */
-
- class ShipmentInternalPlatformViewResponseSchema: Codable {
-
-
- public var totalCount: Int?
-
- public var message: String?
-
- public var success: Bool?
-
- public var items: [ShipmentItem]?
-
- public var lane: String?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCount = "total_count"
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- case lane = "lane"
-
- case page = "page"
-
- }
-
- public init(items: [ShipmentItem]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.totalCount = totalCount
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- self.lane = lane
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- do {
- items = try container.decode([ShipmentItem].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lane = try container.decode(String.self, forKey: .lane)
-
- } 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)
-
- } 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(totalCount, forKey: .totalCount)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentInternalPlatformViewResponseSchema
- Used By: Order
- */
-
- class ShipmentInternalPlatformViewResponseSchema: Codable {
-
-
- public var totalCount: Int?
-
- public var message: String?
-
- public var success: Bool?
-
- public var items: [ShipmentItem]?
-
- public var lane: String?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case totalCount = "total_count"
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- case lane = "lane"
-
- case page = "page"
-
- }
-
- public init(items: [ShipmentItem]? = nil, lane: String? = nil, message: String? = nil, page: Page? = nil, success: Bool? = nil, totalCount: Int? = nil) {
-
- self.totalCount = totalCount
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- self.lane = lane
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- totalCount = try container.decode(Int.self, forKey: .totalCount)
-
- } 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)
-
- } 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 {
-
- }
-
-
-
- do {
- items = try container.decode([ShipmentItem].self, forKey: .items)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- lane = try container.decode(String.self, forKey: .lane)
-
- } 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)
-
- } 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(totalCount, forKey: .totalCount)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(lane, forKey: .lane)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentItemOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentItemOrderPlatformModel.swift
index 5fcf3146c6..2acb2aea6a 100644
--- a/Sources/code/platform/Models/Order/ShipmentItemOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentItemOrderPlatformModel.swift
@@ -24,20 +24,12 @@ public extension PlatformClient.Order {
public var estimatedSlaTs: String?
- public var deliveryAddress: Address?
-
- public var billingAddress: Address?
-
- public var affiliateDetails: AffiliateDetails?
-
- public var isActive: Bool?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var channel: ShipmentListingChannel?
public var previousShipmentId: String?
- public var forwardEndShipmentId: String?
-
public var lockStatus: Bool?
public var invoiceId: String?
@@ -64,8 +56,6 @@ public extension PlatformClient.Order {
public var prices: Prices?
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var orderId: String
public var orderingChannnel: String?
@@ -88,8 +78,6 @@ public extension PlatformClient.Order {
public var isLapaEnabled: Bool?
- public var logisticsMeta: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -107,18 +95,10 @@ public extension PlatformClient.Order {
case deliveryAddress = "delivery_address"
- case billingAddress = "billing_address"
-
- case affiliateDetails = "affiliate_details"
-
- case isActive = "is_active"
-
case channel = "channel"
case previousShipmentId = "previous_shipment_id"
- case forwardEndShipmentId = "forward_end_shipment_id"
-
case lockStatus = "lock_status"
case invoiceId = "invoice_id"
@@ -145,8 +125,6 @@ public extension PlatformClient.Order {
case prices = "prices"
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case orderId = "order_id"
case orderingChannnel = "ordering_channnel"
@@ -169,11 +147,9 @@ public extension PlatformClient.Order {
case isLapaEnabled = "is_lapa_enabled"
- case logisticsMeta = "logistics_meta"
-
}
- public init(affiliateDetails: AffiliateDetails? = nil, bags: [BagUnit]? = nil, billingAddress: Address? = nil, canProcess: Bool? = nil, channel: ShipmentListingChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customerNote: String? = nil, deliveryAddress: Address? = nil, displayName: String? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardEndShipmentId: String? = nil, fulfillingStore: ShipmentItemFulFillingStore? = nil, invoiceId: String? = nil, isActive: Bool? = nil, isLapaEnabled: Bool? = nil, lockStatus: Bool? = nil, logisticsMeta: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, orderingChannnel: String? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderCreatedTs: String? = nil, orderDate: String? = nil, orderId: String, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, shipmentCreatedAt: String, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, totalBags: Int, user: UserDataInfo? = nil) {
+ public init(bags: [BagUnit]? = nil, canProcess: Bool? = nil, channel: ShipmentListingChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customerNote: String? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, displayName: String? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, fulfillingStore: ShipmentItemFulFillingStore? = nil, invoiceId: String? = nil, isLapaEnabled: Bool? = nil, lockStatus: Bool? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, orderingChannnel: String? = nil, orderCreatedTs: String? = nil, orderDate: String? = nil, orderId: String, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, shipmentCreatedAt: String, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, totalBags: Int, user: UserDataInfo? = nil) {
self.orderDate = orderDate
@@ -189,18 +165,10 @@ public extension PlatformClient.Order {
self.deliveryAddress = deliveryAddress
- self.billingAddress = billingAddress
-
- self.affiliateDetails = affiliateDetails
-
- self.isActive = isActive
-
self.channel = channel
self.previousShipmentId = previousShipmentId
- self.forwardEndShipmentId = forwardEndShipmentId
-
self.lockStatus = lockStatus
self.invoiceId = invoiceId
@@ -227,8 +195,6 @@ public extension PlatformClient.Order {
self.prices = prices
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.orderId = orderId
self.orderingChannnel = orderingChannnel
@@ -251,8 +217,6 @@ public extension PlatformClient.Order {
self.isLapaEnabled = isLapaEnabled
- self.logisticsMeta = logisticsMeta
-
}
required public init(from decoder: Decoder) throws {
@@ -332,43 +296,7 @@ public extension PlatformClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode(Address.self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateDetails = try container.decode(AffiliateDetails.self, forKey: .affiliateDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isActive = try container.decode(Bool.self, forKey: .isActive)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -403,18 +331,6 @@ public extension PlatformClient.Order {
- do {
- forwardEndShipmentId = try container.decode(String.self, forKey: .forwardEndShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
lockStatus = try container.decode(Bool.self, forKey: .lockStatus)
@@ -571,18 +487,6 @@ public extension PlatformClient.Order {
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
orderId = try container.decode(String.self, forKey: .orderId)
@@ -693,18 +597,6 @@ public extension PlatformClient.Order {
}
-
- do {
- logisticsMeta = try container.decode([String: Any].self, forKey: .logisticsMeta)
-
- } 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 {
@@ -747,21 +639,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(affiliateDetails, forKey: .affiliateDetails)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
try? container.encodeIfPresent(channel, forKey: .channel)
@@ -772,11 +649,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(forwardEndShipmentId, forKey: .forwardEndShipmentId)
-
-
-
-
try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
@@ -842,11 +714,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(orderId, forKey: .orderId)
@@ -900,11 +767,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(isLapaEnabled, forKey: .isLapaEnabled)
-
-
- try? container.encodeIfPresent(logisticsMeta, forKey: .logisticsMeta)
-
-
}
}
@@ -933,20 +795,12 @@ public extension PlatformClient.ApplicationClient.Order {
public var estimatedSlaTs: String?
- public var deliveryAddress: Address?
-
- public var billingAddress: Address?
-
- public var affiliateDetails: AffiliateDetails?
-
- public var isActive: Bool?
+ public var deliveryAddress: PlatformDeliveryAddress?
public var channel: ShipmentListingChannel?
public var previousShipmentId: String?
- public var forwardEndShipmentId: String?
-
public var lockStatus: Bool?
public var invoiceId: String?
@@ -973,8 +827,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var prices: Prices?
- public var orderingCurrencyPrices: OrderingCurrencyPrices?
-
public var orderId: String
public var orderingChannnel: String?
@@ -997,8 +849,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var isLapaEnabled: Bool?
- public var logisticsMeta: [String: Any]?
-
public enum CodingKeys: String, CodingKey {
@@ -1016,18 +866,10 @@ public extension PlatformClient.ApplicationClient.Order {
case deliveryAddress = "delivery_address"
- case billingAddress = "billing_address"
-
- case affiliateDetails = "affiliate_details"
-
- case isActive = "is_active"
-
case channel = "channel"
case previousShipmentId = "previous_shipment_id"
- case forwardEndShipmentId = "forward_end_shipment_id"
-
case lockStatus = "lock_status"
case invoiceId = "invoice_id"
@@ -1054,8 +896,6 @@ public extension PlatformClient.ApplicationClient.Order {
case prices = "prices"
- case orderingCurrencyPrices = "ordering_currency_prices"
-
case orderId = "order_id"
case orderingChannnel = "ordering_channnel"
@@ -1078,11 +918,9 @@ public extension PlatformClient.ApplicationClient.Order {
case isLapaEnabled = "is_lapa_enabled"
- case logisticsMeta = "logistics_meta"
-
}
- public init(affiliateDetails: AffiliateDetails? = nil, bags: [BagUnit]? = nil, billingAddress: Address? = nil, canProcess: Bool? = nil, channel: ShipmentListingChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customerNote: String? = nil, deliveryAddress: Address? = nil, displayName: String? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, forwardEndShipmentId: String? = nil, fulfillingStore: ShipmentItemFulFillingStore? = nil, invoiceId: String? = nil, isActive: Bool? = nil, isLapaEnabled: Bool? = nil, lockStatus: Bool? = nil, logisticsMeta: [String: Any]? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, orderingChannnel: String? = nil, orderingCurrencyPrices: OrderingCurrencyPrices? = nil, orderCreatedTs: String? = nil, orderDate: String? = nil, orderId: String, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, shipmentCreatedAt: String, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, totalBags: Int, user: UserDataInfo? = nil) {
+ public init(bags: [BagUnit]? = nil, canProcess: Bool? = nil, channel: ShipmentListingChannel? = nil, currency: Currency? = nil, currencyInfo: CurrencyInfo? = nil, customerNote: String? = nil, deliveryAddress: PlatformDeliveryAddress? = nil, displayName: String? = nil, estimatedSlaTime: String? = nil, estimatedSlaTs: String? = nil, fulfillingStore: ShipmentItemFulFillingStore? = nil, invoiceId: String? = nil, isLapaEnabled: Bool? = nil, lockStatus: Bool? = nil, meta: [String: Any]? = nil, modeOfPayment: String? = nil, orderingChannnel: String? = nil, orderCreatedTs: String? = nil, orderDate: String? = nil, orderId: String, paymentInfo: [[String: Any]]? = nil, paymentMethods: [String: Any]? = nil, paymentMode: String? = nil, previousShipmentId: String? = nil, prices: Prices? = nil, shipmentCreatedAt: String, shipmentCreatedTs: String? = nil, shipmentId: String? = nil, shipmentStatus: ShipmentStatus? = nil, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, totalBags: Int, user: UserDataInfo? = nil) {
self.orderDate = orderDate
@@ -1098,18 +936,10 @@ public extension PlatformClient.ApplicationClient.Order {
self.deliveryAddress = deliveryAddress
- self.billingAddress = billingAddress
-
- self.affiliateDetails = affiliateDetails
-
- self.isActive = isActive
-
self.channel = channel
self.previousShipmentId = previousShipmentId
- self.forwardEndShipmentId = forwardEndShipmentId
-
self.lockStatus = lockStatus
self.invoiceId = invoiceId
@@ -1136,8 +966,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.prices = prices
- self.orderingCurrencyPrices = orderingCurrencyPrices
-
self.orderId = orderId
self.orderingChannnel = orderingChannnel
@@ -1160,8 +988,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.isLapaEnabled = isLapaEnabled
- self.logisticsMeta = logisticsMeta
-
}
required public init(from decoder: Decoder) throws {
@@ -1241,43 +1067,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- deliveryAddress = try container.decode(Address.self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode(Address.self, forKey: .billingAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- affiliateDetails = try container.decode(AffiliateDetails.self, forKey: .affiliateDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isActive = try container.decode(Bool.self, forKey: .isActive)
+ deliveryAddress = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddress)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1312,18 +1102,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- forwardEndShipmentId = try container.decode(String.self, forKey: .forwardEndShipmentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
lockStatus = try container.decode(Bool.self, forKey: .lockStatus)
@@ -1480,18 +1258,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- orderingCurrencyPrices = try container.decode(OrderingCurrencyPrices.self, forKey: .orderingCurrencyPrices)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
orderId = try container.decode(String.self, forKey: .orderId)
@@ -1602,18 +1368,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- logisticsMeta = try container.decode([String: Any].self, forKey: .logisticsMeta)
-
- } 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 {
@@ -1656,21 +1410,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
-
-
- try? container.encodeIfPresent(affiliateDetails, forKey: .affiliateDetails)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
try? container.encodeIfPresent(channel, forKey: .channel)
@@ -1681,11 +1420,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(forwardEndShipmentId, forKey: .forwardEndShipmentId)
-
-
-
-
try? container.encodeIfPresent(lockStatus, forKey: .lockStatus)
@@ -1751,11 +1485,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(orderingCurrencyPrices, forKey: .orderingCurrencyPrices)
-
-
-
-
try? container.encodeIfPresent(orderId, forKey: .orderId)
@@ -1809,11 +1538,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(isLapaEnabled, forKey: .isLapaEnabled)
-
-
- try? container.encodeIfPresent(logisticsMeta, forKey: .logisticsMeta)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/ShipmentOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentOrderPlatformModel.swift
index daae15faab..fe5c3e3d48 100644
--- a/Sources/code/platform/Models/Order/ShipmentOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentOrderPlatformModel.swift
@@ -26,12 +26,6 @@ public extension PlatformClient.Order {
public var orderType: String?
- public var tags: [Tag]?
-
- public var systemMessages: [SystemMessages]?
-
- public var processAfterConfig: ProcessAfterConfig?
-
public var parentType: String?
public var storeInvoiceId: String?
@@ -40,7 +34,7 @@ public extension PlatformClient.Order {
public var type: String?
- public var billingAddressJson: Address?
+ public var billingAddressJson: PlatformDeliveryAddress?
public var id: String?
@@ -52,7 +46,7 @@ public extension PlatformClient.Order {
public var pdfLinks: [String: Any]?
- public var deliveryAddressJson: Address?
+ public var deliveryAddressJson: PlatformDeliveryAddress?
public var ewayBillId: String?
@@ -60,11 +54,13 @@ public extension PlatformClient.Order {
public var fyndOrderId: String?
+ public var tags: [String]?
+
public var createdAt: String?
public var deliveryAwbNumber: String?
- public var handOverContactJson: Address?
+ public var handOverContactJson: PlatformDeliveryAddress?
public var creditNoteId: String?
@@ -101,12 +97,6 @@ public extension PlatformClient.Order {
case orderType = "order_type"
- case tags = "tags"
-
- case systemMessages = "system_messages"
-
- case processAfterConfig = "process_after_config"
-
case parentType = "parent_type"
case storeInvoiceId = "store_invoice_id"
@@ -135,6 +125,8 @@ public extension PlatformClient.Order {
case fyndOrderId = "fynd_order_id"
+ case tags = "tags"
+
case createdAt = "created_at"
case deliveryAwbNumber = "delivery_awb_number"
@@ -161,7 +153,7 @@ public extension PlatformClient.Order {
}
- public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, billingAddressJson: Address? = nil, createdAt: String? = nil, creditNoteId: String? = nil, deliveryAddressJson: Address? = nil, deliveryAwbNumber: String? = nil, ewayBillId: String? = nil, externalShipmentId: String? = nil, fulfilmentPriority: Int? = nil, fyndOrderId: String? = nil, gst: ShipmentGstDetails? = nil, handOverContactJson: Address? = nil, id: String? = nil, isActive: Bool? = nil, lineItems: [LineItem], locationId: Int? = nil, lockStatus: String? = nil, meta: [String: Any]? = nil, orderType: String? = nil, packagingType: String? = nil, parentId: String? = nil, parentType: String? = nil, pdfLinks: [String: Any]? = nil, previousShipmentId: String? = nil, price: Prices? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil, processAfterConfig: ProcessAfterConfig? = nil, quantity: Double? = nil, status: ShipmentStatusData? = nil, storeInvoiceId: String? = nil, systemMessages: [SystemMessages]? = nil, tags: [Tag]? = nil, type: String? = nil, vertical: String? = nil) {
+ public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, billingAddressJson: PlatformDeliveryAddress? = nil, createdAt: String? = nil, creditNoteId: String? = nil, deliveryAddressJson: PlatformDeliveryAddress? = nil, deliveryAwbNumber: String? = nil, ewayBillId: String? = nil, externalShipmentId: String? = nil, fulfilmentPriority: Int? = nil, fyndOrderId: String? = nil, gst: ShipmentGstDetails? = nil, handOverContactJson: PlatformDeliveryAddress? = nil, id: String? = nil, isActive: Bool? = nil, lineItems: [LineItem], locationId: Int? = nil, lockStatus: String? = nil, meta: [String: Any]? = nil, orderType: String? = nil, packagingType: String? = nil, parentId: String? = nil, parentType: String? = nil, pdfLinks: [String: Any]? = nil, previousShipmentId: String? = nil, price: Prices? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil, quantity: Double? = nil, status: ShipmentStatusData? = nil, storeInvoiceId: String? = nil, tags: [String]? = nil, type: String? = nil, vertical: String? = nil) {
self.lineItems = lineItems
@@ -177,12 +169,6 @@ public extension PlatformClient.Order {
self.orderType = orderType
- self.tags = tags
-
- self.systemMessages = systemMessages
-
- self.processAfterConfig = processAfterConfig
-
self.parentType = parentType
self.storeInvoiceId = storeInvoiceId
@@ -211,6 +197,8 @@ public extension PlatformClient.Order {
self.fyndOrderId = fyndOrderId
+ self.tags = tags
+
self.createdAt = createdAt
self.deliveryAwbNumber = deliveryAwbNumber
@@ -318,42 +306,6 @@ public extension PlatformClient.Order {
- do {
- tags = try container.decode([Tag].self, forKey: .tags)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- systemMessages = try container.decode([SystemMessages].self, forKey: .systemMessages)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- processAfterConfig = try container.decode(ProcessAfterConfig.self, forKey: .processAfterConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
parentType = try container.decode(String.self, forKey: .parentType)
@@ -403,7 +355,7 @@ public extension PlatformClient.Order {
do {
- billingAddressJson = try container.decode(Address.self, forKey: .billingAddressJson)
+ billingAddressJson = try container.decode(PlatformDeliveryAddress.self, forKey: .billingAddressJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -475,7 +427,7 @@ public extension PlatformClient.Order {
do {
- deliveryAddressJson = try container.decode(Address.self, forKey: .deliveryAddressJson)
+ deliveryAddressJson = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddressJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -522,6 +474,18 @@ public extension PlatformClient.Order {
+ 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 {
createdAt = try container.decode(String.self, forKey: .createdAt)
@@ -547,7 +511,7 @@ public extension PlatformClient.Order {
do {
- handOverContactJson = try container.decode(Address.self, forKey: .handOverContactJson)
+ handOverContactJson = try container.decode(PlatformDeliveryAddress.self, forKey: .handOverContactJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -707,21 +671,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(systemMessages, forKey: .systemMessages)
-
-
-
-
- try? container.encodeIfPresent(processAfterConfig, forKey: .processAfterConfig)
-
-
-
-
try? container.encodeIfPresent(parentType, forKey: .parentType)
@@ -792,6 +741,11 @@ public extension PlatformClient.Order {
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
try? container.encodeIfPresent(createdAt, forKey: .createdAt)
@@ -880,12 +834,6 @@ public extension PlatformClient.ApplicationClient.Order {
public var orderType: String?
- public var tags: [Tag]?
-
- public var systemMessages: [SystemMessages]?
-
- public var processAfterConfig: ProcessAfterConfig?
-
public var parentType: String?
public var storeInvoiceId: String?
@@ -894,7 +842,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var type: String?
- public var billingAddressJson: Address?
+ public var billingAddressJson: PlatformDeliveryAddress?
public var id: String?
@@ -906,7 +854,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var pdfLinks: [String: Any]?
- public var deliveryAddressJson: Address?
+ public var deliveryAddressJson: PlatformDeliveryAddress?
public var ewayBillId: String?
@@ -914,11 +862,13 @@ public extension PlatformClient.ApplicationClient.Order {
public var fyndOrderId: String?
+ public var tags: [String]?
+
public var createdAt: String?
public var deliveryAwbNumber: String?
- public var handOverContactJson: Address?
+ public var handOverContactJson: PlatformDeliveryAddress?
public var creditNoteId: String?
@@ -955,12 +905,6 @@ public extension PlatformClient.ApplicationClient.Order {
case orderType = "order_type"
- case tags = "tags"
-
- case systemMessages = "system_messages"
-
- case processAfterConfig = "process_after_config"
-
case parentType = "parent_type"
case storeInvoiceId = "store_invoice_id"
@@ -989,6 +933,8 @@ public extension PlatformClient.ApplicationClient.Order {
case fyndOrderId = "fynd_order_id"
+ case tags = "tags"
+
case createdAt = "created_at"
case deliveryAwbNumber = "delivery_awb_number"
@@ -1015,7 +961,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, billingAddressJson: Address? = nil, createdAt: String? = nil, creditNoteId: String? = nil, deliveryAddressJson: Address? = nil, deliveryAwbNumber: String? = nil, ewayBillId: String? = nil, externalShipmentId: String? = nil, fulfilmentPriority: Int? = nil, fyndOrderId: String? = nil, gst: ShipmentGstDetails? = nil, handOverContactJson: Address? = nil, id: String? = nil, isActive: Bool? = nil, lineItems: [LineItem], locationId: Int? = nil, lockStatus: String? = nil, meta: [String: Any]? = nil, orderType: String? = nil, packagingType: String? = nil, parentId: String? = nil, parentType: String? = nil, pdfLinks: [String: Any]? = nil, previousShipmentId: String? = nil, price: Prices? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil, processAfterConfig: ProcessAfterConfig? = nil, quantity: Double? = nil, status: ShipmentStatusData? = nil, storeInvoiceId: String? = nil, systemMessages: [SystemMessages]? = nil, tags: [Tag]? = nil, type: String? = nil, vertical: String? = nil) {
+ public init(affiliateId: String? = nil, affiliateShipmentId: String? = nil, billingAddressJson: PlatformDeliveryAddress? = nil, createdAt: String? = nil, creditNoteId: String? = nil, deliveryAddressJson: PlatformDeliveryAddress? = nil, deliveryAwbNumber: String? = nil, ewayBillId: String? = nil, externalShipmentId: String? = nil, fulfilmentPriority: Int? = nil, fyndOrderId: String? = nil, gst: ShipmentGstDetails? = nil, handOverContactJson: PlatformDeliveryAddress? = nil, id: String? = nil, isActive: Bool? = nil, lineItems: [LineItem], locationId: Int? = nil, lockStatus: String? = nil, meta: [String: Any]? = nil, orderType: String? = nil, packagingType: String? = nil, parentId: String? = nil, parentType: String? = nil, pdfLinks: [String: Any]? = nil, previousShipmentId: String? = nil, price: Prices? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil, quantity: Double? = nil, status: ShipmentStatusData? = nil, storeInvoiceId: String? = nil, tags: [String]? = nil, type: String? = nil, vertical: String? = nil) {
self.lineItems = lineItems
@@ -1031,12 +977,6 @@ public extension PlatformClient.ApplicationClient.Order {
self.orderType = orderType
- self.tags = tags
-
- self.systemMessages = systemMessages
-
- self.processAfterConfig = processAfterConfig
-
self.parentType = parentType
self.storeInvoiceId = storeInvoiceId
@@ -1065,6 +1005,8 @@ public extension PlatformClient.ApplicationClient.Order {
self.fyndOrderId = fyndOrderId
+ self.tags = tags
+
self.createdAt = createdAt
self.deliveryAwbNumber = deliveryAwbNumber
@@ -1172,42 +1114,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- tags = try container.decode([Tag].self, forKey: .tags)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- systemMessages = try container.decode([SystemMessages].self, forKey: .systemMessages)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- processAfterConfig = try container.decode(ProcessAfterConfig.self, forKey: .processAfterConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
parentType = try container.decode(String.self, forKey: .parentType)
@@ -1257,7 +1163,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- billingAddressJson = try container.decode(Address.self, forKey: .billingAddressJson)
+ billingAddressJson = try container.decode(PlatformDeliveryAddress.self, forKey: .billingAddressJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1329,7 +1235,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- deliveryAddressJson = try container.decode(Address.self, forKey: .deliveryAddressJson)
+ deliveryAddressJson = try container.decode(PlatformDeliveryAddress.self, forKey: .deliveryAddressJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1376,6 +1282,18 @@ public extension PlatformClient.ApplicationClient.Order {
+ 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 {
createdAt = try container.decode(String.self, forKey: .createdAt)
@@ -1401,7 +1319,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- handOverContactJson = try container.decode(Address.self, forKey: .handOverContactJson)
+ handOverContactJson = try container.decode(PlatformDeliveryAddress.self, forKey: .handOverContactJson)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -1561,21 +1479,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(tags, forKey: .tags)
-
-
-
-
- try? container.encodeIfPresent(systemMessages, forKey: .systemMessages)
-
-
-
-
- try? container.encodeIfPresent(processAfterConfig, forKey: .processAfterConfig)
-
-
-
-
try? container.encodeIfPresent(parentType, forKey: .parentType)
@@ -1646,6 +1549,11 @@ public extension PlatformClient.ApplicationClient.Order {
+ try? container.encodeIfPresent(tags, forKey: .tags)
+
+
+
+
try? container.encodeIfPresent(createdAt, forKey: .createdAt)
diff --git a/Sources/code/platform/Models/Order/ShipmentReasonsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentReasonsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..ab464f4e1a
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentReasonsResponseOrderPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentReasonsResponse
+ Used By: Order
+ */
+
+ class ShipmentReasonsResponse: Codable {
+
+
+ public var reasons: [ShipmentResponseReasons]
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasons = "reasons"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, reasons: [ShipmentResponseReasons], success: Bool) {
+
+ self.reasons = reasons
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ reasons = try container.decode([ShipmentResponseReasons].self, forKey: .reasons)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentReasonsResponse
+ Used By: Order
+ */
+
+ class ShipmentReasonsResponse: Codable {
+
+
+ public var reasons: [ShipmentResponseReasons]
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case reasons = "reasons"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, reasons: [ShipmentResponseReasons], success: Bool) {
+
+ self.reasons = reasons
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ reasons = try container.decode([ShipmentResponseReasons].self, forKey: .reasons)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentReasonsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentReasonsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 0694102eea..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentReasonsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentReasonsResponseSchema
- Used By: Order
- */
-
- class ShipmentReasonsResponseSchema: Codable {
-
-
- public var reasons: [ShipmentResponseReasons]
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, reasons: [ShipmentResponseReasons], success: Bool) {
-
- self.reasons = reasons
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- reasons = try container.decode([ShipmentResponseReasons].self, forKey: .reasons)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentReasonsResponseSchema
- Used By: Order
- */
-
- class ShipmentReasonsResponseSchema: Codable {
-
-
- public var reasons: [ShipmentResponseReasons]
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case reasons = "reasons"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, reasons: [ShipmentResponseReasons], success: Bool) {
-
- self.reasons = reasons
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- reasons = try container.decode([ShipmentResponseReasons].self, forKey: .reasons)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentStatusOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentStatusOrderPlatformModel.swift
index 251343d38e..f9679a423d 100644
--- a/Sources/code/platform/Models/Order/ShipmentStatusOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/ShipmentStatusOrderPlatformModel.swift
@@ -16,14 +16,12 @@ public extension PlatformClient.Order {
public var meta: [String: Any]?
- public var id: Int?
+ public var shipmentStatusId: Int?
public var bagList: [String]?
public var title: String
- public var displayName: String?
-
public var createdAt: String?
public var createdTs: String?
@@ -32,7 +30,7 @@ public extension PlatformClient.Order {
public var statusCreatedAt: String?
- public var updatedTs: String?
+ public var statusCreatedTs: String?
public var status: String
@@ -43,14 +41,12 @@ public extension PlatformClient.Order {
case meta = "meta"
- case id = "id"
+ case shipmentStatusId = "shipment_status_id"
case bagList = "bag_list"
case title = "title"
- case displayName = "display_name"
-
case createdAt = "created_at"
case createdTs = "created_ts"
@@ -59,26 +55,24 @@ public extension PlatformClient.Order {
case statusCreatedAt = "status_created_at"
- case updatedTs = "updated_ts"
+ case statusCreatedTs = "status_created_ts"
case status = "status"
}
- public init(bagList: [String]? = nil, createdAt: String? = nil, createdTs: String? = nil, currentShipmentStatus: String? = nil, displayName: String? = nil, id: Int? = nil, meta: [String: Any]? = nil, shipmentId: String? = nil, status: String, statusCreatedAt: String? = nil, title: String, updatedTs: String? = nil) {
+ public init(bagList: [String]? = nil, createdAt: String? = nil, createdTs: String? = nil, currentShipmentStatus: String? = nil, meta: [String: Any]? = nil, shipmentId: String? = nil, shipmentStatusId: Int? = nil, status: String, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, title: String) {
self.currentShipmentStatus = currentShipmentStatus
self.meta = meta
- self.id = id
+ self.shipmentStatusId = shipmentStatusId
self.bagList = bagList
self.title = title
- self.displayName = displayName
-
self.createdAt = createdAt
self.createdTs = createdTs
@@ -87,7 +81,7 @@ public extension PlatformClient.Order {
self.statusCreatedAt = statusCreatedAt
- self.updatedTs = updatedTs
+ self.statusCreatedTs = statusCreatedTs
self.status = status
@@ -122,7 +116,7 @@ public extension PlatformClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ shipmentStatusId = try container.decode(Int.self, forKey: .shipmentStatusId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -150,18 +144,6 @@ public extension PlatformClient.Order {
- 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 {
createdAt = try container.decode(String.self, forKey: .createdAt)
@@ -211,7 +193,7 @@ public extension PlatformClient.Order {
do {
- updatedTs = try container.decode(String.self, forKey: .updatedTs)
+ statusCreatedTs = try container.decode(String.self, forKey: .statusCreatedTs)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -243,7 +225,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(shipmentStatusId, forKey: .shipmentStatusId)
@@ -258,11 +240,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
try? container.encodeIfPresent(createdAt, forKey: .createdAt)
@@ -283,7 +260,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(updatedTs, forKey: .updatedTs)
+ try? container.encodeIfPresent(statusCreatedTs, forKey: .statusCreatedTs)
@@ -311,14 +288,12 @@ public extension PlatformClient.ApplicationClient.Order {
public var meta: [String: Any]?
- public var id: Int?
+ public var shipmentStatusId: Int?
public var bagList: [String]?
public var title: String
- public var displayName: String?
-
public var createdAt: String?
public var createdTs: String?
@@ -327,7 +302,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var statusCreatedAt: String?
- public var updatedTs: String?
+ public var statusCreatedTs: String?
public var status: String
@@ -338,14 +313,12 @@ public extension PlatformClient.ApplicationClient.Order {
case meta = "meta"
- case id = "id"
+ case shipmentStatusId = "shipment_status_id"
case bagList = "bag_list"
case title = "title"
- case displayName = "display_name"
-
case createdAt = "created_at"
case createdTs = "created_ts"
@@ -354,26 +327,24 @@ public extension PlatformClient.ApplicationClient.Order {
case statusCreatedAt = "status_created_at"
- case updatedTs = "updated_ts"
+ case statusCreatedTs = "status_created_ts"
case status = "status"
}
- public init(bagList: [String]? = nil, createdAt: String? = nil, createdTs: String? = nil, currentShipmentStatus: String? = nil, displayName: String? = nil, id: Int? = nil, meta: [String: Any]? = nil, shipmentId: String? = nil, status: String, statusCreatedAt: String? = nil, title: String, updatedTs: String? = nil) {
+ public init(bagList: [String]? = nil, createdAt: String? = nil, createdTs: String? = nil, currentShipmentStatus: String? = nil, meta: [String: Any]? = nil, shipmentId: String? = nil, shipmentStatusId: Int? = nil, status: String, statusCreatedAt: String? = nil, statusCreatedTs: String? = nil, title: String) {
self.currentShipmentStatus = currentShipmentStatus
self.meta = meta
- self.id = id
+ self.shipmentStatusId = shipmentStatusId
self.bagList = bagList
self.title = title
- self.displayName = displayName
-
self.createdAt = createdAt
self.createdTs = createdTs
@@ -382,7 +353,7 @@ public extension PlatformClient.ApplicationClient.Order {
self.statusCreatedAt = statusCreatedAt
- self.updatedTs = updatedTs
+ self.statusCreatedTs = statusCreatedTs
self.status = status
@@ -417,7 +388,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ shipmentStatusId = try container.decode(Int.self, forKey: .shipmentStatusId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -445,18 +416,6 @@ public extension PlatformClient.ApplicationClient.Order {
- 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 {
createdAt = try container.decode(String.self, forKey: .createdAt)
@@ -506,7 +465,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- updatedTs = try container.decode(String.self, forKey: .updatedTs)
+ statusCreatedTs = try container.decode(String.self, forKey: .statusCreatedTs)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -538,7 +497,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(shipmentStatusId, forKey: .shipmentStatusId)
@@ -553,11 +512,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
try? container.encodeIfPresent(createdAt, forKey: .createdAt)
@@ -578,7 +532,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(updatedTs, forKey: .updatedTs)
+ try? container.encodeIfPresent(statusCreatedTs, forKey: .statusCreatedTs)
diff --git a/Sources/code/platform/Models/Order/ShipmentsRequestOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentsRequestOrderPlatformModel.swift
new file mode 100644
index 0000000000..37096a6e6a
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentsRequestOrderPlatformModel.swift
@@ -0,0 +1,240 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentsRequest
+ Used By: Order
+ */
+
+ class ShipmentsRequest: Codable {
+
+
+ public var identifier: String
+
+ public var reasons: ReasonsData?
+
+ public var products: [Products]?
+
+ public var dataUpdates: DataUpdates?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case identifier = "identifier"
+
+ case reasons = "reasons"
+
+ case products = "products"
+
+ case dataUpdates = "data_updates"
+
+ }
+
+ public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
+
+ self.identifier = identifier
+
+ self.reasons = reasons
+
+ self.products = products
+
+ self.dataUpdates = dataUpdates
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+
+
+
+ do {
+ reasons = try container.decode(ReasonsData.self, forKey: .reasons)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ products = try container.decode([Products].self, forKey: .products)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
+
+ } 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(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentsRequest
+ Used By: Order
+ */
+
+ class ShipmentsRequest: Codable {
+
+
+ public var identifier: String
+
+ public var reasons: ReasonsData?
+
+ public var products: [Products]?
+
+ public var dataUpdates: DataUpdates?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case identifier = "identifier"
+
+ case reasons = "reasons"
+
+ case products = "products"
+
+ case dataUpdates = "data_updates"
+
+ }
+
+ public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
+
+ self.identifier = identifier
+
+ self.reasons = reasons
+
+ self.products = products
+
+ self.dataUpdates = dataUpdates
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+
+
+
+ do {
+ reasons = try container.decode(ReasonsData.self, forKey: .reasons)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ products = try container.decode([Products].self, forKey: .products)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
+
+ } 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(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(reasons, forKey: .reasons)
+
+
+
+
+ try? container.encodeIfPresent(products, forKey: .products)
+
+
+
+
+ try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentsRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentsRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index 8aa855681f..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentsRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentsRequestSchema
- Used By: Order
- */
-
- class ShipmentsRequestSchema: Codable {
-
-
- public var identifier: String
-
- public var reasons: ReasonsData?
-
- public var products: [Products]?
-
- public var dataUpdates: DataUpdates?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case identifier = "identifier"
-
- case reasons = "reasons"
-
- case products = "products"
-
- case dataUpdates = "data_updates"
-
- }
-
- public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
-
- self.identifier = identifier
-
- self.reasons = reasons
-
- self.products = products
-
- self.dataUpdates = dataUpdates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- do {
- reasons = try container.decode(ReasonsData.self, forKey: .reasons)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- products = try container.decode([Products].self, forKey: .products)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
-
- } 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(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentsRequestSchema
- Used By: Order
- */
-
- class ShipmentsRequestSchema: Codable {
-
-
- public var identifier: String
-
- public var reasons: ReasonsData?
-
- public var products: [Products]?
-
- public var dataUpdates: DataUpdates?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case identifier = "identifier"
-
- case reasons = "reasons"
-
- case products = "products"
-
- case dataUpdates = "data_updates"
-
- }
-
- public init(dataUpdates: DataUpdates? = nil, identifier: String, products: [Products]? = nil, reasons: ReasonsData? = nil) {
-
- self.identifier = identifier
-
- self.reasons = reasons
-
- self.products = products
-
- self.dataUpdates = dataUpdates
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- identifier = try container.decode(String.self, forKey: .identifier)
-
-
-
-
- do {
- reasons = try container.decode(ReasonsData.self, forKey: .reasons)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- products = try container.decode([Products].self, forKey: .products)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dataUpdates = try container.decode(DataUpdates.self, forKey: .dataUpdates)
-
- } 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(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(reasons, forKey: .reasons)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(dataUpdates, forKey: .dataUpdates)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ShipmentsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..08ba43615f
--- /dev/null
+++ b/Sources/code/platform/Models/Order/ShipmentsResponseOrderPlatformModel.swift
@@ -0,0 +1,438 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: ShipmentsResponse
+ Used By: Order
+ */
+
+ class ShipmentsResponse: Codable {
+
+
+ public var status: Int?
+
+ public var finalState: [String: Any]?
+
+ public var identifier: String?
+
+ public var stackTrace: String?
+
+ public var code: String?
+
+ public var meta: [String: Any]?
+
+ public var message: String?
+
+ public var exception: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case finalState = "final_state"
+
+ case identifier = "identifier"
+
+ case stackTrace = "stack_trace"
+
+ case code = "code"
+
+ case meta = "meta"
+
+ case message = "message"
+
+ case exception = "exception"
+
+ }
+
+ public init(code: String? = nil, exception: String? = nil, finalState: [String: Any]? = nil, identifier: String? = nil, message: String? = nil, meta: [String: Any]? = nil, stackTrace: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.finalState = finalState
+
+ self.identifier = identifier
+
+ self.stackTrace = stackTrace
+
+ self.code = code
+
+ self.meta = meta
+
+ self.message = message
+
+ self.exception = exception
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ finalState = try container.decode([String: Any].self, forKey: .finalState)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(finalState, forKey: .finalState)
+
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: ShipmentsResponse
+ Used By: Order
+ */
+
+ class ShipmentsResponse: Codable {
+
+
+ public var status: Int?
+
+ public var finalState: [String: Any]?
+
+ public var identifier: String?
+
+ public var stackTrace: String?
+
+ public var code: String?
+
+ public var meta: [String: Any]?
+
+ public var message: String?
+
+ public var exception: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case finalState = "final_state"
+
+ case identifier = "identifier"
+
+ case stackTrace = "stack_trace"
+
+ case code = "code"
+
+ case meta = "meta"
+
+ case message = "message"
+
+ case exception = "exception"
+
+ }
+
+ public init(code: String? = nil, exception: String? = nil, finalState: [String: Any]? = nil, identifier: String? = nil, message: String? = nil, meta: [String: Any]? = nil, stackTrace: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.finalState = finalState
+
+ self.identifier = identifier
+
+ self.stackTrace = stackTrace
+
+ self.code = code
+
+ self.meta = meta
+
+ self.message = message
+
+ self.exception = exception
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ finalState = try container.decode([String: Any].self, forKey: .finalState)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ identifier = try container.decode(String.self, forKey: .identifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ stackTrace = try container.decode(String.self, forKey: .stackTrace)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } 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)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ exception = try container.decode(String.self, forKey: .exception)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(finalState, forKey: .finalState)
+
+
+
+
+ try? container.encodeIfPresent(identifier, forKey: .identifier)
+
+
+
+
+ try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(exception, forKey: .exception)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/ShipmentsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ShipmentsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 44114eb098..0000000000
--- a/Sources/code/platform/Models/Order/ShipmentsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,438 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ShipmentsResponseSchema
- Used By: Order
- */
-
- class ShipmentsResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var finalState: [String: Any]?
-
- public var identifier: String?
-
- public var stackTrace: String?
-
- public var code: String?
-
- public var meta: [String: Any]?
-
- public var message: String?
-
- public var exception: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case finalState = "final_state"
-
- case identifier = "identifier"
-
- case stackTrace = "stack_trace"
-
- case code = "code"
-
- case meta = "meta"
-
- case message = "message"
-
- case exception = "exception"
-
- }
-
- public init(code: String? = nil, exception: String? = nil, finalState: [String: Any]? = nil, identifier: String? = nil, message: String? = nil, meta: [String: Any]? = nil, stackTrace: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.finalState = finalState
-
- self.identifier = identifier
-
- self.stackTrace = stackTrace
-
- self.code = code
-
- self.meta = meta
-
- self.message = message
-
- self.exception = exception
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- finalState = try container.decode([String: Any].self, forKey: .finalState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifier = try container.decode(String.self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(finalState, forKey: .finalState)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ShipmentsResponseSchema
- Used By: Order
- */
-
- class ShipmentsResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var finalState: [String: Any]?
-
- public var identifier: String?
-
- public var stackTrace: String?
-
- public var code: String?
-
- public var meta: [String: Any]?
-
- public var message: String?
-
- public var exception: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case finalState = "final_state"
-
- case identifier = "identifier"
-
- case stackTrace = "stack_trace"
-
- case code = "code"
-
- case meta = "meta"
-
- case message = "message"
-
- case exception = "exception"
-
- }
-
- public init(code: String? = nil, exception: String? = nil, finalState: [String: Any]? = nil, identifier: String? = nil, message: String? = nil, meta: [String: Any]? = nil, stackTrace: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.finalState = finalState
-
- self.identifier = identifier
-
- self.stackTrace = stackTrace
-
- self.code = code
-
- self.meta = meta
-
- self.message = message
-
- self.exception = exception
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- finalState = try container.decode([String: Any].self, forKey: .finalState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- identifier = try container.decode(String.self, forKey: .identifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- stackTrace = try container.decode(String.self, forKey: .stackTrace)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } 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)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- exception = try container.decode(String.self, forKey: .exception)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(finalState, forKey: .finalState)
-
-
-
-
- try? container.encodeIfPresent(identifier, forKey: .identifier)
-
-
-
-
- try? container.encodeIfPresent(stackTrace, forKey: .stackTrace)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(exception, forKey: .exception)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/SmsDataPayloadOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SmsDataPayloadOrderPlatformModel.swift
index 2d93207fc9..9d8aa188e0 100644
--- a/Sources/code/platform/Models/Order/SmsDataPayloadOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/SmsDataPayloadOrderPlatformModel.swift
@@ -12,9 +12,9 @@ public extension PlatformClient.Order {
class SmsDataPayload: Codable {
- public var shipmentId: String
+ public var shipmentId: Int
- public var phoneNumber: String
+ public var phoneNumber: Int
public var amountPaid: Int?
@@ -53,7 +53,7 @@ public extension PlatformClient.Order {
}
- public init(amountPaid: Int? = nil, brandName: String? = nil, countryCode: String, customerName: String? = nil, message: String, orderId: String, paymentMode: String? = nil, phoneNumber: String, shipmentId: String) {
+ public init(amountPaid: Int? = nil, brandName: String? = nil, countryCode: String, customerName: String? = nil, message: String, orderId: String, paymentMode: String? = nil, phoneNumber: Int, shipmentId: Int) {
self.shipmentId = shipmentId
@@ -79,12 +79,12 @@ public extension PlatformClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
+ shipmentId = try container.decode(Int.self, forKey: .shipmentId)
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+ phoneNumber = try container.decode(Int.self, forKey: .phoneNumber)
@@ -217,9 +217,9 @@ public extension PlatformClient.ApplicationClient.Order {
class SmsDataPayload: Codable {
- public var shipmentId: String
+ public var shipmentId: Int
- public var phoneNumber: String
+ public var phoneNumber: Int
public var amountPaid: Int?
@@ -258,7 +258,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(amountPaid: Int? = nil, brandName: String? = nil, countryCode: String, customerName: String? = nil, message: String, orderId: String, paymentMode: String? = nil, phoneNumber: String, shipmentId: String) {
+ public init(amountPaid: Int? = nil, brandName: String? = nil, countryCode: String, customerName: String? = nil, message: String, orderId: String, paymentMode: String? = nil, phoneNumber: Int, shipmentId: Int) {
self.shipmentId = shipmentId
@@ -284,12 +284,12 @@ public extension PlatformClient.ApplicationClient.Order {
let container = try decoder.container(keyedBy: CodingKeys.self)
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
+ shipmentId = try container.decode(Int.self, forKey: .shipmentId)
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+ phoneNumber = try container.decode(Int.self, forKey: .phoneNumber)
diff --git a/Sources/code/platform/Models/Order/StatuesRequestOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StatuesRequestOrderPlatformModel.swift
new file mode 100644
index 0000000000..b4697aa8ce
--- /dev/null
+++ b/Sources/code/platform/Models/Order/StatuesRequestOrderPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: StatuesRequest
+ Used By: Order
+ */
+
+ class StatuesRequest: Codable {
+
+
+ public var status: String?
+
+ public var shipments: [ShipmentsRequest]?
+
+ public var excludeBagsNextState: String?
+
+ public var splitShipment: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case shipments = "shipments"
+
+ case excludeBagsNextState = "exclude_bags_next_state"
+
+ case splitShipment = "split_shipment"
+
+ }
+
+ public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequest]? = nil, splitShipment: Bool? = nil, status: String? = nil) {
+
+ self.status = status
+
+ self.shipments = shipments
+
+ self.excludeBagsNextState = excludeBagsNextState
+
+ self.splitShipment = splitShipment
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipments = try container.decode([ShipmentsRequest].self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ splitShipment = try container.decode(Bool.self, forKey: .splitShipment)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+
+
+ try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
+
+
+
+
+ try? container.encodeIfPresent(splitShipment, forKey: .splitShipment)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: StatuesRequest
+ Used By: Order
+ */
+
+ class StatuesRequest: Codable {
+
+
+ public var status: String?
+
+ public var shipments: [ShipmentsRequest]?
+
+ public var excludeBagsNextState: String?
+
+ public var splitShipment: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case shipments = "shipments"
+
+ case excludeBagsNextState = "exclude_bags_next_state"
+
+ case splitShipment = "split_shipment"
+
+ }
+
+ public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequest]? = nil, splitShipment: Bool? = nil, status: String? = nil) {
+
+ self.status = status
+
+ self.shipments = shipments
+
+ self.excludeBagsNextState = excludeBagsNextState
+
+ self.splitShipment = splitShipment
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipments = try container.decode([ShipmentsRequest].self, forKey: .shipments)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ splitShipment = try container.decode(Bool.self, forKey: .splitShipment)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(shipments, forKey: .shipments)
+
+
+
+
+ try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
+
+
+
+
+ try? container.encodeIfPresent(splitShipment, forKey: .splitShipment)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/StatuesRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StatuesRequestSchemaOrderPlatformModel.swift
deleted file mode 100644
index 6a8fa1d320..0000000000
--- a/Sources/code/platform/Models/Order/StatuesRequestSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: StatuesRequestSchema
- Used By: Order
- */
-
- class StatuesRequestSchema: Codable {
-
-
- public var status: String?
-
- public var shipments: [ShipmentsRequestSchema]?
-
- public var excludeBagsNextState: String?
-
- public var splitShipment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case shipments = "shipments"
-
- case excludeBagsNextState = "exclude_bags_next_state"
-
- case splitShipment = "split_shipment"
-
- }
-
- public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequestSchema]? = nil, splitShipment: Bool? = nil, status: String? = nil) {
-
- self.status = status
-
- self.shipments = shipments
-
- self.excludeBagsNextState = excludeBagsNextState
-
- self.splitShipment = splitShipment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- shipments = try container.decode([ShipmentsRequestSchema].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- splitShipment = try container.decode(Bool.self, forKey: .splitShipment)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
-
-
-
-
- try? container.encodeIfPresent(splitShipment, forKey: .splitShipment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: StatuesRequestSchema
- Used By: Order
- */
-
- class StatuesRequestSchema: Codable {
-
-
- public var status: String?
-
- public var shipments: [ShipmentsRequestSchema]?
-
- public var excludeBagsNextState: String?
-
- public var splitShipment: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case shipments = "shipments"
-
- case excludeBagsNextState = "exclude_bags_next_state"
-
- case splitShipment = "split_shipment"
-
- }
-
- public init(excludeBagsNextState: String? = nil, shipments: [ShipmentsRequestSchema]? = nil, splitShipment: Bool? = nil, status: String? = nil) {
-
- self.status = status
-
- self.shipments = shipments
-
- self.excludeBagsNextState = excludeBagsNextState
-
- self.splitShipment = splitShipment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- shipments = try container.decode([ShipmentsRequestSchema].self, forKey: .shipments)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- excludeBagsNextState = try container.decode(String.self, forKey: .excludeBagsNextState)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- splitShipment = try container.decode(Bool.self, forKey: .splitShipment)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(shipments, forKey: .shipments)
-
-
-
-
- try? container.encodeIfPresent(excludeBagsNextState, forKey: .excludeBagsNextState)
-
-
-
-
- try? container.encodeIfPresent(splitShipment, forKey: .splitShipment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/StatuesResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StatuesResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..cac1ae0b37
--- /dev/null
+++ b/Sources/code/platform/Models/Order/StatuesResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: StatuesResponse
+ Used By: Order
+ */
+
+ class StatuesResponse: Codable {
+
+
+ public var shipments: [ShipmentsResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ }
+
+ public init(shipments: [ShipmentsResponse]? = nil) {
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode([ShipmentsResponse].self, forKey: .shipments)
+
+ } 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(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: StatuesResponse
+ Used By: Order
+ */
+
+ class StatuesResponse: Codable {
+
+
+ public var shipments: [ShipmentsResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case shipments = "shipments"
+
+ }
+
+ public init(shipments: [ShipmentsResponse]? = nil) {
+
+ self.shipments = shipments
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ shipments = try container.decode([ShipmentsResponse].self, forKey: .shipments)
+
+ } 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(shipments, forKey: .shipments)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/StatuesResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StatuesResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 4b8bf04538..0000000000
--- a/Sources/code/platform/Models/Order/StatuesResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: StatuesResponseSchema
- Used By: Order
- */
-
- class StatuesResponseSchema: Codable {
-
-
- public var shipments: [ShipmentsResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- }
-
- public init(shipments: [ShipmentsResponseSchema]? = nil) {
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode([ShipmentsResponseSchema].self, forKey: .shipments)
-
- } 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(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: StatuesResponseSchema
- Used By: Order
- */
-
- class StatuesResponseSchema: Codable {
-
-
- public var shipments: [ShipmentsResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipments = "shipments"
-
- }
-
- public init(shipments: [ShipmentsResponseSchema]? = nil) {
-
- self.shipments = shipments
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shipments = try container.decode([ShipmentsResponseSchema].self, forKey: .shipments)
-
- } 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(shipments, forKey: .shipments)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/StoreReassignResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StoreReassignResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..5123ff00b1
--- /dev/null
+++ b/Sources/code/platform/Models/Order/StoreReassignResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: StoreReassignResponse
+ Used By: Order
+ */
+
+ class StoreReassignResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: StoreReassignResponse
+ Used By: Order
+ */
+
+ class StoreReassignResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/StoreReassignResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/StoreReassignResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index fd982e2ba4..0000000000
--- a/Sources/code/platform/Models/Order/StoreReassignResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: StoreReassignResponseSchema
- Used By: Order
- */
-
- class StoreReassignResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: StoreReassignResponseSchema
- Used By: Order
- */
-
- class StoreReassignResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/SuccessResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SuccessResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..a775d970b1
--- /dev/null
+++ b/Sources/code/platform/Models/Order/SuccessResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: SuccessResponse
+ Used By: Order
+ */
+
+ class SuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: SuccessResponse
+ Used By: Order
+ */
+
+ class SuccessResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/SuccessResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SuccessResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 95bb68cbeb..0000000000
--- a/Sources/code/platform/Models/Order/SuccessResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: SuccessResponseSchema
- Used By: Order
- */
-
- class SuccessResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: SuccessResponseSchema
- Used By: Order
- */
-
- class SuccessResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/SystemMessagesOrderPlatformModel.swift b/Sources/code/platform/Models/Order/SystemMessagesOrderPlatformModel.swift
deleted file mode 100644
index 1a9f57138a..0000000000
--- a/Sources/code/platform/Models/Order/SystemMessagesOrderPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: SystemMessages
- Used By: Order
- */
-
- class SystemMessages: Codable {
-
-
- public var messageType: String
-
- public var priority: Double
-
- public var message: String
-
- public var injectAt: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case messageType = "message_type"
-
- case priority = "priority"
-
- case message = "message"
-
- case injectAt = "inject_at"
-
- }
-
- public init(injectAt: [String]? = nil, message: String, messageType: String, priority: Double) {
-
- self.messageType = messageType
-
- self.priority = priority
-
- self.message = message
-
- self.injectAt = injectAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- messageType = try container.decode(String.self, forKey: .messageType)
-
-
-
-
- priority = try container.decode(Double.self, forKey: .priority)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- injectAt = try container.decode([String].self, forKey: .injectAt)
-
- } 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(messageType, forKey: .messageType)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(injectAt, forKey: .injectAt)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: SystemMessages
- Used By: Order
- */
-
- class SystemMessages: Codable {
-
-
- public var messageType: String
-
- public var priority: Double
-
- public var message: String
-
- public var injectAt: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case messageType = "message_type"
-
- case priority = "priority"
-
- case message = "message"
-
- case injectAt = "inject_at"
-
- }
-
- public init(injectAt: [String]? = nil, message: String, messageType: String, priority: Double) {
-
- self.messageType = messageType
-
- self.priority = priority
-
- self.message = message
-
- self.injectAt = injectAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- messageType = try container.decode(String.self, forKey: .messageType)
-
-
-
-
- priority = try container.decode(Double.self, forKey: .priority)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- injectAt = try container.decode([String].self, forKey: .injectAt)
-
- } 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(messageType, forKey: .messageType)
-
-
-
-
- try? container.encodeIfPresent(priority, forKey: .priority)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(injectAt, forKey: .injectAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/TagOrderPlatformModel.swift b/Sources/code/platform/Models/Order/TagOrderPlatformModel.swift
deleted file mode 100644
index 9297441d60..0000000000
--- a/Sources/code/platform/Models/Order/TagOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: Tag
- Used By: Order
- */
-
- class Tag: Codable {
-
-
- public var slug: String?
-
- public var displayText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case displayText = "display_text"
-
- }
-
- public init(displayText: String? = nil, slug: String? = nil) {
-
- self.slug = slug
-
- self.displayText = displayText
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- displayText = try container.decode(String.self, forKey: .displayText)
-
- } 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(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(displayText, forKey: .displayText)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: Tag
- Used By: Order
- */
-
- class Tag: Codable {
-
-
- public var slug: String?
-
- public var displayText: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case slug = "slug"
-
- case displayText = "display_text"
-
- }
-
- public init(displayText: String? = nil, slug: String? = nil) {
-
- self.slug = slug
-
- self.displayText = displayText
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- displayText = try container.decode(String.self, forKey: .displayText)
-
- } 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(slug, forKey: .slug)
-
-
-
-
- try? container.encodeIfPresent(displayText, forKey: .displayText)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/TemplateDownloadResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/TemplateDownloadResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..a20f0de289
--- /dev/null
+++ b/Sources/code/platform/Models/Order/TemplateDownloadResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: TemplateDownloadResponse
+ Used By: Order
+ */
+
+ class TemplateDownloadResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case url = "url"
+
+ }
+
+ public init(fileName: String? = nil, url: String? = nil) {
+
+ self.fileName = fileName
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: TemplateDownloadResponse
+ Used By: Order
+ */
+
+ class TemplateDownloadResponse: Codable {
+
+
+ public var fileName: String?
+
+ public var url: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fileName = "file_name"
+
+ case url = "url"
+
+ }
+
+ public init(fileName: String? = nil, url: String? = nil) {
+
+ self.fileName = fileName
+
+ self.url = url
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ fileName = try container.decode(String.self, forKey: .fileName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fileName, forKey: .fileName)
+
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/TemplateDownloadResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/TemplateDownloadResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 40ea0d4837..0000000000
--- a/Sources/code/platform/Models/Order/TemplateDownloadResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: TemplateDownloadResponseSchema
- Used By: Order
- */
-
- class TemplateDownloadResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case url = "url"
-
- }
-
- public init(fileName: String? = nil, url: String? = nil) {
-
- self.fileName = fileName
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: TemplateDownloadResponseSchema
- Used By: Order
- */
-
- class TemplateDownloadResponseSchema: Codable {
-
-
- public var fileName: String?
-
- public var url: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fileName = "file_name"
-
- case url = "url"
-
- }
-
- public init(fileName: String? = nil, url: String? = nil) {
-
- self.fileName = fileName
-
- self.url = url
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- fileName = try container.decode(String.self, forKey: .fileName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fileName, forKey: .fileName)
-
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdateAddressRequestBodyOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateAddressRequestBodyOrderPlatformModel.swift
deleted file mode 100644
index 28534e656f..0000000000
--- a/Sources/code/platform/Models/Order/UpdateAddressRequestBodyOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdateAddressRequestBody
- Used By: Order
- */
-
- class UpdateAddressRequestBody: Codable {
-
-
- public var updatedAddress: UpdatedAddressSchema?
-
- public var addressType: String?
-
- public var addressCategory: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case updatedAddress = "updated_address"
-
- case addressType = "address_type"
-
- case addressCategory = "address_category"
-
- }
-
- public init(addressCategory: String? = nil, addressType: String? = nil, updatedAddress: UpdatedAddressSchema? = nil) {
-
- self.updatedAddress = updatedAddress
-
- self.addressType = addressType
-
- self.addressCategory = addressCategory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- updatedAddress = try container.decode(UpdatedAddressSchema.self, forKey: .updatedAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- addressCategory = try container.decode(String.self, forKey: .addressCategory)
-
- } 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(updatedAddress, forKey: .updatedAddress)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdateAddressRequestBody
- Used By: Order
- */
-
- class UpdateAddressRequestBody: Codable {
-
-
- public var updatedAddress: UpdatedAddressSchema?
-
- public var addressType: String?
-
- public var addressCategory: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case updatedAddress = "updated_address"
-
- case addressType = "address_type"
-
- case addressCategory = "address_category"
-
- }
-
- public init(addressCategory: String? = nil, addressType: String? = nil, updatedAddress: UpdatedAddressSchema? = nil) {
-
- self.updatedAddress = updatedAddress
-
- self.addressType = addressType
-
- self.addressCategory = addressCategory
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- updatedAddress = try container.decode(UpdatedAddressSchema.self, forKey: .updatedAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- addressCategory = try container.decode(String.self, forKey: .addressCategory)
-
- } 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(updatedAddress, forKey: .updatedAddress)
-
-
-
-
- try? container.encodeIfPresent(addressType, forKey: .addressType)
-
-
-
-
- try? container.encodeIfPresent(addressCategory, forKey: .addressCategory)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..c6024d84e4
--- /dev/null
+++ b/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseOrderPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: UpdatePackagingDimensionsResponse
+ Used By: Order
+ */
+
+ class UpdatePackagingDimensionsResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: UpdatePackagingDimensionsResponse
+ Used By: Order
+ */
+
+ class UpdatePackagingDimensionsResponse: Codable {
+
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ }
+
+ public init(message: String? = nil) {
+
+ 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(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 198e9c74b2..0000000000
--- a/Sources/code/platform/Models/Order/UpdatePackagingDimensionsResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdatePackagingDimensionsResponseSchema
- Used By: Order
- */
-
- class UpdatePackagingDimensionsResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdatePackagingDimensionsResponseSchema
- Used By: Order
- */
-
- class UpdatePackagingDimensionsResponseSchema: Codable {
-
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- }
-
- public init(message: String? = nil) {
-
- 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(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdatePackingErrorResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdatePackingErrorResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..018815ae61
--- /dev/null
+++ b/Sources/code/platform/Models/Order/UpdatePackingErrorResponseOrderPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: UpdatePackingErrorResponse
+ Used By: Order
+ */
+
+ class UpdatePackingErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: UpdatePackingErrorResponse
+ Used By: Order
+ */
+
+ class UpdatePackingErrorResponse: Codable {
+
+
+ public var status: Int?
+
+ public var error: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case error = "error"
+
+ }
+
+ public init(error: String? = nil, status: Int? = nil) {
+
+ self.status = status
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/UpdatePackingErrorResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdatePackingErrorResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index f9ce2d6156..0000000000
--- a/Sources/code/platform/Models/Order/UpdatePackingErrorResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdatePackingErrorResponseSchema
- Used By: Order
- */
-
- class UpdatePackingErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdatePackingErrorResponseSchema
- Used By: Order
- */
-
- class UpdatePackingErrorResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var error: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case error = "error"
-
- }
-
- public init(error: String? = nil, status: Int? = nil) {
-
- self.status = status
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdateShipmentLockResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateShipmentLockResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..96cb3846c1
--- /dev/null
+++ b/Sources/code/platform/Models/Order/UpdateShipmentLockResponseOrderPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: UpdateShipmentLockResponse
+ Used By: Order
+ */
+
+ class UpdateShipmentLockResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var checkResponse: [CheckResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case checkResponse = "check_response"
+
+ }
+
+ public init(checkResponse: [CheckResponse]? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.checkResponse = checkResponse
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ checkResponse = try container.decode([CheckResponse].self, forKey: .checkResponse)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(checkResponse, forKey: .checkResponse)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: UpdateShipmentLockResponse
+ Used By: Order
+ */
+
+ class UpdateShipmentLockResponse: Codable {
+
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var checkResponse: [CheckResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case message = "message"
+
+ case checkResponse = "check_response"
+
+ }
+
+ public init(checkResponse: [CheckResponse]? = nil, message: String? = nil, success: Bool? = nil) {
+
+ self.success = success
+
+ self.message = message
+
+ self.checkResponse = checkResponse
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ 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 {
+ 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 {
+
+ }
+
+
+
+ do {
+ checkResponse = try container.decode([CheckResponse].self, forKey: .checkResponse)
+
+ } 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)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(checkResponse, forKey: .checkResponse)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/UpdateShipmentLockResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateShipmentLockResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 578a1e8a03..0000000000
--- a/Sources/code/platform/Models/Order/UpdateShipmentLockResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdateShipmentLockResponseSchema
- Used By: Order
- */
-
- class UpdateShipmentLockResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var checkResponse: [CheckResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case checkResponse = "check_response"
-
- }
-
- public init(checkResponse: [CheckResponseSchema]? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.checkResponse = checkResponse
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- checkResponse = try container.decode([CheckResponseSchema].self, forKey: .checkResponse)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(checkResponse, forKey: .checkResponse)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdateShipmentLockResponseSchema
- Used By: Order
- */
-
- class UpdateShipmentLockResponseSchema: Codable {
-
-
- public var success: Bool?
-
- public var message: String?
-
- public var checkResponse: [CheckResponseSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case message = "message"
-
- case checkResponse = "check_response"
-
- }
-
- public init(checkResponse: [CheckResponseSchema]? = nil, message: String? = nil, success: Bool? = nil) {
-
- self.success = success
-
- self.message = message
-
- self.checkResponse = checkResponse
-
- }
-
- required public init(from decoder: Decoder) throws {
- 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 {
- 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 {
-
- }
-
-
-
- do {
- checkResponse = try container.decode([CheckResponseSchema].self, forKey: .checkResponse)
-
- } 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)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(checkResponse, forKey: .checkResponse)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdateShipmentPaymentModeOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateShipmentPaymentModeOrderPlatformModel.swift
deleted file mode 100644
index c826af3654..0000000000
--- a/Sources/code/platform/Models/Order/UpdateShipmentPaymentModeOrderPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdateShipmentPaymentMode
- Used By: Order
- */
-
- class UpdateShipmentPaymentMode: Codable {
-
-
- public var shipmentId: String
-
- public var products: [ProductSchema]?
-
- public var paymentMethods: [PaymentMethodSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case products = "products"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(paymentMethods: [PaymentMethodSchema]? = nil, products: [ProductSchema]? = nil, shipmentId: String) {
-
- self.shipmentId = shipmentId
-
- self.products = products
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
-
-
-
- do {
- products = try container.decode([ProductSchema].self, forKey: .products)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMethods = try container.decode([PaymentMethodSchema].self, forKey: .paymentMethods)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdateShipmentPaymentMode
- Used By: Order
- */
-
- class UpdateShipmentPaymentMode: Codable {
-
-
- public var shipmentId: String
-
- public var products: [ProductSchema]?
-
- public var paymentMethods: [PaymentMethodSchema]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shipmentId = "shipment_id"
-
- case products = "products"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(paymentMethods: [PaymentMethodSchema]? = nil, products: [ProductSchema]? = nil, shipmentId: String) {
-
- self.shipmentId = shipmentId
-
- self.products = products
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
-
-
-
- do {
- products = try container.decode([ProductSchema].self, forKey: .products)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentMethods = try container.decode([PaymentMethodSchema].self, forKey: .paymentMethods)
-
- } 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(shipmentId, forKey: .shipmentId)
-
-
-
-
- try? container.encodeIfPresent(products, forKey: .products)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UpdateShipmentStatusRequestSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateShipmentStatusRequestSchemaOrderPlatformModel.swift
index 9c7f192eec..64e0b54ede 100644
--- a/Sources/code/platform/Models/Order/UpdateShipmentStatusRequestSchemaOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/UpdateShipmentStatusRequestSchemaOrderPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Order {
public var forceTransition: Bool?
- public var statuses: [StatuesRequestSchema]?
+ public var statuses: [StatuesRequest]?
public var lockAfterTransition: Bool?
@@ -41,7 +41,7 @@ public extension PlatformClient.Order {
}
- public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, resumeTasksAfterUnlock: Bool? = nil, statuses: [StatuesRequestSchema]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
+ public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, resumeTasksAfterUnlock: Bool? = nil, statuses: [StatuesRequest]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
self.forceTransition = forceTransition
@@ -74,7 +74,7 @@ public extension PlatformClient.Order {
do {
- statuses = try container.decode([StatuesRequestSchema].self, forKey: .statuses)
+ statuses = try container.decode([StatuesRequest].self, forKey: .statuses)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -185,7 +185,7 @@ public extension PlatformClient.ApplicationClient.Order {
public var forceTransition: Bool?
- public var statuses: [StatuesRequestSchema]?
+ public var statuses: [StatuesRequest]?
public var lockAfterTransition: Bool?
@@ -212,7 +212,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, resumeTasksAfterUnlock: Bool? = nil, statuses: [StatuesRequestSchema]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
+ public init(forceTransition: Bool? = nil, lockAfterTransition: Bool? = nil, resumeTasksAfterUnlock: Bool? = nil, statuses: [StatuesRequest]? = nil, task: Bool? = nil, unlockBeforeTransition: Bool? = nil) {
self.forceTransition = forceTransition
@@ -245,7 +245,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- statuses = try container.decode([StatuesRequestSchema].self, forKey: .statuses)
+ statuses = try container.decode([StatuesRequest].self, forKey: .statuses)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Order/UpdateShipmentStatusResponseBodyOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdateShipmentStatusResponseBodyOrderPlatformModel.swift
index 60b4e01ec6..f02e2c9370 100644
--- a/Sources/code/platform/Models/Order/UpdateShipmentStatusResponseBodyOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/UpdateShipmentStatusResponseBodyOrderPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Order {
class UpdateShipmentStatusResponseBody: Codable {
- public var statuses: [StatuesResponseSchema]?
+ public var statuses: [StatuesResponse]?
public enum CodingKeys: String, CodingKey {
@@ -21,7 +21,7 @@ public extension PlatformClient.Order {
}
- public init(statuses: [StatuesResponseSchema]? = nil) {
+ public init(statuses: [StatuesResponse]? = nil) {
self.statuses = statuses
@@ -32,7 +32,7 @@ public extension PlatformClient.Order {
do {
- statuses = try container.decode([StatuesResponseSchema].self, forKey: .statuses)
+ statuses = try container.decode([StatuesResponse].self, forKey: .statuses)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -68,7 +68,7 @@ public extension PlatformClient.ApplicationClient.Order {
class UpdateShipmentStatusResponseBody: Codable {
- public var statuses: [StatuesResponseSchema]?
+ public var statuses: [StatuesResponse]?
public enum CodingKeys: String, CodingKey {
@@ -77,7 +77,7 @@ public extension PlatformClient.ApplicationClient.Order {
}
- public init(statuses: [StatuesResponseSchema]? = nil) {
+ public init(statuses: [StatuesResponse]? = nil) {
self.statuses = statuses
@@ -88,7 +88,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- statuses = try container.decode([StatuesResponseSchema].self, forKey: .statuses)
+ statuses = try container.decode([StatuesResponse].self, forKey: .statuses)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Order/UpdatedAddressSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UpdatedAddressSchemaOrderPlatformModel.swift
deleted file mode 100644
index a2ef693887..0000000000
--- a/Sources/code/platform/Models/Order/UpdatedAddressSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,668 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UpdatedAddressSchema
- Used By: Order
- */
-
- class UpdatedAddressSchema: Codable {
-
-
- public var address: String?
-
- public var area: String?
-
- public var landmark: String?
-
- public var pincode: String?
-
- public var city: String?
-
- public var state: String?
-
- public var name: String?
-
- public var phone: String?
-
- public var email: String?
-
- public var country: String?
-
- public var countryIsoCode: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case area = "area"
-
- case landmark = "landmark"
-
- case pincode = "pincode"
-
- case city = "city"
-
- case state = "state"
-
- case name = "name"
-
- case phone = "phone"
-
- case email = "email"
-
- case country = "country"
-
- case countryIsoCode = "country_iso_code"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- }
-
- public init(address: String? = nil, area: String? = nil, city: String? = nil, country: String? = nil, countryIsoCode: String? = nil, email: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, state: String? = nil) {
-
- self.address = address
-
- self.area = area
-
- self.landmark = landmark
-
- self.pincode = pincode
-
- self.city = city
-
- self.state = state
-
- self.name = name
-
- self.phone = phone
-
- self.email = email
-
- self.country = country
-
- self.countryIsoCode = countryIsoCode
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- phone = try container.decode(String.self, forKey: .phone)
-
- } 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 {
-
- }
-
-
-
- do {
- 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 {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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)
-
- } 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UpdatedAddressSchema
- Used By: Order
- */
-
- class UpdatedAddressSchema: Codable {
-
-
- public var address: String?
-
- public var area: String?
-
- public var landmark: String?
-
- public var pincode: String?
-
- public var city: String?
-
- public var state: String?
-
- public var name: String?
-
- public var phone: String?
-
- public var email: String?
-
- public var country: String?
-
- public var countryIsoCode: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case address = "address"
-
- case area = "area"
-
- case landmark = "landmark"
-
- case pincode = "pincode"
-
- case city = "city"
-
- case state = "state"
-
- case name = "name"
-
- case phone = "phone"
-
- case email = "email"
-
- case country = "country"
-
- case countryIsoCode = "country_iso_code"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- }
-
- public init(address: String? = nil, area: String? = nil, city: String? = nil, country: String? = nil, countryIsoCode: String? = nil, email: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, name: String? = nil, phone: String? = nil, pincode: String? = nil, state: String? = nil) {
-
- self.address = address
-
- self.area = area
-
- self.landmark = landmark
-
- self.pincode = pincode
-
- self.city = city
-
- self.state = state
-
- self.name = name
-
- self.phone = phone
-
- self.email = email
-
- self.country = country
-
- self.countryIsoCode = countryIsoCode
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- address = try container.decode(String.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- area = try container.decode(String.self, forKey: .area)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- pincode = try container.decode(String.self, forKey: .pincode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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 {
- 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 {
- phone = try container.decode(String.self, forKey: .phone)
-
- } 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 {
-
- }
-
-
-
- do {
- 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 {
- countryIsoCode = try container.decode(String.self, forKey: .countryIsoCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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)
-
- } 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(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(area, forKey: .area)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(phone, forKey: .phone)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(countryIsoCode, forKey: .countryIsoCode)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift
index 19a2834e63..13d14f69e8 100644
--- a/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift
+++ b/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift
@@ -12,12 +12,10 @@ public extension PlatformClient.Order {
class UserDataInfo: Codable {
- public var id: Int?
+ public var uid: Int?
public var userOid: String?
- public var mongoUserId: String?
-
public var externalCustomerId: String?
public var firstName: String?
@@ -28,25 +26,21 @@ public extension PlatformClient.Order {
public var email: String?
- public var meta: String?
-
public var isAnonymousUser: Bool?
+ public var avisUserId: String?
+
public var name: String?
public var gender: String?
- public var countryPhoneCode: String?
-
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case uid = "uid"
case userOid = "user_oid"
- case mongoUserId = "mongo_user_id"
-
case externalCustomerId = "external_customer_id"
case firstName = "first_name"
@@ -57,26 +51,22 @@ public extension PlatformClient.Order {
case email = "email"
- case meta = "meta"
-
case isAnonymousUser = "is_anonymous_user"
+ case avisUserId = "avis_user_id"
+
case name = "name"
case gender = "gender"
- case countryPhoneCode = "country_phone_code"
-
}
- public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: String? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) {
+ public init(avisUserId: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, mobile: String? = nil, name: String? = nil, uid: Int? = nil, userOid: String? = nil) {
- self.id = id
+ self.uid = uid
self.userOid = userOid
- self.mongoUserId = mongoUserId
-
self.externalCustomerId = externalCustomerId
self.firstName = firstName
@@ -87,16 +77,14 @@ public extension PlatformClient.Order {
self.email = email
- self.meta = meta
-
self.isAnonymousUser = isAnonymousUser
+ self.avisUserId = avisUserId
+
self.name = name
self.gender = gender
- self.countryPhoneCode = countryPhoneCode
-
}
required public init(from decoder: Decoder) throws {
@@ -104,7 +92,7 @@ public extension PlatformClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ uid = try container.decode(Int.self, forKey: .uid)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -127,18 +115,6 @@ public extension PlatformClient.Order {
- do {
- mongoUserId = try container.decode(String.self, forKey: .mongoUserId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
externalCustomerId = try container.decode(String.self, forKey: .externalCustomerId)
@@ -200,7 +176,7 @@ public extension PlatformClient.Order {
do {
- meta = try container.decode(String.self, forKey: .meta)
+ isAnonymousUser = try container.decode(Bool.self, forKey: .isAnonymousUser)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -212,7 +188,7 @@ public extension PlatformClient.Order {
do {
- isAnonymousUser = try container.decode(Bool.self, forKey: .isAnonymousUser)
+ avisUserId = try container.decode(String.self, forKey: .avisUserId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -246,18 +222,6 @@ public extension PlatformClient.Order {
}
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } 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 {
@@ -265,7 +229,7 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(uid, forKey: .uid)
@@ -275,11 +239,6 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(mongoUserId, forKey: .mongoUserId)
-
-
-
-
try? container.encodeIfPresent(externalCustomerId, forKey: .externalCustomerId)
@@ -305,12 +264,12 @@ public extension PlatformClient.Order {
- try? container.encodeIfPresent(meta, forKey: .meta)
+ try? container.encodeIfPresent(isAnonymousUser, forKey: .isAnonymousUser)
- try? container.encodeIfPresent(isAnonymousUser, forKey: .isAnonymousUser)
+ try? container.encodeIfPresent(avisUserId, forKey: .avisUserId)
@@ -323,11 +282,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(gender, forKey: .gender)
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
}
}
@@ -344,12 +298,10 @@ public extension PlatformClient.ApplicationClient.Order {
class UserDataInfo: Codable {
- public var id: Int?
+ public var uid: Int?
public var userOid: String?
- public var mongoUserId: String?
-
public var externalCustomerId: String?
public var firstName: String?
@@ -360,25 +312,21 @@ public extension PlatformClient.ApplicationClient.Order {
public var email: String?
- public var meta: String?
-
public var isAnonymousUser: Bool?
+ public var avisUserId: String?
+
public var name: String?
public var gender: String?
- public var countryPhoneCode: String?
-
public enum CodingKeys: String, CodingKey {
- case id = "id"
+ case uid = "uid"
case userOid = "user_oid"
- case mongoUserId = "mongo_user_id"
-
case externalCustomerId = "external_customer_id"
case firstName = "first_name"
@@ -389,26 +337,22 @@ public extension PlatformClient.ApplicationClient.Order {
case email = "email"
- case meta = "meta"
-
case isAnonymousUser = "is_anonymous_user"
+ case avisUserId = "avis_user_id"
+
case name = "name"
case gender = "gender"
- case countryPhoneCode = "country_phone_code"
-
}
- public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: String? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) {
+ public init(avisUserId: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, mobile: String? = nil, name: String? = nil, uid: Int? = nil, userOid: String? = nil) {
- self.id = id
+ self.uid = uid
self.userOid = userOid
- self.mongoUserId = mongoUserId
-
self.externalCustomerId = externalCustomerId
self.firstName = firstName
@@ -419,16 +363,14 @@ public extension PlatformClient.ApplicationClient.Order {
self.email = email
- self.meta = meta
-
self.isAnonymousUser = isAnonymousUser
+ self.avisUserId = avisUserId
+
self.name = name
self.gender = gender
- self.countryPhoneCode = countryPhoneCode
-
}
required public init(from decoder: Decoder) throws {
@@ -436,7 +378,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- id = try container.decode(Int.self, forKey: .id)
+ uid = try container.decode(Int.self, forKey: .uid)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -459,18 +401,6 @@ public extension PlatformClient.ApplicationClient.Order {
- do {
- mongoUserId = try container.decode(String.self, forKey: .mongoUserId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
do {
externalCustomerId = try container.decode(String.self, forKey: .externalCustomerId)
@@ -532,7 +462,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- meta = try container.decode(String.self, forKey: .meta)
+ isAnonymousUser = try container.decode(Bool.self, forKey: .isAnonymousUser)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -544,7 +474,7 @@ public extension PlatformClient.ApplicationClient.Order {
do {
- isAnonymousUser = try container.decode(Bool.self, forKey: .isAnonymousUser)
+ avisUserId = try container.decode(String.self, forKey: .avisUserId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -578,18 +508,6 @@ public extension PlatformClient.ApplicationClient.Order {
}
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } 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 {
@@ -597,7 +515,7 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(id, forKey: .id)
+ try? container.encodeIfPresent(uid, forKey: .uid)
@@ -607,11 +525,6 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(mongoUserId, forKey: .mongoUserId)
-
-
-
-
try? container.encodeIfPresent(externalCustomerId, forKey: .externalCustomerId)
@@ -637,12 +550,12 @@ public extension PlatformClient.ApplicationClient.Order {
- try? container.encodeIfPresent(meta, forKey: .meta)
+ try? container.encodeIfPresent(isAnonymousUser, forKey: .isAnonymousUser)
- try? container.encodeIfPresent(isAnonymousUser, forKey: .isAnonymousUser)
+ try? container.encodeIfPresent(avisUserId, forKey: .avisUserId)
@@ -655,11 +568,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(gender, forKey: .gender)
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
}
}
diff --git a/Sources/code/platform/Models/Order/UserDataOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UserDataOrderPlatformModel.swift
deleted file mode 100644
index 833dbcba2d..0000000000
--- a/Sources/code/platform/Models/Order/UserDataOrderPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: UserData
- Used By: Order
- */
-
- class UserData: Codable {
-
-
- public var shippingUser: OrderUser?
-
- public var billingUser: OrderUser?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shippingUser = "shipping_user"
-
- case billingUser = "billing_user"
-
- }
-
- public init(billingUser: OrderUser? = nil, shippingUser: OrderUser? = nil) {
-
- self.shippingUser = shippingUser
-
- self.billingUser = billingUser
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shippingUser = try container.decode(OrderUser.self, forKey: .shippingUser)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingUser = try container.decode(OrderUser.self, forKey: .billingUser)
-
- } 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(shippingUser, forKey: .shippingUser)
-
-
-
-
- try? container.encodeIfPresent(billingUser, forKey: .billingUser)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: UserData
- Used By: Order
- */
-
- class UserData: Codable {
-
-
- public var shippingUser: OrderUser?
-
- public var billingUser: OrderUser?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case shippingUser = "shipping_user"
-
- case billingUser = "billing_user"
-
- }
-
- public init(billingUser: OrderUser? = nil, shippingUser: OrderUser? = nil) {
-
- self.shippingUser = shippingUser
-
- self.billingUser = billingUser
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- shippingUser = try container.decode(OrderUser.self, forKey: .shippingUser)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingUser = try container.decode(OrderUser.self, forKey: .billingUser)
-
- } 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(shippingUser, forKey: .shippingUser)
-
-
-
-
- try? container.encodeIfPresent(billingUser, forKey: .billingUser)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/ValidationErrorOrderPlatformModel.swift b/Sources/code/platform/Models/Order/ValidationErrorOrderPlatformModel.swift
deleted file mode 100644
index c754787fea..0000000000
--- a/Sources/code/platform/Models/Order/ValidationErrorOrderPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: ValidationError
- Used By: Order
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: ValidationError
- Used By: Order
- */
-
- class ValidationError: Codable {
-
-
- public var message: String
-
- public var field: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case field = "field"
-
- }
-
- public init(field: String, message: String) {
-
- self.message = message
-
- self.field = field
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- field = try container.decode(String.self, forKey: .field)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(field, forKey: .field)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Order/VerifyOtpResponseOrderPlatformModel.swift b/Sources/code/platform/Models/Order/VerifyOtpResponseOrderPlatformModel.swift
new file mode 100644
index 0000000000..6014529336
--- /dev/null
+++ b/Sources/code/platform/Models/Order/VerifyOtpResponseOrderPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Order {
+ /*
+ Model: VerifyOtpResponse
+ Used By: Order
+ */
+
+ class VerifyOtpResponse: Codable {
+
+
+ public var status: Int?
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var data: VerifyOtpResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case success = "success"
+
+ case message = "message"
+
+ case data = "data"
+
+ }
+
+ public init(data: VerifyOtpResponseData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.success = success
+
+ self.message = message
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode(VerifyOtpResponseData.self, forKey: .data)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Order {
+ /*
+ Model: VerifyOtpResponse
+ Used By: Order
+ */
+
+ class VerifyOtpResponse: Codable {
+
+
+ public var status: Int?
+
+ public var success: Bool?
+
+ public var message: String?
+
+ public var data: VerifyOtpResponseData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case status = "status"
+
+ case success = "success"
+
+ case message = "message"
+
+ case data = "data"
+
+ }
+
+ public init(data: VerifyOtpResponseData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
+
+ self.status = status
+
+ self.success = success
+
+ self.message = message
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode(VerifyOtpResponseData.self, forKey: .data)
+
+ } 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(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Order/VerifyOtpResponseSchemaOrderPlatformModel.swift b/Sources/code/platform/Models/Order/VerifyOtpResponseSchemaOrderPlatformModel.swift
deleted file mode 100644
index 76871f8c4e..0000000000
--- a/Sources/code/platform/Models/Order/VerifyOtpResponseSchemaOrderPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Order {
- /*
- Model: VerifyOtpResponseSchema
- Used By: Order
- */
-
- class VerifyOtpResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var success: Bool?
-
- public var message: String?
-
- public var data: VerifyOtpResponseData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case success = "success"
-
- case message = "message"
-
- case data = "data"
-
- }
-
- public init(data: VerifyOtpResponseData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.success = success
-
- self.message = message
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode(VerifyOtpResponseData.self, forKey: .data)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Order {
- /*
- Model: VerifyOtpResponseSchema
- Used By: Order
- */
-
- class VerifyOtpResponseSchema: Codable {
-
-
- public var status: Int?
-
- public var success: Bool?
-
- public var message: String?
-
- public var data: VerifyOtpResponseData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case status = "status"
-
- case success = "success"
-
- case message = "message"
-
- case data = "data"
-
- }
-
- public init(data: VerifyOtpResponseData? = nil, message: String? = nil, status: Int? = nil, success: Bool? = nil) {
-
- self.status = status
-
- self.success = success
-
- self.message = message
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode(VerifyOtpResponseData.self, forKey: .data)
-
- } 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(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Partner/AddProxyResponsePartnerPlatformModel.swift b/Sources/code/platform/Models/Partner/AddProxyResponsePartnerPlatformModel.swift
new file mode 100644
index 0000000000..9daf3c3057
--- /dev/null
+++ b/Sources/code/platform/Models/Partner/AddProxyResponsePartnerPlatformModel.swift
@@ -0,0 +1,223 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Partner {
+ /*
+ Model: AddProxyResponse
+ Used By: Partner
+ */
+
+ class AddProxyResponse: Codable {
+
+
+ public var id: String?
+
+ public var attachedPath: String?
+
+ public var proxyUrl: String?
+
+ public var companyId: String?
+
+ public var applicationId: String?
+
+ public var extensionId: String?
+
+ public var createdAt: String?
+
+ public var modifiedAt: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case id = "_id"
+
+ case attachedPath = "attached_path"
+
+ case proxyUrl = "proxy_url"
+
+ case companyId = "company_id"
+
+ case applicationId = "application_id"
+
+ case extensionId = "extension_id"
+
+ case createdAt = "created_at"
+
+ case modifiedAt = "modified_at"
+
+ }
+
+ public init(applicationId: String? = nil, attachedPath: String? = nil, companyId: String? = nil, createdAt: String? = nil, extensionId: String? = nil, modifiedAt: String? = nil, proxyUrl: String? = nil, id: String? = nil) {
+
+ self.id = id
+
+ self.attachedPath = attachedPath
+
+ self.proxyUrl = proxyUrl
+
+ self.companyId = companyId
+
+ self.applicationId = applicationId
+
+ self.extensionId = extensionId
+
+ self.createdAt = createdAt
+
+ self.modifiedAt = modifiedAt
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ attachedPath = try container.decode(String.self, forKey: .attachedPath)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ proxyUrl = try container.decode(String.self, forKey: .proxyUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extensionId = try container.decode(String.self, forKey: .extensionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ createdAt = try container.decode(String.self, forKey: .createdAt)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
+
+ } 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(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(attachedPath, forKey: .attachedPath)
+
+
+
+
+ try? container.encodeIfPresent(proxyUrl, forKey: .proxyUrl)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(extensionId, forKey: .extensionId)
+
+
+
+
+ try? container.encodeIfPresent(createdAt, forKey: .createdAt)
+
+
+
+
+ try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Partner/ExtensionProxyPathCreationPartnerPlatformModel.swift b/Sources/code/platform/Models/Partner/ExtensionProxyPathCreationPartnerPlatformModel.swift
deleted file mode 100644
index 948f35152d..0000000000
--- a/Sources/code/platform/Models/Partner/ExtensionProxyPathCreationPartnerPlatformModel.swift
+++ /dev/null
@@ -1,223 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Partner {
- /*
- Model: ExtensionProxyPathCreation
- Used By: Partner
- */
-
- class ExtensionProxyPathCreation: Codable {
-
-
- public var id: String?
-
- public var attachedPath: String?
-
- public var proxyUrl: String?
-
- public var companyId: String?
-
- public var applicationId: String?
-
- public var extensionId: String?
-
- public var createdAt: String?
-
- public var modifiedAt: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case id = "_id"
-
- case attachedPath = "attached_path"
-
- case proxyUrl = "proxy_url"
-
- case companyId = "company_id"
-
- case applicationId = "application_id"
-
- case extensionId = "extension_id"
-
- case createdAt = "created_at"
-
- case modifiedAt = "modified_at"
-
- }
-
- public init(applicationId: String? = nil, attachedPath: String? = nil, companyId: String? = nil, createdAt: String? = nil, extensionId: String? = nil, modifiedAt: String? = nil, proxyUrl: String? = nil, id: String? = nil) {
-
- self.id = id
-
- self.attachedPath = attachedPath
-
- self.proxyUrl = proxyUrl
-
- self.companyId = companyId
-
- self.applicationId = applicationId
-
- self.extensionId = extensionId
-
- self.createdAt = createdAt
-
- self.modifiedAt = modifiedAt
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- attachedPath = try container.decode(String.self, forKey: .attachedPath)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- proxyUrl = try container.decode(String.self, forKey: .proxyUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- companyId = try container.decode(String.self, forKey: .companyId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- createdAt = try container.decode(String.self, forKey: .createdAt)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedAt = try container.decode(String.self, forKey: .modifiedAt)
-
- } 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(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(attachedPath, forKey: .attachedPath)
-
-
-
-
- try? container.encodeIfPresent(proxyUrl, forKey: .proxyUrl)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(createdAt, forKey: .createdAt)
-
-
-
-
- try? container.encodeIfPresent(modifiedAt, forKey: .modifiedAt)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Partner/ExtensionProxyPathDeletePartnerPlatformModel.swift b/Sources/code/platform/Models/Partner/ExtensionProxyPathDeletePartnerPlatformModel.swift
deleted file mode 100644
index b53bee99fd..0000000000
--- a/Sources/code/platform/Models/Partner/ExtensionProxyPathDeletePartnerPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Partner {
- /*
- Model: ExtensionProxyPathDelete
- Used By: Partner
- */
-
- class ExtensionProxyPathDelete: Codable {
-
-
- public var message: String?
-
- public var data: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case data = "data"
-
- }
-
- public init(data: [String: Any]? = nil, message: String? = nil) {
-
- self.message = message
-
- self.data = data
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Partner/RemoveProxyResponsePartnerPlatformModel.swift b/Sources/code/platform/Models/Partner/RemoveProxyResponsePartnerPlatformModel.swift
new file mode 100644
index 0000000000..2ed4421359
--- /dev/null
+++ b/Sources/code/platform/Models/Partner/RemoveProxyResponsePartnerPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Partner {
+ /*
+ Model: RemoveProxyResponse
+ Used By: Partner
+ */
+
+ class RemoveProxyResponse: Codable {
+
+
+ public var message: String?
+
+ public var data: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case data = "data"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String? = nil) {
+
+ self.message = message
+
+ self.data = data
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPCreationPaymentPlatformModel.swift
deleted file mode 100644
index 92f3c528b0..0000000000
--- a/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: AddBeneficiaryDetailsOTPCreation
- Used By: Payment
- */
-
- class AddBeneficiaryDetailsOTPCreation: Codable {
-
-
- public var orderId: String
-
- public var details: BankDetailsForOTP
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case details = "details"
-
- }
-
- public init(details: BankDetailsForOTP, orderId: String) {
-
- self.orderId = orderId
-
- self.details = details
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- details = try container.decode(BankDetailsForOTP.self, forKey: .details)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: AddBeneficiaryDetailsOTPCreation
- Used By: Payment
- */
-
- class AddBeneficiaryDetailsOTPCreation: Codable {
-
-
- public var orderId: String
-
- public var details: BankDetailsForOTP
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case details = "details"
-
- }
-
- public init(details: BankDetailsForOTP, orderId: String) {
-
- self.orderId = orderId
-
- self.details = details
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- details = try container.decode(BankDetailsForOTP.self, forKey: .details)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(details, forKey: .details)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..6807e5dd7f
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/AddBeneficiaryDetailsOTPRequestPaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: AddBeneficiaryDetailsOTPRequest
+ Used By: Payment
+ */
+
+ class AddBeneficiaryDetailsOTPRequest: Codable {
+
+
+ public var orderId: String
+
+ public var details: BankDetailsForOTP
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case details = "details"
+
+ }
+
+ public init(details: BankDetailsForOTP, orderId: String) {
+
+ self.orderId = orderId
+
+ self.details = details
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ details = try container.decode(BankDetailsForOTP.self, forKey: .details)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: AddBeneficiaryDetailsOTPRequest
+ Used By: Payment
+ */
+
+ class AddBeneficiaryDetailsOTPRequest: Codable {
+
+
+ public var orderId: String
+
+ public var details: BankDetailsForOTP
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case details = "details"
+
+ }
+
+ public init(details: BankDetailsForOTP, orderId: String) {
+
+ self.orderId = orderId
+
+ self.details = details
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ details = try container.decode(BankDetailsForOTP.self, forKey: .details)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(details, forKey: .details)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/AggregatorControlRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/AggregatorControlRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..b31a24fd66
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/AggregatorControlRequestPaymentPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: AggregatorControlRequest
+ Used By: Payment
+ */
+
+ class AggregatorControlRequest: Codable {
+
+
+ public var businessUnit: String?
+
+ public var items: [[String: Any]]?
+
+ public var device: String?
+
+ public var version: AggregatorVersionRequestSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case items = "items"
+
+ case device = "device"
+
+ case version = "version"
+
+ }
+
+ public init(businessUnit: String? = nil, device: String? = nil, items: [[String: Any]]? = nil, version: AggregatorVersionRequestSchema? = nil) {
+
+ self.businessUnit = businessUnit
+
+ self.items = items
+
+ self.device = device
+
+ self.version = version
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ device = try container.decode(String.self, forKey: .device)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ version = try container.decode(AggregatorVersionRequestSchema.self, forKey: .version)
+
+ } 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(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(device, forKey: .device)
+
+
+
+
+ try? container.encodeIfPresent(version, forKey: .version)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: AggregatorControlRequest
+ Used By: Payment
+ */
+
+ class AggregatorControlRequest: Codable {
+
+
+ public var businessUnit: String?
+
+ public var items: [[String: Any]]?
+
+ public var device: String?
+
+ public var version: AggregatorVersionRequestSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case items = "items"
+
+ case device = "device"
+
+ case version = "version"
+
+ }
+
+ public init(businessUnit: String? = nil, device: String? = nil, items: [[String: Any]]? = nil, version: AggregatorVersionRequestSchema? = nil) {
+
+ self.businessUnit = businessUnit
+
+ self.items = items
+
+ self.device = device
+
+ self.version = version
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ device = try container.decode(String.self, forKey: .device)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ version = try container.decode(AggregatorVersionRequestSchema.self, forKey: .version)
+
+ } 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(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(device, forKey: .device)
+
+
+
+
+ try? container.encodeIfPresent(version, forKey: .version)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/AggregatorVersionDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/AggregatorVersionDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 29c5f340e5..0000000000
--- a/Sources/code/platform/Models/Payment/AggregatorVersionDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: AggregatorVersionDetails
- Used By: Payment
- */
-
- class AggregatorVersionDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
- public var items: AggregatorVersionItemSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- }
-
- public init(items: AggregatorVersionItemSchema? = nil, message: String, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- items = try container.decode(AggregatorVersionItemSchema.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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: AggregatorVersionDetails
- Used By: Payment
- */
-
- class AggregatorVersionDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
- public var items: AggregatorVersionItemSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case items = "items"
-
- }
-
- public init(items: AggregatorVersionItemSchema? = nil, message: String, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- items = try container.decode(AggregatorVersionItemSchema.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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/AggregatorVersionResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/AggregatorVersionResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..5bc28ff43a
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/AggregatorVersionResponsePaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: AggregatorVersionResponse
+ Used By: Payment
+ */
+
+ class AggregatorVersionResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+ public var items: AggregatorVersionItemSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ }
+
+ public init(items: AggregatorVersionItemSchema? = nil, message: String, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ items = try container.decode(AggregatorVersionItemSchema.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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: AggregatorVersionResponse
+ Used By: Payment
+ */
+
+ class AggregatorVersionResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+ public var items: AggregatorVersionItemSchema?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case items = "items"
+
+ }
+
+ public init(items: AggregatorVersionItemSchema? = nil, message: String, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ items = try container.decode(AggregatorVersionItemSchema.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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CODChargesLimitsDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CODChargesLimitsDetailsPaymentPlatformModel.swift
deleted file mode 100644
index d64f381c64..0000000000
--- a/Sources/code/platform/Models/Payment/CODChargesLimitsDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CODChargesLimitsDetails
- Used By: Payment
- */
-
- class CODChargesLimitsDetails: Codable {
-
-
- public var maxCartValue: Double?
-
- public var minCartValue: Double?
-
- public var codCharge: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case maxCartValue = "max_cart_value"
-
- case minCartValue = "min_cart_value"
-
- case codCharge = "cod_charge"
-
- }
-
- public init(codCharge: Double? = nil, maxCartValue: Double? = nil, minCartValue: Double? = nil) {
-
- self.maxCartValue = maxCartValue
-
- self.minCartValue = minCartValue
-
- self.codCharge = codCharge
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- maxCartValue = try container.decode(Double.self, forKey: .maxCartValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- minCartValue = try container.decode(Double.self, forKey: .minCartValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- codCharge = try container.decode(Double.self, forKey: .codCharge)
-
- } 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(maxCartValue, forKey: .maxCartValue)
-
-
-
-
- try? container.encodeIfPresent(minCartValue, forKey: .minCartValue)
-
-
-
-
- try? container.encodeIfPresent(codCharge, forKey: .codCharge)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CODChargesLimitsDetails
- Used By: Payment
- */
-
- class CODChargesLimitsDetails: Codable {
-
-
- public var maxCartValue: Double?
-
- public var minCartValue: Double?
-
- public var codCharge: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case maxCartValue = "max_cart_value"
-
- case minCartValue = "min_cart_value"
-
- case codCharge = "cod_charge"
-
- }
-
- public init(codCharge: Double? = nil, maxCartValue: Double? = nil, minCartValue: Double? = nil) {
-
- self.maxCartValue = maxCartValue
-
- self.minCartValue = minCartValue
-
- self.codCharge = codCharge
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- maxCartValue = try container.decode(Double.self, forKey: .maxCartValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- minCartValue = try container.decode(Double.self, forKey: .minCartValue)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- codCharge = try container.decode(Double.self, forKey: .codCharge)
-
- } 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(maxCartValue, forKey: .maxCartValue)
-
-
-
-
- try? container.encodeIfPresent(minCartValue, forKey: .minCartValue)
-
-
-
-
- try? container.encodeIfPresent(codCharge, forKey: .codCharge)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CODChargesLimitsResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CODChargesLimitsResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..bad37b3941
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CODChargesLimitsResponsePaymentPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CODChargesLimitsResponse
+ Used By: Payment
+ */
+
+ class CODChargesLimitsResponse: Codable {
+
+
+ public var maxCartValue: Double?
+
+ public var minCartValue: Double?
+
+ public var codCharge: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case maxCartValue = "max_cart_value"
+
+ case minCartValue = "min_cart_value"
+
+ case codCharge = "cod_charge"
+
+ }
+
+ public init(codCharge: Double? = nil, maxCartValue: Double? = nil, minCartValue: Double? = nil) {
+
+ self.maxCartValue = maxCartValue
+
+ self.minCartValue = minCartValue
+
+ self.codCharge = codCharge
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ maxCartValue = try container.decode(Double.self, forKey: .maxCartValue)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ minCartValue = try container.decode(Double.self, forKey: .minCartValue)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ codCharge = try container.decode(Double.self, forKey: .codCharge)
+
+ } 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(maxCartValue, forKey: .maxCartValue)
+
+
+
+
+ try? container.encodeIfPresent(minCartValue, forKey: .minCartValue)
+
+
+
+
+ try? container.encodeIfPresent(codCharge, forKey: .codCharge)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CODChargesLimitsResponse
+ Used By: Payment
+ */
+
+ class CODChargesLimitsResponse: Codable {
+
+
+ public var maxCartValue: Double?
+
+ public var minCartValue: Double?
+
+ public var codCharge: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case maxCartValue = "max_cart_value"
+
+ case minCartValue = "min_cart_value"
+
+ case codCharge = "cod_charge"
+
+ }
+
+ public init(codCharge: Double? = nil, maxCartValue: Double? = nil, minCartValue: Double? = nil) {
+
+ self.maxCartValue = maxCartValue
+
+ self.minCartValue = minCartValue
+
+ self.codCharge = codCharge
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ maxCartValue = try container.decode(Double.self, forKey: .maxCartValue)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ minCartValue = try container.decode(Double.self, forKey: .minCartValue)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ codCharge = try container.decode(Double.self, forKey: .codCharge)
+
+ } 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(maxCartValue, forKey: .maxCartValue)
+
+
+
+
+ try? container.encodeIfPresent(minCartValue, forKey: .minCartValue)
+
+
+
+
+ try? container.encodeIfPresent(codCharge, forKey: .codCharge)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkCreationPaymentPlatformModel.swift
deleted file mode 100644
index 22e0d3a769..0000000000
--- a/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CancelOrResendPaymentLinkCreation
- Used By: Payment
- */
-
- class CancelOrResendPaymentLinkCreation: Codable {
-
-
- public var paymentLinkId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(paymentLinkId: String) {
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CancelOrResendPaymentLinkCreation
- Used By: Payment
- */
-
- class CancelOrResendPaymentLinkCreation: Codable {
-
-
- public var paymentLinkId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(paymentLinkId: String) {
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..b04fc4b4f7
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CancelOrResendPaymentLinkRequestPaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CancelOrResendPaymentLinkRequest
+ Used By: Payment
+ */
+
+ class CancelOrResendPaymentLinkRequest: Codable {
+
+
+ public var paymentLinkId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(paymentLinkId: String) {
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CancelOrResendPaymentLinkRequest
+ Used By: Payment
+ */
+
+ class CancelOrResendPaymentLinkRequest: Codable {
+
+
+ public var paymentLinkId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(paymentLinkId: String) {
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CancelPaymentLinkDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CancelPaymentLinkDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 7bd74c836a..0000000000
--- a/Sources/code/platform/Models/Payment/CancelPaymentLinkDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CancelPaymentLinkDetails
- Used By: Payment
- */
-
- class CancelPaymentLinkDetails: Codable {
-
-
- public var statusCode: Int
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CancelPaymentLinkDetails
- Used By: Payment
- */
-
- class CancelPaymentLinkDetails: Codable {
-
-
- public var statusCode: Int
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CancelPaymentLinkResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CancelPaymentLinkResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..c4edfe014c
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CancelPaymentLinkResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CancelPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class CancelPaymentLinkResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CancelPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class CancelPaymentLinkResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CartDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CartDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 8c0912b035..0000000000
--- a/Sources/code/platform/Models/Payment/CartDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CartDetails
- Used By: Payment
- */
-
- class CartDetails: Codable {
-
-
- public var items: [String: Any]
-
- public var articles: [[String: Any]]
-
- public var cartValue: Double
-
- public var totalQuantity: Int?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case articles = "articles"
-
- case cartValue = "cart_value"
-
- case totalQuantity = "total_quantity"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(articles: [[String: Any]], cartValue: Double, customCartMeta: [String: Any]? = nil, items: [String: Any], totalQuantity: Int? = nil) {
-
- self.items = items
-
- self.articles = articles
-
- self.cartValue = cartValue
-
- self.totalQuantity = totalQuantity
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([String: Any].self, forKey: .items)
-
-
-
-
- articles = try container.decode([[String: Any]].self, forKey: .articles)
-
-
-
-
- cartValue = try container.decode(Double.self, forKey: .cartValue)
-
-
-
-
- do {
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(articles, forKey: .articles)
-
-
-
-
- try? container.encodeIfPresent(cartValue, forKey: .cartValue)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CartDetails
- Used By: Payment
- */
-
- class CartDetails: Codable {
-
-
- public var items: [String: Any]
-
- public var articles: [[String: Any]]
-
- public var cartValue: Double
-
- public var totalQuantity: Int?
-
- public var customCartMeta: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case articles = "articles"
-
- case cartValue = "cart_value"
-
- case totalQuantity = "total_quantity"
-
- case customCartMeta = "custom_cart_meta"
-
- }
-
- public init(articles: [[String: Any]], cartValue: Double, customCartMeta: [String: Any]? = nil, items: [String: Any], totalQuantity: Int? = nil) {
-
- self.items = items
-
- self.articles = articles
-
- self.cartValue = cartValue
-
- self.totalQuantity = totalQuantity
-
- self.customCartMeta = customCartMeta
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([String: Any].self, forKey: .items)
-
-
-
-
- articles = try container.decode([[String: Any]].self, forKey: .articles)
-
-
-
-
- cartValue = try container.decode(Double.self, forKey: .cartValue)
-
-
-
-
- do {
- totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
-
- } 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(articles, forKey: .articles)
-
-
-
-
- try? container.encodeIfPresent(cartValue, forKey: .cartValue)
-
-
-
-
- try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
-
-
-
-
- try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CartDetailsSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CartDetailsSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..e46dac27e8
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CartDetailsSerializerPaymentPlatformModel.swift
@@ -0,0 +1,258 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CartDetailsSerializer
+ Used By: Payment
+ */
+
+ class CartDetailsSerializer: Codable {
+
+
+ public var items: [String: Any]
+
+ public var articles: [[String: Any]]
+
+ public var cartValue: Double
+
+ public var totalQuantity: Int?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case articles = "articles"
+
+ case cartValue = "cart_value"
+
+ case totalQuantity = "total_quantity"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(articles: [[String: Any]], cartValue: Double, customCartMeta: [String: Any]? = nil, items: [String: Any], totalQuantity: Int? = nil) {
+
+ self.items = items
+
+ self.articles = articles
+
+ self.cartValue = cartValue
+
+ self.totalQuantity = totalQuantity
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([String: Any].self, forKey: .items)
+
+
+
+
+ articles = try container.decode([[String: Any]].self, forKey: .articles)
+
+
+
+
+ cartValue = try container.decode(Double.self, forKey: .cartValue)
+
+
+
+
+ do {
+ totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(articles, forKey: .articles)
+
+
+
+
+ try? container.encodeIfPresent(cartValue, forKey: .cartValue)
+
+
+
+
+ try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
+
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CartDetailsSerializer
+ Used By: Payment
+ */
+
+ class CartDetailsSerializer: Codable {
+
+
+ public var items: [String: Any]
+
+ public var articles: [[String: Any]]
+
+ public var cartValue: Double
+
+ public var totalQuantity: Int?
+
+ public var customCartMeta: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case articles = "articles"
+
+ case cartValue = "cart_value"
+
+ case totalQuantity = "total_quantity"
+
+ case customCartMeta = "custom_cart_meta"
+
+ }
+
+ public init(articles: [[String: Any]], cartValue: Double, customCartMeta: [String: Any]? = nil, items: [String: Any], totalQuantity: Int? = nil) {
+
+ self.items = items
+
+ self.articles = articles
+
+ self.cartValue = cartValue
+
+ self.totalQuantity = totalQuantity
+
+ self.customCartMeta = customCartMeta
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([String: Any].self, forKey: .items)
+
+
+
+
+ articles = try container.decode([[String: Any]].self, forKey: .articles)
+
+
+
+
+ cartValue = try container.decode(Double.self, forKey: .cartValue)
+
+
+
+
+ do {
+ totalQuantity = try container.decode(Int.self, forKey: .totalQuantity)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customCartMeta = try container.decode([String: Any].self, forKey: .customCartMeta)
+
+ } 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(articles, forKey: .articles)
+
+
+
+
+ try? container.encodeIfPresent(cartValue, forKey: .cartValue)
+
+
+
+
+ try? container.encodeIfPresent(totalQuantity, forKey: .totalQuantity)
+
+
+
+
+ try? container.encodeIfPresent(customCartMeta, forKey: .customCartMeta)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CreatePaymentLinkCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CreatePaymentLinkCreationPaymentPlatformModel.swift
deleted file mode 100644
index 61ee7fce3c..0000000000
--- a/Sources/code/platform/Models/Payment/CreatePaymentLinkCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,414 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CreatePaymentLinkCreation
- Used By: Payment
- */
-
- class CreatePaymentLinkCreation: Codable {
-
-
- public var email: String
-
- public var amount: Double
-
- public var mobileNumber: String
-
- public var countryPhoneCode: String?
-
- public var description: String?
-
- public var meta: CreatePaymentLinkMeta
-
- public var externalOrderId: String
-
- public var successRedirectionUrl: String?
-
- public var failureRedirectionUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case amount = "amount"
-
- case mobileNumber = "mobile_number"
-
- case countryPhoneCode = "country_phone_code"
-
- case description = "description"
-
- case meta = "meta"
-
- case externalOrderId = "external_order_id"
-
- case successRedirectionUrl = "success_redirection_url"
-
- case failureRedirectionUrl = "failure_redirection_url"
-
- }
-
- public init(amount: Double, countryPhoneCode: String? = nil, description: String? = nil, email: String, externalOrderId: String, failureRedirectionUrl: String? = nil, meta: CreatePaymentLinkMeta, mobileNumber: String, successRedirectionUrl: String? = nil) {
-
- self.email = email
-
- self.amount = amount
-
- self.mobileNumber = mobileNumber
-
- self.countryPhoneCode = countryPhoneCode
-
- self.description = description
-
- self.meta = meta
-
- self.externalOrderId = externalOrderId
-
- self.successRedirectionUrl = successRedirectionUrl
-
- self.failureRedirectionUrl = failureRedirectionUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
-
-
-
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } 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 {
-
- }
-
-
-
- meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
-
-
-
-
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
-
-
-
- do {
- successRedirectionUrl = try container.decode(String.self, forKey: .successRedirectionUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failureRedirectionUrl = try container.decode(String.self, forKey: .failureRedirectionUrl)
-
- } 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(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
-
-
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
-
- try? container.encodeIfPresent(successRedirectionUrl, forKey: .successRedirectionUrl)
-
-
-
-
- try? container.encodeIfPresent(failureRedirectionUrl, forKey: .failureRedirectionUrl)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CreatePaymentLinkCreation
- Used By: Payment
- */
-
- class CreatePaymentLinkCreation: Codable {
-
-
- public var email: String
-
- public var amount: Double
-
- public var mobileNumber: String
-
- public var countryPhoneCode: String?
-
- public var description: String?
-
- public var meta: CreatePaymentLinkMeta
-
- public var externalOrderId: String
-
- public var successRedirectionUrl: String?
-
- public var failureRedirectionUrl: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case amount = "amount"
-
- case mobileNumber = "mobile_number"
-
- case countryPhoneCode = "country_phone_code"
-
- case description = "description"
-
- case meta = "meta"
-
- case externalOrderId = "external_order_id"
-
- case successRedirectionUrl = "success_redirection_url"
-
- case failureRedirectionUrl = "failure_redirection_url"
-
- }
-
- public init(amount: Double, countryPhoneCode: String? = nil, description: String? = nil, email: String, externalOrderId: String, failureRedirectionUrl: String? = nil, meta: CreatePaymentLinkMeta, mobileNumber: String, successRedirectionUrl: String? = nil) {
-
- self.email = email
-
- self.amount = amount
-
- self.mobileNumber = mobileNumber
-
- self.countryPhoneCode = countryPhoneCode
-
- self.description = description
-
- self.meta = meta
-
- self.externalOrderId = externalOrderId
-
- self.successRedirectionUrl = successRedirectionUrl
-
- self.failureRedirectionUrl = failureRedirectionUrl
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- amount = try container.decode(Double.self, forKey: .amount)
-
-
-
-
- mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
-
-
-
-
- do {
- countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
-
- } 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 {
-
- }
-
-
-
- meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
-
-
-
-
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
-
-
-
- do {
- successRedirectionUrl = try container.decode(String.self, forKey: .successRedirectionUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- failureRedirectionUrl = try container.decode(String.self, forKey: .failureRedirectionUrl)
-
- } 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(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
-
-
-
-
- try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
-
-
-
-
- try? container.encodeIfPresent(description, forKey: .description)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
-
- try? container.encodeIfPresent(successRedirectionUrl, forKey: .successRedirectionUrl)
-
-
-
-
- try? container.encodeIfPresent(failureRedirectionUrl, forKey: .failureRedirectionUrl)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CreatePaymentLinkDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CreatePaymentLinkDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 0cd06ac522..0000000000
--- a/Sources/code/platform/Models/Payment/CreatePaymentLinkDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: CreatePaymentLinkDetails
- Used By: Payment
- */
-
- class CreatePaymentLinkDetails: Codable {
-
-
- public var message: String
-
- public var statusCode: Int
-
- public var paymentLinkUrl: String?
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
- public var paymentLinkId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case statusCode = "status_code"
-
- case paymentLinkUrl = "payment_link_url"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.statusCode = statusCode
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: CreatePaymentLinkDetails
- Used By: Payment
- */
-
- class CreatePaymentLinkDetails: Codable {
-
-
- public var message: String
-
- public var statusCode: Int
-
- public var paymentLinkUrl: String?
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
- public var paymentLinkId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case statusCode = "status_code"
-
- case paymentLinkUrl = "payment_link_url"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- case paymentLinkId = "payment_link_id"
-
- }
-
- public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.statusCode = statusCode
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- self.paymentLinkId = paymentLinkId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/CreatePaymentLinkRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CreatePaymentLinkRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..ac9931afd5
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CreatePaymentLinkRequestPaymentPlatformModel.swift
@@ -0,0 +1,322 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CreatePaymentLinkRequest
+ Used By: Payment
+ */
+
+ class CreatePaymentLinkRequest: Codable {
+
+
+ public var email: String
+
+ public var amount: Double
+
+ public var mobileNumber: String
+
+ public var countryPhoneCode: String?
+
+ public var description: String?
+
+ public var meta: CreatePaymentLinkMeta
+
+ public var externalOrderId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case amount = "amount"
+
+ case mobileNumber = "mobile_number"
+
+ case countryPhoneCode = "country_phone_code"
+
+ case description = "description"
+
+ case meta = "meta"
+
+ case externalOrderId = "external_order_id"
+
+ }
+
+ public init(amount: Double, countryPhoneCode: String? = nil, description: String? = nil, email: String, externalOrderId: String, meta: CreatePaymentLinkMeta, mobileNumber: String) {
+
+ self.email = email
+
+ self.amount = amount
+
+ self.mobileNumber = mobileNumber
+
+ self.countryPhoneCode = countryPhoneCode
+
+ self.description = description
+
+ self.meta = meta
+
+ self.externalOrderId = externalOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ amount = try container.decode(Double.self, forKey: .amount)
+
+
+
+
+ mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
+
+
+
+
+ do {
+ countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
+
+ } 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 {
+
+ }
+
+
+
+ meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
+
+
+
+
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
+
+
+
+
+ try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CreatePaymentLinkRequest
+ Used By: Payment
+ */
+
+ class CreatePaymentLinkRequest: Codable {
+
+
+ public var email: String
+
+ public var amount: Double
+
+ public var mobileNumber: String
+
+ public var countryPhoneCode: String?
+
+ public var description: String?
+
+ public var meta: CreatePaymentLinkMeta
+
+ public var externalOrderId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case amount = "amount"
+
+ case mobileNumber = "mobile_number"
+
+ case countryPhoneCode = "country_phone_code"
+
+ case description = "description"
+
+ case meta = "meta"
+
+ case externalOrderId = "external_order_id"
+
+ }
+
+ public init(amount: Double, countryPhoneCode: String? = nil, description: String? = nil, email: String, externalOrderId: String, meta: CreatePaymentLinkMeta, mobileNumber: String) {
+
+ self.email = email
+
+ self.amount = amount
+
+ self.mobileNumber = mobileNumber
+
+ self.countryPhoneCode = countryPhoneCode
+
+ self.description = description
+
+ self.meta = meta
+
+ self.externalOrderId = externalOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ amount = try container.decode(Double.self, forKey: .amount)
+
+
+
+
+ mobileNumber = try container.decode(String.self, forKey: .mobileNumber)
+
+
+
+
+ do {
+ countryPhoneCode = try container.decode(String.self, forKey: .countryPhoneCode)
+
+ } 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 {
+
+ }
+
+
+
+ meta = try container.decode(CreatePaymentLinkMeta.self, forKey: .meta)
+
+
+
+
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(mobileNumber, forKey: .mobileNumber)
+
+
+
+
+ try? container.encodeIfPresent(countryPhoneCode, forKey: .countryPhoneCode)
+
+
+
+
+ try? container.encodeIfPresent(description, forKey: .description)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/CreatePaymentLinkResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/CreatePaymentLinkResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..7a299cb939
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/CreatePaymentLinkResponsePaymentPlatformModel.swift
@@ -0,0 +1,304 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: CreatePaymentLinkResponse
+ Used By: Payment
+ */
+
+ class CreatePaymentLinkResponse: Codable {
+
+
+ public var message: String
+
+ public var statusCode: Int
+
+ public var paymentLinkUrl: String?
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+ public var paymentLinkId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case statusCode = "status_code"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.statusCode = statusCode
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: CreatePaymentLinkResponse
+ Used By: Payment
+ */
+
+ class CreatePaymentLinkResponse: Codable {
+
+
+ public var message: String
+
+ public var statusCode: Int
+
+ public var paymentLinkUrl: String?
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+ public var paymentLinkId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case statusCode = "status_code"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ case paymentLinkId = "payment_link_id"
+
+ }
+
+ public init(message: String, paymentLinkId: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.statusCode = statusCode
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ self.paymentLinkId = paymentLinkId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/DeletePayoutDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/DeletePayoutDetailsPaymentPlatformModel.swift
deleted file mode 100644
index ba1d7f8821..0000000000
--- a/Sources/code/platform/Models/Payment/DeletePayoutDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: DeletePayoutDetails
- Used By: Payment
- */
-
- class DeletePayoutDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: DeletePayoutDetails
- Used By: Payment
- */
-
- class DeletePayoutDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/DeletePayoutResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/DeletePayoutResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..b53a88a8cd
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/DeletePayoutResponsePaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: DeletePayoutResponse
+ Used By: Payment
+ */
+
+ class DeletePayoutResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: DeletePayoutResponse
+ Used By: Payment
+ */
+
+ class DeletePayoutResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodDetailsPaymentPlatformModel.swift
deleted file mode 100644
index c20a2da58f..0000000000
--- a/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: DeleteSubscriptionPaymentMethodDetails
- Used By: Payment
- */
-
- class DeleteSubscriptionPaymentMethodDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: DeleteSubscriptionPaymentMethodDetails
- Used By: Payment
- */
-
- class DeleteSubscriptionPaymentMethodDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..917e5c28d9
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/DeleteSubscriptionPaymentMethodResponsePaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: DeleteSubscriptionPaymentMethodResponse
+ Used By: Payment
+ */
+
+ class DeleteSubscriptionPaymentMethodResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: DeleteSubscriptionPaymentMethodResponse
+ Used By: Payment
+ */
+
+ class DeleteSubscriptionPaymentMethodResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcAddCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcAddCreationPaymentPlatformModel.swift
deleted file mode 100644
index 049b0cfc21..0000000000
--- a/Sources/code/platform/Models/Payment/EdcAddCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcAddCreation
- Used By: Payment
- */
-
- class EdcAddCreation: Codable {
-
-
- public var edcModel: String
-
- public var storeId: Int
-
- public var aggregatorId: Int
-
- public var edcDeviceSerialNo: String
-
- public var terminalSerialNo: String
-
- public var deviceTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case edcModel = "edc_model"
-
- case storeId = "store_id"
-
- case aggregatorId = "aggregator_id"
-
- case edcDeviceSerialNo = "edc_device_serial_no"
-
- case terminalSerialNo = "terminal_serial_no"
-
- case deviceTag = "device_tag"
-
- }
-
- public init(aggregatorId: Int, deviceTag: String? = nil, edcDeviceSerialNo: String, edcModel: String, storeId: Int, terminalSerialNo: String) {
-
- self.edcModel = edcModel
-
- self.storeId = storeId
-
- self.aggregatorId = aggregatorId
-
- self.edcDeviceSerialNo = edcDeviceSerialNo
-
- self.terminalSerialNo = terminalSerialNo
-
- self.deviceTag = deviceTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- edcModel = try container.decode(String.self, forKey: .edcModel)
-
-
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
-
-
-
-
- edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
-
-
-
-
- terminalSerialNo = try container.decode(String.self, forKey: .terminalSerialNo)
-
-
-
-
- do {
- deviceTag = try container.decode(String.self, forKey: .deviceTag)
-
- } 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(edcModel, forKey: .edcModel)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
-
-
-
-
- try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
-
-
-
-
- try? container.encodeIfPresent(terminalSerialNo, forKey: .terminalSerialNo)
-
-
-
-
- try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcAddCreation
- Used By: Payment
- */
-
- class EdcAddCreation: Codable {
-
-
- public var edcModel: String
-
- public var storeId: Int
-
- public var aggregatorId: Int
-
- public var edcDeviceSerialNo: String
-
- public var terminalSerialNo: String
-
- public var deviceTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case edcModel = "edc_model"
-
- case storeId = "store_id"
-
- case aggregatorId = "aggregator_id"
-
- case edcDeviceSerialNo = "edc_device_serial_no"
-
- case terminalSerialNo = "terminal_serial_no"
-
- case deviceTag = "device_tag"
-
- }
-
- public init(aggregatorId: Int, deviceTag: String? = nil, edcDeviceSerialNo: String, edcModel: String, storeId: Int, terminalSerialNo: String) {
-
- self.edcModel = edcModel
-
- self.storeId = storeId
-
- self.aggregatorId = aggregatorId
-
- self.edcDeviceSerialNo = edcDeviceSerialNo
-
- self.terminalSerialNo = terminalSerialNo
-
- self.deviceTag = deviceTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- edcModel = try container.decode(String.self, forKey: .edcModel)
-
-
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
-
-
-
-
- edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
-
-
-
-
- terminalSerialNo = try container.decode(String.self, forKey: .terminalSerialNo)
-
-
-
-
- do {
- deviceTag = try container.decode(String.self, forKey: .deviceTag)
-
- } 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(edcModel, forKey: .edcModel)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
-
-
-
-
- try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
-
-
-
-
- try? container.encodeIfPresent(terminalSerialNo, forKey: .terminalSerialNo)
-
-
-
-
- try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcAddRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcAddRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..fe0d173c43
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcAddRequestPaymentPlatformModel.swift
@@ -0,0 +1,276 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcAddRequest
+ Used By: Payment
+ */
+
+ class EdcAddRequest: Codable {
+
+
+ public var edcModel: String
+
+ public var storeId: Int
+
+ public var aggregatorId: Int
+
+ public var edcDeviceSerialNo: String
+
+ public var terminalSerialNo: String
+
+ public var deviceTag: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case edcModel = "edc_model"
+
+ case storeId = "store_id"
+
+ case aggregatorId = "aggregator_id"
+
+ case edcDeviceSerialNo = "edc_device_serial_no"
+
+ case terminalSerialNo = "terminal_serial_no"
+
+ case deviceTag = "device_tag"
+
+ }
+
+ public init(aggregatorId: Int, deviceTag: String? = nil, edcDeviceSerialNo: String, edcModel: String, storeId: Int, terminalSerialNo: String) {
+
+ self.edcModel = edcModel
+
+ self.storeId = storeId
+
+ self.aggregatorId = aggregatorId
+
+ self.edcDeviceSerialNo = edcDeviceSerialNo
+
+ self.terminalSerialNo = terminalSerialNo
+
+ self.deviceTag = deviceTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ edcModel = try container.decode(String.self, forKey: .edcModel)
+
+
+
+
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+
+
+
+ aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
+
+
+
+
+ edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
+
+
+
+
+ terminalSerialNo = try container.decode(String.self, forKey: .terminalSerialNo)
+
+
+
+
+ do {
+ deviceTag = try container.decode(String.self, forKey: .deviceTag)
+
+ } 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(edcModel, forKey: .edcModel)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
+
+
+
+
+ try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(terminalSerialNo, forKey: .terminalSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcAddRequest
+ Used By: Payment
+ */
+
+ class EdcAddRequest: Codable {
+
+
+ public var edcModel: String
+
+ public var storeId: Int
+
+ public var aggregatorId: Int
+
+ public var edcDeviceSerialNo: String
+
+ public var terminalSerialNo: String
+
+ public var deviceTag: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case edcModel = "edc_model"
+
+ case storeId = "store_id"
+
+ case aggregatorId = "aggregator_id"
+
+ case edcDeviceSerialNo = "edc_device_serial_no"
+
+ case terminalSerialNo = "terminal_serial_no"
+
+ case deviceTag = "device_tag"
+
+ }
+
+ public init(aggregatorId: Int, deviceTag: String? = nil, edcDeviceSerialNo: String, edcModel: String, storeId: Int, terminalSerialNo: String) {
+
+ self.edcModel = edcModel
+
+ self.storeId = storeId
+
+ self.aggregatorId = aggregatorId
+
+ self.edcDeviceSerialNo = edcDeviceSerialNo
+
+ self.terminalSerialNo = terminalSerialNo
+
+ self.deviceTag = deviceTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ edcModel = try container.decode(String.self, forKey: .edcModel)
+
+
+
+
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+
+
+
+ aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
+
+
+
+
+ edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
+
+
+
+
+ terminalSerialNo = try container.decode(String.self, forKey: .terminalSerialNo)
+
+
+
+
+ do {
+ deviceTag = try container.decode(String.self, forKey: .deviceTag)
+
+ } 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(edcModel, forKey: .edcModel)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
+
+
+
+
+ try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(terminalSerialNo, forKey: .terminalSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 5aa9c91fae..0000000000
--- a/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcAggregatorAndModelListDetails
- Used By: Payment
- */
-
- class EdcAggregatorAndModelListDetails: Codable {
-
-
- public var data: [EdcModelData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [EdcModelData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([EdcModelData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcAggregatorAndModelListDetails
- Used By: Payment
- */
-
- class EdcAggregatorAndModelListDetails: Codable {
-
-
- public var data: [EdcModelData]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [EdcModelData], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([EdcModelData].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..b8c14f214d
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcAggregatorAndModelListResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcAggregatorAndModelListResponse
+ Used By: Payment
+ */
+
+ class EdcAggregatorAndModelListResponse: Codable {
+
+
+ public var data: [EdcModelData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [EdcModelData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([EdcModelData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcAggregatorAndModelListResponse
+ Used By: Payment
+ */
+
+ class EdcAggregatorAndModelListResponse: Codable {
+
+
+ public var data: [EdcModelData]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [EdcModelData], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([EdcModelData].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceAddDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceAddDetailsPaymentPlatformModel.swift
deleted file mode 100644
index e42f852f47..0000000000
--- a/Sources/code/platform/Models/Payment/EdcDeviceAddDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcDeviceAddDetails
- Used By: Payment
- */
-
- class EdcDeviceAddDetails: Codable {
-
-
- public var data: EdcDevice
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: EdcDevice, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(EdcDevice.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcDeviceAddDetails
- Used By: Payment
- */
-
- class EdcDeviceAddDetails: Codable {
-
-
- public var data: EdcDevice
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: EdcDevice, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(EdcDevice.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceAddResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceAddResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..2f85ab7a65
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcDeviceAddResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcDeviceAddResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceAddResponse: Codable {
+
+
+ public var data: EdcDevice
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: EdcDevice, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(EdcDevice.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcDeviceAddResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceAddResponse: Codable {
+
+
+ public var data: EdcDevice
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: EdcDevice, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(EdcDevice.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceDetailsPaymentPlatformModel.swift
deleted file mode 100644
index e1b54f891b..0000000000
--- a/Sources/code/platform/Models/Payment/EdcDeviceDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcDeviceDetails
- Used By: Payment
- */
-
- class EdcDeviceDetails: Codable {
-
-
- public var data: EdcDevice
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: EdcDevice, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(EdcDevice.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcDeviceDetails
- Used By: Payment
- */
-
- class EdcDeviceDetails: Codable {
-
-
- public var data: EdcDevice
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: EdcDevice, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(EdcDevice.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceDetailsResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceDetailsResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..c9ec070246
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcDeviceDetailsResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcDeviceDetailsResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceDetailsResponse: Codable {
+
+
+ public var data: EdcDevice
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: EdcDevice, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(EdcDevice.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcDeviceDetailsResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceDetailsResponse: Codable {
+
+
+ public var data: EdcDevice
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: EdcDevice, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(EdcDevice.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceListDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceListDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 73c25b104a..0000000000
--- a/Sources/code/platform/Models/Payment/EdcDeviceListDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcDeviceListDetails
- Used By: Payment
- */
-
- class EdcDeviceListDetails: Codable {
-
-
- public var items: [EdcDevice]
-
- public var page: Page
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case success = "success"
-
- }
-
- public init(items: [EdcDevice], page: Page, success: Bool) {
-
- self.items = items
-
- self.page = page
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([EdcDevice].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- 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(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcDeviceListDetails
- Used By: Payment
- */
-
- class EdcDeviceListDetails: Codable {
-
-
- public var items: [EdcDevice]
-
- public var page: Page
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- case success = "success"
-
- }
-
- public init(items: [EdcDevice], page: Page, success: Bool) {
-
- self.items = items
-
- self.page = page
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([EdcDevice].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- 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(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceListResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceListResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..3761ef5bbe
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcDeviceListResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcDeviceListResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceListResponse: Codable {
+
+
+ public var items: [EdcDevice]
+
+ public var page: Page
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case success = "success"
+
+ }
+
+ public init(items: [EdcDevice], page: Page, success: Bool) {
+
+ self.items = items
+
+ self.page = page
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([EdcDevice].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ 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(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcDeviceListResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceListResponse: Codable {
+
+
+ public var items: [EdcDevice]
+
+ public var page: Page
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ case success = "success"
+
+ }
+
+ public init(items: [EdcDevice], page: Page, success: Bool) {
+
+ self.items = items
+
+ self.page = page
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([EdcDevice].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ 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(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceStatsDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceStatsDetailsPaymentPlatformModel.swift
deleted file mode 100644
index b6c273e57b..0000000000
--- a/Sources/code/platform/Models/Payment/EdcDeviceStatsDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcDeviceStatsDetails
- Used By: Payment
- */
-
- class EdcDeviceStatsDetails: Codable {
-
-
- public var statistics: StatisticsData
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statistics = "statistics"
-
- case success = "success"
-
- }
-
- public init(statistics: StatisticsData, success: Bool) {
-
- self.statistics = statistics
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statistics = try container.decode(StatisticsData.self, forKey: .statistics)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statistics, forKey: .statistics)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcDeviceStatsDetails
- Used By: Payment
- */
-
- class EdcDeviceStatsDetails: Codable {
-
-
- public var statistics: StatisticsData
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statistics = "statistics"
-
- case success = "success"
-
- }
-
- public init(statistics: StatisticsData, success: Bool) {
-
- self.statistics = statistics
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statistics = try container.decode(StatisticsData.self, forKey: .statistics)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statistics, forKey: .statistics)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceStatsResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceStatsResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..cf0b6b59c3
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcDeviceStatsResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcDeviceStatsResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceStatsResponse: Codable {
+
+
+ public var statistics: StatisticsData
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statistics = "statistics"
+
+ case success = "success"
+
+ }
+
+ public init(statistics: StatisticsData, success: Bool) {
+
+ self.statistics = statistics
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statistics = try container.decode(StatisticsData.self, forKey: .statistics)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statistics, forKey: .statistics)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcDeviceStatsResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceStatsResponse: Codable {
+
+
+ public var statistics: StatisticsData
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statistics = "statistics"
+
+ case success = "success"
+
+ }
+
+ public init(statistics: StatisticsData, success: Bool) {
+
+ self.statistics = statistics
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statistics = try container.decode(StatisticsData.self, forKey: .statistics)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statistics, forKey: .statistics)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceUpdateDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceUpdateDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 408e45329b..0000000000
--- a/Sources/code/platform/Models/Payment/EdcDeviceUpdateDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcDeviceUpdateDetails
- Used By: Payment
- */
-
- class EdcDeviceUpdateDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcDeviceUpdateDetails
- Used By: Payment
- */
-
- class EdcDeviceUpdateDetails: Codable {
-
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- }
-
- public init(success: Bool) {
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcDeviceUpdateResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcDeviceUpdateResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..554896f3fe
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcDeviceUpdateResponsePaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcDeviceUpdateResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceUpdateResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcDeviceUpdateResponse
+ Used By: Payment
+ */
+
+ class EdcDeviceUpdateResponse: Codable {
+
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool) {
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/EdcUpdatePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcUpdatePaymentPlatformModel.swift
deleted file mode 100644
index f36de3534f..0000000000
--- a/Sources/code/platform/Models/Payment/EdcUpdatePaymentPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: EdcUpdate
- Used By: Payment
- */
-
- class EdcUpdate: Codable {
-
-
- public var edcModel: String?
-
- public var storeId: Int?
-
- public var aggregatorId: Int?
-
- public var edcDeviceSerialNo: String?
-
- public var isActive: Bool?
-
- public var merchantStorePosCode: String?
-
- public var deviceTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case edcModel = "edc_model"
-
- case storeId = "store_id"
-
- case aggregatorId = "aggregator_id"
-
- case edcDeviceSerialNo = "edc_device_serial_no"
-
- case isActive = "is_active"
-
- case merchantStorePosCode = "merchant_store_pos_code"
-
- case deviceTag = "device_tag"
-
- }
-
- public init(aggregatorId: Int? = nil, deviceTag: String? = nil, edcDeviceSerialNo: String? = nil, edcModel: String? = nil, isActive: Bool? = nil, merchantStorePosCode: String? = nil, storeId: Int? = nil) {
-
- self.edcModel = edcModel
-
- self.storeId = storeId
-
- self.aggregatorId = aggregatorId
-
- self.edcDeviceSerialNo = edcDeviceSerialNo
-
- self.isActive = isActive
-
- self.merchantStorePosCode = merchantStorePosCode
-
- self.deviceTag = deviceTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- edcModel = try container.decode(String.self, forKey: .edcModel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeId = try container.decode(Int.self, forKey: .storeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- merchantStorePosCode = try container.decode(String.self, forKey: .merchantStorePosCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceTag = try container.decode(String.self, forKey: .deviceTag)
-
- } 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(edcModel, forKey: .edcModel)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
-
-
-
-
- try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(merchantStorePosCode, forKey: .merchantStorePosCode)
-
-
-
-
- try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: EdcUpdate
- Used By: Payment
- */
-
- class EdcUpdate: Codable {
-
-
- public var edcModel: String?
-
- public var storeId: Int?
-
- public var aggregatorId: Int?
-
- public var edcDeviceSerialNo: String?
-
- public var isActive: Bool?
-
- public var merchantStorePosCode: String?
-
- public var deviceTag: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case edcModel = "edc_model"
-
- case storeId = "store_id"
-
- case aggregatorId = "aggregator_id"
-
- case edcDeviceSerialNo = "edc_device_serial_no"
-
- case isActive = "is_active"
-
- case merchantStorePosCode = "merchant_store_pos_code"
-
- case deviceTag = "device_tag"
-
- }
-
- public init(aggregatorId: Int? = nil, deviceTag: String? = nil, edcDeviceSerialNo: String? = nil, edcModel: String? = nil, isActive: Bool? = nil, merchantStorePosCode: String? = nil, storeId: Int? = nil) {
-
- self.edcModel = edcModel
-
- self.storeId = storeId
-
- self.aggregatorId = aggregatorId
-
- self.edcDeviceSerialNo = edcDeviceSerialNo
-
- self.isActive = isActive
-
- self.merchantStorePosCode = merchantStorePosCode
-
- self.deviceTag = deviceTag
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- edcModel = try container.decode(String.self, forKey: .edcModel)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storeId = try container.decode(Int.self, forKey: .storeId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- merchantStorePosCode = try container.decode(String.self, forKey: .merchantStorePosCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceTag = try container.decode(String.self, forKey: .deviceTag)
-
- } 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(edcModel, forKey: .edcModel)
-
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
-
-
-
-
- try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(merchantStorePosCode, forKey: .merchantStorePosCode)
-
-
-
-
- try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/EdcUpdateRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/EdcUpdateRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..ee5ab76271
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/EdcUpdateRequestPaymentPlatformModel.swift
@@ -0,0 +1,392 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: EdcUpdateRequest
+ Used By: Payment
+ */
+
+ class EdcUpdateRequest: Codable {
+
+
+ public var edcModel: String?
+
+ public var storeId: Int?
+
+ public var aggregatorId: Int?
+
+ public var edcDeviceSerialNo: String?
+
+ public var isActive: Bool?
+
+ public var merchantStorePosCode: String?
+
+ public var deviceTag: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case edcModel = "edc_model"
+
+ case storeId = "store_id"
+
+ case aggregatorId = "aggregator_id"
+
+ case edcDeviceSerialNo = "edc_device_serial_no"
+
+ case isActive = "is_active"
+
+ case merchantStorePosCode = "merchant_store_pos_code"
+
+ case deviceTag = "device_tag"
+
+ }
+
+ public init(aggregatorId: Int? = nil, deviceTag: String? = nil, edcDeviceSerialNo: String? = nil, edcModel: String? = nil, isActive: Bool? = nil, merchantStorePosCode: String? = nil, storeId: Int? = nil) {
+
+ self.edcModel = edcModel
+
+ self.storeId = storeId
+
+ self.aggregatorId = aggregatorId
+
+ self.edcDeviceSerialNo = edcDeviceSerialNo
+
+ self.isActive = isActive
+
+ self.merchantStorePosCode = merchantStorePosCode
+
+ self.deviceTag = deviceTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ edcModel = try container.decode(String.self, forKey: .edcModel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ merchantStorePosCode = try container.decode(String.self, forKey: .merchantStorePosCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceTag = try container.decode(String.self, forKey: .deviceTag)
+
+ } 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(edcModel, forKey: .edcModel)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
+
+
+
+
+ try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(merchantStorePosCode, forKey: .merchantStorePosCode)
+
+
+
+
+ try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: EdcUpdateRequest
+ Used By: Payment
+ */
+
+ class EdcUpdateRequest: Codable {
+
+
+ public var edcModel: String?
+
+ public var storeId: Int?
+
+ public var aggregatorId: Int?
+
+ public var edcDeviceSerialNo: String?
+
+ public var isActive: Bool?
+
+ public var merchantStorePosCode: String?
+
+ public var deviceTag: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case edcModel = "edc_model"
+
+ case storeId = "store_id"
+
+ case aggregatorId = "aggregator_id"
+
+ case edcDeviceSerialNo = "edc_device_serial_no"
+
+ case isActive = "is_active"
+
+ case merchantStorePosCode = "merchant_store_pos_code"
+
+ case deviceTag = "device_tag"
+
+ }
+
+ public init(aggregatorId: Int? = nil, deviceTag: String? = nil, edcDeviceSerialNo: String? = nil, edcModel: String? = nil, isActive: Bool? = nil, merchantStorePosCode: String? = nil, storeId: Int? = nil) {
+
+ self.edcModel = edcModel
+
+ self.storeId = storeId
+
+ self.aggregatorId = aggregatorId
+
+ self.edcDeviceSerialNo = edcDeviceSerialNo
+
+ self.isActive = isActive
+
+ self.merchantStorePosCode = merchantStorePosCode
+
+ self.deviceTag = deviceTag
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ edcModel = try container.decode(String.self, forKey: .edcModel)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorId = try container.decode(Int.self, forKey: .aggregatorId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ edcDeviceSerialNo = try container.decode(String.self, forKey: .edcDeviceSerialNo)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ merchantStorePosCode = try container.decode(String.self, forKey: .merchantStorePosCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceTag = try container.decode(String.self, forKey: .deviceTag)
+
+ } 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(edcModel, forKey: .edcModel)
+
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorId, forKey: .aggregatorId)
+
+
+
+
+ try? container.encodeIfPresent(edcDeviceSerialNo, forKey: .edcDeviceSerialNo)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(merchantStorePosCode, forKey: .merchantStorePosCode)
+
+
+
+
+ try? container.encodeIfPresent(deviceTag, forKey: .deviceTag)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ErrorDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ErrorDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 6af5fe98b4..0000000000
--- a/Sources/code/platform/Models/Payment/ErrorDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ErrorDetails
- Used By: Payment
- */
-
- class ErrorDetails: Codable {
-
-
- public var statusCode: Int
-
- public var error: ErrorDescription?
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case error = "error"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.error = error
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- error = try container.decode(ErrorDescription.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ErrorDetails
- Used By: Payment
- */
-
- class ErrorDetails: Codable {
-
-
- public var statusCode: Int
-
- public var error: ErrorDescription?
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case error = "error"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.error = error
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- error = try container.decode(ErrorDescription.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ErrorResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ErrorResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..c1e8c81992
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ErrorResponsePaymentPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ErrorResponse
+ Used By: Payment
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var error: ErrorDescription?
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case error = "error"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.error = error
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ error = try container.decode(ErrorDescription.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ErrorResponse
+ Used By: Payment
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var error: ErrorDescription?
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case error = "error"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorDescription? = nil, message: String, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.error = error
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ error = try container.decode(ErrorDescription.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/GetOauthUrlDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetOauthUrlDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 044117248f..0000000000
--- a/Sources/code/platform/Models/Payment/GetOauthUrlDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: GetOauthUrlDetails
- Used By: Payment
- */
-
- class GetOauthUrlDetails: Codable {
-
-
- public var url: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case success = "success"
-
- }
-
- public init(success: Bool, url: String) {
-
- self.url = url
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- url = try container.decode(String.self, forKey: .url)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: GetOauthUrlDetails
- Used By: Payment
- */
-
- class GetOauthUrlDetails: Codable {
-
-
- public var url: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case url = "url"
-
- case success = "success"
-
- }
-
- public init(success: Bool, url: String) {
-
- self.url = url
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- url = try container.decode(String.self, forKey: .url)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(url, forKey: .url)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/GetOauthUrlResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetOauthUrlResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..9284affa13
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/GetOauthUrlResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: GetOauthUrlResponse
+ Used By: Payment
+ */
+
+ class GetOauthUrlResponse: Codable {
+
+
+ public var url: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case url = "url"
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool, url: String) {
+
+ self.url = url
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ url = try container.decode(String.self, forKey: .url)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: GetOauthUrlResponse
+ Used By: Payment
+ */
+
+ class GetOauthUrlResponse: Codable {
+
+
+ public var url: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case url = "url"
+
+ case success = "success"
+
+ }
+
+ public init(success: Bool, url: String) {
+
+ self.url = url
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ url = try container.decode(String.self, forKey: .url)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(url, forKey: .url)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/GetPaymentCodeDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetPaymentCodeDetailsPaymentPlatformModel.swift
deleted file mode 100644
index d174ed2591..0000000000
--- a/Sources/code/platform/Models/Payment/GetPaymentCodeDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: GetPaymentCodeDetails
- Used By: Payment
- */
-
- class GetPaymentCodeDetails: Codable {
-
-
- public var data: GetPaymentCode
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: GetPaymentCode, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(GetPaymentCode.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: GetPaymentCodeDetails
- Used By: Payment
- */
-
- class GetPaymentCodeDetails: Codable {
-
-
- public var data: GetPaymentCode
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: GetPaymentCode, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(GetPaymentCode.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/GetPaymentCodeResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetPaymentCodeResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..57a1950837
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/GetPaymentCodeResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: GetPaymentCodeResponse
+ Used By: Payment
+ */
+
+ class GetPaymentCodeResponse: Codable {
+
+
+ public var data: GetPaymentCode
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: GetPaymentCode, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(GetPaymentCode.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: GetPaymentCodeResponse
+ Used By: Payment
+ */
+
+ class GetPaymentCodeResponse: Codable {
+
+
+ public var data: GetPaymentCode
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: GetPaymentCode, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(GetPaymentCode.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/GetPaymentLinkDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetPaymentLinkDetailsPaymentPlatformModel.swift
deleted file mode 100644
index e5cf672ee1..0000000000
--- a/Sources/code/platform/Models/Payment/GetPaymentLinkDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,442 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: GetPaymentLinkDetails
- Used By: Payment
- */
-
- class GetPaymentLinkDetails: Codable {
-
-
- public var message: String
-
- public var statusCode: Int
-
- public var amount: Double?
-
- public var merchantName: String?
-
- public var paymentLinkUrl: String?
-
- public var paymentLinkCurrentStatus: String?
-
- public var externalOrderId: String?
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case statusCode = "status_code"
-
- case amount = "amount"
-
- case merchantName = "merchant_name"
-
- case paymentLinkUrl = "payment_link_url"
-
- case paymentLinkCurrentStatus = "payment_link_current_status"
-
- case externalOrderId = "external_order_id"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- }
-
- public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.statusCode = statusCode
-
- self.amount = amount
-
- self.merchantName = merchantName
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
-
- self.externalOrderId = externalOrderId
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantName = try container.decode(String.self, forKey: .merchantName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(merchantName, forKey: .merchantName)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
-
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: GetPaymentLinkDetails
- Used By: Payment
- */
-
- class GetPaymentLinkDetails: Codable {
-
-
- public var message: String
-
- public var statusCode: Int
-
- public var amount: Double?
-
- public var merchantName: String?
-
- public var paymentLinkUrl: String?
-
- public var paymentLinkCurrentStatus: String?
-
- public var externalOrderId: String?
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case statusCode = "status_code"
-
- case amount = "amount"
-
- case merchantName = "merchant_name"
-
- case paymentLinkUrl = "payment_link_url"
-
- case paymentLinkCurrentStatus = "payment_link_current_status"
-
- case externalOrderId = "external_order_id"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- }
-
- public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.statusCode = statusCode
-
- self.amount = amount
-
- self.merchantName = merchantName
-
- self.paymentLinkUrl = paymentLinkUrl
-
- self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
-
- self.externalOrderId = externalOrderId
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantName = try container.decode(String.self, forKey: .merchantName)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(merchantName, forKey: .merchantName)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
-
-
-
-
- try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/GetPaymentLinkResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetPaymentLinkResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..e52c1cc8ec
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/GetPaymentLinkResponsePaymentPlatformModel.swift
@@ -0,0 +1,442 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: GetPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class GetPaymentLinkResponse: Codable {
+
+
+ public var message: String
+
+ public var statusCode: Int
+
+ public var amount: Double?
+
+ public var merchantName: String?
+
+ public var paymentLinkUrl: String?
+
+ public var paymentLinkCurrentStatus: String?
+
+ public var externalOrderId: String?
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case statusCode = "status_code"
+
+ case amount = "amount"
+
+ case merchantName = "merchant_name"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case paymentLinkCurrentStatus = "payment_link_current_status"
+
+ case externalOrderId = "external_order_id"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ }
+
+ public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.statusCode = statusCode
+
+ self.amount = amount
+
+ self.merchantName = merchantName
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
+
+ self.externalOrderId = externalOrderId
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantName = try container.decode(String.self, forKey: .merchantName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(merchantName, forKey: .merchantName)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
+
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: GetPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class GetPaymentLinkResponse: Codable {
+
+
+ public var message: String
+
+ public var statusCode: Int
+
+ public var amount: Double?
+
+ public var merchantName: String?
+
+ public var paymentLinkUrl: String?
+
+ public var paymentLinkCurrentStatus: String?
+
+ public var externalOrderId: String?
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case statusCode = "status_code"
+
+ case amount = "amount"
+
+ case merchantName = "merchant_name"
+
+ case paymentLinkUrl = "payment_link_url"
+
+ case paymentLinkCurrentStatus = "payment_link_current_status"
+
+ case externalOrderId = "external_order_id"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ }
+
+ public init(amount: Double? = nil, externalOrderId: String? = nil, merchantName: String? = nil, message: String, paymentLinkCurrentStatus: String? = nil, paymentLinkUrl: String? = nil, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.statusCode = statusCode
+
+ self.amount = amount
+
+ self.merchantName = merchantName
+
+ self.paymentLinkUrl = paymentLinkUrl
+
+ self.paymentLinkCurrentStatus = paymentLinkCurrentStatus
+
+ self.externalOrderId = externalOrderId
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantName = try container.decode(String.self, forKey: .merchantName)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkUrl = try container.decode(String.self, forKey: .paymentLinkUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentLinkCurrentStatus = try container.decode(String.self, forKey: .paymentLinkCurrentStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ externalOrderId = try container.decode(String.self, forKey: .externalOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(merchantName, forKey: .merchantName)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkUrl, forKey: .paymentLinkUrl)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkCurrentStatus, forKey: .paymentLinkCurrentStatus)
+
+
+
+
+ try? container.encodeIfPresent(externalOrderId, forKey: .externalOrderId)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/GetUserBULimitResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetUserBULimitResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..453633981b
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/GetUserBULimitResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: GetUserBULimitResponse
+ Used By: Payment
+ */
+
+ class GetUserBULimitResponse: Codable {
+
+
+ public var businessUnit: String
+
+ public var displayName: String
+
+ public var config: CODPaymentLimitConfig
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case displayName = "display_name"
+
+ case config = "config"
+
+ }
+
+ public init(businessUnit: String, config: CODPaymentLimitConfig, displayName: String) {
+
+ self.businessUnit = businessUnit
+
+ self.displayName = displayName
+
+ self.config = config
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ config = try container.decode(CODPaymentLimitConfig.self, forKey: .config)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(config, forKey: .config)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: GetUserBULimitResponse
+ Used By: Payment
+ */
+
+ class GetUserBULimitResponse: Codable {
+
+
+ public var businessUnit: String
+
+ public var displayName: String
+
+ public var config: CODPaymentLimitConfig
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case displayName = "display_name"
+
+ case config = "config"
+
+ }
+
+ public init(businessUnit: String, config: CODPaymentLimitConfig, displayName: String) {
+
+ self.businessUnit = businessUnit
+
+ self.displayName = displayName
+
+ self.config = config
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+
+
+
+ displayName = try container.decode(String.self, forKey: .displayName)
+
+
+
+
+ config = try container.decode(CODPaymentLimitConfig.self, forKey: .config)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(config, forKey: .config)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/GetUserBULimitResponseSchemaPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetUserBULimitResponseSchemaPaymentPlatformModel.swift
deleted file mode 100644
index aede57fb83..0000000000
--- a/Sources/code/platform/Models/Payment/GetUserBULimitResponseSchemaPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: GetUserBULimitResponseSchema
- Used By: Payment
- */
-
- class GetUserBULimitResponseSchema: Codable {
-
-
- public var businessUnit: String
-
- public var displayName: String
-
- public var config: CODPaymentLimitConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case displayName = "display_name"
-
- case config = "config"
-
- }
-
- public init(businessUnit: String, config: CODPaymentLimitConfig, displayName: String) {
-
- self.businessUnit = businessUnit
-
- self.displayName = displayName
-
- self.config = config
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- config = try container.decode(CODPaymentLimitConfig.self, forKey: .config)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: GetUserBULimitResponseSchema
- Used By: Payment
- */
-
- class GetUserBULimitResponseSchema: Codable {
-
-
- public var businessUnit: String
-
- public var displayName: String
-
- public var config: CODPaymentLimitConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case displayName = "display_name"
-
- case config = "config"
-
- }
-
- public init(businessUnit: String, config: CODPaymentLimitConfig, displayName: String) {
-
- self.businessUnit = businessUnit
-
- self.displayName = displayName
-
- self.config = config
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
-
-
-
- displayName = try container.decode(String.self, forKey: .displayName)
-
-
-
-
- config = try container.decode(CODPaymentLimitConfig.self, forKey: .config)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/GetUserCODLimitDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetUserCODLimitDetailsPaymentPlatformModel.swift
deleted file mode 100644
index eb34fa2160..0000000000
--- a/Sources/code/platform/Models/Payment/GetUserCODLimitDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: GetUserCODLimitDetails
- Used By: Payment
- */
-
- class GetUserCODLimitDetails: Codable {
-
-
- public var items: [GetUserBULimitResponseSchema]
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(items: [GetUserBULimitResponseSchema], message: String? = nil, success: Bool) {
-
- self.items = items
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([GetUserBULimitResponseSchema].self, forKey: .items)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: GetUserCODLimitDetails
- Used By: Payment
- */
-
- class GetUserCODLimitDetails: Codable {
-
-
- public var items: [GetUserBULimitResponseSchema]
-
- public var success: Bool
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case success = "success"
-
- case message = "message"
-
- }
-
- public init(items: [GetUserBULimitResponseSchema], message: String? = nil, success: Bool) {
-
- self.items = items
-
- self.success = success
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([GetUserBULimitResponseSchema].self, forKey: .items)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- 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(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/GetUserCODLimitResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/GetUserCODLimitResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..5a952bafac
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/GetUserCODLimitResponsePaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: GetUserCODLimitResponse
+ Used By: Payment
+ */
+
+ class GetUserCODLimitResponse: Codable {
+
+
+ public var items: [GetUserBULimitResponse]
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(items: [GetUserBULimitResponse], message: String? = nil, success: Bool) {
+
+ self.items = items
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([GetUserBULimitResponse].self, forKey: .items)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: GetUserCODLimitResponse
+ Used By: Payment
+ */
+
+ class GetUserCODLimitResponse: Codable {
+
+
+ public var items: [GetUserBULimitResponse]
+
+ public var success: Bool
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case success = "success"
+
+ case message = "message"
+
+ }
+
+ public init(items: [GetUserBULimitResponse], message: String? = nil, success: Bool) {
+
+ self.items = items
+
+ self.success = success
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([GetUserBULimitResponse].self, forKey: .items)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ 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(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/HttpErrorCodeAndResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/HttpErrorCodeAndResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..3c8ba169bc
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/HttpErrorCodeAndResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: HttpErrorCodeAndResponse
+ Used By: Payment
+ */
+
+ class HttpErrorCodeAndResponse: Codable {
+
+
+ public var error: ErrorCodeAndDescription
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorCodeAndDescription, success: Bool) {
+
+ self.error = error
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: HttpErrorCodeAndResponse
+ Used By: Payment
+ */
+
+ class HttpErrorCodeAndResponse: Codable {
+
+
+ public var error: ErrorCodeAndDescription
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case success = "success"
+
+ }
+
+ public init(error: ErrorCodeAndDescription, success: Bool) {
+
+ self.error = error
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/HttpErrorDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/HttpErrorDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 7f16f93be7..0000000000
--- a/Sources/code/platform/Models/Payment/HttpErrorDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: HttpErrorDetails
- Used By: Payment
- */
-
- class HttpErrorDetails: Codable {
-
-
- public var error: ErrorCodeAndDescription
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case success = "success"
-
- }
-
- public init(error: ErrorCodeAndDescription, success: Bool) {
-
- self.error = error
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: HttpErrorDetails
- Used By: Payment
- */
-
- class HttpErrorDetails: Codable {
-
-
- public var error: ErrorCodeAndDescription
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case success = "success"
-
- }
-
- public init(error: ErrorCodeAndDescription, success: Bool) {
-
- self.error = error
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- error = try container.decode(ErrorCodeAndDescription.self, forKey: .error)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/IfscCodeDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/IfscCodeDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 9b2c2d91ce..0000000000
--- a/Sources/code/platform/Models/Payment/IfscCodeDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: IfscCodeDetails
- Used By: Payment
- */
-
- class IfscCodeDetails: Codable {
-
-
- public var branchName: String
-
- public var success: Bool?
-
- public var bankName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case branchName = "branch_name"
-
- case success = "success"
-
- case bankName = "bank_name"
-
- }
-
- public init(bankName: String, branchName: String, success: Bool? = nil) {
-
- self.branchName = branchName
-
- self.success = success
-
- self.bankName = bankName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- branchName = try container.decode(String.self, forKey: .branchName)
-
-
-
-
- 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 {
-
- }
-
-
-
- bankName = try container.decode(String.self, forKey: .bankName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(branchName, forKey: .branchName)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(bankName, forKey: .bankName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: IfscCodeDetails
- Used By: Payment
- */
-
- class IfscCodeDetails: Codable {
-
-
- public var branchName: String
-
- public var success: Bool?
-
- public var bankName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case branchName = "branch_name"
-
- case success = "success"
-
- case bankName = "bank_name"
-
- }
-
- public init(bankName: String, branchName: String, success: Bool? = nil) {
-
- self.branchName = branchName
-
- self.success = success
-
- self.bankName = bankName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- branchName = try container.decode(String.self, forKey: .branchName)
-
-
-
-
- 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 {
-
- }
-
-
-
- bankName = try container.decode(String.self, forKey: .bankName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(branchName, forKey: .branchName)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(bankName, forKey: .bankName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/IfscCodeResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/IfscCodeResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..9762002a75
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/IfscCodeResponsePaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: IfscCodeResponse
+ Used By: Payment
+ */
+
+ class IfscCodeResponse: Codable {
+
+
+ public var branchName: String
+
+ public var success: Bool?
+
+ public var bankName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case branchName = "branch_name"
+
+ case success = "success"
+
+ case bankName = "bank_name"
+
+ }
+
+ public init(bankName: String, branchName: String, success: Bool? = nil) {
+
+ self.branchName = branchName
+
+ self.success = success
+
+ self.bankName = bankName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ branchName = try container.decode(String.self, forKey: .branchName)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ bankName = try container.decode(String.self, forKey: .bankName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(branchName, forKey: .branchName)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(bankName, forKey: .bankName)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: IfscCodeResponse
+ Used By: Payment
+ */
+
+ class IfscCodeResponse: Codable {
+
+
+ public var branchName: String
+
+ public var success: Bool?
+
+ public var bankName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case branchName = "branch_name"
+
+ case success = "success"
+
+ case bankName = "bank_name"
+
+ }
+
+ public init(bankName: String, branchName: String, success: Bool? = nil) {
+
+ self.branchName = branchName
+
+ self.success = success
+
+ self.bankName = bankName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ branchName = try container.decode(String.self, forKey: .branchName)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ bankName = try container.decode(String.self, forKey: .bankName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(branchName, forKey: .branchName)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(bankName, forKey: .bankName)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/MerchantOnBoardingCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantOnBoardingCreationPaymentPlatformModel.swift
deleted file mode 100644
index 8c5a1ed1e8..0000000000
--- a/Sources/code/platform/Models/Payment/MerchantOnBoardingCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: MerchantOnBoardingCreation
- Used By: Payment
- */
-
- class MerchantOnBoardingCreation: Codable {
-
-
- public var creditLineId: String
-
- public var aggregator: String
-
- public var appId: String
-
- public var userId: String
-
- public var status: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case creditLineId = "credit_line_id"
-
- case aggregator = "aggregator"
-
- case appId = "app_id"
-
- case userId = "user_id"
-
- case status = "status"
-
- }
-
- public init(aggregator: String, appId: String, creditLineId: String, status: String, userId: String) {
-
- self.creditLineId = creditLineId
-
- self.aggregator = aggregator
-
- self.appId = appId
-
- self.userId = userId
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- creditLineId = try container.decode(String.self, forKey: .creditLineId)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- appId = try container.decode(String.self, forKey: .appId)
-
-
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(creditLineId, forKey: .creditLineId)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: MerchantOnBoardingCreation
- Used By: Payment
- */
-
- class MerchantOnBoardingCreation: Codable {
-
-
- public var creditLineId: String
-
- public var aggregator: String
-
- public var appId: String
-
- public var userId: String
-
- public var status: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case creditLineId = "credit_line_id"
-
- case aggregator = "aggregator"
-
- case appId = "app_id"
-
- case userId = "user_id"
-
- case status = "status"
-
- }
-
- public init(aggregator: String, appId: String, creditLineId: String, status: String, userId: String) {
-
- self.creditLineId = creditLineId
-
- self.aggregator = aggregator
-
- self.appId = appId
-
- self.userId = userId
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- creditLineId = try container.decode(String.self, forKey: .creditLineId)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- appId = try container.decode(String.self, forKey: .appId)
-
-
-
-
- userId = try container.decode(String.self, forKey: .userId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(creditLineId, forKey: .creditLineId)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/MerchantOnBoardingDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantOnBoardingDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 68de8e15aa..0000000000
--- a/Sources/code/platform/Models/Payment/MerchantOnBoardingDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: MerchantOnBoardingDetails
- Used By: Payment
- */
-
- class MerchantOnBoardingDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: MerchantOnBoardingDetails
- Used By: Payment
- */
-
- class MerchantOnBoardingDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/MerchantOnBoardingRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantOnBoardingRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..83cd763303
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/MerchantOnBoardingRequestPaymentPlatformModel.swift
@@ -0,0 +1,230 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: MerchantOnBoardingRequest
+ Used By: Payment
+ */
+
+ class MerchantOnBoardingRequest: Codable {
+
+
+ public var creditLineId: String
+
+ public var aggregator: String
+
+ public var appId: String
+
+ public var userId: String
+
+ public var status: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case creditLineId = "credit_line_id"
+
+ case aggregator = "aggregator"
+
+ case appId = "app_id"
+
+ case userId = "user_id"
+
+ case status = "status"
+
+ }
+
+ public init(aggregator: String, appId: String, creditLineId: String, status: String, userId: String) {
+
+ self.creditLineId = creditLineId
+
+ self.aggregator = aggregator
+
+ self.appId = appId
+
+ self.userId = userId
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ creditLineId = try container.decode(String.self, forKey: .creditLineId)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ userId = try container.decode(String.self, forKey: .userId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(creditLineId, forKey: .creditLineId)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: MerchantOnBoardingRequest
+ Used By: Payment
+ */
+
+ class MerchantOnBoardingRequest: Codable {
+
+
+ public var creditLineId: String
+
+ public var aggregator: String
+
+ public var appId: String
+
+ public var userId: String
+
+ public var status: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case creditLineId = "credit_line_id"
+
+ case aggregator = "aggregator"
+
+ case appId = "app_id"
+
+ case userId = "user_id"
+
+ case status = "status"
+
+ }
+
+ public init(aggregator: String, appId: String, creditLineId: String, status: String, userId: String) {
+
+ self.creditLineId = creditLineId
+
+ self.aggregator = aggregator
+
+ self.appId = appId
+
+ self.userId = userId
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ creditLineId = try container.decode(String.self, forKey: .creditLineId)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ userId = try container.decode(String.self, forKey: .userId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(creditLineId, forKey: .creditLineId)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/MerchantOnBoardingResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantOnBoardingResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..46a126d923
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/MerchantOnBoardingResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: MerchantOnBoardingResponse
+ Used By: Payment
+ */
+
+ class MerchantOnBoardingResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: MerchantOnBoardingResponse
+ Used By: Payment
+ */
+
+ class MerchantOnBoardingResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/MerchantPaymentModeCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantPaymentModeCreationPaymentPlatformModel.swift
deleted file mode 100644
index 168d22042f..0000000000
--- a/Sources/code/platform/Models/Payment/MerchantPaymentModeCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: MerchantPaymentModeCreation
- Used By: Payment
- */
-
- class MerchantPaymentModeCreation: Codable {
-
-
- public var businessUnit: String
-
- public var items: [[String: Any]]
-
- public var device: [String: Any]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case items = "items"
-
- case device = "device"
-
- }
-
- public init(businessUnit: String, device: [String: Any], items: [[String: Any]]) {
-
- self.businessUnit = businessUnit
-
- self.items = items
-
- self.device = device
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
-
-
-
- items = try container.decode([[String: Any]].self, forKey: .items)
-
-
-
-
- device = try container.decode([String: Any].self, forKey: .device)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(device, forKey: .device)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: MerchantPaymentModeCreation
- Used By: Payment
- */
-
- class MerchantPaymentModeCreation: Codable {
-
-
- public var businessUnit: String
-
- public var items: [[String: Any]]
-
- public var device: [String: Any]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case items = "items"
-
- case device = "device"
-
- }
-
- public init(businessUnit: String, device: [String: Any], items: [[String: Any]]) {
-
- self.businessUnit = businessUnit
-
- self.items = items
-
- self.device = device
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
-
-
-
- items = try container.decode([[String: Any]].self, forKey: .items)
-
-
-
-
- device = try container.decode([String: Any].self, forKey: .device)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(device, forKey: .device)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/MerchantPaymentModeRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchantPaymentModeRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..8dec7805d8
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/MerchantPaymentModeRequestPaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: MerchantPaymentModeRequest
+ Used By: Payment
+ */
+
+ class MerchantPaymentModeRequest: Codable {
+
+
+ public var businessUnit: String
+
+ public var items: [[String: Any]]
+
+ public var device: [String: Any]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case items = "items"
+
+ case device = "device"
+
+ }
+
+ public init(businessUnit: String, device: [String: Any], items: [[String: Any]]) {
+
+ self.businessUnit = businessUnit
+
+ self.items = items
+
+ self.device = device
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+
+
+
+ items = try container.decode([[String: Any]].self, forKey: .items)
+
+
+
+
+ device = try container.decode([String: Any].self, forKey: .device)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(device, forKey: .device)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: MerchantPaymentModeRequest
+ Used By: Payment
+ */
+
+ class MerchantPaymentModeRequest: Codable {
+
+
+ public var businessUnit: String
+
+ public var items: [[String: Any]]
+
+ public var device: [String: Any]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case items = "items"
+
+ case device = "device"
+
+ }
+
+ public init(businessUnit: String, device: [String: Any], items: [[String: Any]]) {
+
+ self.businessUnit = businessUnit
+
+ self.items = items
+
+ self.device = device
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+
+
+
+ items = try container.decode([[String: Any]].self, forKey: .items)
+
+
+
+
+ device = try container.decode([String: Any].self, forKey: .device)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(device, forKey: .device)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/MerchnatPaymentModeCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchnatPaymentModeCreationPaymentPlatformModel.swift
deleted file mode 100644
index 1c46f56255..0000000000
--- a/Sources/code/platform/Models/Payment/MerchnatPaymentModeCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: MerchnatPaymentModeCreation
- Used By: Payment
- */
-
- class MerchnatPaymentModeCreation: Codable {
-
-
- public var offline: [String: Any]?
-
- public var online: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case offline = "offline"
-
- case online = "online"
-
- }
-
- public init(offline: [String: Any]? = nil, online: [String: Any]? = nil) {
-
- self.offline = offline
-
- self.online = online
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- offline = try container.decode([String: Any].self, forKey: .offline)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- online = try container.decode([String: Any].self, forKey: .online)
-
- } 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(offline, forKey: .offline)
-
-
-
-
- try? container.encodeIfPresent(online, forKey: .online)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: MerchnatPaymentModeCreation
- Used By: Payment
- */
-
- class MerchnatPaymentModeCreation: Codable {
-
-
- public var offline: [String: Any]?
-
- public var online: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case offline = "offline"
-
- case online = "online"
-
- }
-
- public init(offline: [String: Any]? = nil, online: [String: Any]? = nil) {
-
- self.offline = offline
-
- self.online = online
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- offline = try container.decode([String: Any].self, forKey: .offline)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- online = try container.decode([String: Any].self, forKey: .online)
-
- } 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(offline, forKey: .offline)
-
-
-
-
- try? container.encodeIfPresent(online, forKey: .online)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/MerchnatPaymentModeRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/MerchnatPaymentModeRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..45e08d5ef0
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/MerchnatPaymentModeRequestPaymentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: MerchnatPaymentModeRequest
+ Used By: Payment
+ */
+
+ class MerchnatPaymentModeRequest: Codable {
+
+
+ public var offline: [String: Any]?
+
+ public var online: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case offline = "offline"
+
+ case online = "online"
+
+ }
+
+ public init(offline: [String: Any]? = nil, online: [String: Any]? = nil) {
+
+ self.offline = offline
+
+ self.online = online
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ offline = try container.decode([String: Any].self, forKey: .offline)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ online = try container.decode([String: Any].self, forKey: .online)
+
+ } 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(offline, forKey: .offline)
+
+
+
+
+ try? container.encodeIfPresent(online, forKey: .online)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: MerchnatPaymentModeRequest
+ Used By: Payment
+ */
+
+ class MerchnatPaymentModeRequest: Codable {
+
+
+ public var offline: [String: Any]?
+
+ public var online: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case offline = "offline"
+
+ case online = "online"
+
+ }
+
+ public init(offline: [String: Any]? = nil, online: [String: Any]? = nil) {
+
+ self.offline = offline
+
+ self.online = online
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ offline = try container.decode([String: Any].self, forKey: .offline)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ online = try container.decode([String: Any].self, forKey: .online)
+
+ } 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(offline, forKey: .offline)
+
+
+
+
+ try? container.encodeIfPresent(online, forKey: .online)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/OrderBeneficiaryFetchResultsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/OrderBeneficiaryFetchResultsPaymentPlatformModel.swift
deleted file mode 100644
index 872bfe9ee9..0000000000
--- a/Sources/code/platform/Models/Payment/OrderBeneficiaryFetchResultsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: OrderBeneficiaryFetchResults
- Used By: Payment
- */
-
- class OrderBeneficiaryFetchResults: Codable {
-
-
- public var beneficiaries: [OrderBeneficiaryDetails]?
-
- public var showBeneficiaryDetails: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case beneficiaries = "beneficiaries"
-
- case showBeneficiaryDetails = "show_beneficiary_details"
-
- }
-
- public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
-
- self.beneficiaries = beneficiaries
-
- self.showBeneficiaryDetails = showBeneficiaryDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
-
- } 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(beneficiaries, forKey: .beneficiaries)
-
-
-
-
- try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: OrderBeneficiaryFetchResults
- Used By: Payment
- */
-
- class OrderBeneficiaryFetchResults: Codable {
-
-
- public var beneficiaries: [OrderBeneficiaryDetails]?
-
- public var showBeneficiaryDetails: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case beneficiaries = "beneficiaries"
-
- case showBeneficiaryDetails = "show_beneficiary_details"
-
- }
-
- public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
-
- self.beneficiaries = beneficiaries
-
- self.showBeneficiaryDetails = showBeneficiaryDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
-
- } 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(beneficiaries, forKey: .beneficiaries)
-
-
-
-
- try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/OrderBeneficiaryResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/OrderBeneficiaryResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..f2b3d37d2c
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/OrderBeneficiaryResponsePaymentPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: OrderBeneficiaryResponse
+ Used By: Payment
+ */
+
+ class OrderBeneficiaryResponse: Codable {
+
+
+ public var beneficiaries: [OrderBeneficiaryDetails]?
+
+ public var showBeneficiaryDetails: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case beneficiaries = "beneficiaries"
+
+ case showBeneficiaryDetails = "show_beneficiary_details"
+
+ }
+
+ public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
+
+ self.beneficiaries = beneficiaries
+
+ self.showBeneficiaryDetails = showBeneficiaryDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
+
+ } 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(beneficiaries, forKey: .beneficiaries)
+
+
+
+
+ try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: OrderBeneficiaryResponse
+ Used By: Payment
+ */
+
+ class OrderBeneficiaryResponse: Codable {
+
+
+ public var beneficiaries: [OrderBeneficiaryDetails]?
+
+ public var showBeneficiaryDetails: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case beneficiaries = "beneficiaries"
+
+ case showBeneficiaryDetails = "show_beneficiary_details"
+
+ }
+
+ public init(beneficiaries: [OrderBeneficiaryDetails]? = nil, showBeneficiaryDetails: Bool? = nil) {
+
+ self.beneficiaries = beneficiaries
+
+ self.showBeneficiaryDetails = showBeneficiaryDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ beneficiaries = try container.decode([OrderBeneficiaryDetails].self, forKey: .beneficiaries)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ showBeneficiaryDetails = try container.decode(Bool.self, forKey: .showBeneficiaryDetails)
+
+ } 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(beneficiaries, forKey: .beneficiaries)
+
+
+
+
+ try? container.encodeIfPresent(showBeneficiaryDetails, forKey: .showBeneficiaryDetails)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PatchAggregatorControlPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PatchAggregatorControlPaymentPlatformModel.swift
deleted file mode 100644
index f2447a195c..0000000000
--- a/Sources/code/platform/Models/Payment/PatchAggregatorControlPaymentPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PatchAggregatorControl
- Used By: Payment
- */
-
- class PatchAggregatorControl: Codable {
-
-
- public var businessUnit: String?
-
- public var items: [[String: Any]]?
-
- public var device: String?
-
- public var version: AggregatorVersionRequestSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case items = "items"
-
- case device = "device"
-
- case version = "version"
-
- }
-
- public init(businessUnit: String? = nil, device: String? = nil, items: [[String: Any]]? = nil, version: AggregatorVersionRequestSchema? = nil) {
-
- self.businessUnit = businessUnit
-
- self.items = items
-
- self.device = device
-
- self.version = version
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- device = try container.decode(String.self, forKey: .device)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- version = try container.decode(AggregatorVersionRequestSchema.self, forKey: .version)
-
- } 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(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(device, forKey: .device)
-
-
-
-
- try? container.encodeIfPresent(version, forKey: .version)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PatchAggregatorControl
- Used By: Payment
- */
-
- class PatchAggregatorControl: Codable {
-
-
- public var businessUnit: String?
-
- public var items: [[String: Any]]?
-
- public var device: String?
-
- public var version: AggregatorVersionRequestSchema?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case items = "items"
-
- case device = "device"
-
- case version = "version"
-
- }
-
- public init(businessUnit: String? = nil, device: String? = nil, items: [[String: Any]]? = nil, version: AggregatorVersionRequestSchema? = nil) {
-
- self.businessUnit = businessUnit
-
- self.items = items
-
- self.device = device
-
- self.version = version
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- device = try container.decode(String.self, forKey: .device)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- version = try container.decode(AggregatorVersionRequestSchema.self, forKey: .version)
-
- } 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(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(device, forKey: .device)
-
-
-
-
- try? container.encodeIfPresent(version, forKey: .version)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentConfirmationCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentConfirmationCreationPaymentPlatformModel.swift
deleted file mode 100644
index 4730359ede..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentConfirmationCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentConfirmationCreation
- Used By: Payment
- */
-
- class PaymentConfirmationCreation: Codable {
-
-
- public var orderId: String
-
- public var paymentMethods: [MultiTenderPaymentMethod]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(orderId: String, paymentMethods: [MultiTenderPaymentMethod]) {
-
- self.orderId = orderId
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- paymentMethods = try container.decode([MultiTenderPaymentMethod].self, forKey: .paymentMethods)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentConfirmationCreation
- Used By: Payment
- */
-
- class PaymentConfirmationCreation: Codable {
-
-
- public var orderId: String
-
- public var paymentMethods: [MultiTenderPaymentMethod]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case paymentMethods = "payment_methods"
-
- }
-
- public init(orderId: String, paymentMethods: [MultiTenderPaymentMethod]) {
-
- self.orderId = orderId
-
- self.paymentMethods = paymentMethods
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- paymentMethods = try container.decode([MultiTenderPaymentMethod].self, forKey: .paymentMethods)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentConfirmationDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentConfirmationDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 231d2f239b..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentConfirmationDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentConfirmationDetails
- Used By: Payment
- */
-
- class PaymentConfirmationDetails: Codable {
-
-
- public var orderId: String
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, orderId: String, success: Bool) {
-
- self.orderId = orderId
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentConfirmationDetails
- Used By: Payment
- */
-
- class PaymentConfirmationDetails: Codable {
-
-
- public var orderId: String
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, orderId: String, success: Bool) {
-
- self.orderId = orderId
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentConfirmationRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentConfirmationRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..3582c678e2
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentConfirmationRequestPaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentConfirmationRequest
+ Used By: Payment
+ */
+
+ class PaymentConfirmationRequest: Codable {
+
+
+ public var orderId: String
+
+ public var paymentMethods: [MultiTenderPaymentMethod]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case paymentMethods = "payment_methods"
+
+ }
+
+ public init(orderId: String, paymentMethods: [MultiTenderPaymentMethod]) {
+
+ self.orderId = orderId
+
+ self.paymentMethods = paymentMethods
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ paymentMethods = try container.decode([MultiTenderPaymentMethod].self, forKey: .paymentMethods)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentConfirmationRequest
+ Used By: Payment
+ */
+
+ class PaymentConfirmationRequest: Codable {
+
+
+ public var orderId: String
+
+ public var paymentMethods: [MultiTenderPaymentMethod]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case paymentMethods = "payment_methods"
+
+ }
+
+ public init(orderId: String, paymentMethods: [MultiTenderPaymentMethod]) {
+
+ self.orderId = orderId
+
+ self.paymentMethods = paymentMethods
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ paymentMethods = try container.decode([MultiTenderPaymentMethod].self, forKey: .paymentMethods)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentConfirmationResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentConfirmationResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..2f7a2952dd
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentConfirmationResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentConfirmationResponse
+ Used By: Payment
+ */
+
+ class PaymentConfirmationResponse: Codable {
+
+
+ public var orderId: String
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, orderId: String, success: Bool) {
+
+ self.orderId = orderId
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentConfirmationResponse
+ Used By: Payment
+ */
+
+ class PaymentConfirmationResponse: Codable {
+
+
+ public var orderId: String
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, orderId: String, success: Bool) {
+
+ self.orderId = orderId
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentDetailsPaymentPlatformModel.swift
deleted file mode 100644
index a122f85e76..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,878 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentDetails
- Used By: Payment
- */
-
- class PaymentDetails: Codable {
-
-
- public var paymentMethods: [[String: Any]]
-
- public var gid: String
-
- public var amountRefunded: Int?
-
- public var currency: String
-
- public var mode: String
-
- public var merchantLocale: String?
-
- public var meta: [String: Any]?
-
- public var kind: String?
-
- public var successUrl: String?
-
- public var status: String
-
- public var captured: Bool?
-
- public var paymentId: String?
-
- public var gUserId: String
-
- public var locale: String?
-
- public var cancelUrl: String?
-
- public var created: String?
-
- public var amountCaptured: Int
-
- public var amount: Int
-
- public var aggregatorCustomerId: String?
-
- public var aggregatorOrderId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentMethods = "payment_methods"
-
- case gid = "gid"
-
- case amountRefunded = "amount_refunded"
-
- case currency = "currency"
-
- case mode = "mode"
-
- case merchantLocale = "merchant_locale"
-
- case meta = "meta"
-
- case kind = "kind"
-
- case successUrl = "success_url"
-
- case status = "status"
-
- case captured = "captured"
-
- case paymentId = "payment_id"
-
- case gUserId = "g_user_id"
-
- case locale = "locale"
-
- case cancelUrl = "cancel_url"
-
- case created = "created"
-
- case amountCaptured = "amount_captured"
-
- case amount = "amount"
-
- case aggregatorCustomerId = "aggregator_customer_id"
-
- case aggregatorOrderId = "aggregator_order_id"
-
- }
-
- public init(aggregatorCustomerId: String? = nil, aggregatorOrderId: String? = nil, amount: Int, amountCaptured: Int, amountRefunded: Int? = nil, cancelUrl: String? = nil, captured: Bool? = nil, created: String? = nil, currency: String, gid: String, gUserId: String, kind: String? = nil, locale: String? = nil, merchantLocale: String? = nil, meta: [String: Any]? = nil, mode: String, paymentId: String? = nil, paymentMethods: [[String: Any]], status: String, successUrl: String? = nil) {
-
- self.paymentMethods = paymentMethods
-
- self.gid = gid
-
- self.amountRefunded = amountRefunded
-
- self.currency = currency
-
- self.mode = mode
-
- self.merchantLocale = merchantLocale
-
- self.meta = meta
-
- self.kind = kind
-
- self.successUrl = successUrl
-
- self.status = status
-
- self.captured = captured
-
- self.paymentId = paymentId
-
- self.gUserId = gUserId
-
- self.locale = locale
-
- self.cancelUrl = cancelUrl
-
- self.created = created
-
- self.amountCaptured = amountCaptured
-
- self.amount = amount
-
- self.aggregatorCustomerId = aggregatorCustomerId
-
- self.aggregatorOrderId = aggregatorOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentMethods = try container.decode([[String: Any]].self, forKey: .paymentMethods)
-
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- do {
- amountRefunded = try container.decode(Int.self, forKey: .amountRefunded)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- do {
- merchantLocale = try container.decode(String.self, forKey: .merchantLocale)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- kind = try container.decode(String.self, forKey: .kind)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- successUrl = try container.decode(String.self, forKey: .successUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- captured = try container.decode(Bool.self, forKey: .captured)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentId = try container.decode(String.self, forKey: .paymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- gUserId = try container.decode(String.self, forKey: .gUserId)
-
-
-
-
- do {
- locale = try container.decode(String.self, forKey: .locale)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cancelUrl = try container.decode(String.self, forKey: .cancelUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- created = try container.decode(String.self, forKey: .created)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- amountCaptured = try container.decode(Int.self, forKey: .amountCaptured)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- do {
- aggregatorCustomerId = try container.decode(String.self, forKey: .aggregatorCustomerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
-
- } 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(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(amountRefunded, forKey: .amountRefunded)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(merchantLocale, forKey: .merchantLocale)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(kind, forKey: .kind)
-
-
-
-
- try? container.encodeIfPresent(successUrl, forKey: .successUrl)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(captured, forKey: .captured)
-
-
-
-
- try? container.encodeIfPresent(paymentId, forKey: .paymentId)
-
-
-
-
- try? container.encodeIfPresent(gUserId, forKey: .gUserId)
-
-
-
-
- try? container.encodeIfPresent(locale, forKey: .locale)
-
-
-
-
- try? container.encodeIfPresent(cancelUrl, forKey: .cancelUrl)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(amountCaptured, forKey: .amountCaptured)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(aggregatorCustomerId, forKey: .aggregatorCustomerId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentDetails
- Used By: Payment
- */
-
- class PaymentDetails: Codable {
-
-
- public var paymentMethods: [[String: Any]]
-
- public var gid: String
-
- public var amountRefunded: Int?
-
- public var currency: String
-
- public var mode: String
-
- public var merchantLocale: String?
-
- public var meta: [String: Any]?
-
- public var kind: String?
-
- public var successUrl: String?
-
- public var status: String
-
- public var captured: Bool?
-
- public var paymentId: String?
-
- public var gUserId: String
-
- public var locale: String?
-
- public var cancelUrl: String?
-
- public var created: String?
-
- public var amountCaptured: Int
-
- public var amount: Int
-
- public var aggregatorCustomerId: String?
-
- public var aggregatorOrderId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentMethods = "payment_methods"
-
- case gid = "gid"
-
- case amountRefunded = "amount_refunded"
-
- case currency = "currency"
-
- case mode = "mode"
-
- case merchantLocale = "merchant_locale"
-
- case meta = "meta"
-
- case kind = "kind"
-
- case successUrl = "success_url"
-
- case status = "status"
-
- case captured = "captured"
-
- case paymentId = "payment_id"
-
- case gUserId = "g_user_id"
-
- case locale = "locale"
-
- case cancelUrl = "cancel_url"
-
- case created = "created"
-
- case amountCaptured = "amount_captured"
-
- case amount = "amount"
-
- case aggregatorCustomerId = "aggregator_customer_id"
-
- case aggregatorOrderId = "aggregator_order_id"
-
- }
-
- public init(aggregatorCustomerId: String? = nil, aggregatorOrderId: String? = nil, amount: Int, amountCaptured: Int, amountRefunded: Int? = nil, cancelUrl: String? = nil, captured: Bool? = nil, created: String? = nil, currency: String, gid: String, gUserId: String, kind: String? = nil, locale: String? = nil, merchantLocale: String? = nil, meta: [String: Any]? = nil, mode: String, paymentId: String? = nil, paymentMethods: [[String: Any]], status: String, successUrl: String? = nil) {
-
- self.paymentMethods = paymentMethods
-
- self.gid = gid
-
- self.amountRefunded = amountRefunded
-
- self.currency = currency
-
- self.mode = mode
-
- self.merchantLocale = merchantLocale
-
- self.meta = meta
-
- self.kind = kind
-
- self.successUrl = successUrl
-
- self.status = status
-
- self.captured = captured
-
- self.paymentId = paymentId
-
- self.gUserId = gUserId
-
- self.locale = locale
-
- self.cancelUrl = cancelUrl
-
- self.created = created
-
- self.amountCaptured = amountCaptured
-
- self.amount = amount
-
- self.aggregatorCustomerId = aggregatorCustomerId
-
- self.aggregatorOrderId = aggregatorOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentMethods = try container.decode([[String: Any]].self, forKey: .paymentMethods)
-
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- do {
- amountRefunded = try container.decode(Int.self, forKey: .amountRefunded)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- mode = try container.decode(String.self, forKey: .mode)
-
-
-
-
- do {
- merchantLocale = try container.decode(String.self, forKey: .merchantLocale)
-
- } 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)
- } catch {
-
- }
-
-
-
- do {
- kind = try container.decode(String.self, forKey: .kind)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- successUrl = try container.decode(String.self, forKey: .successUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- captured = try container.decode(Bool.self, forKey: .captured)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- paymentId = try container.decode(String.self, forKey: .paymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- gUserId = try container.decode(String.self, forKey: .gUserId)
-
-
-
-
- do {
- locale = try container.decode(String.self, forKey: .locale)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cancelUrl = try container.decode(String.self, forKey: .cancelUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- created = try container.decode(String.self, forKey: .created)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- amountCaptured = try container.decode(Int.self, forKey: .amountCaptured)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- do {
- aggregatorCustomerId = try container.decode(String.self, forKey: .aggregatorCustomerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
-
- } 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(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(amountRefunded, forKey: .amountRefunded)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(mode, forKey: .mode)
-
-
-
-
- try? container.encodeIfPresent(merchantLocale, forKey: .merchantLocale)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(kind, forKey: .kind)
-
-
-
-
- try? container.encodeIfPresent(successUrl, forKey: .successUrl)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(captured, forKey: .captured)
-
-
-
-
- try? container.encodeIfPresent(paymentId, forKey: .paymentId)
-
-
-
-
- try? container.encodeIfPresent(gUserId, forKey: .gUserId)
-
-
-
-
- try? container.encodeIfPresent(locale, forKey: .locale)
-
-
-
-
- try? container.encodeIfPresent(cancelUrl, forKey: .cancelUrl)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(amountCaptured, forKey: .amountCaptured)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(aggregatorCustomerId, forKey: .aggregatorCustomerId)
-
-
-
-
- try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentDetailsSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentDetailsSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..1ad4953ffe
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentDetailsSerializerPaymentPlatformModel.swift
@@ -0,0 +1,878 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentDetailsSerializer
+ Used By: Payment
+ */
+
+ class PaymentDetailsSerializer: Codable {
+
+
+ public var paymentMethods: [[String: Any]]
+
+ public var gid: String
+
+ public var amountRefunded: Int?
+
+ public var currency: String
+
+ public var mode: String
+
+ public var merchantLocale: String?
+
+ public var meta: [String: Any]?
+
+ public var kind: String?
+
+ public var successUrl: String?
+
+ public var status: String
+
+ public var captured: Bool?
+
+ public var paymentId: String?
+
+ public var gUserId: String
+
+ public var locale: String?
+
+ public var cancelUrl: String?
+
+ public var created: String?
+
+ public var amountCaptured: Int
+
+ public var amount: Int
+
+ public var aggregatorCustomerId: String?
+
+ public var aggregatorOrderId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentMethods = "payment_methods"
+
+ case gid = "gid"
+
+ case amountRefunded = "amount_refunded"
+
+ case currency = "currency"
+
+ case mode = "mode"
+
+ case merchantLocale = "merchant_locale"
+
+ case meta = "meta"
+
+ case kind = "kind"
+
+ case successUrl = "success_url"
+
+ case status = "status"
+
+ case captured = "captured"
+
+ case paymentId = "payment_id"
+
+ case gUserId = "g_user_id"
+
+ case locale = "locale"
+
+ case cancelUrl = "cancel_url"
+
+ case created = "created"
+
+ case amountCaptured = "amount_captured"
+
+ case amount = "amount"
+
+ case aggregatorCustomerId = "aggregator_customer_id"
+
+ case aggregatorOrderId = "aggregator_order_id"
+
+ }
+
+ public init(aggregatorCustomerId: String? = nil, aggregatorOrderId: String? = nil, amount: Int, amountCaptured: Int, amountRefunded: Int? = nil, cancelUrl: String? = nil, captured: Bool? = nil, created: String? = nil, currency: String, gid: String, gUserId: String, kind: String? = nil, locale: String? = nil, merchantLocale: String? = nil, meta: [String: Any]? = nil, mode: String, paymentId: String? = nil, paymentMethods: [[String: Any]], status: String, successUrl: String? = nil) {
+
+ self.paymentMethods = paymentMethods
+
+ self.gid = gid
+
+ self.amountRefunded = amountRefunded
+
+ self.currency = currency
+
+ self.mode = mode
+
+ self.merchantLocale = merchantLocale
+
+ self.meta = meta
+
+ self.kind = kind
+
+ self.successUrl = successUrl
+
+ self.status = status
+
+ self.captured = captured
+
+ self.paymentId = paymentId
+
+ self.gUserId = gUserId
+
+ self.locale = locale
+
+ self.cancelUrl = cancelUrl
+
+ self.created = created
+
+ self.amountCaptured = amountCaptured
+
+ self.amount = amount
+
+ self.aggregatorCustomerId = aggregatorCustomerId
+
+ self.aggregatorOrderId = aggregatorOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentMethods = try container.decode([[String: Any]].self, forKey: .paymentMethods)
+
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ do {
+ amountRefunded = try container.decode(Int.self, forKey: .amountRefunded)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ mode = try container.decode(String.self, forKey: .mode)
+
+
+
+
+ do {
+ merchantLocale = try container.decode(String.self, forKey: .merchantLocale)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ kind = try container.decode(String.self, forKey: .kind)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ successUrl = try container.decode(String.self, forKey: .successUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ captured = try container.decode(Bool.self, forKey: .captured)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentId = try container.decode(String.self, forKey: .paymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ gUserId = try container.decode(String.self, forKey: .gUserId)
+
+
+
+
+ do {
+ locale = try container.decode(String.self, forKey: .locale)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cancelUrl = try container.decode(String.self, forKey: .cancelUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ created = try container.decode(String.self, forKey: .created)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ amountCaptured = try container.decode(Int.self, forKey: .amountCaptured)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ do {
+ aggregatorCustomerId = try container.decode(String.self, forKey: .aggregatorCustomerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
+
+ } 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(paymentMethods, forKey: .paymentMethods)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(amountRefunded, forKey: .amountRefunded)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(merchantLocale, forKey: .merchantLocale)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(kind, forKey: .kind)
+
+
+
+
+ try? container.encodeIfPresent(successUrl, forKey: .successUrl)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(captured, forKey: .captured)
+
+
+
+
+ try? container.encodeIfPresent(paymentId, forKey: .paymentId)
+
+
+
+
+ try? container.encodeIfPresent(gUserId, forKey: .gUserId)
+
+
+
+
+ try? container.encodeIfPresent(locale, forKey: .locale)
+
+
+
+
+ try? container.encodeIfPresent(cancelUrl, forKey: .cancelUrl)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(amountCaptured, forKey: .amountCaptured)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorCustomerId, forKey: .aggregatorCustomerId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentDetailsSerializer
+ Used By: Payment
+ */
+
+ class PaymentDetailsSerializer: Codable {
+
+
+ public var paymentMethods: [[String: Any]]
+
+ public var gid: String
+
+ public var amountRefunded: Int?
+
+ public var currency: String
+
+ public var mode: String
+
+ public var merchantLocale: String?
+
+ public var meta: [String: Any]?
+
+ public var kind: String?
+
+ public var successUrl: String?
+
+ public var status: String
+
+ public var captured: Bool?
+
+ public var paymentId: String?
+
+ public var gUserId: String
+
+ public var locale: String?
+
+ public var cancelUrl: String?
+
+ public var created: String?
+
+ public var amountCaptured: Int
+
+ public var amount: Int
+
+ public var aggregatorCustomerId: String?
+
+ public var aggregatorOrderId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentMethods = "payment_methods"
+
+ case gid = "gid"
+
+ case amountRefunded = "amount_refunded"
+
+ case currency = "currency"
+
+ case mode = "mode"
+
+ case merchantLocale = "merchant_locale"
+
+ case meta = "meta"
+
+ case kind = "kind"
+
+ case successUrl = "success_url"
+
+ case status = "status"
+
+ case captured = "captured"
+
+ case paymentId = "payment_id"
+
+ case gUserId = "g_user_id"
+
+ case locale = "locale"
+
+ case cancelUrl = "cancel_url"
+
+ case created = "created"
+
+ case amountCaptured = "amount_captured"
+
+ case amount = "amount"
+
+ case aggregatorCustomerId = "aggregator_customer_id"
+
+ case aggregatorOrderId = "aggregator_order_id"
+
+ }
+
+ public init(aggregatorCustomerId: String? = nil, aggregatorOrderId: String? = nil, amount: Int, amountCaptured: Int, amountRefunded: Int? = nil, cancelUrl: String? = nil, captured: Bool? = nil, created: String? = nil, currency: String, gid: String, gUserId: String, kind: String? = nil, locale: String? = nil, merchantLocale: String? = nil, meta: [String: Any]? = nil, mode: String, paymentId: String? = nil, paymentMethods: [[String: Any]], status: String, successUrl: String? = nil) {
+
+ self.paymentMethods = paymentMethods
+
+ self.gid = gid
+
+ self.amountRefunded = amountRefunded
+
+ self.currency = currency
+
+ self.mode = mode
+
+ self.merchantLocale = merchantLocale
+
+ self.meta = meta
+
+ self.kind = kind
+
+ self.successUrl = successUrl
+
+ self.status = status
+
+ self.captured = captured
+
+ self.paymentId = paymentId
+
+ self.gUserId = gUserId
+
+ self.locale = locale
+
+ self.cancelUrl = cancelUrl
+
+ self.created = created
+
+ self.amountCaptured = amountCaptured
+
+ self.amount = amount
+
+ self.aggregatorCustomerId = aggregatorCustomerId
+
+ self.aggregatorOrderId = aggregatorOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentMethods = try container.decode([[String: Any]].self, forKey: .paymentMethods)
+
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ do {
+ amountRefunded = try container.decode(Int.self, forKey: .amountRefunded)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ mode = try container.decode(String.self, forKey: .mode)
+
+
+
+
+ do {
+ merchantLocale = try container.decode(String.self, forKey: .merchantLocale)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ kind = try container.decode(String.self, forKey: .kind)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ successUrl = try container.decode(String.self, forKey: .successUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ captured = try container.decode(Bool.self, forKey: .captured)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ paymentId = try container.decode(String.self, forKey: .paymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ gUserId = try container.decode(String.self, forKey: .gUserId)
+
+
+
+
+ do {
+ locale = try container.decode(String.self, forKey: .locale)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cancelUrl = try container.decode(String.self, forKey: .cancelUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ created = try container.decode(String.self, forKey: .created)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ amountCaptured = try container.decode(Int.self, forKey: .amountCaptured)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ do {
+ aggregatorCustomerId = try container.decode(String.self, forKey: .aggregatorCustomerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
+
+ } 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(paymentMethods, forKey: .paymentMethods)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(amountRefunded, forKey: .amountRefunded)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(mode, forKey: .mode)
+
+
+
+
+ try? container.encodeIfPresent(merchantLocale, forKey: .merchantLocale)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(kind, forKey: .kind)
+
+
+
+
+ try? container.encodeIfPresent(successUrl, forKey: .successUrl)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(captured, forKey: .captured)
+
+
+
+
+ try? container.encodeIfPresent(paymentId, forKey: .paymentId)
+
+
+
+
+ try? container.encodeIfPresent(gUserId, forKey: .gUserId)
+
+
+
+
+ try? container.encodeIfPresent(locale, forKey: .locale)
+
+
+
+
+ try? container.encodeIfPresent(cancelUrl, forKey: .cancelUrl)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(amountCaptured, forKey: .amountCaptured)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorCustomerId, forKey: .aggregatorCustomerId)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentGatewayConfigCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentGatewayConfigCreationPaymentPlatformModel.swift
deleted file mode 100644
index c5fee90ac1..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentGatewayConfigCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentGatewayConfigCreation
- Used By: Payment
- */
-
- class PaymentGatewayConfigCreation: Codable {
-
-
- public var appId: String
-
- public var isActive: Bool?
-
- public var aggregatorName: PaymentGatewayConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case isActive = "is_active"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: PaymentGatewayConfig? = nil, appId: String, isActive: Bool? = nil) {
-
- self.appId = appId
-
- self.isActive = isActive
-
- self.aggregatorName = aggregatorName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- appId = try container.decode(String.self, forKey: .appId)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(PaymentGatewayConfig.self, forKey: .aggregatorName)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentGatewayConfigCreation
- Used By: Payment
- */
-
- class PaymentGatewayConfigCreation: Codable {
-
-
- public var appId: String
-
- public var isActive: Bool?
-
- public var aggregatorName: PaymentGatewayConfig?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case appId = "app_id"
-
- case isActive = "is_active"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: PaymentGatewayConfig? = nil, appId: String, isActive: Bool? = nil) {
-
- self.appId = appId
-
- self.isActive = isActive
-
- self.aggregatorName = aggregatorName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- appId = try container.decode(String.self, forKey: .appId)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(PaymentGatewayConfig.self, forKey: .aggregatorName)
-
- } 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(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentGatewayConfigDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentGatewayConfigDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 3f265e3e0a..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentGatewayConfigDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentGatewayConfigDetails
- Used By: Payment
- */
-
- class PaymentGatewayConfigDetails: Codable {
-
-
- public var aggregators: [[String: Any]]?
-
- public var appId: String
-
- public var excludedFields: [String]
-
- public var success: Bool
-
- public var created: Bool
-
- public var displayFields: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregators = "aggregators"
-
- case appId = "app_id"
-
- case excludedFields = "excluded_fields"
-
- case success = "success"
-
- case created = "created"
-
- case displayFields = "display_fields"
-
- }
-
- public init(aggregators: [[String: Any]]? = nil, appId: String, created: Bool, displayFields: [String], excludedFields: [String], success: Bool) {
-
- self.aggregators = aggregators
-
- self.appId = appId
-
- self.excludedFields = excludedFields
-
- self.success = success
-
- self.created = created
-
- self.displayFields = displayFields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- aggregators = try container.decode([[String: Any]].self, forKey: .aggregators)
-
- } 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)
-
-
-
-
- excludedFields = try container.decode([String].self, forKey: .excludedFields)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- created = try container.decode(Bool.self, forKey: .created)
-
-
-
-
- displayFields = try container.decode([String].self, forKey: .displayFields)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregators, forKey: .aggregators)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(excludedFields, forKey: .excludedFields)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(displayFields, forKey: .displayFields)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentGatewayConfigDetails
- Used By: Payment
- */
-
- class PaymentGatewayConfigDetails: Codable {
-
-
- public var aggregators: [[String: Any]]?
-
- public var appId: String
-
- public var excludedFields: [String]
-
- public var success: Bool
-
- public var created: Bool
-
- public var displayFields: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregators = "aggregators"
-
- case appId = "app_id"
-
- case excludedFields = "excluded_fields"
-
- case success = "success"
-
- case created = "created"
-
- case displayFields = "display_fields"
-
- }
-
- public init(aggregators: [[String: Any]]? = nil, appId: String, created: Bool, displayFields: [String], excludedFields: [String], success: Bool) {
-
- self.aggregators = aggregators
-
- self.appId = appId
-
- self.excludedFields = excludedFields
-
- self.success = success
-
- self.created = created
-
- self.displayFields = displayFields
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- aggregators = try container.decode([[String: Any]].self, forKey: .aggregators)
-
- } 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)
-
-
-
-
- excludedFields = try container.decode([String].self, forKey: .excludedFields)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- created = try container.decode(Bool.self, forKey: .created)
-
-
-
-
- displayFields = try container.decode([String].self, forKey: .displayFields)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregators, forKey: .aggregators)
-
-
-
-
- try? container.encodeIfPresent(appId, forKey: .appId)
-
-
-
-
- try? container.encodeIfPresent(excludedFields, forKey: .excludedFields)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(displayFields, forKey: .displayFields)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentGatewayConfigRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentGatewayConfigRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..3b9f7c399b
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentGatewayConfigRequestPaymentPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentGatewayConfigRequest
+ Used By: Payment
+ */
+
+ class PaymentGatewayConfigRequest: Codable {
+
+
+ public var appId: String
+
+ public var isActive: Bool?
+
+ public var aggregatorName: PaymentGatewayConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case isActive = "is_active"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: PaymentGatewayConfig? = nil, appId: String, isActive: Bool? = nil) {
+
+ self.appId = appId
+
+ self.isActive = isActive
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(PaymentGatewayConfig.self, forKey: .aggregatorName)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentGatewayConfigRequest
+ Used By: Payment
+ */
+
+ class PaymentGatewayConfigRequest: Codable {
+
+
+ public var appId: String
+
+ public var isActive: Bool?
+
+ public var aggregatorName: PaymentGatewayConfig?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case appId = "app_id"
+
+ case isActive = "is_active"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: PaymentGatewayConfig? = nil, appId: String, isActive: Bool? = nil) {
+
+ self.appId = appId
+
+ self.isActive = isActive
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ appId = try container.decode(String.self, forKey: .appId)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(PaymentGatewayConfig.self, forKey: .aggregatorName)
+
+ } 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(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentGatewayConfigResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentGatewayConfigResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..6eb0ef67b9
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentGatewayConfigResponsePaymentPlatformModel.swift
@@ -0,0 +1,276 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentGatewayConfigResponse
+ Used By: Payment
+ */
+
+ class PaymentGatewayConfigResponse: Codable {
+
+
+ public var aggregators: [[String: Any]]?
+
+ public var appId: String
+
+ public var excludedFields: [String]
+
+ public var success: Bool
+
+ public var created: Bool
+
+ public var displayFields: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregators = "aggregators"
+
+ case appId = "app_id"
+
+ case excludedFields = "excluded_fields"
+
+ case success = "success"
+
+ case created = "created"
+
+ case displayFields = "display_fields"
+
+ }
+
+ public init(aggregators: [[String: Any]]? = nil, appId: String, created: Bool, displayFields: [String], excludedFields: [String], success: Bool) {
+
+ self.aggregators = aggregators
+
+ self.appId = appId
+
+ self.excludedFields = excludedFields
+
+ self.success = success
+
+ self.created = created
+
+ self.displayFields = displayFields
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ aggregators = try container.decode([[String: Any]].self, forKey: .aggregators)
+
+ } 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)
+
+
+
+
+ excludedFields = try container.decode([String].self, forKey: .excludedFields)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ created = try container.decode(Bool.self, forKey: .created)
+
+
+
+
+ displayFields = try container.decode([String].self, forKey: .displayFields)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregators, forKey: .aggregators)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(excludedFields, forKey: .excludedFields)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(displayFields, forKey: .displayFields)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentGatewayConfigResponse
+ Used By: Payment
+ */
+
+ class PaymentGatewayConfigResponse: Codable {
+
+
+ public var aggregators: [[String: Any]]?
+
+ public var appId: String
+
+ public var excludedFields: [String]
+
+ public var success: Bool
+
+ public var created: Bool
+
+ public var displayFields: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregators = "aggregators"
+
+ case appId = "app_id"
+
+ case excludedFields = "excluded_fields"
+
+ case success = "success"
+
+ case created = "created"
+
+ case displayFields = "display_fields"
+
+ }
+
+ public init(aggregators: [[String: Any]]? = nil, appId: String, created: Bool, displayFields: [String], excludedFields: [String], success: Bool) {
+
+ self.aggregators = aggregators
+
+ self.appId = appId
+
+ self.excludedFields = excludedFields
+
+ self.success = success
+
+ self.created = created
+
+ self.displayFields = displayFields
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ aggregators = try container.decode([[String: Any]].self, forKey: .aggregators)
+
+ } 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)
+
+
+
+
+ excludedFields = try container.decode([String].self, forKey: .excludedFields)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ created = try container.decode(Bool.self, forKey: .created)
+
+
+
+
+ displayFields = try container.decode([String].self, forKey: .displayFields)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregators, forKey: .aggregators)
+
+
+
+
+ try? container.encodeIfPresent(appId, forKey: .appId)
+
+
+
+
+ try? container.encodeIfPresent(excludedFields, forKey: .excludedFields)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(displayFields, forKey: .displayFields)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentInitializationCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentInitializationCreationPaymentPlatformModel.swift
deleted file mode 100644
index ab7d7cffda..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentInitializationCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,542 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentInitializationCreation
- Used By: Payment
- */
-
- class PaymentInitializationCreation: Codable {
-
-
- public var razorpayPaymentId: String?
-
- public var deviceId: String?
-
- public var email: String
-
- public var customerId: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var orderId: String
-
- public var currency: String
-
- public var amount: Int
-
- public var contact: String
-
- public var timeout: Int?
-
- public var merchantOrderId: String
-
- public var method: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case deviceId = "device_id"
-
- case email = "email"
-
- case customerId = "customer_id"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case amount = "amount"
-
- case contact = "contact"
-
- case timeout = "timeout"
-
- case merchantOrderId = "merchant_order_id"
-
- case method = "method"
-
- }
-
- public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.deviceId = deviceId
-
- self.email = email
-
- self.customerId = customerId
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.amount = amount
-
- self.contact = contact
-
- self.timeout = timeout
-
- self.merchantOrderId = merchantOrderId
-
- self.method = method
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- customerId = try container.decode(String.self, forKey: .customerId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- contact = try container.decode(String.self, forKey: .contact)
-
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentInitializationCreation
- Used By: Payment
- */
-
- class PaymentInitializationCreation: Codable {
-
-
- public var razorpayPaymentId: String?
-
- public var deviceId: String?
-
- public var email: String
-
- public var customerId: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var orderId: String
-
- public var currency: String
-
- public var amount: Int
-
- public var contact: String
-
- public var timeout: Int?
-
- public var merchantOrderId: String
-
- public var method: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case deviceId = "device_id"
-
- case email = "email"
-
- case customerId = "customer_id"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case amount = "amount"
-
- case contact = "contact"
-
- case timeout = "timeout"
-
- case merchantOrderId = "merchant_order_id"
-
- case method = "method"
-
- }
-
- public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.deviceId = deviceId
-
- self.email = email
-
- self.customerId = customerId
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.amount = amount
-
- self.contact = contact
-
- self.timeout = timeout
-
- self.merchantOrderId = merchantOrderId
-
- self.method = method
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- customerId = try container.decode(String.self, forKey: .customerId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- contact = try container.decode(String.self, forKey: .contact)
-
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentInitializationDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentInitializationDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 94bf03c3cc..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentInitializationDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,782 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentInitializationDetails
- Used By: Payment
- */
-
- class PaymentInitializationDetails: Codable {
-
-
- public var razorpayPaymentId: String?
-
- public var deviceId: String?
-
- public var upiPollUrl: String?
-
- public var customerId: String?
-
- public var pollingUrl: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var currency: String?
-
- public var merchantOrderId: String
-
- public var amount: Int?
-
- public var timeout: Int?
-
- public var virtualId: String?
-
- public var bqrImage: String?
-
- public var aggregatorOrderId: String?
-
- public var success: Bool
-
- public var status: String?
-
- public var method: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case deviceId = "device_id"
-
- case upiPollUrl = "upi_poll_url"
-
- case customerId = "customer_id"
-
- case pollingUrl = "polling_url"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case currency = "currency"
-
- case merchantOrderId = "merchant_order_id"
-
- case amount = "amount"
-
- case timeout = "timeout"
-
- case virtualId = "virtual_id"
-
- case bqrImage = "bqr_image"
-
- case aggregatorOrderId = "aggregator_order_id"
-
- case success = "success"
-
- case status = "status"
-
- case method = "method"
-
- }
-
- public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.deviceId = deviceId
-
- self.upiPollUrl = upiPollUrl
-
- self.customerId = customerId
-
- self.pollingUrl = pollingUrl
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.currency = currency
-
- self.merchantOrderId = merchantOrderId
-
- self.amount = amount
-
- self.timeout = timeout
-
- self.virtualId = virtualId
-
- self.bqrImage = bqrImage
-
- self.aggregatorOrderId = aggregatorOrderId
-
- self.success = success
-
- self.status = status
-
- self.method = method
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerId = try container.decode(String.self, forKey: .customerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- do {
- amount = try container.decode(Int.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- virtualId = try container.decode(String.self, forKey: .virtualId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bqrImage = try container.decode(String.self, forKey: .bqrImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
-
- try? container.encodeIfPresent(virtualId, forKey: .virtualId)
-
-
-
-
- try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
-
-
-
-
- try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentInitializationDetails
- Used By: Payment
- */
-
- class PaymentInitializationDetails: Codable {
-
-
- public var razorpayPaymentId: String?
-
- public var deviceId: String?
-
- public var upiPollUrl: String?
-
- public var customerId: String?
-
- public var pollingUrl: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var currency: String?
-
- public var merchantOrderId: String
-
- public var amount: Int?
-
- public var timeout: Int?
-
- public var virtualId: String?
-
- public var bqrImage: String?
-
- public var aggregatorOrderId: String?
-
- public var success: Bool
-
- public var status: String?
-
- public var method: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case razorpayPaymentId = "razorpay_payment_id"
-
- case deviceId = "device_id"
-
- case upiPollUrl = "upi_poll_url"
-
- case customerId = "customer_id"
-
- case pollingUrl = "polling_url"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case currency = "currency"
-
- case merchantOrderId = "merchant_order_id"
-
- case amount = "amount"
-
- case timeout = "timeout"
-
- case virtualId = "virtual_id"
-
- case bqrImage = "bqr_image"
-
- case aggregatorOrderId = "aggregator_order_id"
-
- case success = "success"
-
- case status = "status"
-
- case method = "method"
-
- }
-
- public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
-
- self.razorpayPaymentId = razorpayPaymentId
-
- self.deviceId = deviceId
-
- self.upiPollUrl = upiPollUrl
-
- self.customerId = customerId
-
- self.pollingUrl = pollingUrl
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.currency = currency
-
- self.merchantOrderId = merchantOrderId
-
- self.amount = amount
-
- self.timeout = timeout
-
- self.virtualId = virtualId
-
- self.bqrImage = bqrImage
-
- self.aggregatorOrderId = aggregatorOrderId
-
- self.success = success
-
- self.status = status
-
- self.method = method
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- customerId = try container.decode(String.self, forKey: .customerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- do {
- amount = try container.decode(Int.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- timeout = try container.decode(Int.self, forKey: .timeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- virtualId = try container.decode(String.self, forKey: .virtualId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- bqrImage = try container.decode(String.self, forKey: .bqrImage)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(timeout, forKey: .timeout)
-
-
-
-
- try? container.encodeIfPresent(virtualId, forKey: .virtualId)
-
-
-
-
- try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
-
-
-
-
- try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentInitializationRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentInitializationRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..c5b6508152
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentInitializationRequestPaymentPlatformModel.swift
@@ -0,0 +1,542 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentInitializationRequest
+ Used By: Payment
+ */
+
+ class PaymentInitializationRequest: Codable {
+
+
+ public var razorpayPaymentId: String?
+
+ public var deviceId: String?
+
+ public var email: String
+
+ public var customerId: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var orderId: String
+
+ public var currency: String
+
+ public var amount: Int
+
+ public var contact: String
+
+ public var timeout: Int?
+
+ public var merchantOrderId: String
+
+ public var method: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case deviceId = "device_id"
+
+ case email = "email"
+
+ case customerId = "customer_id"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case amount = "amount"
+
+ case contact = "contact"
+
+ case timeout = "timeout"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case method = "method"
+
+ }
+
+ public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.deviceId = deviceId
+
+ self.email = email
+
+ self.customerId = customerId
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.amount = amount
+
+ self.contact = contact
+
+ self.timeout = timeout
+
+ self.merchantOrderId = merchantOrderId
+
+ self.method = method
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ contact = try container.decode(String.self, forKey: .contact)
+
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentInitializationRequest
+ Used By: Payment
+ */
+
+ class PaymentInitializationRequest: Codable {
+
+
+ public var razorpayPaymentId: String?
+
+ public var deviceId: String?
+
+ public var email: String
+
+ public var customerId: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var orderId: String
+
+ public var currency: String
+
+ public var amount: Int
+
+ public var contact: String
+
+ public var timeout: Int?
+
+ public var merchantOrderId: String
+
+ public var method: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case deviceId = "device_id"
+
+ case email = "email"
+
+ case customerId = "customer_id"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case amount = "amount"
+
+ case contact = "contact"
+
+ case timeout = "timeout"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case method = "method"
+
+ }
+
+ public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, method: String, orderId: String, razorpayPaymentId: String? = nil, timeout: Int? = nil, vpa: String? = nil) {
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.deviceId = deviceId
+
+ self.email = email
+
+ self.customerId = customerId
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.amount = amount
+
+ self.contact = contact
+
+ self.timeout = timeout
+
+ self.merchantOrderId = merchantOrderId
+
+ self.method = method
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ contact = try container.decode(String.self, forKey: .contact)
+
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentInitializationResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentInitializationResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..e46bd04166
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentInitializationResponsePaymentPlatformModel.swift
@@ -0,0 +1,782 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentInitializationResponse
+ Used By: Payment
+ */
+
+ class PaymentInitializationResponse: Codable {
+
+
+ public var razorpayPaymentId: String?
+
+ public var deviceId: String?
+
+ public var upiPollUrl: String?
+
+ public var customerId: String?
+
+ public var pollingUrl: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var currency: String?
+
+ public var merchantOrderId: String
+
+ public var amount: Int?
+
+ public var timeout: Int?
+
+ public var virtualId: String?
+
+ public var bqrImage: String?
+
+ public var aggregatorOrderId: String?
+
+ public var success: Bool
+
+ public var status: String?
+
+ public var method: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case deviceId = "device_id"
+
+ case upiPollUrl = "upi_poll_url"
+
+ case customerId = "customer_id"
+
+ case pollingUrl = "polling_url"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case currency = "currency"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case amount = "amount"
+
+ case timeout = "timeout"
+
+ case virtualId = "virtual_id"
+
+ case bqrImage = "bqr_image"
+
+ case aggregatorOrderId = "aggregator_order_id"
+
+ case success = "success"
+
+ case status = "status"
+
+ case method = "method"
+
+ }
+
+ public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.deviceId = deviceId
+
+ self.upiPollUrl = upiPollUrl
+
+ self.customerId = customerId
+
+ self.pollingUrl = pollingUrl
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.currency = currency
+
+ self.merchantOrderId = merchantOrderId
+
+ self.amount = amount
+
+ self.timeout = timeout
+
+ self.virtualId = virtualId
+
+ self.bqrImage = bqrImage
+
+ self.aggregatorOrderId = aggregatorOrderId
+
+ self.success = success
+
+ self.status = status
+
+ self.method = method
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ do {
+ amount = try container.decode(Int.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ virtualId = try container.decode(String.self, forKey: .virtualId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bqrImage = try container.decode(String.self, forKey: .bqrImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+
+ try? container.encodeIfPresent(virtualId, forKey: .virtualId)
+
+
+
+
+ try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentInitializationResponse
+ Used By: Payment
+ */
+
+ class PaymentInitializationResponse: Codable {
+
+
+ public var razorpayPaymentId: String?
+
+ public var deviceId: String?
+
+ public var upiPollUrl: String?
+
+ public var customerId: String?
+
+ public var pollingUrl: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var currency: String?
+
+ public var merchantOrderId: String
+
+ public var amount: Int?
+
+ public var timeout: Int?
+
+ public var virtualId: String?
+
+ public var bqrImage: String?
+
+ public var aggregatorOrderId: String?
+
+ public var success: Bool
+
+ public var status: String?
+
+ public var method: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case razorpayPaymentId = "razorpay_payment_id"
+
+ case deviceId = "device_id"
+
+ case upiPollUrl = "upi_poll_url"
+
+ case customerId = "customer_id"
+
+ case pollingUrl = "polling_url"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case currency = "currency"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case amount = "amount"
+
+ case timeout = "timeout"
+
+ case virtualId = "virtual_id"
+
+ case bqrImage = "bqr_image"
+
+ case aggregatorOrderId = "aggregator_order_id"
+
+ case success = "success"
+
+ case status = "status"
+
+ case method = "method"
+
+ }
+
+ public init(aggregator: String, aggregatorOrderId: String? = nil, amount: Int? = nil, bqrImage: String? = nil, currency: String? = nil, customerId: String? = nil, deviceId: String? = nil, merchantOrderId: String, method: String, pollingUrl: String, razorpayPaymentId: String? = nil, status: String? = nil, success: Bool, timeout: Int? = nil, upiPollUrl: String? = nil, virtualId: String? = nil, vpa: String? = nil) {
+
+ self.razorpayPaymentId = razorpayPaymentId
+
+ self.deviceId = deviceId
+
+ self.upiPollUrl = upiPollUrl
+
+ self.customerId = customerId
+
+ self.pollingUrl = pollingUrl
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.currency = currency
+
+ self.merchantOrderId = merchantOrderId
+
+ self.amount = amount
+
+ self.timeout = timeout
+
+ self.virtualId = virtualId
+
+ self.bqrImage = bqrImage
+
+ self.aggregatorOrderId = aggregatorOrderId
+
+ self.success = success
+
+ self.status = status
+
+ self.method = method
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ razorpayPaymentId = try container.decode(String.self, forKey: .razorpayPaymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ upiPollUrl = try container.decode(String.self, forKey: .upiPollUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ pollingUrl = try container.decode(String.self, forKey: .pollingUrl)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ do {
+ amount = try container.decode(Int.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ timeout = try container.decode(Int.self, forKey: .timeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ virtualId = try container.decode(String.self, forKey: .virtualId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ bqrImage = try container.decode(String.self, forKey: .bqrImage)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorOrderId = try container.decode(String.self, forKey: .aggregatorOrderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(razorpayPaymentId, forKey: .razorpayPaymentId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(upiPollUrl, forKey: .upiPollUrl)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(pollingUrl, forKey: .pollingUrl)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(timeout, forKey: .timeout)
+
+
+
+
+ try? container.encodeIfPresent(virtualId, forKey: .virtualId)
+
+
+
+
+ try? container.encodeIfPresent(bqrImage, forKey: .bqrImage)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorOrderId, forKey: .aggregatorOrderId)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentModeRouteDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentModeRouteDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 73e6627e8d..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentModeRouteDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,226 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentModeRouteDetails
- Used By: Payment
- */
-
- class PaymentModeRouteDetails: Codable {
-
-
- public var paymentOptions: PaymentOptionAndFlow
-
- public var success: Bool
-
- public var paymentBreakup: [String: Any]?
-
- public var advancePayment: [AdvancePaymentObject]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentOptions = "payment_options"
-
- case success = "success"
-
- case paymentBreakup = "payment_breakup"
-
- case advancePayment = "advance_payment"
-
- }
-
- public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
-
- self.paymentOptions = paymentOptions
-
- self.success = success
-
- self.paymentBreakup = paymentBreakup
-
- self.advancePayment = advancePayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
-
- } 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(paymentOptions, forKey: .paymentOptions)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
-
-
-
-
- try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentModeRouteDetails
- Used By: Payment
- */
-
- class PaymentModeRouteDetails: Codable {
-
-
- public var paymentOptions: PaymentOptionAndFlow
-
- public var success: Bool
-
- public var paymentBreakup: [String: Any]?
-
- public var advancePayment: [AdvancePaymentObject]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentOptions = "payment_options"
-
- case success = "success"
-
- case paymentBreakup = "payment_breakup"
-
- case advancePayment = "advance_payment"
-
- }
-
- public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
-
- self.paymentOptions = paymentOptions
-
- self.success = success
-
- self.paymentBreakup = paymentBreakup
-
- self.advancePayment = advancePayment
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
-
- } 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(paymentOptions, forKey: .paymentOptions)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
-
-
-
-
- try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentModeRouteResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentModeRouteResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..2e07c5594e
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentModeRouteResponsePaymentPlatformModel.swift
@@ -0,0 +1,226 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentModeRouteResponse
+ Used By: Payment
+ */
+
+ class PaymentModeRouteResponse: Codable {
+
+
+ public var paymentOptions: PaymentOptionAndFlow
+
+ public var success: Bool
+
+ public var paymentBreakup: [String: Any]?
+
+ public var advancePayment: [AdvancePaymentObject]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentOptions = "payment_options"
+
+ case success = "success"
+
+ case paymentBreakup = "payment_breakup"
+
+ case advancePayment = "advance_payment"
+
+ }
+
+ public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
+
+ self.paymentOptions = paymentOptions
+
+ self.success = success
+
+ self.paymentBreakup = paymentBreakup
+
+ self.advancePayment = advancePayment
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
+
+ } 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(paymentOptions, forKey: .paymentOptions)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
+
+
+
+
+ try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentModeRouteResponse
+ Used By: Payment
+ */
+
+ class PaymentModeRouteResponse: Codable {
+
+
+ public var paymentOptions: PaymentOptionAndFlow
+
+ public var success: Bool
+
+ public var paymentBreakup: [String: Any]?
+
+ public var advancePayment: [AdvancePaymentObject]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentOptions = "payment_options"
+
+ case success = "success"
+
+ case paymentBreakup = "payment_breakup"
+
+ case advancePayment = "advance_payment"
+
+ }
+
+ public init(advancePayment: [AdvancePaymentObject]? = nil, paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptionAndFlow, success: Bool) {
+
+ self.paymentOptions = paymentOptions
+
+ self.success = success
+
+ self.paymentBreakup = paymentBreakup
+
+ self.advancePayment = advancePayment
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentOptions = try container.decode(PaymentOptionAndFlow.self, forKey: .paymentOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ advancePayment = try container.decode([AdvancePaymentObject].self, forKey: .advancePayment)
+
+ } 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(paymentOptions, forKey: .paymentOptions)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
+
+
+
+
+ try? container.encodeIfPresent(advancePayment, forKey: .advancePayment)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentObjectListPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentObjectListPaymentPlatformModel.swift
deleted file mode 100644
index 2bed1930bf..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentObjectListPaymentPlatformModel.swift
+++ /dev/null
@@ -1,688 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentObjectList
- Used By: Payment
- */
-
- class PaymentObjectList: Codable {
-
-
- public var userObject: [String: Any]
-
- public var modifiedOn: String
-
- public var collectedBy: String
-
- public var createdOn: String
-
- public var refundObject: [String: Any]?
-
- public var id: String
-
- public var paymentId: String?
-
- public var currency: String
-
- public var currentStatus: String
-
- public var aggregatorPaymentObject: [String: Any]?
-
- public var paymentMode: String
-
- public var refundedBy: String
-
- public var amountInPaisa: String
-
- public var paymentGateway: String
-
- public var companyId: String
-
- public var paymentModeIdentifier: String
-
- public var applicationId: String
-
- public var allStatus: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userObject = "user_object"
-
- case modifiedOn = "modified_on"
-
- case collectedBy = "collected_by"
-
- case createdOn = "created_on"
-
- case refundObject = "refund_object"
-
- case id = "id"
-
- case paymentId = "payment_id"
-
- case currency = "currency"
-
- case currentStatus = "current_status"
-
- case aggregatorPaymentObject = "aggregator_payment_object"
-
- case paymentMode = "payment_mode"
-
- case refundedBy = "refunded_by"
-
- case amountInPaisa = "amount_in_paisa"
-
- case paymentGateway = "payment_gateway"
-
- case companyId = "company_id"
-
- case paymentModeIdentifier = "payment_mode_identifier"
-
- case applicationId = "application_id"
-
- case allStatus = "all_status"
-
- }
-
- public init(aggregatorPaymentObject: [String: Any]? = nil, allStatus: [String], amountInPaisa: String, applicationId: String, collectedBy: String, companyId: String, createdOn: String, currency: String, currentStatus: String, id: String, modifiedOn: String, paymentGateway: String, paymentId: String? = nil, paymentMode: String, paymentModeIdentifier: String, refundedBy: String, refundObject: [String: Any]? = nil, userObject: [String: Any]) {
-
- self.userObject = userObject
-
- self.modifiedOn = modifiedOn
-
- self.collectedBy = collectedBy
-
- self.createdOn = createdOn
-
- self.refundObject = refundObject
-
- self.id = id
-
- self.paymentId = paymentId
-
- self.currency = currency
-
- self.currentStatus = currentStatus
-
- self.aggregatorPaymentObject = aggregatorPaymentObject
-
- self.paymentMode = paymentMode
-
- self.refundedBy = refundedBy
-
- self.amountInPaisa = amountInPaisa
-
- self.paymentGateway = paymentGateway
-
- self.companyId = companyId
-
- self.paymentModeIdentifier = paymentModeIdentifier
-
- self.applicationId = applicationId
-
- self.allStatus = allStatus
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userObject = try container.decode([String: Any].self, forKey: .userObject)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- collectedBy = try container.decode(String.self, forKey: .collectedBy)
-
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- do {
- refundObject = try container.decode([String: Any].self, forKey: .refundObject)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- paymentId = try container.decode(String.self, forKey: .paymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- currentStatus = try container.decode(String.self, forKey: .currentStatus)
-
-
-
-
- do {
- aggregatorPaymentObject = try container.decode([String: Any].self, forKey: .aggregatorPaymentObject)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- refundedBy = try container.decode(String.self, forKey: .refundedBy)
-
-
-
-
- amountInPaisa = try container.decode(String.self, forKey: .amountInPaisa)
-
-
-
-
- paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
-
-
-
-
- companyId = try container.decode(String.self, forKey: .companyId)
-
-
-
-
- paymentModeIdentifier = try container.decode(String.self, forKey: .paymentModeIdentifier)
-
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- allStatus = try container.decode([String].self, forKey: .allStatus)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userObject, forKey: .userObject)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(collectedBy, forKey: .collectedBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(refundObject, forKey: .refundObject)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(paymentId, forKey: .paymentId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
-
-
-
-
- try? container.encodeIfPresent(aggregatorPaymentObject, forKey: .aggregatorPaymentObject)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(refundedBy, forKey: .refundedBy)
-
-
-
-
- try? container.encodeIfPresent(amountInPaisa, forKey: .amountInPaisa)
-
-
-
-
- try? container.encodeIfPresent(paymentGateway, forKey: .paymentGateway)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(paymentModeIdentifier, forKey: .paymentModeIdentifier)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(allStatus, forKey: .allStatus)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentObjectList
- Used By: Payment
- */
-
- class PaymentObjectList: Codable {
-
-
- public var userObject: [String: Any]
-
- public var modifiedOn: String
-
- public var collectedBy: String
-
- public var createdOn: String
-
- public var refundObject: [String: Any]?
-
- public var id: String
-
- public var paymentId: String?
-
- public var currency: String
-
- public var currentStatus: String
-
- public var aggregatorPaymentObject: [String: Any]?
-
- public var paymentMode: String
-
- public var refundedBy: String
-
- public var amountInPaisa: String
-
- public var paymentGateway: String
-
- public var companyId: String
-
- public var paymentModeIdentifier: String
-
- public var applicationId: String
-
- public var allStatus: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case userObject = "user_object"
-
- case modifiedOn = "modified_on"
-
- case collectedBy = "collected_by"
-
- case createdOn = "created_on"
-
- case refundObject = "refund_object"
-
- case id = "id"
-
- case paymentId = "payment_id"
-
- case currency = "currency"
-
- case currentStatus = "current_status"
-
- case aggregatorPaymentObject = "aggregator_payment_object"
-
- case paymentMode = "payment_mode"
-
- case refundedBy = "refunded_by"
-
- case amountInPaisa = "amount_in_paisa"
-
- case paymentGateway = "payment_gateway"
-
- case companyId = "company_id"
-
- case paymentModeIdentifier = "payment_mode_identifier"
-
- case applicationId = "application_id"
-
- case allStatus = "all_status"
-
- }
-
- public init(aggregatorPaymentObject: [String: Any]? = nil, allStatus: [String], amountInPaisa: String, applicationId: String, collectedBy: String, companyId: String, createdOn: String, currency: String, currentStatus: String, id: String, modifiedOn: String, paymentGateway: String, paymentId: String? = nil, paymentMode: String, paymentModeIdentifier: String, refundedBy: String, refundObject: [String: Any]? = nil, userObject: [String: Any]) {
-
- self.userObject = userObject
-
- self.modifiedOn = modifiedOn
-
- self.collectedBy = collectedBy
-
- self.createdOn = createdOn
-
- self.refundObject = refundObject
-
- self.id = id
-
- self.paymentId = paymentId
-
- self.currency = currency
-
- self.currentStatus = currentStatus
-
- self.aggregatorPaymentObject = aggregatorPaymentObject
-
- self.paymentMode = paymentMode
-
- self.refundedBy = refundedBy
-
- self.amountInPaisa = amountInPaisa
-
- self.paymentGateway = paymentGateway
-
- self.companyId = companyId
-
- self.paymentModeIdentifier = paymentModeIdentifier
-
- self.applicationId = applicationId
-
- self.allStatus = allStatus
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- userObject = try container.decode([String: Any].self, forKey: .userObject)
-
-
-
-
- modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
-
-
-
-
- collectedBy = try container.decode(String.self, forKey: .collectedBy)
-
-
-
-
- createdOn = try container.decode(String.self, forKey: .createdOn)
-
-
-
-
- do {
- refundObject = try container.decode([String: Any].self, forKey: .refundObject)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- do {
- paymentId = try container.decode(String.self, forKey: .paymentId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- currentStatus = try container.decode(String.self, forKey: .currentStatus)
-
-
-
-
- do {
- aggregatorPaymentObject = try container.decode([String: Any].self, forKey: .aggregatorPaymentObject)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- paymentMode = try container.decode(String.self, forKey: .paymentMode)
-
-
-
-
- refundedBy = try container.decode(String.self, forKey: .refundedBy)
-
-
-
-
- amountInPaisa = try container.decode(String.self, forKey: .amountInPaisa)
-
-
-
-
- paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
-
-
-
-
- companyId = try container.decode(String.self, forKey: .companyId)
-
-
-
-
- paymentModeIdentifier = try container.decode(String.self, forKey: .paymentModeIdentifier)
-
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- allStatus = try container.decode([String].self, forKey: .allStatus)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(userObject, forKey: .userObject)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(collectedBy, forKey: .collectedBy)
-
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(refundObject, forKey: .refundObject)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(paymentId, forKey: .paymentId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
-
-
-
-
- try? container.encodeIfPresent(aggregatorPaymentObject, forKey: .aggregatorPaymentObject)
-
-
-
-
- try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
-
-
-
-
- try? container.encodeIfPresent(refundedBy, forKey: .refundedBy)
-
-
-
-
- try? container.encodeIfPresent(amountInPaisa, forKey: .amountInPaisa)
-
-
-
-
- try? container.encodeIfPresent(paymentGateway, forKey: .paymentGateway)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(paymentModeIdentifier, forKey: .paymentModeIdentifier)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(allStatus, forKey: .allStatus)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentObjectListSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentObjectListSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..49b6a6a8fa
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentObjectListSerializerPaymentPlatformModel.swift
@@ -0,0 +1,688 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentObjectListSerializer
+ Used By: Payment
+ */
+
+ class PaymentObjectListSerializer: Codable {
+
+
+ public var userObject: [String: Any]
+
+ public var modifiedOn: String
+
+ public var collectedBy: String
+
+ public var createdOn: String
+
+ public var refundObject: [String: Any]?
+
+ public var id: String
+
+ public var paymentId: String?
+
+ public var currency: String
+
+ public var currentStatus: String
+
+ public var aggregatorPaymentObject: [String: Any]?
+
+ public var paymentMode: String
+
+ public var refundedBy: String
+
+ public var amountInPaisa: String
+
+ public var paymentGateway: String
+
+ public var companyId: String
+
+ public var paymentModeIdentifier: String
+
+ public var applicationId: String
+
+ public var allStatus: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userObject = "user_object"
+
+ case modifiedOn = "modified_on"
+
+ case collectedBy = "collected_by"
+
+ case createdOn = "created_on"
+
+ case refundObject = "refund_object"
+
+ case id = "id"
+
+ case paymentId = "payment_id"
+
+ case currency = "currency"
+
+ case currentStatus = "current_status"
+
+ case aggregatorPaymentObject = "aggregator_payment_object"
+
+ case paymentMode = "payment_mode"
+
+ case refundedBy = "refunded_by"
+
+ case amountInPaisa = "amount_in_paisa"
+
+ case paymentGateway = "payment_gateway"
+
+ case companyId = "company_id"
+
+ case paymentModeIdentifier = "payment_mode_identifier"
+
+ case applicationId = "application_id"
+
+ case allStatus = "all_status"
+
+ }
+
+ public init(aggregatorPaymentObject: [String: Any]? = nil, allStatus: [String], amountInPaisa: String, applicationId: String, collectedBy: String, companyId: String, createdOn: String, currency: String, currentStatus: String, id: String, modifiedOn: String, paymentGateway: String, paymentId: String? = nil, paymentMode: String, paymentModeIdentifier: String, refundedBy: String, refundObject: [String: Any]? = nil, userObject: [String: Any]) {
+
+ self.userObject = userObject
+
+ self.modifiedOn = modifiedOn
+
+ self.collectedBy = collectedBy
+
+ self.createdOn = createdOn
+
+ self.refundObject = refundObject
+
+ self.id = id
+
+ self.paymentId = paymentId
+
+ self.currency = currency
+
+ self.currentStatus = currentStatus
+
+ self.aggregatorPaymentObject = aggregatorPaymentObject
+
+ self.paymentMode = paymentMode
+
+ self.refundedBy = refundedBy
+
+ self.amountInPaisa = amountInPaisa
+
+ self.paymentGateway = paymentGateway
+
+ self.companyId = companyId
+
+ self.paymentModeIdentifier = paymentModeIdentifier
+
+ self.applicationId = applicationId
+
+ self.allStatus = allStatus
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ userObject = try container.decode([String: Any].self, forKey: .userObject)
+
+
+
+
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+
+
+
+
+ collectedBy = try container.decode(String.self, forKey: .collectedBy)
+
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ do {
+ refundObject = try container.decode([String: Any].self, forKey: .refundObject)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ do {
+ paymentId = try container.decode(String.self, forKey: .paymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ currentStatus = try container.decode(String.self, forKey: .currentStatus)
+
+
+
+
+ do {
+ aggregatorPaymentObject = try container.decode([String: Any].self, forKey: .aggregatorPaymentObject)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+
+
+
+ refundedBy = try container.decode(String.self, forKey: .refundedBy)
+
+
+
+
+ amountInPaisa = try container.decode(String.self, forKey: .amountInPaisa)
+
+
+
+
+ paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
+
+
+
+
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+
+
+
+ paymentModeIdentifier = try container.decode(String.self, forKey: .paymentModeIdentifier)
+
+
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ allStatus = try container.decode([String].self, forKey: .allStatus)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(userObject, forKey: .userObject)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(collectedBy, forKey: .collectedBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(refundObject, forKey: .refundObject)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(paymentId, forKey: .paymentId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorPaymentObject, forKey: .aggregatorPaymentObject)
+
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+
+ try? container.encodeIfPresent(refundedBy, forKey: .refundedBy)
+
+
+
+
+ try? container.encodeIfPresent(amountInPaisa, forKey: .amountInPaisa)
+
+
+
+
+ try? container.encodeIfPresent(paymentGateway, forKey: .paymentGateway)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(paymentModeIdentifier, forKey: .paymentModeIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(allStatus, forKey: .allStatus)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentObjectListSerializer
+ Used By: Payment
+ */
+
+ class PaymentObjectListSerializer: Codable {
+
+
+ public var userObject: [String: Any]
+
+ public var modifiedOn: String
+
+ public var collectedBy: String
+
+ public var createdOn: String
+
+ public var refundObject: [String: Any]?
+
+ public var id: String
+
+ public var paymentId: String?
+
+ public var currency: String
+
+ public var currentStatus: String
+
+ public var aggregatorPaymentObject: [String: Any]?
+
+ public var paymentMode: String
+
+ public var refundedBy: String
+
+ public var amountInPaisa: String
+
+ public var paymentGateway: String
+
+ public var companyId: String
+
+ public var paymentModeIdentifier: String
+
+ public var applicationId: String
+
+ public var allStatus: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case userObject = "user_object"
+
+ case modifiedOn = "modified_on"
+
+ case collectedBy = "collected_by"
+
+ case createdOn = "created_on"
+
+ case refundObject = "refund_object"
+
+ case id = "id"
+
+ case paymentId = "payment_id"
+
+ case currency = "currency"
+
+ case currentStatus = "current_status"
+
+ case aggregatorPaymentObject = "aggregator_payment_object"
+
+ case paymentMode = "payment_mode"
+
+ case refundedBy = "refunded_by"
+
+ case amountInPaisa = "amount_in_paisa"
+
+ case paymentGateway = "payment_gateway"
+
+ case companyId = "company_id"
+
+ case paymentModeIdentifier = "payment_mode_identifier"
+
+ case applicationId = "application_id"
+
+ case allStatus = "all_status"
+
+ }
+
+ public init(aggregatorPaymentObject: [String: Any]? = nil, allStatus: [String], amountInPaisa: String, applicationId: String, collectedBy: String, companyId: String, createdOn: String, currency: String, currentStatus: String, id: String, modifiedOn: String, paymentGateway: String, paymentId: String? = nil, paymentMode: String, paymentModeIdentifier: String, refundedBy: String, refundObject: [String: Any]? = nil, userObject: [String: Any]) {
+
+ self.userObject = userObject
+
+ self.modifiedOn = modifiedOn
+
+ self.collectedBy = collectedBy
+
+ self.createdOn = createdOn
+
+ self.refundObject = refundObject
+
+ self.id = id
+
+ self.paymentId = paymentId
+
+ self.currency = currency
+
+ self.currentStatus = currentStatus
+
+ self.aggregatorPaymentObject = aggregatorPaymentObject
+
+ self.paymentMode = paymentMode
+
+ self.refundedBy = refundedBy
+
+ self.amountInPaisa = amountInPaisa
+
+ self.paymentGateway = paymentGateway
+
+ self.companyId = companyId
+
+ self.paymentModeIdentifier = paymentModeIdentifier
+
+ self.applicationId = applicationId
+
+ self.allStatus = allStatus
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ userObject = try container.decode([String: Any].self, forKey: .userObject)
+
+
+
+
+ modifiedOn = try container.decode(String.self, forKey: .modifiedOn)
+
+
+
+
+ collectedBy = try container.decode(String.self, forKey: .collectedBy)
+
+
+
+
+ createdOn = try container.decode(String.self, forKey: .createdOn)
+
+
+
+
+ do {
+ refundObject = try container.decode([String: Any].self, forKey: .refundObject)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ do {
+ paymentId = try container.decode(String.self, forKey: .paymentId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ currentStatus = try container.decode(String.self, forKey: .currentStatus)
+
+
+
+
+ do {
+ aggregatorPaymentObject = try container.decode([String: Any].self, forKey: .aggregatorPaymentObject)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ paymentMode = try container.decode(String.self, forKey: .paymentMode)
+
+
+
+
+ refundedBy = try container.decode(String.self, forKey: .refundedBy)
+
+
+
+
+ amountInPaisa = try container.decode(String.self, forKey: .amountInPaisa)
+
+
+
+
+ paymentGateway = try container.decode(String.self, forKey: .paymentGateway)
+
+
+
+
+ companyId = try container.decode(String.self, forKey: .companyId)
+
+
+
+
+ paymentModeIdentifier = try container.decode(String.self, forKey: .paymentModeIdentifier)
+
+
+
+
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+
+
+
+ allStatus = try container.decode([String].self, forKey: .allStatus)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(userObject, forKey: .userObject)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(collectedBy, forKey: .collectedBy)
+
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(refundObject, forKey: .refundObject)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(paymentId, forKey: .paymentId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(currentStatus, forKey: .currentStatus)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorPaymentObject, forKey: .aggregatorPaymentObject)
+
+
+
+
+ try? container.encodeIfPresent(paymentMode, forKey: .paymentMode)
+
+
+
+
+ try? container.encodeIfPresent(refundedBy, forKey: .refundedBy)
+
+
+
+
+ try? container.encodeIfPresent(amountInPaisa, forKey: .amountInPaisa)
+
+
+
+
+ try? container.encodeIfPresent(paymentGateway, forKey: .paymentGateway)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(paymentModeIdentifier, forKey: .paymentModeIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(allStatus, forKey: .allStatus)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentOptionsDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOptionsDetailsPaymentPlatformModel.swift
deleted file mode 100644
index a3b43e0bbb..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentOptionsDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentOptionsDetails
- Used By: Payment
- */
-
- class PaymentOptionsDetails: Codable {
-
-
- public var paymentOptions: PaymentOptions
-
- public var success: Bool
-
- public var paymentBreakup: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentOptions = "payment_options"
-
- case success = "success"
-
- case paymentBreakup = "payment_breakup"
-
- }
-
- public init(paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptions, success: Bool) {
-
- self.paymentOptions = paymentOptions
-
- self.success = success
-
- self.paymentBreakup = paymentBreakup
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentOptions = try container.decode(PaymentOptions.self, forKey: .paymentOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
-
- } 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(paymentOptions, forKey: .paymentOptions)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentOptionsDetails
- Used By: Payment
- */
-
- class PaymentOptionsDetails: Codable {
-
-
- public var paymentOptions: PaymentOptions
-
- public var success: Bool
-
- public var paymentBreakup: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentOptions = "payment_options"
-
- case success = "success"
-
- case paymentBreakup = "payment_breakup"
-
- }
-
- public init(paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptions, success: Bool) {
-
- self.paymentOptions = paymentOptions
-
- self.success = success
-
- self.paymentBreakup = paymentBreakup
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentOptions = try container.decode(PaymentOptions.self, forKey: .paymentOptions)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
-
- } 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(paymentOptions, forKey: .paymentOptions)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentOptionsResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOptionsResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..bbd56d43c4
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentOptionsResponsePaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentOptionsResponse
+ Used By: Payment
+ */
+
+ class PaymentOptionsResponse: Codable {
+
+
+ public var paymentOptions: PaymentOptions
+
+ public var success: Bool
+
+ public var paymentBreakup: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentOptions = "payment_options"
+
+ case success = "success"
+
+ case paymentBreakup = "payment_breakup"
+
+ }
+
+ public init(paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptions, success: Bool) {
+
+ self.paymentOptions = paymentOptions
+
+ self.success = success
+
+ self.paymentBreakup = paymentBreakup
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentOptions = try container.decode(PaymentOptions.self, forKey: .paymentOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
+
+ } 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(paymentOptions, forKey: .paymentOptions)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentOptionsResponse
+ Used By: Payment
+ */
+
+ class PaymentOptionsResponse: Codable {
+
+
+ public var paymentOptions: PaymentOptions
+
+ public var success: Bool
+
+ public var paymentBreakup: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentOptions = "payment_options"
+
+ case success = "success"
+
+ case paymentBreakup = "payment_breakup"
+
+ }
+
+ public init(paymentBreakup: [String: Any]? = nil, paymentOptions: PaymentOptions, success: Bool) {
+
+ self.paymentOptions = paymentOptions
+
+ self.success = success
+
+ self.paymentBreakup = paymentBreakup
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentOptions = try container.decode(PaymentOptions.self, forKey: .paymentOptions)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentBreakup = try container.decode([String: Any].self, forKey: .paymentBreakup)
+
+ } 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(paymentOptions, forKey: .paymentOptions)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentBreakup, forKey: .paymentBreakup)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentOrderCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOrderCreationPaymentPlatformModel.swift
deleted file mode 100644
index 1e88b8fcc7..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentOrderCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentOrderCreation
- Used By: Payment
- */
-
- class PaymentOrderCreation: Codable {
-
-
- public var orderId: String
-
- public var paymentMethods: [PaymentOrderMethods]?
-
- public var shipmentId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case paymentMethods = "payment_methods"
-
- case shipmentId = "shipment_id"
-
- }
-
- public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
-
- self.orderId = orderId
-
- self.paymentMethods = paymentMethods
-
- self.shipmentId = shipmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentOrderCreation
- Used By: Payment
- */
-
- class PaymentOrderCreation: Codable {
-
-
- public var orderId: String
-
- public var paymentMethods: [PaymentOrderMethods]?
-
- public var shipmentId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case paymentMethods = "payment_methods"
-
- case shipmentId = "shipment_id"
-
- }
-
- public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
-
- self.orderId = orderId
-
- self.paymentMethods = paymentMethods
-
- self.shipmentId = shipmentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- shipmentId = try container.decode(String.self, forKey: .shipmentId)
-
- } 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(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
-
-
-
-
- try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentOrderDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOrderDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 61e7528204..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentOrderDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,350 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentOrderDetails
- Used By: Payment
- */
-
- class PaymentOrderDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
- public var paymentConfirmUrl: String?
-
- public var callbackUrl: String?
-
- public var statusCode: Int
-
- public var orderId: String?
-
- public var data: PaymentOrderData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case callbackUrl = "callback_url"
-
- case statusCode = "status_code"
-
- case orderId = "order_id"
-
- case data = "data"
-
- }
-
- public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.callbackUrl = callbackUrl
-
- self.statusCode = statusCode
-
- self.orderId = orderId
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(PaymentOrderData.self, forKey: .data)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentOrderDetails
- Used By: Payment
- */
-
- class PaymentOrderDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
- public var paymentConfirmUrl: String?
-
- public var callbackUrl: String?
-
- public var statusCode: Int
-
- public var orderId: String?
-
- public var data: PaymentOrderData?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- case paymentConfirmUrl = "payment_confirm_url"
-
- case callbackUrl = "callback_url"
-
- case statusCode = "status_code"
-
- case orderId = "order_id"
-
- case data = "data"
-
- }
-
- public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- self.paymentConfirmUrl = paymentConfirmUrl
-
- self.callbackUrl = callbackUrl
-
- self.statusCode = statusCode
-
- self.orderId = orderId
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- do {
- paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(PaymentOrderData.self, forKey: .data)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
-
-
-
-
- try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentOrderRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOrderRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..71f55d7439
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentOrderRequestPaymentPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentOrderRequest
+ Used By: Payment
+ */
+
+ class PaymentOrderRequest: Codable {
+
+
+ public var orderId: String
+
+ public var paymentMethods: [PaymentOrderMethods]?
+
+ public var shipmentId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case paymentMethods = "payment_methods"
+
+ case shipmentId = "shipment_id"
+
+ }
+
+ public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
+
+ self.orderId = orderId
+
+ self.paymentMethods = paymentMethods
+
+ self.shipmentId = shipmentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentOrderRequest
+ Used By: Payment
+ */
+
+ class PaymentOrderRequest: Codable {
+
+
+ public var orderId: String
+
+ public var paymentMethods: [PaymentOrderMethods]?
+
+ public var shipmentId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case paymentMethods = "payment_methods"
+
+ case shipmentId = "shipment_id"
+
+ }
+
+ public init(orderId: String, paymentMethods: [PaymentOrderMethods]? = nil, shipmentId: String? = nil) {
+
+ self.orderId = orderId
+
+ self.paymentMethods = paymentMethods
+
+ self.shipmentId = shipmentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ paymentMethods = try container.decode([PaymentOrderMethods].self, forKey: .paymentMethods)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ shipmentId = try container.decode(String.self, forKey: .shipmentId)
+
+ } 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(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(paymentMethods, forKey: .paymentMethods)
+
+
+
+
+ try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentOrderResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentOrderResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..53fd528afc
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentOrderResponsePaymentPlatformModel.swift
@@ -0,0 +1,350 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentOrderResponse
+ Used By: Payment
+ */
+
+ class PaymentOrderResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+ public var paymentConfirmUrl: String?
+
+ public var callbackUrl: String?
+
+ public var statusCode: Int
+
+ public var orderId: String?
+
+ public var data: PaymentOrderData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ case callbackUrl = "callback_url"
+
+ case statusCode = "status_code"
+
+ case orderId = "order_id"
+
+ case data = "data"
+
+ }
+
+ public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ self.callbackUrl = callbackUrl
+
+ self.statusCode = statusCode
+
+ self.orderId = orderId
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(PaymentOrderData.self, forKey: .data)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentOrderResponse
+ Used By: Payment
+ */
+
+ class PaymentOrderResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+ public var paymentConfirmUrl: String?
+
+ public var callbackUrl: String?
+
+ public var statusCode: Int
+
+ public var orderId: String?
+
+ public var data: PaymentOrderData?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ case paymentConfirmUrl = "payment_confirm_url"
+
+ case callbackUrl = "callback_url"
+
+ case statusCode = "status_code"
+
+ case orderId = "order_id"
+
+ case data = "data"
+
+ }
+
+ public init(callbackUrl: String? = nil, data: PaymentOrderData? = nil, message: String, orderId: String? = nil, paymentConfirmUrl: String? = nil, statusCode: Int, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ self.paymentConfirmUrl = paymentConfirmUrl
+
+ self.callbackUrl = callbackUrl
+
+ self.statusCode = statusCode
+
+ self.orderId = orderId
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ do {
+ paymentConfirmUrl = try container.decode(String.self, forKey: .paymentConfirmUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ callbackUrl = try container.decode(String.self, forKey: .callbackUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(PaymentOrderData.self, forKey: .data)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentConfirmUrl, forKey: .paymentConfirmUrl)
+
+
+
+
+ try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionCreationPaymentPlatformModel.swift
deleted file mode 100644
index 1d07601403..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentSessionCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,386 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentSessionCreation
- Used By: Payment
- */
-
- class PaymentSessionCreation: Codable {
-
-
- public var meta: [String: Any]?
-
- public var gid: String
-
- public var orderDetails: OrderDetail
-
- public var status: String
-
- public var currency: String
-
- public var paymentDetails: [PaymentSessionDetail]
-
- public var totalAmount: Int
-
- public var checksum: String
-
- public var source: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- case gid = "gid"
-
- case orderDetails = "order_details"
-
- case status = "status"
-
- case currency = "currency"
-
- case paymentDetails = "payment_details"
-
- case totalAmount = "total_amount"
-
- case checksum = "checksum"
-
- case source = "source"
-
- }
-
- public init(checksum: String, currency: String, gid: String, meta: [String: Any]? = nil, orderDetails: OrderDetail, paymentDetails: [PaymentSessionDetail], source: String? = nil, status: String, totalAmount: Int) {
-
- self.meta = meta
-
- self.gid = gid
-
- self.orderDetails = orderDetails
-
- self.status = status
-
- self.currency = currency
-
- self.paymentDetails = paymentDetails
-
- self.totalAmount = totalAmount
-
- self.checksum = checksum
-
- self.source = source
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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)
- } catch {
-
- }
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- orderDetails = try container.decode(OrderDetail.self, forKey: .orderDetails)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- paymentDetails = try container.decode([PaymentSessionDetail].self, forKey: .paymentDetails)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- checksum = try container.decode(String.self, forKey: .checksum)
-
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } 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(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(checksum, forKey: .checksum)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentSessionCreation
- Used By: Payment
- */
-
- class PaymentSessionCreation: Codable {
-
-
- public var meta: [String: Any]?
-
- public var gid: String
-
- public var orderDetails: OrderDetail
-
- public var status: String
-
- public var currency: String
-
- public var paymentDetails: [PaymentSessionDetail]
-
- public var totalAmount: Int
-
- public var checksum: String
-
- public var source: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- case gid = "gid"
-
- case orderDetails = "order_details"
-
- case status = "status"
-
- case currency = "currency"
-
- case paymentDetails = "payment_details"
-
- case totalAmount = "total_amount"
-
- case checksum = "checksum"
-
- case source = "source"
-
- }
-
- public init(checksum: String, currency: String, gid: String, meta: [String: Any]? = nil, orderDetails: OrderDetail, paymentDetails: [PaymentSessionDetail], source: String? = nil, status: String, totalAmount: Int) {
-
- self.meta = meta
-
- self.gid = gid
-
- self.orderDetails = orderDetails
-
- self.status = status
-
- self.currency = currency
-
- self.paymentDetails = paymentDetails
-
- self.totalAmount = totalAmount
-
- self.checksum = checksum
-
- self.source = source
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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)
- } catch {
-
- }
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- orderDetails = try container.decode(OrderDetail.self, forKey: .orderDetails)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- paymentDetails = try container.decode([PaymentSessionDetail].self, forKey: .paymentDetails)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- checksum = try container.decode(String.self, forKey: .checksum)
-
-
-
-
- do {
- source = try container.decode(String.self, forKey: .source)
-
- } 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(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(checksum, forKey: .checksum)
-
-
-
-
- try? container.encodeIfPresent(source, forKey: .source)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionFetchDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionFetchDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 56ddf7c220..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentSessionFetchDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,322 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentSessionFetchDetails
- Used By: Payment
- */
-
- class PaymentSessionFetchDetails: Codable {
-
-
- public var paymentDetails: [String: Any]
-
- public var currency: String?
-
- public var status: String
-
- public var totalAmount: Int
-
- public var gid: String
-
- public var cartDetails: CartDetails?
-
- public var refundDetails: [RefundDetails]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentDetails = "payment_details"
-
- case currency = "currency"
-
- case status = "status"
-
- case totalAmount = "total_amount"
-
- case gid = "gid"
-
- case cartDetails = "cart_details"
-
- case refundDetails = "refund_details"
-
- }
-
- public init(cartDetails: CartDetails? = nil, currency: String? = nil, gid: String, paymentDetails: [String: Any], refundDetails: [RefundDetails], status: String, totalAmount: Int) {
-
- self.paymentDetails = paymentDetails
-
- self.currency = currency
-
- self.status = status
-
- self.totalAmount = totalAmount
-
- self.gid = gid
-
- self.cartDetails = cartDetails
-
- self.refundDetails = refundDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentDetails = try container.decode([String: Any].self, forKey: .paymentDetails)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- do {
- cartDetails = try container.decode(CartDetails.self, forKey: .cartDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- refundDetails = try container.decode([RefundDetails].self, forKey: .refundDetails)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(cartDetails, forKey: .cartDetails)
-
-
-
-
- try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentSessionFetchDetails
- Used By: Payment
- */
-
- class PaymentSessionFetchDetails: Codable {
-
-
- public var paymentDetails: [String: Any]
-
- public var currency: String?
-
- public var status: String
-
- public var totalAmount: Int
-
- public var gid: String
-
- public var cartDetails: CartDetails?
-
- public var refundDetails: [RefundDetails]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentDetails = "payment_details"
-
- case currency = "currency"
-
- case status = "status"
-
- case totalAmount = "total_amount"
-
- case gid = "gid"
-
- case cartDetails = "cart_details"
-
- case refundDetails = "refund_details"
-
- }
-
- public init(cartDetails: CartDetails? = nil, currency: String? = nil, gid: String, paymentDetails: [String: Any], refundDetails: [RefundDetails], status: String, totalAmount: Int) {
-
- self.paymentDetails = paymentDetails
-
- self.currency = currency
-
- self.status = status
-
- self.totalAmount = totalAmount
-
- self.gid = gid
-
- self.cartDetails = cartDetails
-
- self.refundDetails = refundDetails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentDetails = try container.decode([String: Any].self, forKey: .paymentDetails)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- do {
- cartDetails = try container.decode(CartDetails.self, forKey: .cartDetails)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- refundDetails = try container.decode([RefundDetails].self, forKey: .refundDetails)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(cartDetails, forKey: .cartDetails)
-
-
-
-
- try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionPutDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionPutDetailsPaymentPlatformModel.swift
deleted file mode 100644
index a2ebb5ec34..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentSessionPutDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentSessionPutDetails
- Used By: Payment
- */
-
- class PaymentSessionPutDetails: Codable {
-
-
- public var gid: String
-
- public var platformTransactionDetails: [[String: Any]]
-
- public var status: String
-
- public var currency: String
-
- public var totalAmount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case gid = "gid"
-
- case platformTransactionDetails = "platform_transaction_details"
-
- case status = "status"
-
- case currency = "currency"
-
- case totalAmount = "total_amount"
-
- }
-
- public init(currency: String, gid: String, platformTransactionDetails: [[String: Any]], status: String, totalAmount: Int) {
-
- self.gid = gid
-
- self.platformTransactionDetails = platformTransactionDetails
-
- self.status = status
-
- self.currency = currency
-
- self.totalAmount = totalAmount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- platformTransactionDetails = try container.decode([[String: Any]].self, forKey: .platformTransactionDetails)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(platformTransactionDetails, forKey: .platformTransactionDetails)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentSessionPutDetails
- Used By: Payment
- */
-
- class PaymentSessionPutDetails: Codable {
-
-
- public var gid: String
-
- public var platformTransactionDetails: [[String: Any]]
-
- public var status: String
-
- public var currency: String
-
- public var totalAmount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case gid = "gid"
-
- case platformTransactionDetails = "platform_transaction_details"
-
- case status = "status"
-
- case currency = "currency"
-
- case totalAmount = "total_amount"
-
- }
-
- public init(currency: String, gid: String, platformTransactionDetails: [[String: Any]], status: String, totalAmount: Int) {
-
- self.gid = gid
-
- self.platformTransactionDetails = platformTransactionDetails
-
- self.status = status
-
- self.currency = currency
-
- self.totalAmount = totalAmount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- platformTransactionDetails = try container.decode([[String: Any]].self, forKey: .platformTransactionDetails)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(platformTransactionDetails, forKey: .platformTransactionDetails)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionRequestSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionRequestSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..0d80dba6ba
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentSessionRequestSerializerPaymentPlatformModel.swift
@@ -0,0 +1,386 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentSessionRequestSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionRequestSerializer: Codable {
+
+
+ public var meta: [String: Any]?
+
+ public var gid: String
+
+ public var orderDetails: OrderDetail
+
+ public var status: String
+
+ public var currency: String
+
+ public var paymentDetails: [PaymentSessionDetail]
+
+ public var totalAmount: Int
+
+ public var checksum: String
+
+ public var source: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case gid = "gid"
+
+ case orderDetails = "order_details"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case paymentDetails = "payment_details"
+
+ case totalAmount = "total_amount"
+
+ case checksum = "checksum"
+
+ case source = "source"
+
+ }
+
+ public init(checksum: String, currency: String, gid: String, meta: [String: Any]? = nil, orderDetails: OrderDetail, paymentDetails: [PaymentSessionDetail], source: String? = nil, status: String, totalAmount: Int) {
+
+ self.meta = meta
+
+ self.gid = gid
+
+ self.orderDetails = orderDetails
+
+ self.status = status
+
+ self.currency = currency
+
+ self.paymentDetails = paymentDetails
+
+ self.totalAmount = totalAmount
+
+ self.checksum = checksum
+
+ self.source = source
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ orderDetails = try container.decode(OrderDetail.self, forKey: .orderDetails)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ paymentDetails = try container.decode([PaymentSessionDetail].self, forKey: .paymentDetails)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ checksum = try container.decode(String.self, forKey: .checksum)
+
+
+
+
+ do {
+ source = try container.decode(String.self, forKey: .source)
+
+ } 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(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(checksum, forKey: .checksum)
+
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentSessionRequestSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionRequestSerializer: Codable {
+
+
+ public var meta: [String: Any]?
+
+ public var gid: String
+
+ public var orderDetails: OrderDetail
+
+ public var status: String
+
+ public var currency: String
+
+ public var paymentDetails: [PaymentSessionDetail]
+
+ public var totalAmount: Int
+
+ public var checksum: String
+
+ public var source: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case gid = "gid"
+
+ case orderDetails = "order_details"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case paymentDetails = "payment_details"
+
+ case totalAmount = "total_amount"
+
+ case checksum = "checksum"
+
+ case source = "source"
+
+ }
+
+ public init(checksum: String, currency: String, gid: String, meta: [String: Any]? = nil, orderDetails: OrderDetail, paymentDetails: [PaymentSessionDetail], source: String? = nil, status: String, totalAmount: Int) {
+
+ self.meta = meta
+
+ self.gid = gid
+
+ self.orderDetails = orderDetails
+
+ self.status = status
+
+ self.currency = currency
+
+ self.paymentDetails = paymentDetails
+
+ self.totalAmount = totalAmount
+
+ self.checksum = checksum
+
+ self.source = source
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ orderDetails = try container.decode(OrderDetail.self, forKey: .orderDetails)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ paymentDetails = try container.decode([PaymentSessionDetail].self, forKey: .paymentDetails)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ checksum = try container.decode(String.self, forKey: .checksum)
+
+
+
+
+ do {
+ source = try container.decode(String.self, forKey: .source)
+
+ } 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(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(orderDetails, forKey: .orderDetails)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(checksum, forKey: .checksum)
+
+
+
+
+ try? container.encodeIfPresent(source, forKey: .source)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionResponseSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionResponseSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..47a662e1af
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentSessionResponseSerializerPaymentPlatformModel.swift
@@ -0,0 +1,230 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentSessionResponseSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionResponseSerializer: Codable {
+
+
+ public var gid: String
+
+ public var platformTransactionDetails: [[String: Any]]
+
+ public var status: String
+
+ public var currency: String
+
+ public var totalAmount: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case gid = "gid"
+
+ case platformTransactionDetails = "platform_transaction_details"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case totalAmount = "total_amount"
+
+ }
+
+ public init(currency: String, gid: String, platformTransactionDetails: [[String: Any]], status: String, totalAmount: Int) {
+
+ self.gid = gid
+
+ self.platformTransactionDetails = platformTransactionDetails
+
+ self.status = status
+
+ self.currency = currency
+
+ self.totalAmount = totalAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ platformTransactionDetails = try container.decode([[String: Any]].self, forKey: .platformTransactionDetails)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(platformTransactionDetails, forKey: .platformTransactionDetails)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentSessionResponseSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionResponseSerializer: Codable {
+
+
+ public var gid: String
+
+ public var platformTransactionDetails: [[String: Any]]
+
+ public var status: String
+
+ public var currency: String
+
+ public var totalAmount: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case gid = "gid"
+
+ case platformTransactionDetails = "platform_transaction_details"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case totalAmount = "total_amount"
+
+ }
+
+ public init(currency: String, gid: String, platformTransactionDetails: [[String: Any]], status: String, totalAmount: Int) {
+
+ self.gid = gid
+
+ self.platformTransactionDetails = platformTransactionDetails
+
+ self.status = status
+
+ self.currency = currency
+
+ self.totalAmount = totalAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ platformTransactionDetails = try container.decode([[String: Any]].self, forKey: .platformTransactionDetails)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(platformTransactionDetails, forKey: .platformTransactionDetails)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentSessionSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentSessionSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..1dc51452ad
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentSessionSerializerPaymentPlatformModel.swift
@@ -0,0 +1,322 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentSessionSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionSerializer: Codable {
+
+
+ public var paymentDetails: [String: Any]
+
+ public var currency: String?
+
+ public var status: String
+
+ public var totalAmount: Int
+
+ public var gid: String
+
+ public var cartDetails: CartDetailsSerializer?
+
+ public var refundDetails: [RefundDetailsSerializer]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentDetails = "payment_details"
+
+ case currency = "currency"
+
+ case status = "status"
+
+ case totalAmount = "total_amount"
+
+ case gid = "gid"
+
+ case cartDetails = "cart_details"
+
+ case refundDetails = "refund_details"
+
+ }
+
+ public init(cartDetails: CartDetailsSerializer? = nil, currency: String? = nil, gid: String, paymentDetails: [String: Any], refundDetails: [RefundDetailsSerializer], status: String, totalAmount: Int) {
+
+ self.paymentDetails = paymentDetails
+
+ self.currency = currency
+
+ self.status = status
+
+ self.totalAmount = totalAmount
+
+ self.gid = gid
+
+ self.cartDetails = cartDetails
+
+ self.refundDetails = refundDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentDetails = try container.decode([String: Any].self, forKey: .paymentDetails)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ do {
+ cartDetails = try container.decode(CartDetailsSerializer.self, forKey: .cartDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ refundDetails = try container.decode([RefundDetailsSerializer].self, forKey: .refundDetails)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(cartDetails, forKey: .cartDetails)
+
+
+
+
+ try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentSessionSerializer
+ Used By: Payment
+ */
+
+ class PaymentSessionSerializer: Codable {
+
+
+ public var paymentDetails: [String: Any]
+
+ public var currency: String?
+
+ public var status: String
+
+ public var totalAmount: Int
+
+ public var gid: String
+
+ public var cartDetails: CartDetailsSerializer?
+
+ public var refundDetails: [RefundDetailsSerializer]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentDetails = "payment_details"
+
+ case currency = "currency"
+
+ case status = "status"
+
+ case totalAmount = "total_amount"
+
+ case gid = "gid"
+
+ case cartDetails = "cart_details"
+
+ case refundDetails = "refund_details"
+
+ }
+
+ public init(cartDetails: CartDetailsSerializer? = nil, currency: String? = nil, gid: String, paymentDetails: [String: Any], refundDetails: [RefundDetailsSerializer], status: String, totalAmount: Int) {
+
+ self.paymentDetails = paymentDetails
+
+ self.currency = currency
+
+ self.status = status
+
+ self.totalAmount = totalAmount
+
+ self.gid = gid
+
+ self.cartDetails = cartDetails
+
+ self.refundDetails = refundDetails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentDetails = try container.decode([String: Any].self, forKey: .paymentDetails)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ do {
+ cartDetails = try container.decode(CartDetailsSerializer.self, forKey: .cartDetails)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ refundDetails = try container.decode([RefundDetailsSerializer].self, forKey: .refundDetails)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(cartDetails, forKey: .cartDetails)
+
+
+
+
+ try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerCreationPaymentPlatformModel.swift
deleted file mode 100644
index 9a7a9bbeb3..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentStatusBulkHandlerCreation
- Used By: Payment
- */
-
- class PaymentStatusBulkHandlerCreation: Codable {
-
-
- public var merchantOrderId: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case merchantOrderId = "merchant_order_id"
-
- }
-
- public init(merchantOrderId: [String]) {
-
- self.merchantOrderId = merchantOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- merchantOrderId = try container.decode([String].self, forKey: .merchantOrderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentStatusBulkHandlerCreation
- Used By: Payment
- */
-
- class PaymentStatusBulkHandlerCreation: Codable {
-
-
- public var merchantOrderId: [String]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case merchantOrderId = "merchant_order_id"
-
- }
-
- public init(merchantOrderId: [String]) {
-
- self.merchantOrderId = merchantOrderId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- merchantOrderId = try container.decode([String].self, forKey: .merchantOrderId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerDetailsPaymentPlatformModel.swift
deleted file mode 100644
index f8ca33df0b..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,272 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentStatusBulkHandlerDetails
- Used By: Payment
- */
-
- class PaymentStatusBulkHandlerDetails: Codable {
-
-
- public var count: Int?
-
- public var data: [PaymentStatusObject]?
-
- public var success: String
-
- public var error: String?
-
- public var status: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case count = "count"
-
- case data = "data"
-
- case success = "success"
-
- case error = "error"
-
- case status = "status"
-
- }
-
- public init(count: Int? = nil, data: [PaymentStatusObject]? = nil, error: String? = nil, status: Int, success: String) {
-
- self.count = count
-
- self.data = data
-
- self.success = success
-
- self.error = error
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode([PaymentStatusObject].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(String.self, forKey: .success)
-
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(Int.self, forKey: .status)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentStatusBulkHandlerDetails
- Used By: Payment
- */
-
- class PaymentStatusBulkHandlerDetails: Codable {
-
-
- public var count: Int?
-
- public var data: [PaymentStatusObject]?
-
- public var success: String
-
- public var error: String?
-
- public var status: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case count = "count"
-
- case data = "data"
-
- case success = "success"
-
- case error = "error"
-
- case status = "status"
-
- }
-
- public init(count: Int? = nil, data: [PaymentStatusObject]? = nil, error: String? = nil, status: Int, success: String) {
-
- self.count = count
-
- self.data = data
-
- self.success = success
-
- self.error = error
-
- self.status = status
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- data = try container.decode([PaymentStatusObject].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(String.self, forKey: .success)
-
-
-
-
- do {
- error = try container.decode(String.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(Int.self, forKey: .status)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(count, forKey: .count)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..05467eea88
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerRequestPaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentStatusBulkHandlerRequest
+ Used By: Payment
+ */
+
+ class PaymentStatusBulkHandlerRequest: Codable {
+
+
+ public var merchantOrderId: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case merchantOrderId = "merchant_order_id"
+
+ }
+
+ public init(merchantOrderId: [String]) {
+
+ self.merchantOrderId = merchantOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ merchantOrderId = try container.decode([String].self, forKey: .merchantOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusBulkHandlerRequest
+ Used By: Payment
+ */
+
+ class PaymentStatusBulkHandlerRequest: Codable {
+
+
+ public var merchantOrderId: [String]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case merchantOrderId = "merchant_order_id"
+
+ }
+
+ public init(merchantOrderId: [String]) {
+
+ self.merchantOrderId = merchantOrderId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ merchantOrderId = try container.decode([String].self, forKey: .merchantOrderId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..a98a752d92
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentStatusBulkHandlerResponsePaymentPlatformModel.swift
@@ -0,0 +1,272 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentStatusBulkHandlerResponse
+ Used By: Payment
+ */
+
+ class PaymentStatusBulkHandlerResponse: Codable {
+
+
+ public var count: Int?
+
+ public var data: [PaymentStatusObject]?
+
+ public var success: String
+
+ public var error: String?
+
+ public var status: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case count = "count"
+
+ case data = "data"
+
+ case success = "success"
+
+ case error = "error"
+
+ case status = "status"
+
+ }
+
+ public init(count: Int? = nil, data: [PaymentStatusObject]? = nil, error: String? = nil, status: Int, success: String) {
+
+ self.count = count
+
+ self.data = data
+
+ self.success = success
+
+ self.error = error
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode([PaymentStatusObject].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(String.self, forKey: .success)
+
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(Int.self, forKey: .status)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(count, forKey: .count)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusBulkHandlerResponse
+ Used By: Payment
+ */
+
+ class PaymentStatusBulkHandlerResponse: Codable {
+
+
+ public var count: Int?
+
+ public var data: [PaymentStatusObject]?
+
+ public var success: String
+
+ public var error: String?
+
+ public var status: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case count = "count"
+
+ case data = "data"
+
+ case success = "success"
+
+ case error = "error"
+
+ case status = "status"
+
+ }
+
+ public init(count: Int? = nil, data: [PaymentStatusObject]? = nil, error: String? = nil, status: Int, success: String) {
+
+ self.count = count
+
+ self.data = data
+
+ self.success = success
+
+ self.error = error
+
+ self.status = status
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ data = try container.decode([PaymentStatusObject].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(String.self, forKey: .success)
+
+
+
+
+ do {
+ error = try container.decode(String.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(Int.self, forKey: .status)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(count, forKey: .count)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusObjectPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusObjectPaymentPlatformModel.swift
index 0c2bda08ef..60e3a5eacc 100644
--- a/Sources/code/platform/Models/Payment/PaymentStatusObjectPaymentPlatformModel.swift
+++ b/Sources/code/platform/Models/Payment/PaymentStatusObjectPaymentPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Payment {
public var merchantOrderId: String
- public var paymentObjectList: [PaymentObjectList]?
+ public var paymentObjectList: [PaymentObjectListSerializer]?
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Payment {
}
- public init(merchantOrderId: String, paymentObjectList: [PaymentObjectList]? = nil) {
+ public init(merchantOrderId: String, paymentObjectList: [PaymentObjectListSerializer]? = nil) {
self.merchantOrderId = merchantOrderId
@@ -43,7 +43,7 @@ public extension PlatformClient.Payment {
do {
- paymentObjectList = try container.decode([PaymentObjectList].self, forKey: .paymentObjectList)
+ paymentObjectList = try container.decode([PaymentObjectListSerializer].self, forKey: .paymentObjectList)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -86,7 +86,7 @@ public extension PlatformClient.ApplicationClient.Payment {
public var merchantOrderId: String
- public var paymentObjectList: [PaymentObjectList]?
+ public var paymentObjectList: [PaymentObjectListSerializer]?
public enum CodingKeys: String, CodingKey {
@@ -97,7 +97,7 @@ public extension PlatformClient.ApplicationClient.Payment {
}
- public init(merchantOrderId: String, paymentObjectList: [PaymentObjectList]? = nil) {
+ public init(merchantOrderId: String, paymentObjectList: [PaymentObjectListSerializer]? = nil) {
self.merchantOrderId = merchantOrderId
@@ -115,7 +115,7 @@ public extension PlatformClient.ApplicationClient.Payment {
do {
- paymentObjectList = try container.decode([PaymentObjectList].self, forKey: .paymentObjectList)
+ paymentObjectList = try container.decode([PaymentObjectListSerializer].self, forKey: .paymentObjectList)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusUpdateCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusUpdateCreationPaymentPlatformModel.swift
deleted file mode 100644
index 1143e94e86..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentStatusUpdateCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,514 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentStatusUpdateCreation
- Used By: Payment
- */
-
- class PaymentStatusUpdateCreation: Codable {
-
-
- public var deviceId: String?
-
- public var email: String
-
- public var customerId: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var orderId: String
-
- public var currency: String
-
- public var amount: Int
-
- public var contact: String
-
- public var merchantOrderId: String
-
- public var status: String
-
- public var method: String
-
- public var merchantTransactionId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case deviceId = "device_id"
-
- case email = "email"
-
- case customerId = "customer_id"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case amount = "amount"
-
- case contact = "contact"
-
- case merchantOrderId = "merchant_order_id"
-
- case status = "status"
-
- case method = "method"
-
- case merchantTransactionId = "merchant_transaction_id"
-
- }
-
- public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, merchantTransactionId: String, method: String, orderId: String, status: String, vpa: String? = nil) {
-
- self.deviceId = deviceId
-
- self.email = email
-
- self.customerId = customerId
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.amount = amount
-
- self.contact = contact
-
- self.merchantOrderId = merchantOrderId
-
- self.status = status
-
- self.method = method
-
- self.merchantTransactionId = merchantTransactionId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- customerId = try container.decode(String.self, forKey: .customerId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- contact = try container.decode(String.self, forKey: .contact)
-
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
-
- merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
-
- try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentStatusUpdateCreation
- Used By: Payment
- */
-
- class PaymentStatusUpdateCreation: Codable {
-
-
- public var deviceId: String?
-
- public var email: String
-
- public var customerId: String
-
- public var vpa: String?
-
- public var aggregator: String
-
- public var orderId: String
-
- public var currency: String
-
- public var amount: Int
-
- public var contact: String
-
- public var merchantOrderId: String
-
- public var status: String
-
- public var method: String
-
- public var merchantTransactionId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case deviceId = "device_id"
-
- case email = "email"
-
- case customerId = "customer_id"
-
- case vpa = "vpa"
-
- case aggregator = "aggregator"
-
- case orderId = "order_id"
-
- case currency = "currency"
-
- case amount = "amount"
-
- case contact = "contact"
-
- case merchantOrderId = "merchant_order_id"
-
- case status = "status"
-
- case method = "method"
-
- case merchantTransactionId = "merchant_transaction_id"
-
- }
-
- public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, merchantTransactionId: String, method: String, orderId: String, status: String, vpa: String? = nil) {
-
- self.deviceId = deviceId
-
- self.email = email
-
- self.customerId = customerId
-
- self.vpa = vpa
-
- self.aggregator = aggregator
-
- self.orderId = orderId
-
- self.currency = currency
-
- self.amount = amount
-
- self.contact = contact
-
- self.merchantOrderId = merchantOrderId
-
- self.status = status
-
- self.method = method
-
- self.merchantTransactionId = merchantTransactionId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- email = try container.decode(String.self, forKey: .email)
-
-
-
-
- customerId = try container.decode(String.self, forKey: .customerId)
-
-
-
-
- do {
- vpa = try container.decode(String.self, forKey: .vpa)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- contact = try container.decode(String.self, forKey: .contact)
-
-
-
-
- merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- method = try container.decode(String.self, forKey: .method)
-
-
-
-
- merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(customerId, forKey: .customerId)
-
-
-
-
- try? container.encodeIfPresent(vpa, forKey: .vpa)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(contact, forKey: .contact)
-
-
-
-
- try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(method, forKey: .method)
-
-
-
-
- try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusUpdateDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusUpdateDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 59717780a7..0000000000
--- a/Sources/code/platform/Models/Payment/PaymentStatusUpdateDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PaymentStatusUpdateDetails
- Used By: Payment
- */
-
- class PaymentStatusUpdateDetails: Codable {
-
-
- public var redirectUrl: String?
-
- public var retry: Bool
-
- public var success: Bool?
-
- public var status: String
-
- public var aggregatorName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case redirectUrl = "redirect_url"
-
- case retry = "retry"
-
- case success = "success"
-
- case status = "status"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
-
- self.redirectUrl = redirectUrl
-
- self.retry = retry
-
- self.success = success
-
- self.status = status
-
- self.aggregatorName = aggregatorName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- retry = try container.decode(Bool.self, forKey: .retry)
-
-
-
-
- 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 {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
-
- try? container.encodeIfPresent(retry, forKey: .retry)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PaymentStatusUpdateDetails
- Used By: Payment
- */
-
- class PaymentStatusUpdateDetails: Codable {
-
-
- public var redirectUrl: String?
-
- public var retry: Bool
-
- public var success: Bool?
-
- public var status: String
-
- public var aggregatorName: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case redirectUrl = "redirect_url"
-
- case retry = "retry"
-
- case success = "success"
-
- case status = "status"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
-
- self.redirectUrl = redirectUrl
-
- self.retry = retry
-
- self.success = success
-
- self.status = status
-
- self.aggregatorName = aggregatorName
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- retry = try container.decode(Bool.self, forKey: .retry)
-
-
-
-
- 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 {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
-
- try? container.encodeIfPresent(retry, forKey: .retry)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusUpdateRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusUpdateRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..6a5202264e
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentStatusUpdateRequestPaymentPlatformModel.swift
@@ -0,0 +1,514 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentStatusUpdateRequest
+ Used By: Payment
+ */
+
+ class PaymentStatusUpdateRequest: Codable {
+
+
+ public var deviceId: String?
+
+ public var email: String
+
+ public var customerId: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var orderId: String
+
+ public var currency: String
+
+ public var amount: Int
+
+ public var contact: String
+
+ public var merchantOrderId: String
+
+ public var status: String
+
+ public var method: String
+
+ public var merchantTransactionId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case deviceId = "device_id"
+
+ case email = "email"
+
+ case customerId = "customer_id"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case amount = "amount"
+
+ case contact = "contact"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case status = "status"
+
+ case method = "method"
+
+ case merchantTransactionId = "merchant_transaction_id"
+
+ }
+
+ public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, merchantTransactionId: String, method: String, orderId: String, status: String, vpa: String? = nil) {
+
+ self.deviceId = deviceId
+
+ self.email = email
+
+ self.customerId = customerId
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.amount = amount
+
+ self.contact = contact
+
+ self.merchantOrderId = merchantOrderId
+
+ self.status = status
+
+ self.method = method
+
+ self.merchantTransactionId = merchantTransactionId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ contact = try container.decode(String.self, forKey: .contact)
+
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+
+ merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+
+ try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusUpdateRequest
+ Used By: Payment
+ */
+
+ class PaymentStatusUpdateRequest: Codable {
+
+
+ public var deviceId: String?
+
+ public var email: String
+
+ public var customerId: String
+
+ public var vpa: String?
+
+ public var aggregator: String
+
+ public var orderId: String
+
+ public var currency: String
+
+ public var amount: Int
+
+ public var contact: String
+
+ public var merchantOrderId: String
+
+ public var status: String
+
+ public var method: String
+
+ public var merchantTransactionId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case deviceId = "device_id"
+
+ case email = "email"
+
+ case customerId = "customer_id"
+
+ case vpa = "vpa"
+
+ case aggregator = "aggregator"
+
+ case orderId = "order_id"
+
+ case currency = "currency"
+
+ case amount = "amount"
+
+ case contact = "contact"
+
+ case merchantOrderId = "merchant_order_id"
+
+ case status = "status"
+
+ case method = "method"
+
+ case merchantTransactionId = "merchant_transaction_id"
+
+ }
+
+ public init(aggregator: String, amount: Int, contact: String, currency: String, customerId: String, deviceId: String? = nil, email: String, merchantOrderId: String, merchantTransactionId: String, method: String, orderId: String, status: String, vpa: String? = nil) {
+
+ self.deviceId = deviceId
+
+ self.email = email
+
+ self.customerId = customerId
+
+ self.vpa = vpa
+
+ self.aggregator = aggregator
+
+ self.orderId = orderId
+
+ self.currency = currency
+
+ self.amount = amount
+
+ self.contact = contact
+
+ self.merchantOrderId = merchantOrderId
+
+ self.status = status
+
+ self.method = method
+
+ self.merchantTransactionId = merchantTransactionId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ email = try container.decode(String.self, forKey: .email)
+
+
+
+
+ customerId = try container.decode(String.self, forKey: .customerId)
+
+
+
+
+ do {
+ vpa = try container.decode(String.self, forKey: .vpa)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ contact = try container.decode(String.self, forKey: .contact)
+
+
+
+
+ merchantOrderId = try container.decode(String.self, forKey: .merchantOrderId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ method = try container.decode(String.self, forKey: .method)
+
+
+
+
+ merchantTransactionId = try container.decode(String.self, forKey: .merchantTransactionId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(customerId, forKey: .customerId)
+
+
+
+
+ try? container.encodeIfPresent(vpa, forKey: .vpa)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(contact, forKey: .contact)
+
+
+
+
+ try? container.encodeIfPresent(merchantOrderId, forKey: .merchantOrderId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(method, forKey: .method)
+
+
+
+
+ try? container.encodeIfPresent(merchantTransactionId, forKey: .merchantTransactionId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PaymentStatusUpdateResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PaymentStatusUpdateResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..b452d18231
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PaymentStatusUpdateResponsePaymentPlatformModel.swift
@@ -0,0 +1,258 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PaymentStatusUpdateResponse
+ Used By: Payment
+ */
+
+ class PaymentStatusUpdateResponse: Codable {
+
+
+ public var redirectUrl: String?
+
+ public var retry: Bool
+
+ public var success: Bool?
+
+ public var status: String
+
+ public var aggregatorName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case redirectUrl = "redirect_url"
+
+ case retry = "retry"
+
+ case success = "success"
+
+ case status = "status"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
+
+ self.redirectUrl = redirectUrl
+
+ self.retry = retry
+
+ self.success = success
+
+ self.status = status
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ retry = try container.decode(Bool.self, forKey: .retry)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+
+ try? container.encodeIfPresent(retry, forKey: .retry)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PaymentStatusUpdateResponse
+ Used By: Payment
+ */
+
+ class PaymentStatusUpdateResponse: Codable {
+
+
+ public var redirectUrl: String?
+
+ public var retry: Bool
+
+ public var success: Bool?
+
+ public var status: String
+
+ public var aggregatorName: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case redirectUrl = "redirect_url"
+
+ case retry = "retry"
+
+ case success = "success"
+
+ case status = "status"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: String, redirectUrl: String? = nil, retry: Bool, status: String, success: Bool? = nil) {
+
+ self.redirectUrl = redirectUrl
+
+ self.retry = retry
+
+ self.success = success
+
+ self.status = status
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ retry = try container.decode(Bool.self, forKey: .retry)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+
+ try? container.encodeIfPresent(retry, forKey: .retry)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PayoutCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutCreationPaymentPlatformModel.swift
deleted file mode 100644
index e3e5bf4c71..0000000000
--- a/Sources/code/platform/Models/Payment/PayoutCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PayoutCreation
- Used By: Payment
- */
-
- class PayoutCreation: Codable {
-
-
- public var aggregator: String
-
- public var users: [String: Any]
-
- public var uniqueExternalId: String
-
- public var isActive: Bool
-
- public var bankDetails: PayoutBankDetails
-
- public var transferType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregator = "aggregator"
-
- case users = "users"
-
- case uniqueExternalId = "unique_external_id"
-
- case isActive = "is_active"
-
- case bankDetails = "bank_details"
-
- case transferType = "transfer_type"
-
- }
-
- public init(aggregator: String, bankDetails: PayoutBankDetails, isActive: Bool, transferType: String, uniqueExternalId: String, users: [String: Any]) {
-
- self.aggregator = aggregator
-
- self.users = users
-
- self.uniqueExternalId = uniqueExternalId
-
- self.isActive = isActive
-
- self.bankDetails = bankDetails
-
- self.transferType = transferType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- users = try container.decode([String: Any].self, forKey: .users)
-
-
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- bankDetails = try container.decode(PayoutBankDetails.self, forKey: .bankDetails)
-
-
-
-
- transferType = try container.decode(String.self, forKey: .transferType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(users, forKey: .users)
-
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
-
-
-
-
- try? container.encodeIfPresent(transferType, forKey: .transferType)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PayoutCreation
- Used By: Payment
- */
-
- class PayoutCreation: Codable {
-
-
- public var aggregator: String
-
- public var users: [String: Any]
-
- public var uniqueExternalId: String
-
- public var isActive: Bool
-
- public var bankDetails: PayoutBankDetails
-
- public var transferType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregator = "aggregator"
-
- case users = "users"
-
- case uniqueExternalId = "unique_external_id"
-
- case isActive = "is_active"
-
- case bankDetails = "bank_details"
-
- case transferType = "transfer_type"
-
- }
-
- public init(aggregator: String, bankDetails: PayoutBankDetails, isActive: Bool, transferType: String, uniqueExternalId: String, users: [String: Any]) {
-
- self.aggregator = aggregator
-
- self.users = users
-
- self.uniqueExternalId = uniqueExternalId
-
- self.isActive = isActive
-
- self.bankDetails = bankDetails
-
- self.transferType = transferType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- users = try container.decode([String: Any].self, forKey: .users)
-
-
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- bankDetails = try container.decode(PayoutBankDetails.self, forKey: .bankDetails)
-
-
-
-
- transferType = try container.decode(String.self, forKey: .transferType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(users, forKey: .users)
-
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
-
-
-
-
- try? container.encodeIfPresent(transferType, forKey: .transferType)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PayoutDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutDetailsPaymentPlatformModel.swift
deleted file mode 100644
index b92e1d3905..0000000000
--- a/Sources/code/platform/Models/Payment/PayoutDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,390 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PayoutDetails
- Used By: Payment
- */
-
- class PayoutDetails: Codable {
-
-
- public var paymentStatus: String
-
- public var users: [String: Any]
-
- public var aggregator: String
-
- public var uniqueTransferNo: String
-
- public var isActive: Bool
-
- public var bankDetails: [String: Any]
-
- public var success: Bool
-
- public var transferType: String
-
- public var created: Bool
-
- public var payouts: [String: Any]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentStatus = "payment_status"
-
- case users = "users"
-
- case aggregator = "aggregator"
-
- case uniqueTransferNo = "unique_transfer_no"
-
- case isActive = "is_active"
-
- case bankDetails = "bank_details"
-
- case success = "success"
-
- case transferType = "transfer_type"
-
- case created = "created"
-
- case payouts = "payouts"
-
- }
-
- public init(aggregator: String, bankDetails: [String: Any], created: Bool, isActive: Bool, paymentStatus: String, payouts: [String: Any], success: Bool, transferType: String, uniqueTransferNo: String, users: [String: Any]) {
-
- self.paymentStatus = paymentStatus
-
- self.users = users
-
- self.aggregator = aggregator
-
- self.uniqueTransferNo = uniqueTransferNo
-
- self.isActive = isActive
-
- self.bankDetails = bankDetails
-
- self.success = success
-
- self.transferType = transferType
-
- self.created = created
-
- self.payouts = payouts
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentStatus = try container.decode(String.self, forKey: .paymentStatus)
-
-
-
-
- users = try container.decode([String: Any].self, forKey: .users)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- uniqueTransferNo = try container.decode(String.self, forKey: .uniqueTransferNo)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- bankDetails = try container.decode([String: Any].self, forKey: .bankDetails)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- transferType = try container.decode(String.self, forKey: .transferType)
-
-
-
-
- created = try container.decode(Bool.self, forKey: .created)
-
-
-
-
- payouts = try container.decode([String: Any].self, forKey: .payouts)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentStatus, forKey: .paymentStatus)
-
-
-
-
- try? container.encodeIfPresent(users, forKey: .users)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(uniqueTransferNo, forKey: .uniqueTransferNo)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(transferType, forKey: .transferType)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(payouts, forKey: .payouts)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PayoutDetails
- Used By: Payment
- */
-
- class PayoutDetails: Codable {
-
-
- public var paymentStatus: String
-
- public var users: [String: Any]
-
- public var aggregator: String
-
- public var uniqueTransferNo: String
-
- public var isActive: Bool
-
- public var bankDetails: [String: Any]
-
- public var success: Bool
-
- public var transferType: String
-
- public var created: Bool
-
- public var payouts: [String: Any]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case paymentStatus = "payment_status"
-
- case users = "users"
-
- case aggregator = "aggregator"
-
- case uniqueTransferNo = "unique_transfer_no"
-
- case isActive = "is_active"
-
- case bankDetails = "bank_details"
-
- case success = "success"
-
- case transferType = "transfer_type"
-
- case created = "created"
-
- case payouts = "payouts"
-
- }
-
- public init(aggregator: String, bankDetails: [String: Any], created: Bool, isActive: Bool, paymentStatus: String, payouts: [String: Any], success: Bool, transferType: String, uniqueTransferNo: String, users: [String: Any]) {
-
- self.paymentStatus = paymentStatus
-
- self.users = users
-
- self.aggregator = aggregator
-
- self.uniqueTransferNo = uniqueTransferNo
-
- self.isActive = isActive
-
- self.bankDetails = bankDetails
-
- self.success = success
-
- self.transferType = transferType
-
- self.created = created
-
- self.payouts = payouts
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- paymentStatus = try container.decode(String.self, forKey: .paymentStatus)
-
-
-
-
- users = try container.decode([String: Any].self, forKey: .users)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- uniqueTransferNo = try container.decode(String.self, forKey: .uniqueTransferNo)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- bankDetails = try container.decode([String: Any].self, forKey: .bankDetails)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- transferType = try container.decode(String.self, forKey: .transferType)
-
-
-
-
- created = try container.decode(Bool.self, forKey: .created)
-
-
-
-
- payouts = try container.decode([String: Any].self, forKey: .payouts)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(paymentStatus, forKey: .paymentStatus)
-
-
-
-
- try? container.encodeIfPresent(users, forKey: .users)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(uniqueTransferNo, forKey: .uniqueTransferNo)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(transferType, forKey: .transferType)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(payouts, forKey: .payouts)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PayoutRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..d5e51f7806
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PayoutRequestPaymentPlatformModel.swift
@@ -0,0 +1,262 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PayoutRequest
+ Used By: Payment
+ */
+
+ class PayoutRequest: Codable {
+
+
+ public var aggregator: String
+
+ public var users: [String: Any]
+
+ public var uniqueExternalId: String
+
+ public var isActive: Bool
+
+ public var bankDetails: PayoutBankDetails
+
+ public var transferType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregator = "aggregator"
+
+ case users = "users"
+
+ case uniqueExternalId = "unique_external_id"
+
+ case isActive = "is_active"
+
+ case bankDetails = "bank_details"
+
+ case transferType = "transfer_type"
+
+ }
+
+ public init(aggregator: String, bankDetails: PayoutBankDetails, isActive: Bool, transferType: String, uniqueExternalId: String, users: [String: Any]) {
+
+ self.aggregator = aggregator
+
+ self.users = users
+
+ self.uniqueExternalId = uniqueExternalId
+
+ self.isActive = isActive
+
+ self.bankDetails = bankDetails
+
+ self.transferType = transferType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ users = try container.decode([String: Any].self, forKey: .users)
+
+
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ bankDetails = try container.decode(PayoutBankDetails.self, forKey: .bankDetails)
+
+
+
+
+ transferType = try container.decode(String.self, forKey: .transferType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(users, forKey: .users)
+
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
+
+
+
+
+ try? container.encodeIfPresent(transferType, forKey: .transferType)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PayoutRequest
+ Used By: Payment
+ */
+
+ class PayoutRequest: Codable {
+
+
+ public var aggregator: String
+
+ public var users: [String: Any]
+
+ public var uniqueExternalId: String
+
+ public var isActive: Bool
+
+ public var bankDetails: PayoutBankDetails
+
+ public var transferType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregator = "aggregator"
+
+ case users = "users"
+
+ case uniqueExternalId = "unique_external_id"
+
+ case isActive = "is_active"
+
+ case bankDetails = "bank_details"
+
+ case transferType = "transfer_type"
+
+ }
+
+ public init(aggregator: String, bankDetails: PayoutBankDetails, isActive: Bool, transferType: String, uniqueExternalId: String, users: [String: Any]) {
+
+ self.aggregator = aggregator
+
+ self.users = users
+
+ self.uniqueExternalId = uniqueExternalId
+
+ self.isActive = isActive
+
+ self.bankDetails = bankDetails
+
+ self.transferType = transferType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ users = try container.decode([String: Any].self, forKey: .users)
+
+
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ bankDetails = try container.decode(PayoutBankDetails.self, forKey: .bankDetails)
+
+
+
+
+ transferType = try container.decode(String.self, forKey: .transferType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(users, forKey: .users)
+
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
+
+
+
+
+ try? container.encodeIfPresent(transferType, forKey: .transferType)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PayoutResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..8a6005c67f
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PayoutResponsePaymentPlatformModel.swift
@@ -0,0 +1,390 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PayoutResponse
+ Used By: Payment
+ */
+
+ class PayoutResponse: Codable {
+
+
+ public var paymentStatus: String
+
+ public var users: [String: Any]
+
+ public var aggregator: String
+
+ public var uniqueTransferNo: String
+
+ public var isActive: Bool
+
+ public var bankDetails: [String: Any]
+
+ public var success: Bool
+
+ public var transferType: String
+
+ public var created: Bool
+
+ public var payouts: [String: Any]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentStatus = "payment_status"
+
+ case users = "users"
+
+ case aggregator = "aggregator"
+
+ case uniqueTransferNo = "unique_transfer_no"
+
+ case isActive = "is_active"
+
+ case bankDetails = "bank_details"
+
+ case success = "success"
+
+ case transferType = "transfer_type"
+
+ case created = "created"
+
+ case payouts = "payouts"
+
+ }
+
+ public init(aggregator: String, bankDetails: [String: Any], created: Bool, isActive: Bool, paymentStatus: String, payouts: [String: Any], success: Bool, transferType: String, uniqueTransferNo: String, users: [String: Any]) {
+
+ self.paymentStatus = paymentStatus
+
+ self.users = users
+
+ self.aggregator = aggregator
+
+ self.uniqueTransferNo = uniqueTransferNo
+
+ self.isActive = isActive
+
+ self.bankDetails = bankDetails
+
+ self.success = success
+
+ self.transferType = transferType
+
+ self.created = created
+
+ self.payouts = payouts
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentStatus = try container.decode(String.self, forKey: .paymentStatus)
+
+
+
+
+ users = try container.decode([String: Any].self, forKey: .users)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ uniqueTransferNo = try container.decode(String.self, forKey: .uniqueTransferNo)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ bankDetails = try container.decode([String: Any].self, forKey: .bankDetails)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ transferType = try container.decode(String.self, forKey: .transferType)
+
+
+
+
+ created = try container.decode(Bool.self, forKey: .created)
+
+
+
+
+ payouts = try container.decode([String: Any].self, forKey: .payouts)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentStatus, forKey: .paymentStatus)
+
+
+
+
+ try? container.encodeIfPresent(users, forKey: .users)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(uniqueTransferNo, forKey: .uniqueTransferNo)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(transferType, forKey: .transferType)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(payouts, forKey: .payouts)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PayoutResponse
+ Used By: Payment
+ */
+
+ class PayoutResponse: Codable {
+
+
+ public var paymentStatus: String
+
+ public var users: [String: Any]
+
+ public var aggregator: String
+
+ public var uniqueTransferNo: String
+
+ public var isActive: Bool
+
+ public var bankDetails: [String: Any]
+
+ public var success: Bool
+
+ public var transferType: String
+
+ public var created: Bool
+
+ public var payouts: [String: Any]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case paymentStatus = "payment_status"
+
+ case users = "users"
+
+ case aggregator = "aggregator"
+
+ case uniqueTransferNo = "unique_transfer_no"
+
+ case isActive = "is_active"
+
+ case bankDetails = "bank_details"
+
+ case success = "success"
+
+ case transferType = "transfer_type"
+
+ case created = "created"
+
+ case payouts = "payouts"
+
+ }
+
+ public init(aggregator: String, bankDetails: [String: Any], created: Bool, isActive: Bool, paymentStatus: String, payouts: [String: Any], success: Bool, transferType: String, uniqueTransferNo: String, users: [String: Any]) {
+
+ self.paymentStatus = paymentStatus
+
+ self.users = users
+
+ self.aggregator = aggregator
+
+ self.uniqueTransferNo = uniqueTransferNo
+
+ self.isActive = isActive
+
+ self.bankDetails = bankDetails
+
+ self.success = success
+
+ self.transferType = transferType
+
+ self.created = created
+
+ self.payouts = payouts
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ paymentStatus = try container.decode(String.self, forKey: .paymentStatus)
+
+
+
+
+ users = try container.decode([String: Any].self, forKey: .users)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ uniqueTransferNo = try container.decode(String.self, forKey: .uniqueTransferNo)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ bankDetails = try container.decode([String: Any].self, forKey: .bankDetails)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ transferType = try container.decode(String.self, forKey: .transferType)
+
+
+
+
+ created = try container.decode(Bool.self, forKey: .created)
+
+
+
+
+ payouts = try container.decode([String: Any].self, forKey: .payouts)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(paymentStatus, forKey: .paymentStatus)
+
+
+
+
+ try? container.encodeIfPresent(users, forKey: .users)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(uniqueTransferNo, forKey: .uniqueTransferNo)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(bankDetails, forKey: .bankDetails)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(transferType, forKey: .transferType)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(payouts, forKey: .payouts)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PayoutsDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutsDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 4c7def174e..0000000000
--- a/Sources/code/platform/Models/Payment/PayoutsDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PayoutsDetails
- Used By: Payment
- */
-
- class PayoutsDetails: Codable {
-
-
- public var success: Bool
-
- public var items: [Payout]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case items = "items"
-
- }
-
- public init(items: [Payout], success: Bool) {
-
- self.success = success
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- items = try container.decode([Payout].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PayoutsDetails
- Used By: Payment
- */
-
- class PayoutsDetails: Codable {
-
-
- public var success: Bool
-
- public var items: [Payout]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case items = "items"
-
- }
-
- public init(items: [Payout], success: Bool) {
-
- self.success = success
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- items = try container.decode([Payout].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PayoutsResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PayoutsResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..8048052eb0
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PayoutsResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PayoutsResponse
+ Used By: Payment
+ */
+
+ class PayoutsResponse: Codable {
+
+
+ public var success: Bool
+
+ public var items: [Payout]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case items = "items"
+
+ }
+
+ public init(items: [Payout], success: Bool) {
+
+ self.success = success
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ items = try container.decode([Payout].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PayoutsResponse
+ Used By: Payment
+ */
+
+ class PayoutsResponse: Codable {
+
+
+ public var success: Bool
+
+ public var items: [Payout]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case items = "items"
+
+ }
+
+ public init(items: [Payout], success: Bool) {
+
+ self.success = success
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ items = try container.decode([Payout].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigCreationPaymentPlatformModel.swift
deleted file mode 100644
index 8aa221d125..0000000000
--- a/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PlatformPaymentModeCopyConfigCreation
- Used By: Payment
- */
-
- class PlatformPaymentModeCopyConfigCreation: Codable {
-
-
- public var fromConfig: FromConfig
-
- public var toConfig: ToConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fromConfig = "from_config"
-
- case toConfig = "to_config"
-
- }
-
- public init(fromConfig: FromConfig, toConfig: ToConfig) {
-
- self.fromConfig = fromConfig
-
- self.toConfig = toConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fromConfig = try container.decode(FromConfig.self, forKey: .fromConfig)
-
-
-
-
- toConfig = try container.decode(ToConfig.self, forKey: .toConfig)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fromConfig, forKey: .fromConfig)
-
-
-
-
- try? container.encodeIfPresent(toConfig, forKey: .toConfig)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PlatformPaymentModeCopyConfigCreation
- Used By: Payment
- */
-
- class PlatformPaymentModeCopyConfigCreation: Codable {
-
-
- public var fromConfig: FromConfig
-
- public var toConfig: ToConfig
-
-
- public enum CodingKeys: String, CodingKey {
-
- case fromConfig = "from_config"
-
- case toConfig = "to_config"
-
- }
-
- public init(fromConfig: FromConfig, toConfig: ToConfig) {
-
- self.fromConfig = fromConfig
-
- self.toConfig = toConfig
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- fromConfig = try container.decode(FromConfig.self, forKey: .fromConfig)
-
-
-
-
- toConfig = try container.decode(ToConfig.self, forKey: .toConfig)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(fromConfig, forKey: .fromConfig)
-
-
-
-
- try? container.encodeIfPresent(toConfig, forKey: .toConfig)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..620bbf0d32
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PlatformPaymentModeCopyConfigRequestPaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PlatformPaymentModeCopyConfigRequest
+ Used By: Payment
+ */
+
+ class PlatformPaymentModeCopyConfigRequest: Codable {
+
+
+ public var fromConfig: FromConfig
+
+ public var toConfig: ToConfig
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fromConfig = "from_config"
+
+ case toConfig = "to_config"
+
+ }
+
+ public init(fromConfig: FromConfig, toConfig: ToConfig) {
+
+ self.fromConfig = fromConfig
+
+ self.toConfig = toConfig
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fromConfig = try container.decode(FromConfig.self, forKey: .fromConfig)
+
+
+
+
+ toConfig = try container.decode(ToConfig.self, forKey: .toConfig)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fromConfig, forKey: .fromConfig)
+
+
+
+
+ try? container.encodeIfPresent(toConfig, forKey: .toConfig)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PlatformPaymentModeCopyConfigRequest
+ Used By: Payment
+ */
+
+ class PlatformPaymentModeCopyConfigRequest: Codable {
+
+
+ public var fromConfig: FromConfig
+
+ public var toConfig: ToConfig
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case fromConfig = "from_config"
+
+ case toConfig = "to_config"
+
+ }
+
+ public init(fromConfig: FromConfig, toConfig: ToConfig) {
+
+ self.fromConfig = fromConfig
+
+ self.toConfig = toConfig
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ fromConfig = try container.decode(FromConfig.self, forKey: .fromConfig)
+
+
+
+
+ toConfig = try container.decode(ToConfig.self, forKey: .toConfig)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(fromConfig, forKey: .fromConfig)
+
+
+
+
+ try? container.encodeIfPresent(toConfig, forKey: .toConfig)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PlatformPaymentModeDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PlatformPaymentModeDetailsPaymentPlatformModel.swift
deleted file mode 100644
index becf0ea422..0000000000
--- a/Sources/code/platform/Models/Payment/PlatformPaymentModeDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PlatformPaymentModeDetails
- Used By: Payment
- */
-
- class PlatformPaymentModeDetails: Codable {
-
-
- public var message: String?
-
- public var items: [[String: Any]]?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case items = "items"
-
- case success = "success"
-
- }
-
- public init(items: [[String: Any]]? = nil, message: String? = nil, success: Bool) {
-
- self.message = message
-
- self.items = items
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PlatformPaymentModeDetails
- Used By: Payment
- */
-
- class PlatformPaymentModeDetails: Codable {
-
-
- public var message: String?
-
- public var items: [[String: Any]]?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case items = "items"
-
- case success = "success"
-
- }
-
- public init(items: [[String: Any]]? = nil, message: String? = nil, success: Bool) {
-
- self.message = message
-
- self.items = items
-
- self.success = success
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PlatformPaymentModeResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PlatformPaymentModeResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..3350bcb051
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PlatformPaymentModeResponsePaymentPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PlatformPaymentModeResponse
+ Used By: Payment
+ */
+
+ class PlatformPaymentModeResponse: Codable {
+
+
+ public var message: String?
+
+ public var items: [[String: Any]]?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case items = "items"
+
+ case success = "success"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, message: String? = nil, success: Bool) {
+
+ self.message = message
+
+ self.items = items
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PlatformPaymentModeResponse
+ Used By: Payment
+ */
+
+ class PlatformPaymentModeResponse: Codable {
+
+
+ public var message: String?
+
+ public var items: [[String: Any]]?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case items = "items"
+
+ case success = "success"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, message: String? = nil, success: Bool) {
+
+ self.message = message
+
+ self.items = items
+
+ self.success = success
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/PollingPaymentLinkDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PollingPaymentLinkDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 422bb18cc6..0000000000
--- a/Sources/code/platform/Models/Payment/PollingPaymentLinkDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,530 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: PollingPaymentLinkDetails
- Used By: Payment
- */
-
- class PollingPaymentLinkDetails: Codable {
-
-
- public var message: String?
-
- public var httpStatus: Int?
-
- public var statusCode: Int?
-
- public var redirectUrl: String?
-
- public var amount: Double?
-
- public var orderId: String?
-
- public var success: Bool?
-
- public var paymentLinkId: String?
-
- public var status: String?
-
- public var aggregatorName: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case httpStatus = "http_status"
-
- case statusCode = "status_code"
-
- case redirectUrl = "redirect_url"
-
- case amount = "amount"
-
- case orderId = "order_id"
-
- case success = "success"
-
- case paymentLinkId = "payment_link_id"
-
- case status = "status"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.httpStatus = httpStatus
-
- self.statusCode = statusCode
-
- self.redirectUrl = redirectUrl
-
- self.amount = amount
-
- self.orderId = orderId
-
- self.success = success
-
- self.paymentLinkId = paymentLinkId
-
- self.status = status
-
- self.aggregatorName = aggregatorName
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- httpStatus = try container.decode(Int.self, forKey: .httpStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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 {
-
- }
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: PollingPaymentLinkDetails
- Used By: Payment
- */
-
- class PollingPaymentLinkDetails: Codable {
-
-
- public var message: String?
-
- public var httpStatus: Int?
-
- public var statusCode: Int?
-
- public var redirectUrl: String?
-
- public var amount: Double?
-
- public var orderId: String?
-
- public var success: Bool?
-
- public var paymentLinkId: String?
-
- public var status: String?
-
- public var aggregatorName: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case httpStatus = "http_status"
-
- case statusCode = "status_code"
-
- case redirectUrl = "redirect_url"
-
- case amount = "amount"
-
- case orderId = "order_id"
-
- case success = "success"
-
- case paymentLinkId = "payment_link_id"
-
- case status = "status"
-
- case aggregatorName = "aggregator_name"
-
- }
-
- public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
-
- self.message = message
-
- self.httpStatus = httpStatus
-
- self.statusCode = statusCode
-
- self.redirectUrl = redirectUrl
-
- self.amount = amount
-
- self.orderId = orderId
-
- self.success = success
-
- self.paymentLinkId = paymentLinkId
-
- self.status = status
-
- self.aggregatorName = aggregatorName
-
- }
-
- 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 {
-
- }
-
-
-
- do {
- httpStatus = try container.decode(Int.self, forKey: .httpStatus)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- amount = try container.decode(Double.self, forKey: .amount)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- orderId = try container.decode(String.self, forKey: .orderId)
-
- } 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 {
-
- }
-
-
-
- do {
- paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
-
- } 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(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
-
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
-
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/PollingPaymentLinkResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/PollingPaymentLinkResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..55354aeb62
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/PollingPaymentLinkResponsePaymentPlatformModel.swift
@@ -0,0 +1,530 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: PollingPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class PollingPaymentLinkResponse: Codable {
+
+
+ public var message: String?
+
+ public var httpStatus: Int?
+
+ public var statusCode: Int?
+
+ public var redirectUrl: String?
+
+ public var amount: Double?
+
+ public var orderId: String?
+
+ public var success: Bool?
+
+ public var paymentLinkId: String?
+
+ public var status: String?
+
+ public var aggregatorName: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case httpStatus = "http_status"
+
+ case statusCode = "status_code"
+
+ case redirectUrl = "redirect_url"
+
+ case amount = "amount"
+
+ case orderId = "order_id"
+
+ case success = "success"
+
+ case paymentLinkId = "payment_link_id"
+
+ case status = "status"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.httpStatus = httpStatus
+
+ self.statusCode = statusCode
+
+ self.redirectUrl = redirectUrl
+
+ self.amount = amount
+
+ self.orderId = orderId
+
+ self.success = success
+
+ self.paymentLinkId = paymentLinkId
+
+ self.status = status
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ httpStatus = try container.decode(Int.self, forKey: .httpStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: PollingPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class PollingPaymentLinkResponse: Codable {
+
+
+ public var message: String?
+
+ public var httpStatus: Int?
+
+ public var statusCode: Int?
+
+ public var redirectUrl: String?
+
+ public var amount: Double?
+
+ public var orderId: String?
+
+ public var success: Bool?
+
+ public var paymentLinkId: String?
+
+ public var status: String?
+
+ public var aggregatorName: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case httpStatus = "http_status"
+
+ case statusCode = "status_code"
+
+ case redirectUrl = "redirect_url"
+
+ case amount = "amount"
+
+ case orderId = "order_id"
+
+ case success = "success"
+
+ case paymentLinkId = "payment_link_id"
+
+ case status = "status"
+
+ case aggregatorName = "aggregator_name"
+
+ }
+
+ public init(aggregatorName: String? = nil, amount: Double? = nil, httpStatus: Int? = nil, message: String? = nil, orderId: String? = nil, paymentLinkId: String? = nil, redirectUrl: String? = nil, status: String? = nil, statusCode: Int? = nil, success: Bool? = nil) {
+
+ self.message = message
+
+ self.httpStatus = httpStatus
+
+ self.statusCode = statusCode
+
+ self.redirectUrl = redirectUrl
+
+ self.amount = amount
+
+ self.orderId = orderId
+
+ self.success = success
+
+ self.paymentLinkId = paymentLinkId
+
+ self.status = status
+
+ self.aggregatorName = aggregatorName
+
+ }
+
+ 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 {
+
+ }
+
+
+
+ do {
+ httpStatus = try container.decode(Int.self, forKey: .httpStatus)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ redirectUrl = try container.decode(String.self, forKey: .redirectUrl)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ amount = try container.decode(Double.self, forKey: .amount)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ paymentLinkId = try container.decode(String.self, forKey: .paymentLinkId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ aggregatorName = try container.decode(String.self, forKey: .aggregatorName)
+
+ } 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(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(httpStatus, forKey: .httpStatus)
+
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(redirectUrl, forKey: .redirectUrl)
+
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(paymentLinkId, forKey: .paymentLinkId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(aggregatorName, forKey: .aggregatorName)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ProductCODDataPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ProductCODDataPaymentPlatformModel.swift
index b7f12c7f59..a3005c1262 100644
--- a/Sources/code/platform/Models/Payment/ProductCODDataPaymentPlatformModel.swift
+++ b/Sources/code/platform/Models/Payment/ProductCODDataPaymentPlatformModel.swift
@@ -14,7 +14,7 @@ public extension PlatformClient.Payment {
public var items: [String: Any]?
- public var codCharges: CODChargesLimitsDetails?
+ public var codCharges: CODChargesLimitsResponse?
public enum CodingKeys: String, CodingKey {
@@ -25,7 +25,7 @@ public extension PlatformClient.Payment {
}
- public init(codCharges: CODChargesLimitsDetails? = nil, items: [String: Any]? = nil) {
+ public init(codCharges: CODChargesLimitsResponse? = nil, items: [String: Any]? = nil) {
self.items = items
@@ -50,7 +50,7 @@ public extension PlatformClient.Payment {
do {
- codCharges = try container.decode(CODChargesLimitsDetails.self, forKey: .codCharges)
+ codCharges = try container.decode(CODChargesLimitsResponse.self, forKey: .codCharges)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -93,7 +93,7 @@ public extension PlatformClient.ApplicationClient.Payment {
public var items: [String: Any]?
- public var codCharges: CODChargesLimitsDetails?
+ public var codCharges: CODChargesLimitsResponse?
public enum CodingKeys: String, CodingKey {
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Payment {
}
- public init(codCharges: CODChargesLimitsDetails? = nil, items: [String: Any]? = nil) {
+ public init(codCharges: CODChargesLimitsResponse? = nil, items: [String: Any]? = nil) {
self.items = items
@@ -129,7 +129,7 @@ public extension PlatformClient.ApplicationClient.Payment {
do {
- codCharges = try container.decode(CODChargesLimitsDetails.self, forKey: .codCharges)
+ codCharges = try container.decode(CODChargesLimitsResponse.self, forKey: .codCharges)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Payment/RefundAccountDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundAccountDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 490cb59418..0000000000
--- a/Sources/code/platform/Models/Payment/RefundAccountDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,226 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundAccountDetails
- Used By: Payment
- */
-
- class RefundAccountDetails: Codable {
-
-
- public var isVerifiedFlag: Bool?
-
- public var message: String?
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isVerifiedFlag = "is_verified_flag"
-
- case message = "message"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], isVerifiedFlag: Bool? = nil, message: String? = nil, success: Bool) {
-
- self.isVerifiedFlag = isVerifiedFlag
-
- self.message = message
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundAccountDetails
- Used By: Payment
- */
-
- class RefundAccountDetails: Codable {
-
-
- public var isVerifiedFlag: Bool?
-
- public var message: String?
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isVerifiedFlag = "is_verified_flag"
-
- case message = "message"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], isVerifiedFlag: Bool? = nil, message: String? = nil, success: Bool) {
-
- self.isVerifiedFlag = isVerifiedFlag
-
- self.message = message
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundAccountResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundAccountResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..fb6186fd92
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundAccountResponsePaymentPlatformModel.swift
@@ -0,0 +1,226 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundAccountResponse
+ Used By: Payment
+ */
+
+ class RefundAccountResponse: Codable {
+
+
+ public var isVerifiedFlag: Bool?
+
+ public var message: String?
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isVerifiedFlag = "is_verified_flag"
+
+ case message = "message"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], isVerifiedFlag: Bool? = nil, message: String? = nil, success: Bool) {
+
+ self.isVerifiedFlag = isVerifiedFlag
+
+ self.message = message
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundAccountResponse
+ Used By: Payment
+ */
+
+ class RefundAccountResponse: Codable {
+
+
+ public var isVerifiedFlag: Bool?
+
+ public var message: String?
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isVerifiedFlag = "is_verified_flag"
+
+ case message = "message"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], isVerifiedFlag: Bool? = nil, message: String? = nil, success: Bool) {
+
+ self.isVerifiedFlag = isVerifiedFlag
+
+ self.message = message
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ isVerifiedFlag = try container.decode(Bool.self, forKey: .isVerifiedFlag)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isVerifiedFlag, forKey: .isVerifiedFlag)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RefundDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 345d41eb11..0000000000
--- a/Sources/code/platform/Models/Payment/RefundDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundDetails
- Used By: Payment
- */
-
- class RefundDetails: Codable {
-
-
- public var amount: Int
-
- public var currency: String
-
- public var requestId: String
-
- public var status: String
-
- public var created: String
-
- public var refundUtr: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case amount = "amount"
-
- case currency = "currency"
-
- case requestId = "request_id"
-
- case status = "status"
-
- case created = "created"
-
- case refundUtr = "refund_utr"
-
- }
-
- public init(amount: Int, created: String, currency: String, refundUtr: String, requestId: String, status: String) {
-
- self.amount = amount
-
- self.currency = currency
-
- self.requestId = requestId
-
- self.status = status
-
- self.created = created
-
- self.refundUtr = refundUtr
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- requestId = try container.decode(String.self, forKey: .requestId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- created = try container.decode(String.self, forKey: .created)
-
-
-
-
- refundUtr = try container.decode(String.self, forKey: .refundUtr)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(refundUtr, forKey: .refundUtr)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundDetails
- Used By: Payment
- */
-
- class RefundDetails: Codable {
-
-
- public var amount: Int
-
- public var currency: String
-
- public var requestId: String
-
- public var status: String
-
- public var created: String
-
- public var refundUtr: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case amount = "amount"
-
- case currency = "currency"
-
- case requestId = "request_id"
-
- case status = "status"
-
- case created = "created"
-
- case refundUtr = "refund_utr"
-
- }
-
- public init(amount: Int, created: String, currency: String, refundUtr: String, requestId: String, status: String) {
-
- self.amount = amount
-
- self.currency = currency
-
- self.requestId = requestId
-
- self.status = status
-
- self.created = created
-
- self.refundUtr = refundUtr
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- amount = try container.decode(Int.self, forKey: .amount)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- requestId = try container.decode(String.self, forKey: .requestId)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- created = try container.decode(String.self, forKey: .created)
-
-
-
-
- refundUtr = try container.decode(String.self, forKey: .refundUtr)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(amount, forKey: .amount)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(requestId, forKey: .requestId)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(created, forKey: .created)
-
-
-
-
- try? container.encodeIfPresent(refundUtr, forKey: .refundUtr)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundDetailsSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundDetailsSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..1265b6f9ab
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundDetailsSerializerPaymentPlatformModel.swift
@@ -0,0 +1,262 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundDetailsSerializer
+ Used By: Payment
+ */
+
+ class RefundDetailsSerializer: Codable {
+
+
+ public var amount: Int
+
+ public var currency: String
+
+ public var requestId: String
+
+ public var status: String
+
+ public var created: String
+
+ public var refundUtr: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case amount = "amount"
+
+ case currency = "currency"
+
+ case requestId = "request_id"
+
+ case status = "status"
+
+ case created = "created"
+
+ case refundUtr = "refund_utr"
+
+ }
+
+ public init(amount: Int, created: String, currency: String, refundUtr: String, requestId: String, status: String) {
+
+ self.amount = amount
+
+ self.currency = currency
+
+ self.requestId = requestId
+
+ self.status = status
+
+ self.created = created
+
+ self.refundUtr = refundUtr
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ created = try container.decode(String.self, forKey: .created)
+
+
+
+
+ refundUtr = try container.decode(String.self, forKey: .refundUtr)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(refundUtr, forKey: .refundUtr)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundDetailsSerializer
+ Used By: Payment
+ */
+
+ class RefundDetailsSerializer: Codable {
+
+
+ public var amount: Int
+
+ public var currency: String
+
+ public var requestId: String
+
+ public var status: String
+
+ public var created: String
+
+ public var refundUtr: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case amount = "amount"
+
+ case currency = "currency"
+
+ case requestId = "request_id"
+
+ case status = "status"
+
+ case created = "created"
+
+ case refundUtr = "refund_utr"
+
+ }
+
+ public init(amount: Int, created: String, currency: String, refundUtr: String, requestId: String, status: String) {
+
+ self.amount = amount
+
+ self.currency = currency
+
+ self.requestId = requestId
+
+ self.status = status
+
+ self.created = created
+
+ self.refundUtr = refundUtr
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ amount = try container.decode(Int.self, forKey: .amount)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ requestId = try container.decode(String.self, forKey: .requestId)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ created = try container.decode(String.self, forKey: .created)
+
+
+
+
+ refundUtr = try container.decode(String.self, forKey: .refundUtr)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(amount, forKey: .amount)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(requestId, forKey: .requestId)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(created, forKey: .created)
+
+
+
+
+ try? container.encodeIfPresent(refundUtr, forKey: .refundUtr)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RefundPriorityCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundPriorityCreationPaymentPlatformModel.swift
deleted file mode 100644
index 6b35cea6e9..0000000000
--- a/Sources/code/platform/Models/Payment/RefundPriorityCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundPriorityCreation
- Used By: Payment
- */
-
- class RefundPriorityCreation: Codable {
-
-
- public var apportion: Bool
-
- public var refundSourcesPriority: [RefundSourcesPriority]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case apportion = "apportion"
-
- case refundSourcesPriority = "refund_sources_priority"
-
- }
-
- public init(apportion: Bool, refundSourcesPriority: [RefundSourcesPriority]) {
-
- self.apportion = apportion
-
- self.refundSourcesPriority = refundSourcesPriority
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- apportion = try container.decode(Bool.self, forKey: .apportion)
-
-
-
-
- refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(apportion, forKey: .apportion)
-
-
-
-
- try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundPriorityCreation
- Used By: Payment
- */
-
- class RefundPriorityCreation: Codable {
-
-
- public var apportion: Bool
-
- public var refundSourcesPriority: [RefundSourcesPriority]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case apportion = "apportion"
-
- case refundSourcesPriority = "refund_sources_priority"
-
- }
-
- public init(apportion: Bool, refundSourcesPriority: [RefundSourcesPriority]) {
-
- self.apportion = apportion
-
- self.refundSourcesPriority = refundSourcesPriority
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- apportion = try container.decode(Bool.self, forKey: .apportion)
-
-
-
-
- refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(apportion, forKey: .apportion)
-
-
-
-
- try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundPriorityDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundPriorityDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 124576e873..0000000000
--- a/Sources/code/platform/Models/Payment/RefundPriorityDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,244 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundPriorityDetails
- Used By: Payment
- */
-
- class RefundPriorityDetails: Codable {
-
-
- public var configuration: String
-
- public var success: Bool
-
- public var apportion: Bool
-
- public var refundSourcesPriority: [RefundSourcesPriority]
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case configuration = "configuration"
-
- case success = "success"
-
- case apportion = "apportion"
-
- case refundSourcesPriority = "refund_sources_priority"
-
- case message = "message"
-
- }
-
- public init(apportion: Bool, configuration: String, message: String? = nil, refundSourcesPriority: [RefundSourcesPriority], success: Bool) {
-
- self.configuration = configuration
-
- self.success = success
-
- self.apportion = apportion
-
- self.refundSourcesPriority = refundSourcesPriority
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- configuration = try container.decode(String.self, forKey: .configuration)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- apportion = try container.decode(Bool.self, forKey: .apportion)
-
-
-
-
- refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
-
-
-
-
- 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(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(apportion, forKey: .apportion)
-
-
-
-
- try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundPriorityDetails
- Used By: Payment
- */
-
- class RefundPriorityDetails: Codable {
-
-
- public var configuration: String
-
- public var success: Bool
-
- public var apportion: Bool
-
- public var refundSourcesPriority: [RefundSourcesPriority]
-
- public var message: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case configuration = "configuration"
-
- case success = "success"
-
- case apportion = "apportion"
-
- case refundSourcesPriority = "refund_sources_priority"
-
- case message = "message"
-
- }
-
- public init(apportion: Bool, configuration: String, message: String? = nil, refundSourcesPriority: [RefundSourcesPriority], success: Bool) {
-
- self.configuration = configuration
-
- self.success = success
-
- self.apportion = apportion
-
- self.refundSourcesPriority = refundSourcesPriority
-
- self.message = message
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- configuration = try container.decode(String.self, forKey: .configuration)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- apportion = try container.decode(Bool.self, forKey: .apportion)
-
-
-
-
- refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
-
-
-
-
- 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(configuration, forKey: .configuration)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(apportion, forKey: .apportion)
-
-
-
-
- try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundPriorityRequestSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundPriorityRequestSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..54aa8dd44a
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundPriorityRequestSerializerPaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundPriorityRequestSerializer
+ Used By: Payment
+ */
+
+ class RefundPriorityRequestSerializer: Codable {
+
+
+ public var apportion: Bool
+
+ public var refundSourcesPriority: [RefundSourcesPriority]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case apportion = "apportion"
+
+ case refundSourcesPriority = "refund_sources_priority"
+
+ }
+
+ public init(apportion: Bool, refundSourcesPriority: [RefundSourcesPriority]) {
+
+ self.apportion = apportion
+
+ self.refundSourcesPriority = refundSourcesPriority
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ apportion = try container.decode(Bool.self, forKey: .apportion)
+
+
+
+
+ refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(apportion, forKey: .apportion)
+
+
+
+
+ try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundPriorityRequestSerializer
+ Used By: Payment
+ */
+
+ class RefundPriorityRequestSerializer: Codable {
+
+
+ public var apportion: Bool
+
+ public var refundSourcesPriority: [RefundSourcesPriority]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case apportion = "apportion"
+
+ case refundSourcesPriority = "refund_sources_priority"
+
+ }
+
+ public init(apportion: Bool, refundSourcesPriority: [RefundSourcesPriority]) {
+
+ self.apportion = apportion
+
+ self.refundSourcesPriority = refundSourcesPriority
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ apportion = try container.decode(Bool.self, forKey: .apportion)
+
+
+
+
+ refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(apportion, forKey: .apportion)
+
+
+
+
+ try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RefundPriorityResponseSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundPriorityResponseSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..9f1c5f2701
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundPriorityResponseSerializerPaymentPlatformModel.swift
@@ -0,0 +1,244 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundPriorityResponseSerializer
+ Used By: Payment
+ */
+
+ class RefundPriorityResponseSerializer: Codable {
+
+
+ public var configuration: String
+
+ public var success: Bool
+
+ public var apportion: Bool
+
+ public var refundSourcesPriority: [RefundSourcesPriority]
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case configuration = "configuration"
+
+ case success = "success"
+
+ case apportion = "apportion"
+
+ case refundSourcesPriority = "refund_sources_priority"
+
+ case message = "message"
+
+ }
+
+ public init(apportion: Bool, configuration: String, message: String? = nil, refundSourcesPriority: [RefundSourcesPriority], success: Bool) {
+
+ self.configuration = configuration
+
+ self.success = success
+
+ self.apportion = apportion
+
+ self.refundSourcesPriority = refundSourcesPriority
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ configuration = try container.decode(String.self, forKey: .configuration)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ apportion = try container.decode(Bool.self, forKey: .apportion)
+
+
+
+
+ refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
+
+
+
+
+ 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(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(apportion, forKey: .apportion)
+
+
+
+
+ try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundPriorityResponseSerializer
+ Used By: Payment
+ */
+
+ class RefundPriorityResponseSerializer: Codable {
+
+
+ public var configuration: String
+
+ public var success: Bool
+
+ public var apportion: Bool
+
+ public var refundSourcesPriority: [RefundSourcesPriority]
+
+ public var message: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case configuration = "configuration"
+
+ case success = "success"
+
+ case apportion = "apportion"
+
+ case refundSourcesPriority = "refund_sources_priority"
+
+ case message = "message"
+
+ }
+
+ public init(apportion: Bool, configuration: String, message: String? = nil, refundSourcesPriority: [RefundSourcesPriority], success: Bool) {
+
+ self.configuration = configuration
+
+ self.success = success
+
+ self.apportion = apportion
+
+ self.refundSourcesPriority = refundSourcesPriority
+
+ self.message = message
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ configuration = try container.decode(String.self, forKey: .configuration)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ apportion = try container.decode(Bool.self, forKey: .apportion)
+
+
+
+
+ refundSourcesPriority = try container.decode([RefundSourcesPriority].self, forKey: .refundSourcesPriority)
+
+
+
+
+ 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(configuration, forKey: .configuration)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(apportion, forKey: .apportion)
+
+
+
+
+ try? container.encodeIfPresent(refundSourcesPriority, forKey: .refundSourcesPriority)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RefundSessionCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundSessionCreationPaymentPlatformModel.swift
deleted file mode 100644
index 8aea1c4d0c..0000000000
--- a/Sources/code/platform/Models/Payment/RefundSessionCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,432 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundSessionCreation
- Used By: Payment
- */
-
- class RefundSessionCreation: Codable {
-
-
- public var meta: [String: Any]?
-
- public var gid: String
-
- public var status: String
-
- public var currency: String
-
- public var paymentDetails: PaymentSessionDetail
-
- public var totalAmount: Int
-
- public var refundDetails: [RefundSessionDetail]
-
- public var error: ErrorDescription?
-
- public var message: String?
-
- public var checksum: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- case gid = "gid"
-
- case status = "status"
-
- case currency = "currency"
-
- case paymentDetails = "payment_details"
-
- case totalAmount = "total_amount"
-
- case refundDetails = "refund_details"
-
- case error = "error"
-
- case message = "message"
-
- case checksum = "checksum"
-
- }
-
- public init(checksum: String, currency: String, error: ErrorDescription? = nil, gid: String, message: String? = nil, meta: [String: Any]? = nil, paymentDetails: PaymentSessionDetail, refundDetails: [RefundSessionDetail], status: String, totalAmount: Int) {
-
- self.meta = meta
-
- self.gid = gid
-
- self.status = status
-
- self.currency = currency
-
- self.paymentDetails = paymentDetails
-
- self.totalAmount = totalAmount
-
- self.refundDetails = refundDetails
-
- self.error = error
-
- self.message = message
-
- self.checksum = checksum
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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)
- } catch {
-
- }
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- paymentDetails = try container.decode(PaymentSessionDetail.self, forKey: .paymentDetails)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- refundDetails = try container.decode([RefundSessionDetail].self, forKey: .refundDetails)
-
-
-
-
- do {
- error = try container.decode(ErrorDescription.self, forKey: .error)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- checksum = try container.decode(String.self, forKey: .checksum)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(checksum, forKey: .checksum)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundSessionCreation
- Used By: Payment
- */
-
- class RefundSessionCreation: Codable {
-
-
- public var meta: [String: Any]?
-
- public var gid: String
-
- public var status: String
-
- public var currency: String
-
- public var paymentDetails: PaymentSessionDetail
-
- public var totalAmount: Int
-
- public var refundDetails: [RefundSessionDetail]
-
- public var error: ErrorDescription?
-
- public var message: String?
-
- public var checksum: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case meta = "meta"
-
- case gid = "gid"
-
- case status = "status"
-
- case currency = "currency"
-
- case paymentDetails = "payment_details"
-
- case totalAmount = "total_amount"
-
- case refundDetails = "refund_details"
-
- case error = "error"
-
- case message = "message"
-
- case checksum = "checksum"
-
- }
-
- public init(checksum: String, currency: String, error: ErrorDescription? = nil, gid: String, message: String? = nil, meta: [String: Any]? = nil, paymentDetails: PaymentSessionDetail, refundDetails: [RefundSessionDetail], status: String, totalAmount: Int) {
-
- self.meta = meta
-
- self.gid = gid
-
- self.status = status
-
- self.currency = currency
-
- self.paymentDetails = paymentDetails
-
- self.totalAmount = totalAmount
-
- self.refundDetails = refundDetails
-
- self.error = error
-
- self.message = message
-
- self.checksum = checksum
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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)
- } catch {
-
- }
-
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- paymentDetails = try container.decode(PaymentSessionDetail.self, forKey: .paymentDetails)
-
-
-
-
- totalAmount = try container.decode(Int.self, forKey: .totalAmount)
-
-
-
-
- refundDetails = try container.decode([RefundSessionDetail].self, forKey: .refundDetails)
-
-
-
-
- do {
- error = try container.decode(ErrorDescription.self, forKey: .error)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- checksum = try container.decode(String.self, forKey: .checksum)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
-
-
-
-
- try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
-
-
-
-
- try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(checksum, forKey: .checksum)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundSessionDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundSessionDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 666a672cd6..0000000000
--- a/Sources/code/platform/Models/Payment/RefundSessionDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RefundSessionDetails
- Used By: Payment
- */
-
- class RefundSessionDetails: Codable {
-
-
- public var gid: String
-
- public var status: String
-
- public var currency: String
-
- public var platformRefundDetails: [[String: Any]]
-
- public var totalRefundAmount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case gid = "gid"
-
- case status = "status"
-
- case currency = "currency"
-
- case platformRefundDetails = "platform_refund_details"
-
- case totalRefundAmount = "total_refund_amount"
-
- }
-
- public init(currency: String, gid: String, platformRefundDetails: [[String: Any]], status: String, totalRefundAmount: Int) {
-
- self.gid = gid
-
- self.status = status
-
- self.currency = currency
-
- self.platformRefundDetails = platformRefundDetails
-
- self.totalRefundAmount = totalRefundAmount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- platformRefundDetails = try container.decode([[String: Any]].self, forKey: .platformRefundDetails)
-
-
-
-
- totalRefundAmount = try container.decode(Int.self, forKey: .totalRefundAmount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(platformRefundDetails, forKey: .platformRefundDetails)
-
-
-
-
- try? container.encodeIfPresent(totalRefundAmount, forKey: .totalRefundAmount)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RefundSessionDetails
- Used By: Payment
- */
-
- class RefundSessionDetails: Codable {
-
-
- public var gid: String
-
- public var status: String
-
- public var currency: String
-
- public var platformRefundDetails: [[String: Any]]
-
- public var totalRefundAmount: Int
-
-
- public enum CodingKeys: String, CodingKey {
-
- case gid = "gid"
-
- case status = "status"
-
- case currency = "currency"
-
- case platformRefundDetails = "platform_refund_details"
-
- case totalRefundAmount = "total_refund_amount"
-
- }
-
- public init(currency: String, gid: String, platformRefundDetails: [[String: Any]], status: String, totalRefundAmount: Int) {
-
- self.gid = gid
-
- self.status = status
-
- self.currency = currency
-
- self.platformRefundDetails = platformRefundDetails
-
- self.totalRefundAmount = totalRefundAmount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- gid = try container.decode(String.self, forKey: .gid)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- currency = try container.decode(String.self, forKey: .currency)
-
-
-
-
- platformRefundDetails = try container.decode([[String: Any]].self, forKey: .platformRefundDetails)
-
-
-
-
- totalRefundAmount = try container.decode(Int.self, forKey: .totalRefundAmount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(gid, forKey: .gid)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(currency, forKey: .currency)
-
-
-
-
- try? container.encodeIfPresent(platformRefundDetails, forKey: .platformRefundDetails)
-
-
-
-
- try? container.encodeIfPresent(totalRefundAmount, forKey: .totalRefundAmount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RefundSessionRequestSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundSessionRequestSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..6a869113b0
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundSessionRequestSerializerPaymentPlatformModel.swift
@@ -0,0 +1,432 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundSessionRequestSerializer
+ Used By: Payment
+ */
+
+ class RefundSessionRequestSerializer: Codable {
+
+
+ public var meta: [String: Any]?
+
+ public var gid: String
+
+ public var status: String
+
+ public var currency: String
+
+ public var paymentDetails: PaymentSessionDetail
+
+ public var totalAmount: Int
+
+ public var refundDetails: [RefundSessionDetail]
+
+ public var error: ErrorDescription?
+
+ public var message: String?
+
+ public var checksum: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case gid = "gid"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case paymentDetails = "payment_details"
+
+ case totalAmount = "total_amount"
+
+ case refundDetails = "refund_details"
+
+ case error = "error"
+
+ case message = "message"
+
+ case checksum = "checksum"
+
+ }
+
+ public init(checksum: String, currency: String, error: ErrorDescription? = nil, gid: String, message: String? = nil, meta: [String: Any]? = nil, paymentDetails: PaymentSessionDetail, refundDetails: [RefundSessionDetail], status: String, totalAmount: Int) {
+
+ self.meta = meta
+
+ self.gid = gid
+
+ self.status = status
+
+ self.currency = currency
+
+ self.paymentDetails = paymentDetails
+
+ self.totalAmount = totalAmount
+
+ self.refundDetails = refundDetails
+
+ self.error = error
+
+ self.message = message
+
+ self.checksum = checksum
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ paymentDetails = try container.decode(PaymentSessionDetail.self, forKey: .paymentDetails)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ refundDetails = try container.decode([RefundSessionDetail].self, forKey: .refundDetails)
+
+
+
+
+ do {
+ error = try container.decode(ErrorDescription.self, forKey: .error)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ checksum = try container.decode(String.self, forKey: .checksum)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(checksum, forKey: .checksum)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundSessionRequestSerializer
+ Used By: Payment
+ */
+
+ class RefundSessionRequestSerializer: Codable {
+
+
+ public var meta: [String: Any]?
+
+ public var gid: String
+
+ public var status: String
+
+ public var currency: String
+
+ public var paymentDetails: PaymentSessionDetail
+
+ public var totalAmount: Int
+
+ public var refundDetails: [RefundSessionDetail]
+
+ public var error: ErrorDescription?
+
+ public var message: String?
+
+ public var checksum: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case meta = "meta"
+
+ case gid = "gid"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case paymentDetails = "payment_details"
+
+ case totalAmount = "total_amount"
+
+ case refundDetails = "refund_details"
+
+ case error = "error"
+
+ case message = "message"
+
+ case checksum = "checksum"
+
+ }
+
+ public init(checksum: String, currency: String, error: ErrorDescription? = nil, gid: String, message: String? = nil, meta: [String: Any]? = nil, paymentDetails: PaymentSessionDetail, refundDetails: [RefundSessionDetail], status: String, totalAmount: Int) {
+
+ self.meta = meta
+
+ self.gid = gid
+
+ self.status = status
+
+ self.currency = currency
+
+ self.paymentDetails = paymentDetails
+
+ self.totalAmount = totalAmount
+
+ self.refundDetails = refundDetails
+
+ self.error = error
+
+ self.message = message
+
+ self.checksum = checksum
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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)
+ } catch {
+
+ }
+
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ paymentDetails = try container.decode(PaymentSessionDetail.self, forKey: .paymentDetails)
+
+
+
+
+ totalAmount = try container.decode(Int.self, forKey: .totalAmount)
+
+
+
+
+ refundDetails = try container.decode([RefundSessionDetail].self, forKey: .refundDetails)
+
+
+
+
+ do {
+ error = try container.decode(ErrorDescription.self, forKey: .error)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ checksum = try container.decode(String.self, forKey: .checksum)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(paymentDetails, forKey: .paymentDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalAmount, forKey: .totalAmount)
+
+
+
+
+ try? container.encodeIfPresent(refundDetails, forKey: .refundDetails)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(checksum, forKey: .checksum)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RefundSessionResponseSerializerPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RefundSessionResponseSerializerPaymentPlatformModel.swift
new file mode 100644
index 0000000000..81f9ac0d58
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RefundSessionResponseSerializerPaymentPlatformModel.swift
@@ -0,0 +1,230 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RefundSessionResponseSerializer
+ Used By: Payment
+ */
+
+ class RefundSessionResponseSerializer: Codable {
+
+
+ public var gid: String
+
+ public var status: String
+
+ public var currency: String
+
+ public var platformRefundDetails: [[String: Any]]
+
+ public var totalRefundAmount: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case gid = "gid"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case platformRefundDetails = "platform_refund_details"
+
+ case totalRefundAmount = "total_refund_amount"
+
+ }
+
+ public init(currency: String, gid: String, platformRefundDetails: [[String: Any]], status: String, totalRefundAmount: Int) {
+
+ self.gid = gid
+
+ self.status = status
+
+ self.currency = currency
+
+ self.platformRefundDetails = platformRefundDetails
+
+ self.totalRefundAmount = totalRefundAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ platformRefundDetails = try container.decode([[String: Any]].self, forKey: .platformRefundDetails)
+
+
+
+
+ totalRefundAmount = try container.decode(Int.self, forKey: .totalRefundAmount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(platformRefundDetails, forKey: .platformRefundDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalRefundAmount, forKey: .totalRefundAmount)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RefundSessionResponseSerializer
+ Used By: Payment
+ */
+
+ class RefundSessionResponseSerializer: Codable {
+
+
+ public var gid: String
+
+ public var status: String
+
+ public var currency: String
+
+ public var platformRefundDetails: [[String: Any]]
+
+ public var totalRefundAmount: Int
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case gid = "gid"
+
+ case status = "status"
+
+ case currency = "currency"
+
+ case platformRefundDetails = "platform_refund_details"
+
+ case totalRefundAmount = "total_refund_amount"
+
+ }
+
+ public init(currency: String, gid: String, platformRefundDetails: [[String: Any]], status: String, totalRefundAmount: Int) {
+
+ self.gid = gid
+
+ self.status = status
+
+ self.currency = currency
+
+ self.platformRefundDetails = platformRefundDetails
+
+ self.totalRefundAmount = totalRefundAmount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ gid = try container.decode(String.self, forKey: .gid)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ currency = try container.decode(String.self, forKey: .currency)
+
+
+
+
+ platformRefundDetails = try container.decode([[String: Any]].self, forKey: .platformRefundDetails)
+
+
+
+
+ totalRefundAmount = try container.decode(Int.self, forKey: .totalRefundAmount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(gid, forKey: .gid)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(currency, forKey: .currency)
+
+
+
+
+ try? container.encodeIfPresent(platformRefundDetails, forKey: .platformRefundDetails)
+
+
+
+
+ try? container.encodeIfPresent(totalRefundAmount, forKey: .totalRefundAmount)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/RepaymentDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RepaymentDetailsPaymentPlatformModel.swift
deleted file mode 100644
index d25801d5f7..0000000000
--- a/Sources/code/platform/Models/Payment/RepaymentDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: RepaymentDetails
- Used By: Payment
- */
-
- class RepaymentDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: RepaymentDetails
- Used By: Payment
- */
-
- class RepaymentDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/RepaymentResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/RepaymentResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..c554df9776
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/RepaymentResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: RepaymentResponse
+ Used By: Payment
+ */
+
+ class RepaymentResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: RepaymentResponse
+ Used By: Payment
+ */
+
+ class RepaymentResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentCreationPaymentPlatformModel.swift
deleted file mode 100644
index a3943b6c93..0000000000
--- a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ResendOrCancelPaymentCreation
- Used By: Payment
- */
-
- class ResendOrCancelPaymentCreation: Codable {
-
-
- public var orderId: String
-
- public var deviceId: String?
-
- public var requestType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case deviceId = "device_id"
-
- case requestType = "request_type"
-
- }
-
- public init(deviceId: String? = nil, orderId: String, requestType: String) {
-
- self.orderId = orderId
-
- self.deviceId = deviceId
-
- self.requestType = requestType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- requestType = try container.decode(String.self, forKey: .requestType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(requestType, forKey: .requestType)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ResendOrCancelPaymentCreation
- Used By: Payment
- */
-
- class ResendOrCancelPaymentCreation: Codable {
-
-
- public var orderId: String
-
- public var deviceId: String?
-
- public var requestType: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case orderId = "order_id"
-
- case deviceId = "device_id"
-
- case requestType = "request_type"
-
- }
-
- public init(deviceId: String? = nil, orderId: String, requestType: String) {
-
- self.orderId = orderId
-
- self.deviceId = deviceId
-
- self.requestType = requestType
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- orderId = try container.decode(String.self, forKey: .orderId)
-
-
-
-
- do {
- deviceId = try container.decode(String.self, forKey: .deviceId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- requestType = try container.decode(String.self, forKey: .requestType)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(orderId, forKey: .orderId)
-
-
-
-
- try? container.encodeIfPresent(deviceId, forKey: .deviceId)
-
-
-
-
- try? container.encodeIfPresent(requestType, forKey: .requestType)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentDetailsPaymentPlatformModel.swift
deleted file mode 100644
index cb79de8971..0000000000
--- a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ResendOrCancelPaymentDetails
- Used By: Payment
- */
-
- class ResendOrCancelPaymentDetails: Codable {
-
-
- public var data: LinkStatus
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: LinkStatus, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(LinkStatus.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ResendOrCancelPaymentDetails
- Used By: Payment
- */
-
- class ResendOrCancelPaymentDetails: Codable {
-
-
- public var data: LinkStatus
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: LinkStatus, success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(LinkStatus.self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..e8c83fde73
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentRequestPaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentRequest
+ Used By: Payment
+ */
+
+ class ResendOrCancelPaymentRequest: Codable {
+
+
+ public var orderId: String
+
+ public var deviceId: String?
+
+ public var requestType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case deviceId = "device_id"
+
+ case requestType = "request_type"
+
+ }
+
+ public init(deviceId: String? = nil, orderId: String, requestType: String) {
+
+ self.orderId = orderId
+
+ self.deviceId = deviceId
+
+ self.requestType = requestType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ requestType = try container.decode(String.self, forKey: .requestType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(requestType, forKey: .requestType)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentRequest
+ Used By: Payment
+ */
+
+ class ResendOrCancelPaymentRequest: Codable {
+
+
+ public var orderId: String
+
+ public var deviceId: String?
+
+ public var requestType: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case orderId = "order_id"
+
+ case deviceId = "device_id"
+
+ case requestType = "request_type"
+
+ }
+
+ public init(deviceId: String? = nil, orderId: String, requestType: String) {
+
+ self.orderId = orderId
+
+ self.deviceId = deviceId
+
+ self.requestType = requestType
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ orderId = try container.decode(String.self, forKey: .orderId)
+
+
+
+
+ do {
+ deviceId = try container.decode(String.self, forKey: .deviceId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ requestType = try container.decode(String.self, forKey: .requestType)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(orderId, forKey: .orderId)
+
+
+
+
+ try? container.encodeIfPresent(deviceId, forKey: .deviceId)
+
+
+
+
+ try? container.encodeIfPresent(requestType, forKey: .requestType)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ResendOrCancelPaymentResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..df7e31b31b
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ResendOrCancelPaymentResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentResponse
+ Used By: Payment
+ */
+
+ class ResendOrCancelPaymentResponse: Codable {
+
+
+ public var data: LinkStatus
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: LinkStatus, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(LinkStatus.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ResendOrCancelPaymentResponse
+ Used By: Payment
+ */
+
+ class ResendOrCancelPaymentResponse: Codable {
+
+
+ public var data: LinkStatus
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: LinkStatus, success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(LinkStatus.self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ResendPaymentLinkDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendPaymentLinkDetailsPaymentPlatformModel.swift
deleted file mode 100644
index c137014de7..0000000000
--- a/Sources/code/platform/Models/Payment/ResendPaymentLinkDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ResendPaymentLinkDetails
- Used By: Payment
- */
-
- class ResendPaymentLinkDetails: Codable {
-
-
- public var statusCode: Int
-
- public var message: String
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case message = "message"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- }
-
- public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.message = message
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ResendPaymentLinkDetails
- Used By: Payment
- */
-
- class ResendPaymentLinkDetails: Codable {
-
-
- public var statusCode: Int
-
- public var message: String
-
- public var pollingTimeout: Int?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case statusCode = "status_code"
-
- case message = "message"
-
- case pollingTimeout = "polling_timeout"
-
- case success = "success"
-
- }
-
- public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
-
- self.statusCode = statusCode
-
- self.message = message
-
- self.pollingTimeout = pollingTimeout
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- statusCode = try container.decode(Int.self, forKey: .statusCode)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(statusCode, forKey: .statusCode)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ResendPaymentLinkResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ResendPaymentLinkResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..c149343bf2
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ResendPaymentLinkResponsePaymentPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ResendPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class ResendPaymentLinkResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var message: String
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case message = "message"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.message = message
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ResendPaymentLinkResponse
+ Used By: Payment
+ */
+
+ class ResendPaymentLinkResponse: Codable {
+
+
+ public var statusCode: Int
+
+ public var message: String
+
+ public var pollingTimeout: Int?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case statusCode = "status_code"
+
+ case message = "message"
+
+ case pollingTimeout = "polling_timeout"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, pollingTimeout: Int? = nil, statusCode: Int, success: Bool) {
+
+ self.statusCode = statusCode
+
+ self.message = message
+
+ self.pollingTimeout = pollingTimeout
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ statusCode = try container.decode(Int.self, forKey: .statusCode)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ pollingTimeout = try container.decode(Int.self, forKey: .pollingTimeout)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(statusCode, forKey: .statusCode)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(pollingTimeout, forKey: .pollingTimeout)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentCreationPaymentPlatformModel.swift
deleted file mode 100644
index 19a2957b81..0000000000
--- a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SaveSubscriptionSetupIntentCreation
- Used By: Payment
- */
-
- class SaveSubscriptionSetupIntentCreation: Codable {
-
-
- public var uniqueExternalId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uniqueExternalId = "unique_external_id"
-
- }
-
- public init(uniqueExternalId: String) {
-
- self.uniqueExternalId = uniqueExternalId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SaveSubscriptionSetupIntentCreation
- Used By: Payment
- */
-
- class SaveSubscriptionSetupIntentCreation: Codable {
-
-
- public var uniqueExternalId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case uniqueExternalId = "unique_external_id"
-
- }
-
- public init(uniqueExternalId: String) {
-
- self.uniqueExternalId = uniqueExternalId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentDetailsPaymentPlatformModel.swift
deleted file mode 100644
index f237cf9123..0000000000
--- a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SaveSubscriptionSetupIntentDetails
- Used By: Payment
- */
-
- class SaveSubscriptionSetupIntentDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SaveSubscriptionSetupIntentDetails
- Used By: Payment
- */
-
- class SaveSubscriptionSetupIntentDetails: Codable {
-
-
- public var data: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([String: Any].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..02c6fbe201
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentRequestPaymentPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SaveSubscriptionSetupIntentRequest
+ Used By: Payment
+ */
+
+ class SaveSubscriptionSetupIntentRequest: Codable {
+
+
+ public var uniqueExternalId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uniqueExternalId = "unique_external_id"
+
+ }
+
+ public init(uniqueExternalId: String) {
+
+ self.uniqueExternalId = uniqueExternalId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SaveSubscriptionSetupIntentRequest
+ Used By: Payment
+ */
+
+ class SaveSubscriptionSetupIntentRequest: Codable {
+
+
+ public var uniqueExternalId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case uniqueExternalId = "unique_external_id"
+
+ }
+
+ public init(uniqueExternalId: String) {
+
+ self.uniqueExternalId = uniqueExternalId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..17b53f7d4d
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SaveSubscriptionSetupIntentResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SaveSubscriptionSetupIntentResponse
+ Used By: Payment
+ */
+
+ class SaveSubscriptionSetupIntentResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SaveSubscriptionSetupIntentResponse
+ Used By: Payment
+ */
+
+ class SaveSubscriptionSetupIntentResponse: Codable {
+
+
+ public var data: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([String: Any].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SetCODForUserCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SetCODForUserCreationPaymentPlatformModel.swift
deleted file mode 100644
index 2d2d6e9259..0000000000
--- a/Sources/code/platform/Models/Payment/SetCODForUserCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SetCODForUserCreation
- Used By: Payment
- */
-
- class SetCODForUserCreation: Codable {
-
-
- public var businessUnit: String?
-
- public var mobileno: String
-
- public var isActive: Bool
-
- public var merchantUserId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case mobileno = "mobileno"
-
- case isActive = "is_active"
-
- case merchantUserId = "merchant_user_id"
-
- }
-
- public init(businessUnit: String? = nil, isActive: Bool, merchantUserId: String, mobileno: String) {
-
- self.businessUnit = businessUnit
-
- self.mobileno = mobileno
-
- self.isActive = isActive
-
- self.merchantUserId = merchantUserId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- mobileno = try container.decode(String.self, forKey: .mobileno)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- merchantUserId = try container.decode(String.self, forKey: .merchantUserId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(mobileno, forKey: .mobileno)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(merchantUserId, forKey: .merchantUserId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SetCODForUserCreation
- Used By: Payment
- */
-
- class SetCODForUserCreation: Codable {
-
-
- public var businessUnit: String?
-
- public var mobileno: String
-
- public var isActive: Bool
-
- public var merchantUserId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case businessUnit = "business_unit"
-
- case mobileno = "mobileno"
-
- case isActive = "is_active"
-
- case merchantUserId = "merchant_user_id"
-
- }
-
- public init(businessUnit: String? = nil, isActive: Bool, merchantUserId: String, mobileno: String) {
-
- self.businessUnit = businessUnit
-
- self.mobileno = mobileno
-
- self.isActive = isActive
-
- self.merchantUserId = merchantUserId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- businessUnit = try container.decode(String.self, forKey: .businessUnit)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- mobileno = try container.decode(String.self, forKey: .mobileno)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- merchantUserId = try container.decode(String.self, forKey: .merchantUserId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
-
-
-
-
- try? container.encodeIfPresent(mobileno, forKey: .mobileno)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(merchantUserId, forKey: .merchantUserId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SetCODForUserRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SetCODForUserRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..6afd67b2b8
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SetCODForUserRequestPaymentPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SetCODForUserRequest
+ Used By: Payment
+ */
+
+ class SetCODForUserRequest: Codable {
+
+
+ public var businessUnit: String?
+
+ public var mobileno: String
+
+ public var isActive: Bool
+
+ public var merchantUserId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case mobileno = "mobileno"
+
+ case isActive = "is_active"
+
+ case merchantUserId = "merchant_user_id"
+
+ }
+
+ public init(businessUnit: String? = nil, isActive: Bool, merchantUserId: String, mobileno: String) {
+
+ self.businessUnit = businessUnit
+
+ self.mobileno = mobileno
+
+ self.isActive = isActive
+
+ self.merchantUserId = merchantUserId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ mobileno = try container.decode(String.self, forKey: .mobileno)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ merchantUserId = try container.decode(String.self, forKey: .merchantUserId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(mobileno, forKey: .mobileno)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(merchantUserId, forKey: .merchantUserId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SetCODForUserRequest
+ Used By: Payment
+ */
+
+ class SetCODForUserRequest: Codable {
+
+
+ public var businessUnit: String?
+
+ public var mobileno: String
+
+ public var isActive: Bool
+
+ public var merchantUserId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case businessUnit = "business_unit"
+
+ case mobileno = "mobileno"
+
+ case isActive = "is_active"
+
+ case merchantUserId = "merchant_user_id"
+
+ }
+
+ public init(businessUnit: String? = nil, isActive: Bool, merchantUserId: String, mobileno: String) {
+
+ self.businessUnit = businessUnit
+
+ self.mobileno = mobileno
+
+ self.isActive = isActive
+
+ self.merchantUserId = merchantUserId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ businessUnit = try container.decode(String.self, forKey: .businessUnit)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ mobileno = try container.decode(String.self, forKey: .mobileno)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ merchantUserId = try container.decode(String.self, forKey: .merchantUserId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(businessUnit, forKey: .businessUnit)
+
+
+
+
+ try? container.encodeIfPresent(mobileno, forKey: .mobileno)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(merchantUserId, forKey: .merchantUserId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SetCODOptionDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SetCODOptionDetailsPaymentPlatformModel.swift
deleted file mode 100644
index fb24714e05..0000000000
--- a/Sources/code/platform/Models/Payment/SetCODOptionDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SetCODOptionDetails
- Used By: Payment
- */
-
- class SetCODOptionDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SetCODOptionDetails
- Used By: Payment
- */
-
- class SetCODOptionDetails: Codable {
-
-
- public var message: String
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case success = "success"
-
- }
-
- public init(message: String, success: Bool) {
-
- self.message = message
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SetCODOptionResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SetCODOptionResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..1e3128f026
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SetCODOptionResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SetCODOptionResponse
+ Used By: Payment
+ */
+
+ class SetCODOptionResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SetCODOptionResponse
+ Used By: Payment
+ */
+
+ class SetCODOptionResponse: Codable {
+
+
+ public var message: String
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case success = "success"
+
+ }
+
+ public init(message: String, success: Bool) {
+
+ self.message = message
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SubscriptionConfigDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SubscriptionConfigDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 6c75a2910c..0000000000
--- a/Sources/code/platform/Models/Payment/SubscriptionConfigDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SubscriptionConfigDetails
- Used By: Payment
- */
-
- class SubscriptionConfigDetails: Codable {
-
-
- public var aggregator: String
-
- public var config: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregator = "aggregator"
-
- case config = "config"
-
- case success = "success"
-
- }
-
- public init(aggregator: String, config: [String: Any], success: Bool) {
-
- self.aggregator = aggregator
-
- self.config = config
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- config = try container.decode([String: Any].self, forKey: .config)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SubscriptionConfigDetails
- Used By: Payment
- */
-
- class SubscriptionConfigDetails: Codable {
-
-
- public var aggregator: String
-
- public var config: [String: Any]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case aggregator = "aggregator"
-
- case config = "config"
-
- case success = "success"
-
- }
-
- public init(aggregator: String, config: [String: Any], success: Bool) {
-
- self.aggregator = aggregator
-
- self.config = config
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- config = try container.decode([String: Any].self, forKey: .config)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(config, forKey: .config)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SubscriptionConfigResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SubscriptionConfigResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..fc445104b1
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SubscriptionConfigResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SubscriptionConfigResponse
+ Used By: Payment
+ */
+
+ class SubscriptionConfigResponse: Codable {
+
+
+ public var aggregator: String
+
+ public var config: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregator = "aggregator"
+
+ case config = "config"
+
+ case success = "success"
+
+ }
+
+ public init(aggregator: String, config: [String: Any], success: Bool) {
+
+ self.aggregator = aggregator
+
+ self.config = config
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ config = try container.decode([String: Any].self, forKey: .config)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(config, forKey: .config)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SubscriptionConfigResponse
+ Used By: Payment
+ */
+
+ class SubscriptionConfigResponse: Codable {
+
+
+ public var aggregator: String
+
+ public var config: [String: Any]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case aggregator = "aggregator"
+
+ case config = "config"
+
+ case success = "success"
+
+ }
+
+ public init(aggregator: String, config: [String: Any], success: Bool) {
+
+ self.aggregator = aggregator
+
+ self.config = config
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ config = try container.decode([String: Any].self, forKey: .config)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(config, forKey: .config)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 156c07cd2f..0000000000
--- a/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: SubscriptionPaymentMethodDetails
- Used By: Payment
- */
-
- class SubscriptionPaymentMethodDetails: Codable {
-
-
- public var data: [[String: Any]]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [[String: Any]], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([[String: Any]].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: SubscriptionPaymentMethodDetails
- Used By: Payment
- */
-
- class SubscriptionPaymentMethodDetails: Codable {
-
-
- public var data: [[String: Any]]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [[String: Any]], success: Bool) {
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode([[String: Any]].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..717fa59f6b
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/SubscriptionPaymentMethodResponsePaymentPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: SubscriptionPaymentMethodResponse
+ Used By: Payment
+ */
+
+ class SubscriptionPaymentMethodResponse: Codable {
+
+
+ public var data: [[String: Any]]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [[String: Any]], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: SubscriptionPaymentMethodResponse
+ Used By: Payment
+ */
+
+ class SubscriptionPaymentMethodResponse: Codable {
+
+
+ public var data: [[String: Any]]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [[String: Any]], success: Bool) {
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode([[String: Any]].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/UpdatePayoutCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/UpdatePayoutCreationPaymentPlatformModel.swift
deleted file mode 100644
index e8ce015180..0000000000
--- a/Sources/code/platform/Models/Payment/UpdatePayoutCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: UpdatePayoutCreation
- Used By: Payment
- */
-
- class UpdatePayoutCreation: Codable {
-
-
- public var isDefault: Bool
-
- public var isActive: Bool
-
- public var uniqueExternalId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case isActive = "is_active"
-
- case uniqueExternalId = "unique_external_id"
-
- }
-
- public init(isActive: Bool, isDefault: Bool, uniqueExternalId: String) {
-
- self.isDefault = isDefault
-
- self.isActive = isActive
-
- self.uniqueExternalId = uniqueExternalId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: UpdatePayoutCreation
- Used By: Payment
- */
-
- class UpdatePayoutCreation: Codable {
-
-
- public var isDefault: Bool
-
- public var isActive: Bool
-
- public var uniqueExternalId: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case isActive = "is_active"
-
- case uniqueExternalId = "unique_external_id"
-
- }
-
- public init(isActive: Bool, isDefault: Bool, uniqueExternalId: String) {
-
- self.isDefault = isDefault
-
- self.isActive = isActive
-
- self.uniqueExternalId = uniqueExternalId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/UpdatePayoutDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/UpdatePayoutDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 3d64cceea3..0000000000
--- a/Sources/code/platform/Models/Payment/UpdatePayoutDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: UpdatePayoutDetails
- Used By: Payment
- */
-
- class UpdatePayoutDetails: Codable {
-
-
- public var isDefault: Bool
-
- public var isActive: Bool
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case isActive = "is_active"
-
- case success = "success"
-
- }
-
- public init(isActive: Bool, isDefault: Bool, success: Bool) {
-
- self.isDefault = isDefault
-
- self.isActive = isActive
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: UpdatePayoutDetails
- Used By: Payment
- */
-
- class UpdatePayoutDetails: Codable {
-
-
- public var isDefault: Bool
-
- public var isActive: Bool
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isDefault = "is_default"
-
- case isActive = "is_active"
-
- case success = "success"
-
- }
-
- public init(isActive: Bool, isDefault: Bool, success: Bool) {
-
- self.isDefault = isDefault
-
- self.isActive = isActive
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isDefault = try container.decode(Bool.self, forKey: .isDefault)
-
-
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(isDefault, forKey: .isDefault)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/UpdatePayoutRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/UpdatePayoutRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..c6f1fd524a
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/UpdatePayoutRequestPaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: UpdatePayoutRequest
+ Used By: Payment
+ */
+
+ class UpdatePayoutRequest: Codable {
+
+
+ public var isDefault: Bool
+
+ public var isActive: Bool
+
+ public var uniqueExternalId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case isActive = "is_active"
+
+ case uniqueExternalId = "unique_external_id"
+
+ }
+
+ public init(isActive: Bool, isDefault: Bool, uniqueExternalId: String) {
+
+ self.isDefault = isDefault
+
+ self.isActive = isActive
+
+ self.uniqueExternalId = uniqueExternalId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: UpdatePayoutRequest
+ Used By: Payment
+ */
+
+ class UpdatePayoutRequest: Codable {
+
+
+ public var isDefault: Bool
+
+ public var isActive: Bool
+
+ public var uniqueExternalId: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case isActive = "is_active"
+
+ case uniqueExternalId = "unique_external_id"
+
+ }
+
+ public init(isActive: Bool, isDefault: Bool, uniqueExternalId: String) {
+
+ self.isDefault = isDefault
+
+ self.isActive = isActive
+
+ self.uniqueExternalId = uniqueExternalId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ uniqueExternalId = try container.decode(String.self, forKey: .uniqueExternalId)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(uniqueExternalId, forKey: .uniqueExternalId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/UpdatePayoutResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/UpdatePayoutResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..8e05a4d202
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/UpdatePayoutResponsePaymentPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: UpdatePayoutResponse
+ Used By: Payment
+ */
+
+ class UpdatePayoutResponse: Codable {
+
+
+ public var isDefault: Bool
+
+ public var isActive: Bool
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case isActive = "is_active"
+
+ case success = "success"
+
+ }
+
+ public init(isActive: Bool, isDefault: Bool, success: Bool) {
+
+ self.isDefault = isDefault
+
+ self.isActive = isActive
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: UpdatePayoutResponse
+ Used By: Payment
+ */
+
+ class UpdatePayoutResponse: Codable {
+
+
+ public var isDefault: Bool
+
+ public var isActive: Bool
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isDefault = "is_default"
+
+ case isActive = "is_active"
+
+ case success = "success"
+
+ }
+
+ public init(isActive: Bool, isDefault: Bool, success: Bool) {
+
+ self.isDefault = isDefault
+
+ self.isActive = isActive
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ isDefault = try container.decode(Bool.self, forKey: .isDefault)
+
+
+
+
+ isActive = try container.decode(Bool.self, forKey: .isActive)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(isDefault, forKey: .isDefault)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ValidateCustomerCreationPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ValidateCustomerCreationPaymentPlatformModel.swift
deleted file mode 100644
index d22e00cc67..0000000000
--- a/Sources/code/platform/Models/Payment/ValidateCustomerCreationPaymentPlatformModel.swift
+++ /dev/null
@@ -1,396 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ValidateCustomerCreation
- Used By: Payment
- */
-
- class ValidateCustomerCreation: Codable {
-
-
- public var phoneNumber: String
-
- public var aggregator: String
-
- public var payload: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var transactionAmountInPaise: Int
-
- public var orderItems: [[String: Any]]?
-
- public var merchantParams: [String: Any]?
-
- public var billingAddress: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phoneNumber = "phone_number"
-
- case aggregator = "aggregator"
-
- case payload = "payload"
-
- case deliveryAddress = "delivery_address"
-
- case transactionAmountInPaise = "transaction_amount_in_paise"
-
- case orderItems = "order_items"
-
- case merchantParams = "merchant_params"
-
- case billingAddress = "billing_address"
-
- }
-
- public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
-
- self.phoneNumber = phoneNumber
-
- self.aggregator = aggregator
-
- self.payload = payload
-
- self.deliveryAddress = deliveryAddress
-
- self.transactionAmountInPaise = transactionAmountInPaise
-
- self.orderItems = orderItems
-
- self.merchantParams = merchantParams
-
- self.billingAddress = billingAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- payload = try container.decode(String.self, forKey: .payload)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
-
-
-
-
- do {
- orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } 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(phoneNumber, forKey: .phoneNumber)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
-
- try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
-
-
-
-
- try? container.encodeIfPresent(orderItems, forKey: .orderItems)
-
-
-
-
- try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ValidateCustomerCreation
- Used By: Payment
- */
-
- class ValidateCustomerCreation: Codable {
-
-
- public var phoneNumber: String
-
- public var aggregator: String
-
- public var payload: String?
-
- public var deliveryAddress: [String: Any]?
-
- public var transactionAmountInPaise: Int
-
- public var orderItems: [[String: Any]]?
-
- public var merchantParams: [String: Any]?
-
- public var billingAddress: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case phoneNumber = "phone_number"
-
- case aggregator = "aggregator"
-
- case payload = "payload"
-
- case deliveryAddress = "delivery_address"
-
- case transactionAmountInPaise = "transaction_amount_in_paise"
-
- case orderItems = "order_items"
-
- case merchantParams = "merchant_params"
-
- case billingAddress = "billing_address"
-
- }
-
- public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
-
- self.phoneNumber = phoneNumber
-
- self.aggregator = aggregator
-
- self.payload = payload
-
- self.deliveryAddress = deliveryAddress
-
- self.transactionAmountInPaise = transactionAmountInPaise
-
- self.orderItems = orderItems
-
- self.merchantParams = merchantParams
-
- self.billingAddress = billingAddress
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
-
-
-
-
- aggregator = try container.decode(String.self, forKey: .aggregator)
-
-
-
-
- do {
- payload = try container.decode(String.self, forKey: .payload)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
-
-
-
-
- do {
- orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
-
- } 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(phoneNumber, forKey: .phoneNumber)
-
-
-
-
- try? container.encodeIfPresent(aggregator, forKey: .aggregator)
-
-
-
-
- try? container.encodeIfPresent(payload, forKey: .payload)
-
-
-
-
- try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
-
-
-
-
- try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
-
-
-
-
- try? container.encodeIfPresent(orderItems, forKey: .orderItems)
-
-
-
-
- try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
-
-
-
-
- try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ValidateCustomerDetailsPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ValidateCustomerDetailsPaymentPlatformModel.swift
deleted file mode 100644
index 8d342ba3d5..0000000000
--- a/Sources/code/platform/Models/Payment/ValidateCustomerDetailsPaymentPlatformModel.swift
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Payment {
- /*
- Model: ValidateCustomerDetails
- Used By: Payment
- */
-
- class ValidateCustomerDetails: Codable {
-
-
- public var message: String
-
- public var data: [String: Any]?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any]? = nil, message: String, success: Bool) {
-
- self.message = message
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- 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)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Payment {
- /*
- Model: ValidateCustomerDetails
- Used By: Payment
- */
-
- class ValidateCustomerDetails: Codable {
-
-
- public var message: String
-
- public var data: [String: Any]?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case message = "message"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [String: Any]? = nil, message: String, success: Bool) {
-
- self.message = message
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- do {
- data = try container.decode([String: Any].self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- 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)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Payment/ValidateCustomerRequestPaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ValidateCustomerRequestPaymentPlatformModel.swift
new file mode 100644
index 0000000000..610a50f4cf
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ValidateCustomerRequestPaymentPlatformModel.swift
@@ -0,0 +1,396 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ValidateCustomerRequest
+ Used By: Payment
+ */
+
+ class ValidateCustomerRequest: Codable {
+
+
+ public var phoneNumber: String
+
+ public var aggregator: String
+
+ public var payload: String?
+
+ public var deliveryAddress: [String: Any]?
+
+ public var transactionAmountInPaise: Int
+
+ public var orderItems: [[String: Any]]?
+
+ public var merchantParams: [String: Any]?
+
+ public var billingAddress: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case phoneNumber = "phone_number"
+
+ case aggregator = "aggregator"
+
+ case payload = "payload"
+
+ case deliveryAddress = "delivery_address"
+
+ case transactionAmountInPaise = "transaction_amount_in_paise"
+
+ case orderItems = "order_items"
+
+ case merchantParams = "merchant_params"
+
+ case billingAddress = "billing_address"
+
+ }
+
+ public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
+
+ self.phoneNumber = phoneNumber
+
+ self.aggregator = aggregator
+
+ self.payload = payload
+
+ self.deliveryAddress = deliveryAddress
+
+ self.transactionAmountInPaise = transactionAmountInPaise
+
+ self.orderItems = orderItems
+
+ self.merchantParams = merchantParams
+
+ self.billingAddress = billingAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ payload = try container.decode(String.self, forKey: .payload)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
+
+
+
+
+ do {
+ orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
+
+ } 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(phoneNumber, forKey: .phoneNumber)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(payload, forKey: .payload)
+
+
+
+
+ try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
+
+
+
+
+ try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
+
+
+
+
+ try? container.encodeIfPresent(orderItems, forKey: .orderItems)
+
+
+
+
+ try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
+
+
+
+
+ try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ValidateCustomerRequest
+ Used By: Payment
+ */
+
+ class ValidateCustomerRequest: Codable {
+
+
+ public var phoneNumber: String
+
+ public var aggregator: String
+
+ public var payload: String?
+
+ public var deliveryAddress: [String: Any]?
+
+ public var transactionAmountInPaise: Int
+
+ public var orderItems: [[String: Any]]?
+
+ public var merchantParams: [String: Any]?
+
+ public var billingAddress: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case phoneNumber = "phone_number"
+
+ case aggregator = "aggregator"
+
+ case payload = "payload"
+
+ case deliveryAddress = "delivery_address"
+
+ case transactionAmountInPaise = "transaction_amount_in_paise"
+
+ case orderItems = "order_items"
+
+ case merchantParams = "merchant_params"
+
+ case billingAddress = "billing_address"
+
+ }
+
+ public init(aggregator: String, billingAddress: [String: Any]? = nil, deliveryAddress: [String: Any]? = nil, merchantParams: [String: Any]? = nil, orderItems: [[String: Any]]? = nil, payload: String? = nil, phoneNumber: String, transactionAmountInPaise: Int) {
+
+ self.phoneNumber = phoneNumber
+
+ self.aggregator = aggregator
+
+ self.payload = payload
+
+ self.deliveryAddress = deliveryAddress
+
+ self.transactionAmountInPaise = transactionAmountInPaise
+
+ self.orderItems = orderItems
+
+ self.merchantParams = merchantParams
+
+ self.billingAddress = billingAddress
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ phoneNumber = try container.decode(String.self, forKey: .phoneNumber)
+
+
+
+
+ aggregator = try container.decode(String.self, forKey: .aggregator)
+
+
+
+
+ do {
+ payload = try container.decode(String.self, forKey: .payload)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ deliveryAddress = try container.decode([String: Any].self, forKey: .deliveryAddress)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ transactionAmountInPaise = try container.decode(Int.self, forKey: .transactionAmountInPaise)
+
+
+
+
+ do {
+ orderItems = try container.decode([[String: Any]].self, forKey: .orderItems)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ merchantParams = try container.decode([String: Any].self, forKey: .merchantParams)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ billingAddress = try container.decode([String: Any].self, forKey: .billingAddress)
+
+ } 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(phoneNumber, forKey: .phoneNumber)
+
+
+
+
+ try? container.encodeIfPresent(aggregator, forKey: .aggregator)
+
+
+
+
+ try? container.encodeIfPresent(payload, forKey: .payload)
+
+
+
+
+ try? container.encodeIfPresent(deliveryAddress, forKey: .deliveryAddress)
+
+
+
+
+ try? container.encodeIfPresent(transactionAmountInPaise, forKey: .transactionAmountInPaise)
+
+
+
+
+ try? container.encodeIfPresent(orderItems, forKey: .orderItems)
+
+
+
+
+ try? container.encodeIfPresent(merchantParams, forKey: .merchantParams)
+
+
+
+
+ try? container.encodeIfPresent(billingAddress, forKey: .billingAddress)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Payment/ValidateCustomerResponsePaymentPlatformModel.swift b/Sources/code/platform/Models/Payment/ValidateCustomerResponsePaymentPlatformModel.swift
new file mode 100644
index 0000000000..11c112617e
--- /dev/null
+++ b/Sources/code/platform/Models/Payment/ValidateCustomerResponsePaymentPlatformModel.swift
@@ -0,0 +1,180 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Payment {
+ /*
+ Model: ValidateCustomerResponse
+ Used By: Payment
+ */
+
+ class ValidateCustomerResponse: Codable {
+
+
+ public var message: String
+
+ public var data: [String: Any]?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String, success: Bool) {
+
+ self.message = message
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ 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)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Payment {
+ /*
+ Model: ValidateCustomerResponse
+ Used By: Payment
+ */
+
+ class ValidateCustomerResponse: Codable {
+
+
+ public var message: String
+
+ public var data: [String: Any]?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case message = "message"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [String: Any]? = nil, message: String, success: Bool) {
+
+ self.message = message
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ do {
+ data = try container.decode([String: Any].self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ 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)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Rewards/ConfigurationRequestRewardsPlatformModel.swift b/Sources/code/platform/Models/Rewards/ConfigurationRequestRewardsPlatformModel.swift
new file mode 100644
index 0000000000..34e7ae8ef0
--- /dev/null
+++ b/Sources/code/platform/Models/Rewards/ConfigurationRequestRewardsPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Rewards {
+ /*
+ Model: ConfigurationRequest
+ Used By: Rewards
+ */
+
+ class ConfigurationRequest: Codable {
+
+
+ public var validAndroidPackages: [String]?
+
+ public var termsConditionsLink: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case validAndroidPackages = "valid_android_packages"
+
+ case termsConditionsLink = "terms_conditions_link"
+
+ }
+
+ public init(termsConditionsLink: String? = nil, validAndroidPackages: [String]? = nil) {
+
+ self.validAndroidPackages = validAndroidPackages
+
+ self.termsConditionsLink = termsConditionsLink
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ validAndroidPackages = try container.decode([String].self, forKey: .validAndroidPackages)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ termsConditionsLink = try container.decode(String.self, forKey: .termsConditionsLink)
+
+ } 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(validAndroidPackages, forKey: .validAndroidPackages)
+
+
+
+
+ try? container.encodeIfPresent(termsConditionsLink, forKey: .termsConditionsLink)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Rewards/GiveawayResponseRewardsPlatformModel.swift b/Sources/code/platform/Models/Rewards/GiveawayResponseRewardsPlatformModel.swift
new file mode 100644
index 0000000000..1864e698ea
--- /dev/null
+++ b/Sources/code/platform/Models/Rewards/GiveawayResponseRewardsPlatformModel.swift
@@ -0,0 +1,85 @@
+
+
+import Foundation
+
+
+
+
+public extension PlatformClient.ApplicationClient.Rewards {
+ /*
+ Model: GiveawayResponse
+ Used By: Rewards
+ */
+
+ class GiveawayResponse: Codable {
+
+
+ public var items: [Giveaway]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [Giveaway]? = nil, page: Page? = nil) {
+
+ 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([Giveaway].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Rewards/ListGiveawayRewardsPlatformModel.swift b/Sources/code/platform/Models/Rewards/ListGiveawayRewardsPlatformModel.swift
deleted file mode 100644
index 3d89bd60e4..0000000000
--- a/Sources/code/platform/Models/Rewards/ListGiveawayRewardsPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Rewards {
- /*
- Model: ListGiveaway
- Used By: Rewards
- */
-
- class ListGiveaway: Codable {
-
-
- public var items: [Giveaway]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [Giveaway]? = nil, page: Page? = nil) {
-
- 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([Giveaway].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Rewards/SetConfigurationRewardsPlatformModel.swift b/Sources/code/platform/Models/Rewards/SetConfigurationRewardsPlatformModel.swift
deleted file mode 100644
index dfeda76e10..0000000000
--- a/Sources/code/platform/Models/Rewards/SetConfigurationRewardsPlatformModel.swift
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-import Foundation
-
-
-
-
-public extension PlatformClient.ApplicationClient.Rewards {
- /*
- Model: SetConfiguration
- Used By: Rewards
- */
-
- class SetConfiguration: Codable {
-
-
- public var validAndroidPackages: [String]?
-
- public var termsConditionsLink: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case validAndroidPackages = "valid_android_packages"
-
- case termsConditionsLink = "terms_conditions_link"
-
- }
-
- public init(termsConditionsLink: String? = nil, validAndroidPackages: [String]? = nil) {
-
- self.validAndroidPackages = validAndroidPackages
-
- self.termsConditionsLink = termsConditionsLink
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- validAndroidPackages = try container.decode([String].self, forKey: .validAndroidPackages)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- termsConditionsLink = try container.decode(String.self, forKey: .termsConditionsLink)
-
- } 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(validAndroidPackages, forKey: .validAndroidPackages)
-
-
-
-
- try? container.encodeIfPresent(termsConditionsLink, forKey: .termsConditionsLink)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/AddressResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/AddressResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..e70190a8ac
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/AddressResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,484 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: AddressResponse
+ Used By: Serviceability
+ */
+
+ class AddressResponse: Codable {
+
+
+ public var city: String?
+
+ public var address1: String?
+
+ public var pincode: Int?
+
+ public var address2: String?
+
+ public var landmark: String?
+
+ public var state: String?
+
+ public var country: String?
+
+ public var latitude: Double?
+
+ public var longitude: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case city = "city"
+
+ case address1 = "address1"
+
+ case pincode = "pincode"
+
+ case address2 = "address2"
+
+ case landmark = "landmark"
+
+ case state = "state"
+
+ case country = "country"
+
+ case latitude = "latitude"
+
+ case longitude = "longitude"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, city: String? = nil, country: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
+
+ self.city = city
+
+ self.address1 = address1
+
+ self.pincode = pincode
+
+ self.address2 = address2
+
+ self.landmark = landmark
+
+ self.state = state
+
+ self.country = country
+
+ self.latitude = latitude
+
+ self.longitude = longitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } 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(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: AddressResponse
+ Used By: Serviceability
+ */
+
+ class AddressResponse: Codable {
+
+
+ public var city: String?
+
+ public var address1: String?
+
+ public var pincode: Int?
+
+ public var address2: String?
+
+ public var landmark: String?
+
+ public var state: String?
+
+ public var country: String?
+
+ public var latitude: Double?
+
+ public var longitude: Double?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case city = "city"
+
+ case address1 = "address1"
+
+ case pincode = "pincode"
+
+ case address2 = "address2"
+
+ case landmark = "landmark"
+
+ case state = "state"
+
+ case country = "country"
+
+ case latitude = "latitude"
+
+ case longitude = "longitude"
+
+ }
+
+ public init(address1: String? = nil, address2: String? = nil, city: String? = nil, country: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
+
+ self.city = city
+
+ self.address1 = address1
+
+ self.pincode = pincode
+
+ self.address2 = address2
+
+ self.landmark = landmark
+
+ self.state = state
+
+ self.country = country
+
+ self.latitude = latitude
+
+ self.longitude = longitude
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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)
+
+ } 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(city, forKey: .city)
+
+
+
+
+ try? container.encodeIfPresent(address1, forKey: .address1)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+
+
+ try? container.encodeIfPresent(address2, forKey: .address2)
+
+
+
+
+ try? container.encodeIfPresent(landmark, forKey: .landmark)
+
+
+
+
+ try? container.encodeIfPresent(state, forKey: .state)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(latitude, forKey: .latitude)
+
+
+
+
+ try? container.encodeIfPresent(longitude, forKey: .longitude)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/AddressResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/AddressResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 14152a9a18..0000000000
--- a/Sources/code/platform/Models/Serviceability/AddressResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,484 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: AddressResult
- Used By: Serviceability
- */
-
- class AddressResult: Codable {
-
-
- public var city: String?
-
- public var address1: String?
-
- public var pincode: Int?
-
- public var address2: String?
-
- public var landmark: String?
-
- public var state: String?
-
- public var country: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case city = "city"
-
- case address1 = "address1"
-
- case pincode = "pincode"
-
- case address2 = "address2"
-
- case landmark = "landmark"
-
- case state = "state"
-
- case country = "country"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, city: String? = nil, country: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.city = city
-
- self.address1 = address1
-
- self.pincode = pincode
-
- self.address2 = address2
-
- self.landmark = landmark
-
- self.state = state
-
- self.country = country
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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)
-
- } 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(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: AddressResult
- Used By: Serviceability
- */
-
- class AddressResult: Codable {
-
-
- public var city: String?
-
- public var address1: String?
-
- public var pincode: Int?
-
- public var address2: String?
-
- public var landmark: String?
-
- public var state: String?
-
- public var country: String?
-
- public var latitude: Double?
-
- public var longitude: Double?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case city = "city"
-
- case address1 = "address1"
-
- case pincode = "pincode"
-
- case address2 = "address2"
-
- case landmark = "landmark"
-
- case state = "state"
-
- case country = "country"
-
- case latitude = "latitude"
-
- case longitude = "longitude"
-
- }
-
- public init(address1: String? = nil, address2: String? = nil, city: String? = nil, country: String? = nil, landmark: String? = nil, latitude: Double? = nil, longitude: Double? = nil, pincode: Int? = nil, state: String? = nil) {
-
- self.city = city
-
- self.address1 = address1
-
- self.pincode = pincode
-
- self.address2 = address2
-
- self.landmark = landmark
-
- self.state = state
-
- self.country = country
-
- self.latitude = latitude
-
- self.longitude = longitude
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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)
-
- } 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(city, forKey: .city)
-
-
-
-
- try? container.encodeIfPresent(address1, forKey: .address1)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
-
-
- try? container.encodeIfPresent(address2, forKey: .address2)
-
-
-
-
- try? container.encodeIfPresent(landmark, forKey: .landmark)
-
-
-
-
- try? container.encodeIfPresent(state, forKey: .state)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(latitude, forKey: .latitude)
-
-
-
-
- try? container.encodeIfPresent(longitude, forKey: .longitude)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..fe03347b62
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ApplicationSelfShipConfigResponse
+ Used By: Serviceability
+ */
+
+ class ApplicationSelfShipConfigResponse: Codable {
+
+
+ public var error: ServiceabilityErrorResponse?
+
+ public var data: ApplicationSelfShipConfig?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ApplicationSelfShipConfig? = nil, error: ServiceabilityErrorResponse? = nil, success: Bool) {
+
+ self.error = error
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(ServiceabilityErrorResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(ApplicationSelfShipConfig.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ApplicationSelfShipConfigResponse
+ Used By: Serviceability
+ */
+
+ class ApplicationSelfShipConfigResponse: Codable {
+
+
+ public var error: ServiceabilityErrorResponse?
+
+ public var data: ApplicationSelfShipConfig?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ApplicationSelfShipConfig? = nil, error: ServiceabilityErrorResponse? = nil, success: Bool) {
+
+ self.error = error
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(ServiceabilityErrorResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(ApplicationSelfShipConfig.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResultServiceabilityPlatformModel.swift
deleted file mode 100644
index f61b81c5a6..0000000000
--- a/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ApplicationSelfShipConfigResult
- Used By: Serviceability
- */
-
- class ApplicationSelfShipConfigResult: Codable {
-
-
- public var error: ServiceabilityErrorResult?
-
- public var data: ApplicationSelfShipConfig?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ApplicationSelfShipConfig? = nil, error: ServiceabilityErrorResult? = nil, success: Bool) {
-
- self.error = error
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(ServiceabilityErrorResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(ApplicationSelfShipConfig.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ApplicationSelfShipConfigResult
- Used By: Serviceability
- */
-
- class ApplicationSelfShipConfigResult: Codable {
-
-
- public var error: ServiceabilityErrorResult?
-
- public var data: ApplicationSelfShipConfig?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ApplicationSelfShipConfig? = nil, error: ServiceabilityErrorResult? = nil, success: Bool) {
-
- self.error = error
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(ServiceabilityErrorResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(ApplicationSelfShipConfig.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigServiceabilityPlatformModel.swift
index 9008f4171f..b91a8274e4 100644
--- a/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/ApplicationSelfShipConfigServiceabilityPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Serviceability {
class ApplicationSelfShipConfig: Codable {
- public var selfShip: SelfShipResult?
+ public var selfShip: SelfShipResponse?
public enum CodingKeys: String, CodingKey {
@@ -21,7 +21,7 @@ public extension PlatformClient.Serviceability {
}
- public init(selfShip: SelfShipResult? = nil) {
+ public init(selfShip: SelfShipResponse? = nil) {
self.selfShip = selfShip
@@ -32,7 +32,7 @@ public extension PlatformClient.Serviceability {
do {
- selfShip = try container.decode(SelfShipResult.self, forKey: .selfShip)
+ selfShip = try container.decode(SelfShipResponse.self, forKey: .selfShip)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -68,7 +68,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
class ApplicationSelfShipConfig: Codable {
- public var selfShip: SelfShipResult?
+ public var selfShip: SelfShipResponse?
public enum CodingKeys: String, CodingKey {
@@ -77,7 +77,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(selfShip: SelfShipResult? = nil) {
+ public init(selfShip: SelfShipResponse? = nil) {
self.selfShip = selfShip
@@ -88,7 +88,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
do {
- selfShip = try container.decode(SelfShipResult.self, forKey: .selfShip)
+ selfShip = try container.decode(SelfShipResponse.self, forKey: .selfShip)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..099237713a
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,194 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ApplicationServiceabilityConfigResponse
+ Used By: Serviceability
+ */
+
+ class ApplicationServiceabilityConfigResponse: Codable {
+
+
+ public var error: ServiceabilityErrorResponse?
+
+ public var data: ApplicationServiceabilityConfig?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ApplicationServiceabilityConfig? = nil, error: ServiceabilityErrorResponse? = nil, success: Bool) {
+
+ self.error = error
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(ServiceabilityErrorResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(ApplicationServiceabilityConfig.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ApplicationServiceabilityConfigResponse
+ Used By: Serviceability
+ */
+
+ class ApplicationServiceabilityConfigResponse: Codable {
+
+
+ public var error: ServiceabilityErrorResponse?
+
+ public var data: ApplicationServiceabilityConfig?
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: ApplicationServiceabilityConfig? = nil, error: ServiceabilityErrorResponse? = nil, success: Bool) {
+
+ self.error = error
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ error = try container.decode(ServiceabilityErrorResponse.self, forKey: .error)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ data = try container.decode(ApplicationServiceabilityConfig.self, forKey: .data)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 2503a8aa08..0000000000
--- a/Sources/code/platform/Models/Serviceability/ApplicationServiceabilityConfigResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ApplicationServiceabilityConfigResult
- Used By: Serviceability
- */
-
- class ApplicationServiceabilityConfigResult: Codable {
-
-
- public var error: ServiceabilityErrorResult?
-
- public var data: ApplicationServiceabilityConfig?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ApplicationServiceabilityConfig? = nil, error: ServiceabilityErrorResult? = nil, success: Bool) {
-
- self.error = error
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(ServiceabilityErrorResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(ApplicationServiceabilityConfig.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ApplicationServiceabilityConfigResult
- Used By: Serviceability
- */
-
- class ApplicationServiceabilityConfigResult: Codable {
-
-
- public var error: ServiceabilityErrorResult?
-
- public var data: ApplicationServiceabilityConfig?
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: ApplicationServiceabilityConfig? = nil, error: ServiceabilityErrorResult? = nil, success: Bool) {
-
- self.error = error
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- error = try container.decode(ServiceabilityErrorResult.self, forKey: .error)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- data = try container.decode(ApplicationServiceabilityConfig.self, forKey: .data)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionJobDetailsServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionJobDetailsServiceabilityPlatformModel.swift
deleted file mode 100644
index a03a40ba08..0000000000
--- a/Sources/code/platform/Models/Serviceability/BulkRegionJobDetailsServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: BulkRegionJobDetails
- Used By: Serviceability
- */
-
- class BulkRegionJobDetails: Codable {
-
-
- public var filePath: String?
-
- public var country: String
-
- public var action: String
-
- public var region: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filePath = "file_path"
-
- case country = "country"
-
- case action = "action"
-
- case region = "region"
-
- }
-
- public init(action: String, country: String, filePath: String? = nil, region: String) {
-
- self.filePath = filePath
-
- self.country = country
-
- self.action = action
-
- self.region = region
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- region = try container.decode(String.self, forKey: .region)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(region, forKey: .region)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: BulkRegionJobDetails
- Used By: Serviceability
- */
-
- class BulkRegionJobDetails: Codable {
-
-
- public var filePath: String?
-
- public var country: String
-
- public var action: String
-
- public var region: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filePath = "file_path"
-
- case country = "country"
-
- case action = "action"
-
- case region = "region"
-
- }
-
- public init(action: String, country: String, filePath: String? = nil, region: String) {
-
- self.filePath = filePath
-
- self.country = country
-
- self.action = action
-
- self.region = region
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- region = try container.decode(String.self, forKey: .region)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(region, forKey: .region)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionJobSerializerServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionJobSerializerServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..80d0de7153
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/BulkRegionJobSerializerServiceabilityPlatformModel.swift
@@ -0,0 +1,212 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: BulkRegionJobSerializer
+ Used By: Serviceability
+ */
+
+ class BulkRegionJobSerializer: Codable {
+
+
+ public var filePath: String?
+
+ public var country: String
+
+ public var action: String
+
+ public var region: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filePath = "file_path"
+
+ case country = "country"
+
+ case action = "action"
+
+ case region = "region"
+
+ }
+
+ public init(action: String, country: String, filePath: String? = nil, region: String) {
+
+ self.filePath = filePath
+
+ self.country = country
+
+ self.action = action
+
+ self.region = region
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ region = try container.decode(String.self, forKey: .region)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(region, forKey: .region)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: BulkRegionJobSerializer
+ Used By: Serviceability
+ */
+
+ class BulkRegionJobSerializer: Codable {
+
+
+ public var filePath: String?
+
+ public var country: String
+
+ public var action: String
+
+ public var region: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filePath = "file_path"
+
+ case country = "country"
+
+ case action = "action"
+
+ case region = "region"
+
+ }
+
+ public init(action: String, country: String, filePath: String? = nil, region: String) {
+
+ self.filePath = filePath
+
+ self.country = country
+
+ self.action = action
+
+ self.region = region
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ region = try container.decode(String.self, forKey: .region)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(region, forKey: .region)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionResponseItemDataServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionResponseItemDataServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..8126618aab
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/BulkRegionResponseItemDataServiceabilityPlatformModel.swift
@@ -0,0 +1,492 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: BulkRegionResponseItemData
+ Used By: Serviceability
+ */
+
+ class BulkRegionResponseItemData: Codable {
+
+
+ public var filePath: String
+
+ public var failed: Int?
+
+ public var failedRecords: [[String: Any]]?
+
+ public var action: String
+
+ public var batchId: String
+
+ public var country: String
+
+ public var success: Int?
+
+ public var region: String
+
+ public var status: String
+
+ public var total: Int?
+
+ public var errorFilePath: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filePath = "file_path"
+
+ case failed = "failed"
+
+ case failedRecords = "failed_records"
+
+ case action = "action"
+
+ case batchId = "batch_id"
+
+ case country = "country"
+
+ case success = "success"
+
+ case region = "region"
+
+ case status = "status"
+
+ case total = "total"
+
+ case errorFilePath = "error_file_path"
+
+ }
+
+ public init(action: String, batchId: String, country: String, errorFilePath: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String, region: String, status: String, success: Int? = nil, total: Int? = nil) {
+
+ self.filePath = filePath
+
+ self.failed = failed
+
+ self.failedRecords = failedRecords
+
+ self.action = action
+
+ self.batchId = batchId
+
+ self.country = country
+
+ self.success = success
+
+ self.region = region
+
+ self.status = status
+
+ self.total = total
+
+ self.errorFilePath = errorFilePath
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ do {
+ success = try container.decode(Int.self, forKey: .success)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ region = try container.decode(String.self, forKey: .region)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorFilePath = try container.decode(String.self, forKey: .errorFilePath)
+
+ } 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(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(failed, forKey: .failed)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(region, forKey: .region)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+
+
+ try? container.encodeIfPresent(errorFilePath, forKey: .errorFilePath)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: BulkRegionResponseItemData
+ Used By: Serviceability
+ */
+
+ class BulkRegionResponseItemData: Codable {
+
+
+ public var filePath: String
+
+ public var failed: Int?
+
+ public var failedRecords: [[String: Any]]?
+
+ public var action: String
+
+ public var batchId: String
+
+ public var country: String
+
+ public var success: Int?
+
+ public var region: String
+
+ public var status: String
+
+ public var total: Int?
+
+ public var errorFilePath: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case filePath = "file_path"
+
+ case failed = "failed"
+
+ case failedRecords = "failed_records"
+
+ case action = "action"
+
+ case batchId = "batch_id"
+
+ case country = "country"
+
+ case success = "success"
+
+ case region = "region"
+
+ case status = "status"
+
+ case total = "total"
+
+ case errorFilePath = "error_file_path"
+
+ }
+
+ public init(action: String, batchId: String, country: String, errorFilePath: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String, region: String, status: String, success: Int? = nil, total: Int? = nil) {
+
+ self.filePath = filePath
+
+ self.failed = failed
+
+ self.failedRecords = failedRecords
+
+ self.action = action
+
+ self.batchId = batchId
+
+ self.country = country
+
+ self.success = success
+
+ self.region = region
+
+ self.status = status
+
+ self.total = total
+
+ self.errorFilePath = errorFilePath
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ filePath = try container.decode(String.self, forKey: .filePath)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ action = try container.decode(String.self, forKey: .action)
+
+
+
+
+ batchId = try container.decode(String.self, forKey: .batchId)
+
+
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ do {
+ success = try container.decode(Int.self, forKey: .success)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ region = try container.decode(String.self, forKey: .region)
+
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ errorFilePath = try container.decode(String.self, forKey: .errorFilePath)
+
+ } 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(filePath, forKey: .filePath)
+
+
+
+
+ try? container.encodeIfPresent(failed, forKey: .failed)
+
+
+
+
+ try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
+
+
+
+
+ try? container.encodeIfPresent(action, forKey: .action)
+
+
+
+
+ try? container.encodeIfPresent(batchId, forKey: .batchId)
+
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(region, forKey: .region)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(total, forKey: .total)
+
+
+
+
+ try? container.encodeIfPresent(errorFilePath, forKey: .errorFilePath)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..f8367d9db9
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/BulkRegionResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: BulkRegionResponse
+ Used By: Serviceability
+ */
+
+ class BulkRegionResponse: Codable {
+
+
+ public var items: [BulkRegionResponseItemData]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BulkRegionResponseItemData], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([BulkRegionResponseItemData].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: BulkRegionResponse
+ Used By: Serviceability
+ */
+
+ class BulkRegionResponse: Codable {
+
+
+ public var items: [BulkRegionResponseItemData]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [BulkRegionResponseItemData], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([BulkRegionResponseItemData].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionResultItemDataServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionResultItemDataServiceabilityPlatformModel.swift
deleted file mode 100644
index a0ab93d327..0000000000
--- a/Sources/code/platform/Models/Serviceability/BulkRegionResultItemDataServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,506 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: BulkRegionResultItemData
- Used By: Serviceability
- */
-
- class BulkRegionResultItemData: Codable {
-
-
- public var filePath: String?
-
- public var failed: Int?
-
- public var failedRecords: [[String: Any]]?
-
- public var action: String
-
- public var batchId: String
-
- public var country: String
-
- public var success: Int?
-
- public var region: String
-
- public var status: String
-
- public var total: Int?
-
- public var errorFilePath: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filePath = "file_path"
-
- case failed = "failed"
-
- case failedRecords = "failed_records"
-
- case action = "action"
-
- case batchId = "batch_id"
-
- case country = "country"
-
- case success = "success"
-
- case region = "region"
-
- case status = "status"
-
- case total = "total"
-
- case errorFilePath = "error_file_path"
-
- }
-
- public init(action: String, batchId: String, country: String, errorFilePath: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, region: String, status: String, success: Int? = nil, total: Int? = nil) {
-
- self.filePath = filePath
-
- self.failed = failed
-
- self.failedRecords = failedRecords
-
- self.action = action
-
- self.batchId = batchId
-
- self.country = country
-
- self.success = success
-
- self.region = region
-
- self.status = status
-
- self.total = total
-
- self.errorFilePath = errorFilePath
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- do {
- success = try container.decode(Int.self, forKey: .success)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- region = try container.decode(String.self, forKey: .region)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- errorFilePath = try container.decode(String.self, forKey: .errorFilePath)
-
- } 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(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(failed, forKey: .failed)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(region, forKey: .region)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
-
-
- try? container.encodeIfPresent(errorFilePath, forKey: .errorFilePath)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: BulkRegionResultItemData
- Used By: Serviceability
- */
-
- class BulkRegionResultItemData: Codable {
-
-
- public var filePath: String?
-
- public var failed: Int?
-
- public var failedRecords: [[String: Any]]?
-
- public var action: String
-
- public var batchId: String
-
- public var country: String
-
- public var success: Int?
-
- public var region: String
-
- public var status: String
-
- public var total: Int?
-
- public var errorFilePath: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case filePath = "file_path"
-
- case failed = "failed"
-
- case failedRecords = "failed_records"
-
- case action = "action"
-
- case batchId = "batch_id"
-
- case country = "country"
-
- case success = "success"
-
- case region = "region"
-
- case status = "status"
-
- case total = "total"
-
- case errorFilePath = "error_file_path"
-
- }
-
- public init(action: String, batchId: String, country: String, errorFilePath: String? = nil, failed: Int? = nil, failedRecords: [[String: Any]]? = nil, filePath: String? = nil, region: String, status: String, success: Int? = nil, total: Int? = nil) {
-
- self.filePath = filePath
-
- self.failed = failed
-
- self.failedRecords = failedRecords
-
- self.action = action
-
- self.batchId = batchId
-
- self.country = country
-
- self.success = success
-
- self.region = region
-
- self.status = status
-
- self.total = total
-
- self.errorFilePath = errorFilePath
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- action = try container.decode(String.self, forKey: .action)
-
-
-
-
- batchId = try container.decode(String.self, forKey: .batchId)
-
-
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- do {
- success = try container.decode(Int.self, forKey: .success)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- region = try container.decode(String.self, forKey: .region)
-
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- errorFilePath = try container.decode(String.self, forKey: .errorFilePath)
-
- } 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(filePath, forKey: .filePath)
-
-
-
-
- try? container.encodeIfPresent(failed, forKey: .failed)
-
-
-
-
- try? container.encodeIfPresent(failedRecords, forKey: .failedRecords)
-
-
-
-
- try? container.encodeIfPresent(action, forKey: .action)
-
-
-
-
- try? container.encodeIfPresent(batchId, forKey: .batchId)
-
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(region, forKey: .region)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(total, forKey: .total)
-
-
-
-
- try? container.encodeIfPresent(errorFilePath, forKey: .errorFilePath)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/BulkRegionResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/BulkRegionResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 69526c1c22..0000000000
--- a/Sources/code/platform/Models/Serviceability/BulkRegionResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: BulkRegionResult
- Used By: Serviceability
- */
-
- class BulkRegionResult: Codable {
-
-
- public var items: [BulkRegionResultItemData]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BulkRegionResultItemData], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([BulkRegionResultItemData].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: BulkRegionResult
- Used By: Serviceability
- */
-
- class BulkRegionResult: Codable {
-
-
- public var items: [BulkRegionResultItemData]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [BulkRegionResultItemData], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([BulkRegionResultItemData].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CompanyConfigServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CompanyConfigServiceabilityPlatformModel.swift
index 8ab5fcadf1..ca0734a5cb 100644
--- a/Sources/code/platform/Models/Serviceability/CompanyConfigServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/CompanyConfigServiceabilityPlatformModel.swift
@@ -16,11 +16,7 @@ public extension PlatformClient.Serviceability {
public var sort: [String]
- public var logisticsAsActual: String?
-
- public var companyId: Int
-
- public var applicationId: String?
+ public var logisticsAsActual: Bool?
public enum CodingKeys: String, CodingKey {
@@ -31,13 +27,9 @@ public extension PlatformClient.Serviceability {
case logisticsAsActual = "logistics_as_actual"
- case companyId = "company_id"
-
- case applicationId = "application_id"
-
}
- public init(applicationId: String? = nil, companyId: Int, logisticsAsActual: String? = nil, ruleIds: [String], sort: [String]) {
+ public init(logisticsAsActual: Bool? = nil, ruleIds: [String], sort: [String]) {
self.ruleIds = ruleIds
@@ -45,10 +37,6 @@ public extension PlatformClient.Serviceability {
self.logisticsAsActual = logisticsAsActual
- self.companyId = companyId
-
- self.applicationId = applicationId
-
}
required public init(from decoder: Decoder) throws {
@@ -66,24 +54,7 @@ public extension PlatformClient.Serviceability {
do {
- logisticsAsActual = try container.decode(String.self, forKey: .logisticsAsActual)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
+ logisticsAsActual = try container.decode(Bool.self, forKey: .logisticsAsActual)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -113,16 +84,6 @@ public extension PlatformClient.Serviceability {
try? container.encodeIfPresent(logisticsAsActual, forKey: .logisticsAsActual)
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
}
}
@@ -143,11 +104,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var sort: [String]
- public var logisticsAsActual: String?
-
- public var companyId: Int
-
- public var applicationId: String?
+ public var logisticsAsActual: Bool?
public enum CodingKeys: String, CodingKey {
@@ -158,13 +115,9 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case logisticsAsActual = "logistics_as_actual"
- case companyId = "company_id"
-
- case applicationId = "application_id"
-
}
- public init(applicationId: String? = nil, companyId: Int, logisticsAsActual: String? = nil, ruleIds: [String], sort: [String]) {
+ public init(logisticsAsActual: Bool? = nil, ruleIds: [String], sort: [String]) {
self.ruleIds = ruleIds
@@ -172,10 +125,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.logisticsAsActual = logisticsAsActual
- self.companyId = companyId
-
- self.applicationId = applicationId
-
}
required public init(from decoder: Decoder) throws {
@@ -193,24 +142,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
do {
- logisticsAsActual = try container.decode(String.self, forKey: .logisticsAsActual)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- applicationId = try container.decode(String.self, forKey: .applicationId)
+ logisticsAsActual = try container.decode(Bool.self, forKey: .logisticsAsActual)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -240,16 +172,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
try? container.encodeIfPresent(logisticsAsActual, forKey: .logisticsAsActual)
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
}
}
diff --git a/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..f281931f93
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CompanyCourierPartnerAccountListResponse
+ Used By: Serviceability
+ */
+
+ class CompanyCourierPartnerAccountListResponse: Codable {
+
+
+ public var items: [CourierAccountResponse]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierAccountResponse], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([CourierAccountResponse].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CompanyCourierPartnerAccountListResponse
+ Used By: Serviceability
+ */
+
+ class CompanyCourierPartnerAccountListResponse: Codable {
+
+
+ public var items: [CourierAccountResponse]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierAccountResponse], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([CourierAccountResponse].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 8b17a68f40..0000000000
--- a/Sources/code/platform/Models/Serviceability/CompanyCourierPartnerAccountListResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CompanyCourierPartnerAccountListResult
- Used By: Serviceability
- */
-
- class CompanyCourierPartnerAccountListResult: Codable {
-
-
- public var items: [CourierAccountResult]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierAccountResult], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([CourierAccountResult].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CompanyCourierPartnerAccountListResult
- Used By: Serviceability
- */
-
- class CompanyCourierPartnerAccountListResult: Codable {
-
-
- public var items: [CourierAccountResult]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierAccountResult], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([CourierAccountResult].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..7063f96dde
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CompanyStoreView_Response
+ Used By: Serviceability
+ */
+
+ class CompanyStoreView_Response: Codable {
+
+
+ public var page: [CompanyStoreView_PageItems]
+
+ public var items: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, page: [CompanyStoreView_PageItems]) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode([CompanyStoreView_PageItems].self, forKey: .page)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CompanyStoreView_Response
+ Used By: Serviceability
+ */
+
+ class CompanyStoreView_Response: Codable {
+
+
+ public var page: [CompanyStoreView_PageItems]
+
+ public var items: [[String: Any]]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [[String: Any]]? = nil, page: [CompanyStoreView_PageItems]) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode([CompanyStoreView_PageItems].self, forKey: .page)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 1cd468887b..0000000000
--- a/Sources/code/platform/Models/Serviceability/CompanyStoreView_ResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CompanyStoreView_Result
- Used By: Serviceability
- */
-
- class CompanyStoreView_Result: Codable {
-
-
- public var page: [CompanyStoreView_PageItems]
-
- public var items: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [[String: Any]]? = nil, page: [CompanyStoreView_PageItems]) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode([CompanyStoreView_PageItems].self, forKey: .page)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CompanyStoreView_Result
- Used By: Serviceability
- */
-
- class CompanyStoreView_Result: Codable {
-
-
- public var page: [CompanyStoreView_PageItems]
-
- public var items: [[String: Any]]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [[String: Any]]? = nil, page: [CompanyStoreView_PageItems]) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode([CompanyStoreView_PageItems].self, forKey: .page)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ContactNumberResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ContactNumberResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..a3406f588a
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ContactNumberResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ContactNumberResponse
+ Used By: Serviceability
+ */
+
+ class ContactNumberResponse: 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? = nil, number: String? = nil) {
+
+ self.number = number
+
+ self.countryCode = countryCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ number = try container.decode(String.self, forKey: .number)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ countryCode = try container.decode(Int.self, forKey: .countryCode)
+
+ } 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(number, forKey: .number)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ContactNumberResponse
+ Used By: Serviceability
+ */
+
+ class ContactNumberResponse: 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? = nil, number: String? = nil) {
+
+ self.number = number
+
+ self.countryCode = countryCode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ number = try container.decode(String.self, forKey: .number)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ countryCode = try container.decode(Int.self, forKey: .countryCode)
+
+ } 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(number, forKey: .number)
+
+
+
+
+ try? container.encodeIfPresent(countryCode, forKey: .countryCode)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ContactNumberResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ContactNumberResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 2c9807318c..0000000000
--- a/Sources/code/platform/Models/Serviceability/ContactNumberResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ContactNumberResult
- Used By: Serviceability
- */
-
- class ContactNumberResult: 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? = nil, number: String? = nil) {
-
- self.number = number
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- number = try container.decode(String.self, forKey: .number)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryCode = try container.decode(Int.self, forKey: .countryCode)
-
- } 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(number, forKey: .number)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ContactNumberResult
- Used By: Serviceability
- */
-
- class ContactNumberResult: 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? = nil, number: String? = nil) {
-
- self.number = number
-
- self.countryCode = countryCode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- number = try container.decode(String.self, forKey: .number)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- countryCode = try container.decode(Int.self, forKey: .countryCode)
-
- } 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(number, forKey: .number)
-
-
-
-
- try? container.encodeIfPresent(countryCode, forKey: .countryCode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountDetailsBodyServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountDetailsBodyServiceabilityPlatformModel.swift
deleted file mode 100644
index 87134649f9..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierAccountDetailsBodyServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierAccountDetailsBody
- Used By: Serviceability
- */
-
- class CourierAccountDetailsBody: Codable {
-
-
- public var extensionId: String
-
- public var accountId: String?
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case accountId = "account_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- }
-
- public init(accountId: String? = nil, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
-
- self.extensionId = extensionId
-
- self.accountId = accountId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- do {
- accountId = try container.decode(String.self, forKey: .accountId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierAccountDetailsBody
- Used By: Serviceability
- */
-
- class CourierAccountDetailsBody: Codable {
-
-
- public var extensionId: String
-
- public var accountId: String?
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case accountId = "account_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- }
-
- public init(accountId: String? = nil, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
-
- self.extensionId = extensionId
-
- self.accountId = accountId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- do {
- accountId = try container.decode(String.self, forKey: .accountId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountRequestBodyServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountRequestBodyServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..ee4a95b4a5
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierAccountRequestBodyServiceabilityPlatformModel.swift
@@ -0,0 +1,276 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierAccountRequestBody
+ Used By: Serviceability
+ */
+
+ class CourierAccountRequestBody: Codable {
+
+
+ public var extensionId: String
+
+ public var accountId: String?
+
+ public var schemeId: String
+
+ public var isSelfShip: Bool
+
+ public var stage: String
+
+ public var isOwnAccount: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case extensionId = "extension_id"
+
+ case accountId = "account_id"
+
+ case schemeId = "scheme_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case stage = "stage"
+
+ case isOwnAccount = "is_own_account"
+
+ }
+
+ public init(accountId: String? = nil, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
+
+ self.extensionId = extensionId
+
+ self.accountId = accountId
+
+ self.schemeId = schemeId
+
+ self.isSelfShip = isSelfShip
+
+ self.stage = stage
+
+ self.isOwnAccount = isOwnAccount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ extensionId = try container.decode(String.self, forKey: .extensionId)
+
+
+
+
+ do {
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ schemeId = try container.decode(String.self, forKey: .schemeId)
+
+
+
+
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+
+
+
+ stage = try container.decode(String.self, forKey: .stage)
+
+
+
+
+ isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(extensionId, forKey: .extensionId)
+
+
+
+
+ try? container.encodeIfPresent(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(schemeId, forKey: .schemeId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierAccountRequestBody
+ Used By: Serviceability
+ */
+
+ class CourierAccountRequestBody: Codable {
+
+
+ public var extensionId: String
+
+ public var accountId: String?
+
+ public var schemeId: String
+
+ public var isSelfShip: Bool
+
+ public var stage: String
+
+ public var isOwnAccount: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case extensionId = "extension_id"
+
+ case accountId = "account_id"
+
+ case schemeId = "scheme_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case stage = "stage"
+
+ case isOwnAccount = "is_own_account"
+
+ }
+
+ public init(accountId: String? = nil, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
+
+ self.extensionId = extensionId
+
+ self.accountId = accountId
+
+ self.schemeId = schemeId
+
+ self.isSelfShip = isSelfShip
+
+ self.stage = stage
+
+ self.isOwnAccount = isOwnAccount
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ extensionId = try container.decode(String.self, forKey: .extensionId)
+
+
+
+
+ do {
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ schemeId = try container.decode(String.self, forKey: .schemeId)
+
+
+
+
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+
+
+
+ stage = try container.decode(String.self, forKey: .stage)
+
+
+
+
+ isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(extensionId, forKey: .extensionId)
+
+
+
+
+ try? container.encodeIfPresent(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(schemeId, forKey: .schemeId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..aef1966b97
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierAccountResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,262 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierAccountResponse
+ Used By: Serviceability
+ */
+
+ class CourierAccountResponse: Codable {
+
+
+ public var accountId: String
+
+ public var schemeId: String
+
+ public var isSelfShip: Bool
+
+ public var stage: String
+
+ public var isOwnAccount: Bool
+
+ public var schemeRules: CourierPartnerSchemeModel
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case accountId = "account_id"
+
+ case schemeId = "scheme_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case stage = "stage"
+
+ case isOwnAccount = "is_own_account"
+
+ case schemeRules = "scheme_rules"
+
+ }
+
+ public init(accountId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel, stage: String) {
+
+ self.accountId = accountId
+
+ self.schemeId = schemeId
+
+ self.isSelfShip = isSelfShip
+
+ self.stage = stage
+
+ self.isOwnAccount = isOwnAccount
+
+ self.schemeRules = schemeRules
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+
+
+
+ schemeId = try container.decode(String.self, forKey: .schemeId)
+
+
+
+
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+
+
+
+ stage = try container.decode(String.self, forKey: .stage)
+
+
+
+
+ isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
+
+
+
+
+ schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(schemeId, forKey: .schemeId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
+
+
+
+
+ try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierAccountResponse
+ Used By: Serviceability
+ */
+
+ class CourierAccountResponse: Codable {
+
+
+ public var accountId: String
+
+ public var schemeId: String
+
+ public var isSelfShip: Bool
+
+ public var stage: String
+
+ public var isOwnAccount: Bool
+
+ public var schemeRules: CourierPartnerSchemeModel
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case accountId = "account_id"
+
+ case schemeId = "scheme_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case stage = "stage"
+
+ case isOwnAccount = "is_own_account"
+
+ case schemeRules = "scheme_rules"
+
+ }
+
+ public init(accountId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel, stage: String) {
+
+ self.accountId = accountId
+
+ self.schemeId = schemeId
+
+ self.isSelfShip = isSelfShip
+
+ self.stage = stage
+
+ self.isOwnAccount = isOwnAccount
+
+ self.schemeRules = schemeRules
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+
+
+
+ schemeId = try container.decode(String.self, forKey: .schemeId)
+
+
+
+
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+
+
+
+ stage = try container.decode(String.self, forKey: .stage)
+
+
+
+
+ isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
+
+
+
+
+ schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(schemeId, forKey: .schemeId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
+
+
+
+
+ try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 1bb4a5348c..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierAccountResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,354 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierAccountResult
- Used By: Serviceability
- */
-
- class CourierAccountResult: Codable {
-
-
- public var companyId: Int
-
- public var extensionId: String?
-
- public var accountId: String
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
- public var schemeRules: CourierPartnerSchemeModel?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case extensionId = "extension_id"
-
- case accountId = "account_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- case schemeRules = "scheme_rules"
-
- }
-
- public init(accountId: String, companyId: Int, extensionId: String? = nil, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel? = nil, stage: String) {
-
- self.companyId = companyId
-
- self.extensionId = extensionId
-
- self.accountId = accountId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- self.schemeRules = schemeRules
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- accountId = try container.decode(String.self, forKey: .accountId)
-
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
-
- do {
- schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
-
- } 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(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierAccountResult
- Used By: Serviceability
- */
-
- class CourierAccountResult: Codable {
-
-
- public var companyId: Int
-
- public var extensionId: String?
-
- public var accountId: String
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
- public var schemeRules: CourierPartnerSchemeModel?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case companyId = "company_id"
-
- case extensionId = "extension_id"
-
- case accountId = "account_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- case schemeRules = "scheme_rules"
-
- }
-
- public init(accountId: String, companyId: Int, extensionId: String? = nil, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel? = nil, stage: String) {
-
- self.companyId = companyId
-
- self.extensionId = extensionId
-
- self.accountId = accountId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- self.schemeRules = schemeRules
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- accountId = try container.decode(String.self, forKey: .accountId)
-
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
-
- do {
- schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
-
- } 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(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountServiceabilityPlatformModel.swift
index f07cdd9976..42af6dda46 100644
--- a/Sources/code/platform/Models/Serviceability/CourierAccountServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/CourierAccountServiceabilityPlatformModel.swift
@@ -12,8 +12,6 @@ public extension PlatformClient.Serviceability {
class CourierAccount: Codable {
- public var companyId: Int
-
public var extensionId: String
public var accountId: String
@@ -26,13 +24,9 @@ public extension PlatformClient.Serviceability {
public var isOwnAccount: Bool
- public var schemeRules: CourierPartnerSchemeModel
-
public enum CodingKeys: String, CodingKey {
- case companyId = "company_id"
-
case extensionId = "extension_id"
case accountId = "account_id"
@@ -45,13 +39,9 @@ public extension PlatformClient.Serviceability {
case isOwnAccount = "is_own_account"
- case schemeRules = "scheme_rules"
-
}
- public init(accountId: String, companyId: Int, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel, stage: String) {
-
- self.companyId = companyId
+ public init(accountId: String, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
self.extensionId = extensionId
@@ -65,19 +55,12 @@ public extension PlatformClient.Serviceability {
self.isOwnAccount = isOwnAccount
- self.schemeRules = schemeRules
-
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
extensionId = try container.decode(String.self, forKey: .extensionId)
@@ -107,11 +90,6 @@ public extension PlatformClient.Serviceability {
-
- schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
-
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -119,11 +97,6 @@ public extension PlatformClient.Serviceability {
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
try? container.encodeIfPresent(extensionId, forKey: .extensionId)
@@ -152,11 +125,6 @@ public extension PlatformClient.Serviceability {
try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
}
}
@@ -173,8 +141,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
class CourierAccount: Codable {
- public var companyId: Int
-
public var extensionId: String
public var accountId: String
@@ -187,13 +153,9 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var isOwnAccount: Bool
- public var schemeRules: CourierPartnerSchemeModel
-
public enum CodingKeys: String, CodingKey {
- case companyId = "company_id"
-
case extensionId = "extension_id"
case accountId = "account_id"
@@ -206,13 +168,9 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case isOwnAccount = "is_own_account"
- case schemeRules = "scheme_rules"
-
}
- public init(accountId: String, companyId: Int, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, schemeRules: CourierPartnerSchemeModel, stage: String) {
-
- self.companyId = companyId
+ public init(accountId: String, extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
self.extensionId = extensionId
@@ -226,19 +184,12 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.isOwnAccount = isOwnAccount
- self.schemeRules = schemeRules
-
}
required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
extensionId = try container.decode(String.self, forKey: .extensionId)
@@ -268,11 +219,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
-
- schemeRules = try container.decode(CourierPartnerSchemeModel.self, forKey: .schemeRules)
-
-
-
}
public func encode(to encoder: Encoder) throws {
@@ -280,11 +226,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
try? container.encodeIfPresent(extensionId, forKey: .extensionId)
@@ -313,11 +254,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
}
}
diff --git a/Sources/code/platform/Models/Serviceability/CourierAccountUpdateDetailsServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierAccountUpdateDetailsServiceabilityPlatformModel.swift
deleted file mode 100644
index 955c6a002c..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierAccountUpdateDetailsServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierAccountUpdateDetails
- Used By: Serviceability
- */
-
- class CourierAccountUpdateDetails: Codable {
-
-
- public var extensionId: String
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- }
-
- public init(extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
-
- self.extensionId = extensionId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierAccountUpdateDetails
- Used By: Serviceability
- */
-
- class CourierAccountUpdateDetails: Codable {
-
-
- public var extensionId: String
-
- public var schemeId: String
-
- public var isSelfShip: Bool
-
- public var stage: String
-
- public var isOwnAccount: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case schemeId = "scheme_id"
-
- case isSelfShip = "is_self_ship"
-
- case stage = "stage"
-
- case isOwnAccount = "is_own_account"
-
- }
-
- public init(extensionId: String, isOwnAccount: Bool, isSelfShip: Bool, schemeId: String, stage: String) {
-
- self.extensionId = extensionId
-
- self.schemeId = schemeId
-
- self.isSelfShip = isSelfShip
-
- self.stage = stage
-
- self.isOwnAccount = isOwnAccount
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- stage = try container.decode(String.self, forKey: .stage)
-
-
-
-
- isOwnAccount = try container.decode(Bool.self, forKey: .isOwnAccount)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(isOwnAccount, forKey: .isOwnAccount)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..496f796b04
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierPartnerAccountFailureResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerAccountFailureResponse: Codable {
+
+
+ public var success: Bool
+
+ public var error: [ErrorResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: [ErrorResponse], success: Bool) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ error = try container.decode([ErrorResponse].self, forKey: .error)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierPartnerAccountFailureResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerAccountFailureResponse: Codable {
+
+
+ public var success: Bool
+
+ public var error: [ErrorResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: [ErrorResponse], success: Bool) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ error = try container.decode([ErrorResponse].self, forKey: .error)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 990789e4ad..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerAccountFailureResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartnerAccountFailureResult
- Used By: Serviceability
- */
-
- class CourierPartnerAccountFailureResult: Codable {
-
-
- public var success: Bool
-
- public var error: [ErrorResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: [ErrorResult], success: Bool) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- error = try container.decode([ErrorResult].self, forKey: .error)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartnerAccountFailureResult
- Used By: Serviceability
- */
-
- class CourierPartnerAccountFailureResult: Codable {
-
-
- public var success: Bool
-
- public var error: [ErrorResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: [ErrorResult], success: Bool) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- error = try container.decode([ErrorResult].self, forKey: .error)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerPromiseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerPromiseServiceabilityPlatformModel.swift
deleted file mode 100644
index a51f531961..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerPromiseServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartnerPromise
- Used By: Serviceability
- */
-
- class CourierPartnerPromise: Codable {
-
-
- public var min: String
-
- public var max: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: String, min: String) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- min = try container.decode(String.self, forKey: .min)
-
-
-
-
- max = try container.decode(String.self, forKey: .max)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartnerPromise
- Used By: Serviceability
- */
-
- class CourierPartnerPromise: Codable {
-
-
- public var min: String
-
- public var max: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case min = "min"
-
- case max = "max"
-
- }
-
- public init(max: String, min: String) {
-
- self.min = min
-
- self.max = max
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- min = try container.decode(String.self, forKey: .min)
-
-
-
-
- max = try container.decode(String.self, forKey: .max)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(min, forKey: .min)
-
-
-
-
- try? container.encodeIfPresent(max, forKey: .max)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..ea6c05f0c8
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierPartnerRuleCPListResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRuleCPListResponse: Codable {
+
+
+ public var accountId: String?
+
+ public var extensionId: String?
+
+ public var isSelfShip: Bool?
+
+ public var schemeRules: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case accountId = "account_id"
+
+ case extensionId = "extension_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case schemeRules = "scheme_rules"
+
+ }
+
+ public init(accountId: String? = nil, extensionId: String? = nil, isSelfShip: Bool? = nil, schemeRules: [String: Any]? = nil) {
+
+ self.accountId = accountId
+
+ self.extensionId = extensionId
+
+ self.isSelfShip = isSelfShip
+
+ self.schemeRules = schemeRules
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extensionId = try container.decode(String.self, forKey: .extensionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ schemeRules = try container.decode([String: Any].self, forKey: .schemeRules)
+
+ } 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(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(extensionId, forKey: .extensionId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierPartnerRuleCPListResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRuleCPListResponse: Codable {
+
+
+ public var accountId: String?
+
+ public var extensionId: String?
+
+ public var isSelfShip: Bool?
+
+ public var schemeRules: [String: Any]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case accountId = "account_id"
+
+ case extensionId = "extension_id"
+
+ case isSelfShip = "is_self_ship"
+
+ case schemeRules = "scheme_rules"
+
+ }
+
+ public init(accountId: String? = nil, extensionId: String? = nil, isSelfShip: Bool? = nil, schemeRules: [String: Any]? = nil) {
+
+ self.accountId = accountId
+
+ self.extensionId = extensionId
+
+ self.isSelfShip = isSelfShip
+
+ self.schemeRules = schemeRules
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ accountId = try container.decode(String.self, forKey: .accountId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ extensionId = try container.decode(String.self, forKey: .extensionId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ schemeRules = try container.decode([String: Any].self, forKey: .schemeRules)
+
+ } 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(accountId, forKey: .accountId)
+
+
+
+
+ try? container.encodeIfPresent(extensionId, forKey: .extensionId)
+
+
+
+
+ try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
+
+
+
+
+ try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 5c0133f097..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleCPListResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartnerRuleCPListResult
- Used By: Serviceability
- */
-
- class CourierPartnerRuleCPListResult: Codable {
-
-
- public var accountId: String
-
- public var extensionId: String
-
- public var isSelfShip: Bool
-
- public var schemeRules: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case accountId = "account_id"
-
- case extensionId = "extension_id"
-
- case isSelfShip = "is_self_ship"
-
- case schemeRules = "scheme_rules"
-
- }
-
- public init(accountId: String, extensionId: String, isSelfShip: Bool, schemeRules: [String: Any]? = nil) {
-
- self.accountId = accountId
-
- self.extensionId = extensionId
-
- self.isSelfShip = isSelfShip
-
- self.schemeRules = schemeRules
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- accountId = try container.decode(String.self, forKey: .accountId)
-
-
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- do {
- schemeRules = try container.decode([String: Any].self, forKey: .schemeRules)
-
- } 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(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartnerRuleCPListResult
- Used By: Serviceability
- */
-
- class CourierPartnerRuleCPListResult: Codable {
-
-
- public var accountId: String
-
- public var extensionId: String
-
- public var isSelfShip: Bool
-
- public var schemeRules: [String: Any]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case accountId = "account_id"
-
- case extensionId = "extension_id"
-
- case isSelfShip = "is_self_ship"
-
- case schemeRules = "scheme_rules"
-
- }
-
- public init(accountId: String, extensionId: String, isSelfShip: Bool, schemeRules: [String: Any]? = nil) {
-
- self.accountId = accountId
-
- self.extensionId = extensionId
-
- self.isSelfShip = isSelfShip
-
- self.schemeRules = schemeRules
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- accountId = try container.decode(String.self, forKey: .accountId)
-
-
-
-
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
-
-
-
- isSelfShip = try container.decode(Bool.self, forKey: .isSelfShip)
-
-
-
-
- do {
- schemeRules = try container.decode([String: Any].self, forKey: .schemeRules)
-
- } 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(accountId, forKey: .accountId)
-
-
-
-
- try? container.encodeIfPresent(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(isSelfShip, forKey: .isSelfShip)
-
-
-
-
- try? container.encodeIfPresent(schemeRules, forKey: .schemeRules)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..2ddf875221
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,622 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierPartnerRuleResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRuleResponse: Codable {
+
+
+ public var isActive: Bool?
+
+ public var applicationId: String?
+
+ public var companyId: Int?
+
+ public var conditions: CourierPartnerRuleConditions?
+
+ public var sort: [String]?
+
+ public var createdBy: [String: Any]?
+
+ public var id: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var type: String?
+
+ public var cpList: [CourierPartnerRuleCPListResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isActive = "is_active"
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case conditions = "conditions"
+
+ case sort = "sort"
+
+ case createdBy = "created_by"
+
+ case id = "id"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case type = "type"
+
+ case cpList = "cp_list"
+
+ }
+
+ public init(applicationId: String? = nil, companyId: Int? = nil, conditions: CourierPartnerRuleConditions? = nil, cpList: [CourierPartnerRuleCPListResponse]? = nil, createdBy: [String: Any]? = nil, id: String? = nil, isActive: Bool? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, sort: [String]? = nil, type: String? = nil) {
+
+ self.isActive = isActive
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.conditions = conditions
+
+ self.sort = sort
+
+ self.createdBy = createdBy
+
+ self.id = id
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.type = type
+
+ self.cpList = cpList
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ conditions = try container.decode(CourierPartnerRuleConditions.self, forKey: .conditions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ cpList = try container.decode([CourierPartnerRuleCPListResponse].self, forKey: .cpList)
+
+ } 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(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(conditions, forKey: .conditions)
+
+
+
+
+ try? container.encodeIfPresent(sort, forKey: .sort)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(cpList, forKey: .cpList)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierPartnerRuleResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRuleResponse: Codable {
+
+
+ public var isActive: Bool?
+
+ public var applicationId: String?
+
+ public var companyId: Int?
+
+ public var conditions: CourierPartnerRuleConditions?
+
+ public var sort: [String]?
+
+ public var createdBy: [String: Any]?
+
+ public var id: String?
+
+ public var modifiedBy: [String: Any]?
+
+ public var modifiedOn: String?
+
+ public var name: String?
+
+ public var type: String?
+
+ public var cpList: [CourierPartnerRuleCPListResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case isActive = "is_active"
+
+ case applicationId = "application_id"
+
+ case companyId = "company_id"
+
+ case conditions = "conditions"
+
+ case sort = "sort"
+
+ case createdBy = "created_by"
+
+ case id = "id"
+
+ case modifiedBy = "modified_by"
+
+ case modifiedOn = "modified_on"
+
+ case name = "name"
+
+ case type = "type"
+
+ case cpList = "cp_list"
+
+ }
+
+ public init(applicationId: String? = nil, companyId: Int? = nil, conditions: CourierPartnerRuleConditions? = nil, cpList: [CourierPartnerRuleCPListResponse]? = nil, createdBy: [String: Any]? = nil, id: String? = nil, isActive: Bool? = nil, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String? = nil, sort: [String]? = nil, type: String? = nil) {
+
+ self.isActive = isActive
+
+ self.applicationId = applicationId
+
+ self.companyId = companyId
+
+ self.conditions = conditions
+
+ self.sort = sort
+
+ self.createdBy = createdBy
+
+ self.id = id
+
+ self.modifiedBy = modifiedBy
+
+ self.modifiedOn = modifiedOn
+
+ self.name = name
+
+ self.type = type
+
+ self.cpList = cpList
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ applicationId = try container.decode(String.self, forKey: .applicationId)
+
+ } 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)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ conditions = try container.decode(CourierPartnerRuleConditions.self, forKey: .conditions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+ 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 {
+ cpList = try container.decode([CourierPartnerRuleCPListResponse].self, forKey: .cpList)
+
+ } 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(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(applicationId, forKey: .applicationId)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(conditions, forKey: .conditions)
+
+
+
+
+ try? container.encodeIfPresent(sort, forKey: .sort)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(cpList, forKey: .cpList)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResultServiceabilityPlatformModel.swift
deleted file mode 100644
index c01a297a29..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,510 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartnerRuleResult
- Used By: Serviceability
- */
-
- class CourierPartnerRuleResult: Codable {
-
-
- public var isActive: Bool
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var conditions: CourierPartnerRuleConditions
-
- public var sort: [String]
-
- public var createdBy: [String: Any]?
-
- public var id: String
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var type: String
-
- public var cpList: [CourierPartnerRuleCPListResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isActive = "is_active"
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case conditions = "conditions"
-
- case sort = "sort"
-
- case createdBy = "created_by"
-
- case id = "id"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case type = "type"
-
- case cpList = "cp_list"
-
- }
-
- public init(applicationId: String, companyId: Int, conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerRuleCPListResult]? = nil, createdBy: [String: Any]? = nil, id: String, isActive: Bool, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, sort: [String], type: String) {
-
- self.isActive = isActive
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.conditions = conditions
-
- self.sort = sort
-
- self.createdBy = createdBy
-
- self.id = id
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.type = type
-
- self.cpList = cpList
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- conditions = try container.decode(CourierPartnerRuleConditions.self, forKey: .conditions)
-
-
-
-
- sort = try container.decode([String].self, forKey: .sort)
-
-
-
-
- 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 {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- do {
- cpList = try container.decode([CourierPartnerRuleCPListResult].self, forKey: .cpList)
-
- } 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(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(sort, forKey: .sort)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(cpList, forKey: .cpList)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartnerRuleResult
- Used By: Serviceability
- */
-
- class CourierPartnerRuleResult: Codable {
-
-
- public var isActive: Bool
-
- public var applicationId: String
-
- public var companyId: Int
-
- public var conditions: CourierPartnerRuleConditions
-
- public var sort: [String]
-
- public var createdBy: [String: Any]?
-
- public var id: String
-
- public var modifiedBy: [String: Any]?
-
- public var modifiedOn: String?
-
- public var name: String
-
- public var type: String
-
- public var cpList: [CourierPartnerRuleCPListResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case isActive = "is_active"
-
- case applicationId = "application_id"
-
- case companyId = "company_id"
-
- case conditions = "conditions"
-
- case sort = "sort"
-
- case createdBy = "created_by"
-
- case id = "id"
-
- case modifiedBy = "modified_by"
-
- case modifiedOn = "modified_on"
-
- case name = "name"
-
- case type = "type"
-
- case cpList = "cp_list"
-
- }
-
- public init(applicationId: String, companyId: Int, conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerRuleCPListResult]? = nil, createdBy: [String: Any]? = nil, id: String, isActive: Bool, modifiedBy: [String: Any]? = nil, modifiedOn: String? = nil, name: String, sort: [String], type: String) {
-
- self.isActive = isActive
-
- self.applicationId = applicationId
-
- self.companyId = companyId
-
- self.conditions = conditions
-
- self.sort = sort
-
- self.createdBy = createdBy
-
- self.id = id
-
- self.modifiedBy = modifiedBy
-
- self.modifiedOn = modifiedOn
-
- self.name = name
-
- self.type = type
-
- self.cpList = cpList
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- isActive = try container.decode(Bool.self, forKey: .isActive)
-
-
-
-
- applicationId = try container.decode(String.self, forKey: .applicationId)
-
-
-
-
- companyId = try container.decode(Int.self, forKey: .companyId)
-
-
-
-
- conditions = try container.decode(CourierPartnerRuleConditions.self, forKey: .conditions)
-
-
-
-
- sort = try container.decode([String].self, forKey: .sort)
-
-
-
-
- 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 {
-
- }
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- 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 {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
-
- do {
- cpList = try container.decode([CourierPartnerRuleCPListResult].self, forKey: .cpList)
-
- } 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(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(applicationId, forKey: .applicationId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(sort, forKey: .sort)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(cpList, forKey: .cpList)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleServiceabilityPlatformModel.swift
index b5f71b17ce..8ec8bc72aa 100644
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerRuleServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerRuleServiceabilityPlatformModel.swift
@@ -22,8 +22,6 @@ public extension PlatformClient.Serviceability {
public var sort: [String]
- public var type: String?
-
public enum CodingKeys: String, CodingKey {
@@ -37,11 +35,9 @@ public extension PlatformClient.Serviceability {
case sort = "sort"
- case type = "type"
-
}
- public init(conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerList]? = nil, isActive: Bool, name: String, sort: [String], type: String? = nil) {
+ public init(conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerList]? = nil, isActive: Bool, name: String, sort: [String]) {
self.isActive = isActive
@@ -53,8 +49,6 @@ public extension PlatformClient.Serviceability {
self.sort = sort
- self.type = type
-
}
required public init(from decoder: Decoder) throws {
@@ -92,18 +86,6 @@ public extension PlatformClient.Serviceability {
-
- 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 {
@@ -134,11 +116,6 @@ public extension PlatformClient.Serviceability {
try? container.encodeIfPresent(sort, forKey: .sort)
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
}
}
@@ -165,8 +142,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var sort: [String]
- public var type: String?
-
public enum CodingKeys: String, CodingKey {
@@ -180,11 +155,9 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case sort = "sort"
- case type = "type"
-
}
- public init(conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerList]? = nil, isActive: Bool, name: String, sort: [String], type: String? = nil) {
+ public init(conditions: CourierPartnerRuleConditions, cpList: [CourierPartnerList]? = nil, isActive: Bool, name: String, sort: [String]) {
self.isActive = isActive
@@ -196,8 +169,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.sort = sort
- self.type = type
-
}
required public init(from decoder: Decoder) throws {
@@ -235,18 +206,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
-
- 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 {
@@ -277,11 +236,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
try? container.encodeIfPresent(sort, forKey: .sort)
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
}
}
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..387b914616
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CourierPartnerRulesListResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRulesListResponse: Codable {
+
+
+ public var items: [CourierPartnerRuleResponse]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierPartnerRuleResponse], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([CourierPartnerRuleResponse].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CourierPartnerRulesListResponse
+ Used By: Serviceability
+ */
+
+ class CourierPartnerRulesListResponse: Codable {
+
+
+ public var items: [CourierPartnerRuleResponse]
+
+ public var page: Page
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [CourierPartnerRuleResponse], page: Page) {
+
+ self.items = items
+
+ self.page = page
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ items = try container.decode([CourierPartnerRuleResponse].self, forKey: .items)
+
+
+
+
+ page = try container.decode(Page.self, forKey: .page)
+
+
+
+ }
+
+ 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 11c2069fb9..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerRulesListResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartnerRulesListResult
- Used By: Serviceability
- */
-
- class CourierPartnerRulesListResult: Codable {
-
-
- public var items: [CourierPartnerRuleResult]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierPartnerRuleResult], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([CourierPartnerRuleResult].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartnerRulesListResult
- Used By: Serviceability
- */
-
- class CourierPartnerRulesListResult: Codable {
-
-
- public var items: [CourierPartnerRuleResult]
-
- public var page: Page
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [CourierPartnerRuleResult], page: Page) {
-
- self.items = items
-
- self.page = page
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- items = try container.decode([CourierPartnerRuleResult].self, forKey: .items)
-
-
-
-
- page = try container.decode(Page.self, forKey: .page)
-
-
-
- }
-
- 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnerSchemeModelServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnerSchemeModelServiceabilityPlatformModel.swift
index 322ca1590a..70b9010a1a 100644
--- a/Sources/code/platform/Models/Serviceability/CourierPartnerSchemeModelServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/CourierPartnerSchemeModelServiceabilityPlatformModel.swift
@@ -12,14 +12,10 @@ public extension PlatformClient.Serviceability {
class CourierPartnerSchemeModel: Codable {
- public var name: String?
-
public var extensionId: String
public var schemeId: String
- public var volumetricWeight: ArithmeticOperations?
-
public var weight: ArithmeticOperations
public var transportType: String
@@ -37,14 +33,10 @@ public extension PlatformClient.Serviceability {
public enum CodingKeys: String, CodingKey {
- case name = "name"
-
case extensionId = "extension_id"
case schemeId = "scheme_id"
- case volumetricWeight = "volumetric_weight"
-
case weight = "weight"
case transportType = "transport_type"
@@ -61,16 +53,12 @@ public extension PlatformClient.Serviceability {
}
- public init(deliveryType: String, extensionId: String, feature: CourierPartnerSchemeFeatures, name: String? = nil, paymentMode: [String], region: String, schemeId: String, stage: String, transportType: String, volumetricWeight: ArithmeticOperations? = nil, weight: ArithmeticOperations) {
-
- self.name = name
+ public init(deliveryType: String, extensionId: String, feature: CourierPartnerSchemeFeatures, paymentMode: [String], region: String, schemeId: String, stage: String, transportType: String, weight: ArithmeticOperations) {
self.extensionId = extensionId
self.schemeId = schemeId
- self.volumetricWeight = volumetricWeight
-
self.weight = weight
self.transportType = transportType
@@ -91,18 +79,6 @@ public extension PlatformClient.Serviceability {
let container = try decoder.container(keyedBy: CodingKeys.self)
- 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 {
-
- }
-
-
-
extensionId = try container.decode(String.self, forKey: .extensionId)
@@ -113,18 +89,6 @@ public extension PlatformClient.Serviceability {
- do {
- volumetricWeight = try container.decode(ArithmeticOperations.self, forKey: .volumetricWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
weight = try container.decode(ArithmeticOperations.self, forKey: .weight)
@@ -166,11 +130,6 @@ public extension PlatformClient.Serviceability {
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
try? container.encodeIfPresent(extensionId, forKey: .extensionId)
@@ -181,11 +140,6 @@ public extension PlatformClient.Serviceability {
- try? container.encodeIfPresent(volumetricWeight, forKey: .volumetricWeight)
-
-
-
-
try? container.encodeIfPresent(weight, forKey: .weight)
@@ -235,14 +189,10 @@ public extension PlatformClient.ApplicationClient.Serviceability {
class CourierPartnerSchemeModel: Codable {
- public var name: String?
-
public var extensionId: String
public var schemeId: String
- public var volumetricWeight: ArithmeticOperations?
-
public var weight: ArithmeticOperations
public var transportType: String
@@ -260,14 +210,10 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public enum CodingKeys: String, CodingKey {
- case name = "name"
-
case extensionId = "extension_id"
case schemeId = "scheme_id"
- case volumetricWeight = "volumetric_weight"
-
case weight = "weight"
case transportType = "transport_type"
@@ -284,16 +230,12 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(deliveryType: String, extensionId: String, feature: CourierPartnerSchemeFeatures, name: String? = nil, paymentMode: [String], region: String, schemeId: String, stage: String, transportType: String, volumetricWeight: ArithmeticOperations? = nil, weight: ArithmeticOperations) {
-
- self.name = name
+ public init(deliveryType: String, extensionId: String, feature: CourierPartnerSchemeFeatures, paymentMode: [String], region: String, schemeId: String, stage: String, transportType: String, weight: ArithmeticOperations) {
self.extensionId = extensionId
self.schemeId = schemeId
- self.volumetricWeight = volumetricWeight
-
self.weight = weight
self.transportType = transportType
@@ -314,18 +256,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
let container = try decoder.container(keyedBy: CodingKeys.self)
- 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 {
-
- }
-
-
-
extensionId = try container.decode(String.self, forKey: .extensionId)
@@ -336,18 +266,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- do {
- volumetricWeight = try container.decode(ArithmeticOperations.self, forKey: .volumetricWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
weight = try container.decode(ArithmeticOperations.self, forKey: .weight)
@@ -389,11 +307,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
try? container.encodeIfPresent(extensionId, forKey: .extensionId)
@@ -404,11 +317,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- try? container.encodeIfPresent(volumetricWeight, forKey: .volumetricWeight)
-
-
-
-
try? container.encodeIfPresent(weight, forKey: .weight)
diff --git a/Sources/code/platform/Models/Serviceability/CourierPartnersServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CourierPartnersServiceabilityPlatformModel.swift
deleted file mode 100644
index ca9af897e3..0000000000
--- a/Sources/code/platform/Models/Serviceability/CourierPartnersServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CourierPartners
- Used By: Serviceability
- */
-
- class CourierPartners: Codable {
-
-
- public var extensionId: String?
-
- public var schemeId: String?
-
- public var name: String?
-
- public var deliveryPromise: CourierPartnerPromise?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case schemeId = "scheme_id"
-
- case name = "name"
-
- case deliveryPromise = "delivery_promise"
-
- }
-
- public init(deliveryPromise: CourierPartnerPromise? = nil, extensionId: String? = nil, name: String? = nil, schemeId: String? = nil) {
-
- self.extensionId = extensionId
-
- self.schemeId = schemeId
-
- self.name = name
-
- self.deliveryPromise = deliveryPromise
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
- } 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 {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(CourierPartnerPromise.self, forKey: .deliveryPromise)
-
- } 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(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CourierPartners
- Used By: Serviceability
- */
-
- class CourierPartners: Codable {
-
-
- public var extensionId: String?
-
- public var schemeId: String?
-
- public var name: String?
-
- public var deliveryPromise: CourierPartnerPromise?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case extensionId = "extension_id"
-
- case schemeId = "scheme_id"
-
- case name = "name"
-
- case deliveryPromise = "delivery_promise"
-
- }
-
- public init(deliveryPromise: CourierPartnerPromise? = nil, extensionId: String? = nil, name: String? = nil, schemeId: String? = nil) {
-
- self.extensionId = extensionId
-
- self.schemeId = schemeId
-
- self.name = name
-
- self.deliveryPromise = deliveryPromise
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- extensionId = try container.decode(String.self, forKey: .extensionId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- schemeId = try container.decode(String.self, forKey: .schemeId)
-
- } 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 {
-
- }
-
-
-
- do {
- deliveryPromise = try container.decode(CourierPartnerPromise.self, forKey: .deliveryPromise)
-
- } 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(extensionId, forKey: .extensionId)
-
-
-
-
- try? container.encodeIfPresent(schemeId, forKey: .schemeId)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(deliveryPromise, forKey: .deliveryPromise)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CreateStoreRuleDetailsSchemaServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CreateStoreRuleDetailsSchemaServiceabilityPlatformModel.swift
deleted file mode 100644
index 463e92ec30..0000000000
--- a/Sources/code/platform/Models/Serviceability/CreateStoreRuleDetailsSchemaServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CreateStoreRuleDetailsSchema
- Used By: Serviceability
- */
-
- class CreateStoreRuleDetailsSchema: Codable {
-
-
- public var name: String?
-
- public var isActive: Bool?
-
- public var conditions: StoreRuleConditionSchema?
-
- public var typeBasedPriority: [String]?
-
- public var tagBasedPriority: [String]?
-
- public var storePriority: [StorePrioritySchema]?
-
- public var sort: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case isActive = "is_active"
-
- case conditions = "conditions"
-
- case typeBasedPriority = "type_based_priority"
-
- case tagBasedPriority = "tag_based_priority"
-
- case storePriority = "store_priority"
-
- case sort = "sort"
-
- }
-
- public init(conditions: StoreRuleConditionSchema? = nil, isActive: Bool? = nil, name: String? = nil, sort: [String]? = nil, storePriority: [StorePrioritySchema]? = nil, tagBasedPriority: [String]? = nil, typeBasedPriority: [String]? = nil) {
-
- self.name = name
-
- self.isActive = isActive
-
- self.conditions = conditions
-
- self.typeBasedPriority = typeBasedPriority
-
- self.tagBasedPriority = tagBasedPriority
-
- self.storePriority = storePriority
-
- self.sort = sort
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- conditions = try container.decode(StoreRuleConditionSchema.self, forKey: .conditions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- typeBasedPriority = try container.decode([String].self, forKey: .typeBasedPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- tagBasedPriority = try container.decode([String].self, forKey: .tagBasedPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storePriority = try container.decode([StorePrioritySchema].self, forKey: .storePriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(typeBasedPriority, forKey: .typeBasedPriority)
-
-
-
-
- try? container.encodeIfPresent(tagBasedPriority, forKey: .tagBasedPriority)
-
-
-
-
- try? container.encodeIfPresent(storePriority, forKey: .storePriority)
-
-
-
-
- try? container.encodeIfPresent(sort, forKey: .sort)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CreateStoreRuleDetailsSchema
- Used By: Serviceability
- */
-
- class CreateStoreRuleDetailsSchema: Codable {
-
-
- public var name: String?
-
- public var isActive: Bool?
-
- public var conditions: StoreRuleConditionSchema?
-
- public var typeBasedPriority: [String]?
-
- public var tagBasedPriority: [String]?
-
- public var storePriority: [StorePrioritySchema]?
-
- public var sort: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case isActive = "is_active"
-
- case conditions = "conditions"
-
- case typeBasedPriority = "type_based_priority"
-
- case tagBasedPriority = "tag_based_priority"
-
- case storePriority = "store_priority"
-
- case sort = "sort"
-
- }
-
- public init(conditions: StoreRuleConditionSchema? = nil, isActive: Bool? = nil, name: String? = nil, sort: [String]? = nil, storePriority: [StorePrioritySchema]? = nil, tagBasedPriority: [String]? = nil, typeBasedPriority: [String]? = nil) {
-
- self.name = name
-
- self.isActive = isActive
-
- self.conditions = conditions
-
- self.typeBasedPriority = typeBasedPriority
-
- self.tagBasedPriority = tagBasedPriority
-
- self.storePriority = storePriority
-
- self.sort = sort
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- 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 {
- conditions = try container.decode(StoreRuleConditionSchema.self, forKey: .conditions)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- typeBasedPriority = try container.decode([String].self, forKey: .typeBasedPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- tagBasedPriority = try container.decode([String].self, forKey: .tagBasedPriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- storePriority = try container.decode([StorePrioritySchema].self, forKey: .storePriority)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(isActive, forKey: .isActive)
-
-
-
-
- try? container.encodeIfPresent(conditions, forKey: .conditions)
-
-
-
-
- try? container.encodeIfPresent(typeBasedPriority, forKey: .typeBasedPriority)
-
-
-
-
- try? container.encodeIfPresent(tagBasedPriority, forKey: .tagBasedPriority)
-
-
-
-
- try? container.encodeIfPresent(storePriority, forKey: .storePriority)
-
-
-
-
- try? container.encodeIfPresent(sort, forKey: .sort)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/CreateStoreRuleRequestSchemaServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CreateStoreRuleRequestSchemaServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..58998d24a0
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CreateStoreRuleRequestSchemaServiceabilityPlatformModel.swift
@@ -0,0 +1,392 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CreateStoreRuleRequestSchema
+ Used By: Serviceability
+ */
+
+ class CreateStoreRuleRequestSchema: Codable {
+
+
+ public var name: String?
+
+ public var isActive: Bool?
+
+ public var conditions: StoreRuleConditionSchema?
+
+ public var typeBasedPriority: [String]?
+
+ public var tagBasedPriority: [String]?
+
+ public var storePriority: [StorePrioritySchema]?
+
+ public var sort: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case isActive = "is_active"
+
+ case conditions = "conditions"
+
+ case typeBasedPriority = "type_based_priority"
+
+ case tagBasedPriority = "tag_based_priority"
+
+ case storePriority = "store_priority"
+
+ case sort = "sort"
+
+ }
+
+ public init(conditions: StoreRuleConditionSchema? = nil, isActive: Bool? = nil, name: String? = nil, sort: [String]? = nil, storePriority: [StorePrioritySchema]? = nil, tagBasedPriority: [String]? = nil, typeBasedPriority: [String]? = nil) {
+
+ self.name = name
+
+ self.isActive = isActive
+
+ self.conditions = conditions
+
+ self.typeBasedPriority = typeBasedPriority
+
+ self.tagBasedPriority = tagBasedPriority
+
+ self.storePriority = storePriority
+
+ self.sort = sort
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ conditions = try container.decode(StoreRuleConditionSchema.self, forKey: .conditions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ typeBasedPriority = try container.decode([String].self, forKey: .typeBasedPriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ tagBasedPriority = try container.decode([String].self, forKey: .tagBasedPriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storePriority = try container.decode([StorePrioritySchema].self, forKey: .storePriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(conditions, forKey: .conditions)
+
+
+
+
+ try? container.encodeIfPresent(typeBasedPriority, forKey: .typeBasedPriority)
+
+
+
+
+ try? container.encodeIfPresent(tagBasedPriority, forKey: .tagBasedPriority)
+
+
+
+
+ try? container.encodeIfPresent(storePriority, forKey: .storePriority)
+
+
+
+
+ try? container.encodeIfPresent(sort, forKey: .sort)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CreateStoreRuleRequestSchema
+ Used By: Serviceability
+ */
+
+ class CreateStoreRuleRequestSchema: Codable {
+
+
+ public var name: String?
+
+ public var isActive: Bool?
+
+ public var conditions: StoreRuleConditionSchema?
+
+ public var typeBasedPriority: [String]?
+
+ public var tagBasedPriority: [String]?
+
+ public var storePriority: [StorePrioritySchema]?
+
+ public var sort: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case isActive = "is_active"
+
+ case conditions = "conditions"
+
+ case typeBasedPriority = "type_based_priority"
+
+ case tagBasedPriority = "tag_based_priority"
+
+ case storePriority = "store_priority"
+
+ case sort = "sort"
+
+ }
+
+ public init(conditions: StoreRuleConditionSchema? = nil, isActive: Bool? = nil, name: String? = nil, sort: [String]? = nil, storePriority: [StorePrioritySchema]? = nil, tagBasedPriority: [String]? = nil, typeBasedPriority: [String]? = nil) {
+
+ self.name = name
+
+ self.isActive = isActive
+
+ self.conditions = conditions
+
+ self.typeBasedPriority = typeBasedPriority
+
+ self.tagBasedPriority = tagBasedPriority
+
+ self.storePriority = storePriority
+
+ self.sort = sort
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ 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 {
+ conditions = try container.decode(StoreRuleConditionSchema.self, forKey: .conditions)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ typeBasedPriority = try container.decode([String].self, forKey: .typeBasedPriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ tagBasedPriority = try container.decode([String].self, forKey: .tagBasedPriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ storePriority = try container.decode([StorePrioritySchema].self, forKey: .storePriority)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(isActive, forKey: .isActive)
+
+
+
+
+ try? container.encodeIfPresent(conditions, forKey: .conditions)
+
+
+
+
+ try? container.encodeIfPresent(typeBasedPriority, forKey: .typeBasedPriority)
+
+
+
+
+ try? container.encodeIfPresent(tagBasedPriority, forKey: .tagBasedPriority)
+
+
+
+
+ try? container.encodeIfPresent(storePriority, forKey: .storePriority)
+
+
+
+
+ try? container.encodeIfPresent(sort, forKey: .sort)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CreateZoneDataServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CreateZoneDataServiceabilityPlatformModel.swift
index 94f807908d..19f1ecf8d0 100644
--- a/Sources/code/platform/Models/Serviceability/CreateZoneDataServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/CreateZoneDataServiceabilityPlatformModel.swift
@@ -24,12 +24,12 @@ public extension PlatformClient.Serviceability {
public var storeIds: [Int]
+ public var product: ZoneProductTypes
+
public var regionType: String
public var mapping: [ZoneMappingType]
- public var product: ZoneProductTypes?
-
public enum CodingKeys: String, CodingKey {
@@ -45,15 +45,15 @@ public extension PlatformClient.Serviceability {
case storeIds = "store_ids"
+ case product = "product"
+
case regionType = "region_type"
case mapping = "mapping"
- case product = "product"
-
}
- public init(channels: [GetZoneDataViewChannels], companyId: Int, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes? = nil, regionType: String, slug: String, storeIds: [Int]) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storeIds: [Int]) {
self.name = name
@@ -67,12 +67,12 @@ public extension PlatformClient.Serviceability {
self.storeIds = storeIds
+ self.product = product
+
self.regionType = regionType
self.mapping = mapping
- self.product = product
-
}
required public init(from decoder: Decoder) throws {
@@ -109,27 +109,20 @@ public extension PlatformClient.Serviceability {
- regionType = try container.decode(String.self, forKey: .regionType)
+ product = try container.decode(ZoneProductTypes.self, forKey: .product)
- mapping = try container.decode([ZoneMappingType].self, forKey: .mapping)
+ regionType = try container.decode(String.self, forKey: .regionType)
- do {
- product = try container.decode(ZoneProductTypes.self, forKey: .product)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ mapping = try container.decode([ZoneMappingType].self, forKey: .mapping)
+
}
public func encode(to encoder: Encoder) throws {
@@ -167,17 +160,17 @@ public extension PlatformClient.Serviceability {
- try? container.encodeIfPresent(regionType, forKey: .regionType)
+ try? container.encodeIfPresent(product, forKey: .product)
- try? container.encodeIfPresent(mapping, forKey: .mapping)
+ try? container.encodeIfPresent(regionType, forKey: .regionType)
- try? container.encodeIfPresent(product, forKey: .product)
+ try? container.encodeIfPresent(mapping, forKey: .mapping)
}
@@ -208,12 +201,12 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var storeIds: [Int]
+ public var product: ZoneProductTypes
+
public var regionType: String
public var mapping: [ZoneMappingType]
- public var product: ZoneProductTypes?
-
public enum CodingKeys: String, CodingKey {
@@ -229,15 +222,15 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case storeIds = "store_ids"
+ case product = "product"
+
case regionType = "region_type"
case mapping = "mapping"
- case product = "product"
-
}
- public init(channels: [GetZoneDataViewChannels], companyId: Int, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes? = nil, regionType: String, slug: String, storeIds: [Int]) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storeIds: [Int]) {
self.name = name
@@ -251,12 +244,12 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.storeIds = storeIds
+ self.product = product
+
self.regionType = regionType
self.mapping = mapping
- self.product = product
-
}
required public init(from decoder: Decoder) throws {
@@ -293,27 +286,20 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- regionType = try container.decode(String.self, forKey: .regionType)
+ product = try container.decode(ZoneProductTypes.self, forKey: .product)
- mapping = try container.decode([ZoneMappingType].self, forKey: .mapping)
+ regionType = try container.decode(String.self, forKey: .regionType)
- do {
- product = try container.decode(ZoneProductTypes.self, forKey: .product)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
+ mapping = try container.decode([ZoneMappingType].self, forKey: .mapping)
+
}
public func encode(to encoder: Encoder) throws {
@@ -351,17 +337,17 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- try? container.encodeIfPresent(regionType, forKey: .regionType)
+ try? container.encodeIfPresent(product, forKey: .product)
- try? container.encodeIfPresent(mapping, forKey: .mapping)
+ try? container.encodeIfPresent(regionType, forKey: .regionType)
- try? container.encodeIfPresent(product, forKey: .product)
+ try? container.encodeIfPresent(mapping, forKey: .mapping)
}
diff --git a/Sources/code/platform/Models/Serviceability/CreatedByResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CreatedByResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..e1e524cd10
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/CreatedByResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: CreatedByResponse
+ Used By: Serviceability
+ */
+
+ class CreatedByResponse: Codable {
+
+
+ public var username: String?
+
+ public var userId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case username = "username"
+
+ case userId = "user_id"
+
+ }
+
+ public init(username: String? = nil, userId: String? = nil) {
+
+ self.username = username
+
+ self.userId = userId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(username, forKey: .username)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: CreatedByResponse
+ Used By: Serviceability
+ */
+
+ class CreatedByResponse: Codable {
+
+
+ public var username: String?
+
+ public var userId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case username = "username"
+
+ case userId = "user_id"
+
+ }
+
+ public init(username: String? = nil, userId: String? = nil) {
+
+ self.username = username
+
+ self.userId = userId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(username, forKey: .username)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/CreatedByResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/CreatedByResultServiceabilityPlatformModel.swift
deleted file mode 100644
index e722d194a1..0000000000
--- a/Sources/code/platform/Models/Serviceability/CreatedByResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: CreatedByResult
- Used By: Serviceability
- */
-
- class CreatedByResult: Codable {
-
-
- public var username: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case username = "username"
-
- case userId = "user_id"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.username = username
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(username, forKey: .username)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: CreatedByResult
- Used By: Serviceability
- */
-
- class CreatedByResult: Codable {
-
-
- public var username: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case username = "username"
-
- case userId = "user_id"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.username = username
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(username, forKey: .username)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/DocumentsResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/DocumentsResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..f6eb41d3f8
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/DocumentsResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,254 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: DocumentsResponse
+ Used By: Serviceability
+ */
+
+ class DocumentsResponse: Codable {
+
+
+ public var legalName: String?
+
+ public var value: String?
+
+ public var type: String?
+
+ public var verified: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case legalName = "legal_name"
+
+ case value = "value"
+
+ case type = "type"
+
+ case verified = "verified"
+
+ }
+
+ public init(legalName: String? = nil, type: String? = nil, value: String? = nil, verified: Bool? = nil) {
+
+ self.legalName = legalName
+
+ self.value = value
+
+ self.type = type
+
+ self.verified = verified
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ legalName = try container.decode(String.self, forKey: .legalName)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(legalName, forKey: .legalName)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(verified, forKey: .verified)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: DocumentsResponse
+ Used By: Serviceability
+ */
+
+ class DocumentsResponse: Codable {
+
+
+ public var legalName: String?
+
+ public var value: String?
+
+ public var type: String?
+
+ public var verified: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case legalName = "legal_name"
+
+ case value = "value"
+
+ case type = "type"
+
+ case verified = "verified"
+
+ }
+
+ public init(legalName: String? = nil, type: String? = nil, value: String? = nil, verified: Bool? = nil) {
+
+ self.legalName = legalName
+
+ self.value = value
+
+ self.type = type
+
+ self.verified = verified
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ legalName = try container.decode(String.self, forKey: .legalName)
+
+ } 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 {
+
+ }
+
+
+
+ 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 {
+ 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 {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(legalName, forKey: .legalName)
+
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+
+
+ try? container.encodeIfPresent(verified, forKey: .verified)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/DocumentsResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/DocumentsResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 59732e2885..0000000000
--- a/Sources/code/platform/Models/Serviceability/DocumentsResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: DocumentsResult
- Used By: Serviceability
- */
-
- class DocumentsResult: Codable {
-
-
- public var legalName: String?
-
- public var value: String?
-
- public var type: String?
-
- public var verified: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case legalName = "legal_name"
-
- case value = "value"
-
- case type = "type"
-
- case verified = "verified"
-
- }
-
- public init(legalName: String? = nil, type: String? = nil, value: String? = nil, verified: Bool? = nil) {
-
- self.legalName = legalName
-
- self.value = value
-
- self.type = type
-
- self.verified = verified
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- legalName = try container.decode(String.self, forKey: .legalName)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(legalName, forKey: .legalName)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(verified, forKey: .verified)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: DocumentsResult
- Used By: Serviceability
- */
-
- class DocumentsResult: Codable {
-
-
- public var legalName: String?
-
- public var value: String?
-
- public var type: String?
-
- public var verified: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case legalName = "legal_name"
-
- case value = "value"
-
- case type = "type"
-
- case verified = "verified"
-
- }
-
- public init(legalName: String? = nil, type: String? = nil, value: String? = nil, verified: Bool? = nil) {
-
- self.legalName = legalName
-
- self.value = value
-
- self.type = type
-
- self.verified = verified
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- legalName = try container.decode(String.self, forKey: .legalName)
-
- } 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 {
-
- }
-
-
-
- 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 {
- 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 {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(legalName, forKey: .legalName)
-
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
-
-
- try? container.encodeIfPresent(verified, forKey: .verified)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/EinvoiceResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EinvoiceResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..a3fabfee18
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/EinvoiceResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: EinvoiceResponse
+ Used By: Serviceability
+ */
+
+ class EinvoiceResponse: Codable {
+
+
+ public var enabled: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ }
+
+ public init(enabled: Bool? = nil) {
+
+ self.enabled = enabled
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: EinvoiceResponse
+ Used By: Serviceability
+ */
+
+ class EinvoiceResponse: Codable {
+
+
+ public var enabled: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ }
+
+ public init(enabled: Bool? = nil) {
+
+ self.enabled = enabled
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/EinvoiceResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EinvoiceResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 0834426b39..0000000000
--- a/Sources/code/platform/Models/Serviceability/EinvoiceResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: EinvoiceResult
- Used By: Serviceability
- */
-
- class EinvoiceResult: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: EinvoiceResult
- Used By: Serviceability
- */
-
- class EinvoiceResult: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/EntityRegionView_DetailsServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EntityRegionView_DetailsServiceabilityPlatformModel.swift
deleted file mode 100644
index 53cc1aed95..0000000000
--- a/Sources/code/platform/Models/Serviceability/EntityRegionView_DetailsServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: EntityRegionView_Details
- Used By: Serviceability
- */
-
- class EntityRegionView_Details: Codable {
-
-
- public var subType: [String]
-
- public var parentId: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subType = "sub_type"
-
- case parentId = "parent_id"
-
- }
-
- public init(parentId: [String]? = nil, subType: [String]) {
-
- self.subType = subType
-
- self.parentId = parentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- subType = try container.decode([String].self, forKey: .subType)
-
-
-
-
- do {
- parentId = try container.decode([String].self, forKey: .parentId)
-
- } 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(subType, forKey: .subType)
-
-
-
-
- try? container.encodeIfPresent(parentId, forKey: .parentId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: EntityRegionView_Details
- Used By: Serviceability
- */
-
- class EntityRegionView_Details: Codable {
-
-
- public var subType: [String]
-
- public var parentId: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case subType = "sub_type"
-
- case parentId = "parent_id"
-
- }
-
- public init(parentId: [String]? = nil, subType: [String]) {
-
- self.subType = subType
-
- self.parentId = parentId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- subType = try container.decode([String].self, forKey: .subType)
-
-
-
-
- do {
- parentId = try container.decode([String].self, forKey: .parentId)
-
- } 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(subType, forKey: .subType)
-
-
-
-
- try? container.encodeIfPresent(parentId, forKey: .parentId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/EntityRegionView_RequestServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EntityRegionView_RequestServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..57f5f55efa
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/EntityRegionView_RequestServiceabilityPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: EntityRegionView_Request
+ Used By: Serviceability
+ */
+
+ class EntityRegionView_Request: Codable {
+
+
+ public var subType: [String]
+
+ public var parentId: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subType = "sub_type"
+
+ case parentId = "parent_id"
+
+ }
+
+ public init(parentId: [String]? = nil, subType: [String]) {
+
+ self.subType = subType
+
+ self.parentId = parentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ subType = try container.decode([String].self, forKey: .subType)
+
+
+
+
+ do {
+ parentId = try container.decode([String].self, forKey: .parentId)
+
+ } 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(subType, forKey: .subType)
+
+
+
+
+ try? container.encodeIfPresent(parentId, forKey: .parentId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: EntityRegionView_Request
+ Used By: Serviceability
+ */
+
+ class EntityRegionView_Request: Codable {
+
+
+ public var subType: [String]
+
+ public var parentId: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case subType = "sub_type"
+
+ case parentId = "parent_id"
+
+ }
+
+ public init(parentId: [String]? = nil, subType: [String]) {
+
+ self.subType = subType
+
+ self.parentId = parentId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ subType = try container.decode([String].self, forKey: .subType)
+
+
+
+
+ do {
+ parentId = try container.decode([String].self, forKey: .parentId)
+
+ } 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(subType, forKey: .subType)
+
+
+
+
+ try? container.encodeIfPresent(parentId, forKey: .parentId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/EntityRegionView_ResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EntityRegionView_ResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..7bde142c5b
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/EntityRegionView_ResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,198 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: EntityRegionView_Response
+ Used By: Serviceability
+ */
+
+ class EntityRegionView_Response: Codable {
+
+
+ public var error: EntityRegionView_Error
+
+ public var page: EntityRegionView_page
+
+ public var data: [EntityRegionView_Items]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case page = "page"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [EntityRegionView_Items], error: EntityRegionView_Error, page: EntityRegionView_page, success: Bool) {
+
+ self.error = error
+
+ self.page = page
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ error = try container.decode(EntityRegionView_Error.self, forKey: .error)
+
+
+
+
+ page = try container.decode(EntityRegionView_page.self, forKey: .page)
+
+
+
+
+ data = try container.decode([EntityRegionView_Items].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: EntityRegionView_Response
+ Used By: Serviceability
+ */
+
+ class EntityRegionView_Response: Codable {
+
+
+ public var error: EntityRegionView_Error
+
+ public var page: EntityRegionView_page
+
+ public var data: [EntityRegionView_Items]
+
+ public var success: Bool
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case error = "error"
+
+ case page = "page"
+
+ case data = "data"
+
+ case success = "success"
+
+ }
+
+ public init(data: [EntityRegionView_Items], error: EntityRegionView_Error, page: EntityRegionView_page, success: Bool) {
+
+ self.error = error
+
+ self.page = page
+
+ self.data = data
+
+ self.success = success
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ error = try container.decode(EntityRegionView_Error.self, forKey: .error)
+
+
+
+
+ page = try container.decode(EntityRegionView_page.self, forKey: .page)
+
+
+
+
+ data = try container.decode([EntityRegionView_Items].self, forKey: .data)
+
+
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/EntityRegionView_ResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EntityRegionView_ResultServiceabilityPlatformModel.swift
deleted file mode 100644
index e18ab11d68..0000000000
--- a/Sources/code/platform/Models/Serviceability/EntityRegionView_ResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: EntityRegionView_Result
- Used By: Serviceability
- */
-
- class EntityRegionView_Result: Codable {
-
-
- public var error: EntityRegionView_Error
-
- public var page: EntityRegionView_page
-
- public var data: [EntityRegionView_Items]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case page = "page"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [EntityRegionView_Items], error: EntityRegionView_Error, page: EntityRegionView_page, success: Bool) {
-
- self.error = error
-
- self.page = page
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- error = try container.decode(EntityRegionView_Error.self, forKey: .error)
-
-
-
-
- page = try container.decode(EntityRegionView_page.self, forKey: .page)
-
-
-
-
- data = try container.decode([EntityRegionView_Items].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: EntityRegionView_Result
- Used By: Serviceability
- */
-
- class EntityRegionView_Result: Codable {
-
-
- public var error: EntityRegionView_Error
-
- public var page: EntityRegionView_page
-
- public var data: [EntityRegionView_Items]
-
- public var success: Bool
-
-
- public enum CodingKeys: String, CodingKey {
-
- case error = "error"
-
- case page = "page"
-
- case data = "data"
-
- case success = "success"
-
- }
-
- public init(data: [EntityRegionView_Items], error: EntityRegionView_Error, page: EntityRegionView_page, success: Bool) {
-
- self.error = error
-
- self.page = page
-
- self.data = data
-
- self.success = success
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- error = try container.decode(EntityRegionView_Error.self, forKey: .error)
-
-
-
-
- page = try container.decode(EntityRegionView_page.self, forKey: .page)
-
-
-
-
- data = try container.decode([EntityRegionView_Items].self, forKey: .data)
-
-
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ErrorResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ErrorResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..9032dcbb5b
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ErrorResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,166 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ErrorResponse
+ Used By: Serviceability
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var value: String
+
+ public var message: String
+
+ public var type: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case value = "value"
+
+ case message = "message"
+
+ case type = "type"
+
+ }
+
+ public init(message: String, type: String, value: String) {
+
+ self.value = value
+
+ self.message = message
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ value = try container.decode(String.self, forKey: .value)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ type = try container.decode(String.self, forKey: .type)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ErrorResponse
+ Used By: Serviceability
+ */
+
+ class ErrorResponse: Codable {
+
+
+ public var value: String
+
+ public var message: String
+
+ public var type: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case value = "value"
+
+ case message = "message"
+
+ case type = "type"
+
+ }
+
+ public init(message: String, type: String, value: String) {
+
+ self.value = value
+
+ self.message = message
+
+ self.type = type
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ value = try container.decode(String.self, forKey: .value)
+
+
+
+
+ message = try container.decode(String.self, forKey: .message)
+
+
+
+
+ type = try container.decode(String.self, forKey: .type)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(value, forKey: .value)
+
+
+
+
+ try? container.encodeIfPresent(message, forKey: .message)
+
+
+
+
+ try? container.encodeIfPresent(type, forKey: .type)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ErrorResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ErrorResultServiceabilityPlatformModel.swift
deleted file mode 100644
index e8a2c9b61e..0000000000
--- a/Sources/code/platform/Models/Serviceability/ErrorResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ErrorResult
- Used By: Serviceability
- */
-
- class ErrorResult: Codable {
-
-
- public var value: String
-
- public var message: String
-
- public var type: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case message = "message"
-
- case type = "type"
-
- }
-
- public init(message: String, type: String, value: String) {
-
- self.value = value
-
- self.message = message
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ErrorResult
- Used By: Serviceability
- */
-
- class ErrorResult: Codable {
-
-
- public var value: String
-
- public var message: String
-
- public var type: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case value = "value"
-
- case message = "message"
-
- case type = "type"
-
- }
-
- public init(message: String, type: String, value: String) {
-
- self.value = value
-
- self.message = message
-
- self.type = type
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- value = try container.decode(String.self, forKey: .value)
-
-
-
-
- message = try container.decode(String.self, forKey: .message)
-
-
-
-
- type = try container.decode(String.self, forKey: .type)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(value, forKey: .value)
-
-
-
-
- try? container.encodeIfPresent(message, forKey: .message)
-
-
-
-
- try? container.encodeIfPresent(type, forKey: .type)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/EwayBillResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EwayBillResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..720bd12f3e
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/EwayBillResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,116 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: EwayBillResponse
+ Used By: Serviceability
+ */
+
+ class EwayBillResponse: Codable {
+
+
+ public var enabled: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ }
+
+ public init(enabled: Bool? = nil) {
+
+ self.enabled = enabled
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: EwayBillResponse
+ Used By: Serviceability
+ */
+
+ class EwayBillResponse: Codable {
+
+
+ public var enabled: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case enabled = "enabled"
+
+ }
+
+ public init(enabled: Bool? = nil) {
+
+ self.enabled = enabled
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(enabled, forKey: .enabled)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/EwayBillResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/EwayBillResultServiceabilityPlatformModel.swift
deleted file mode 100644
index feab67a567..0000000000
--- a/Sources/code/platform/Models/Serviceability/EwayBillResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: EwayBillResult
- Used By: Serviceability
- */
-
- class EwayBillResult: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: EwayBillResult
- Used By: Serviceability
- */
-
- class EwayBillResult: Codable {
-
-
- public var enabled: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case enabled = "enabled"
-
- }
-
- public init(enabled: Bool? = nil) {
-
- self.enabled = enabled
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(enabled, forKey: .enabled)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/FailureResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/FailureResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..d4af4619d2
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/FailureResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: FailureResponse
+ Used By: Serviceability
+ */
+
+ class FailureResponse: Codable {
+
+
+ public var success: Bool
+
+ public var error: [ErrorResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: [ErrorResponse], success: Bool) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ error = try container.decode([ErrorResponse].self, forKey: .error)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: FailureResponse
+ Used By: Serviceability
+ */
+
+ class FailureResponse: Codable {
+
+
+ public var success: Bool
+
+ public var error: [ErrorResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case success = "success"
+
+ case error = "error"
+
+ }
+
+ public init(error: [ErrorResponse], success: Bool) {
+
+ self.success = success
+
+ self.error = error
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ success = try container.decode(Bool.self, forKey: .success)
+
+
+
+
+ error = try container.decode([ErrorResponse].self, forKey: .error)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(success, forKey: .success)
+
+
+
+
+ try? container.encodeIfPresent(error, forKey: .error)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/FailureResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/FailureResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 76fcbf40a9..0000000000
--- a/Sources/code/platform/Models/Serviceability/FailureResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: FailureResult
- Used By: Serviceability
- */
-
- class FailureResult: Codable {
-
-
- public var success: Bool
-
- public var error: [ErrorResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: [ErrorResult], success: Bool) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- error = try container.decode([ErrorResult].self, forKey: .error)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: FailureResult
- Used By: Serviceability
- */
-
- class FailureResult: Codable {
-
-
- public var success: Bool
-
- public var error: [ErrorResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case success = "success"
-
- case error = "error"
-
- }
-
- public init(error: [ErrorResult], success: Bool) {
-
- self.success = success
-
- self.error = error
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- success = try container.decode(Bool.self, forKey: .success)
-
-
-
-
- error = try container.decode([ErrorResult].self, forKey: .error)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(success, forKey: .success)
-
-
-
-
- try? container.encodeIfPresent(error, forKey: .error)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..85517ad160
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,102 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetSingleZoneDataViewResponse
+ Used By: Serviceability
+ */
+
+ class GetSingleZoneDataViewResponse: Codable {
+
+
+ public var data: GetZoneDataViewItems
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetZoneDataViewItems) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(GetZoneDataViewItems.self, forKey: .data)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetSingleZoneDataViewResponse
+ Used By: Serviceability
+ */
+
+ class GetSingleZoneDataViewResponse: Codable {
+
+
+ public var data: GetZoneDataViewItems
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case data = "data"
+
+ }
+
+ public init(data: GetZoneDataViewItems) {
+
+ self.data = data
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ data = try container.decode(GetZoneDataViewItems.self, forKey: .data)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(data, forKey: .data)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 81caf25258..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetSingleZoneDataViewResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetSingleZoneDataViewResult
- Used By: Serviceability
- */
-
- class GetSingleZoneDataViewResult: Codable {
-
-
- public var data: GetZoneDataViewItems
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: GetZoneDataViewItems) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(GetZoneDataViewItems.self, forKey: .data)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetSingleZoneDataViewResult
- Used By: Serviceability
- */
-
- class GetSingleZoneDataViewResult: Codable {
-
-
- public var data: GetZoneDataViewItems
-
-
- public enum CodingKeys: String, CodingKey {
-
- case data = "data"
-
- }
-
- public init(data: GetZoneDataViewItems) {
-
- self.data = data
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- data = try container.decode(GetZoneDataViewItems.self, forKey: .data)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(data, forKey: .data)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..9c70192197
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetStoreRulesApiResponse
+ Used By: Serviceability
+ */
+
+ class GetStoreRulesApiResponse: Codable {
+
+
+ public var items: [StoreRuleDataSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [StoreRuleDataSchema]? = nil, page: Page? = nil) {
+
+ 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([StoreRuleDataSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetStoreRulesApiResponse
+ Used By: Serviceability
+ */
+
+ class GetStoreRulesApiResponse: Codable {
+
+
+ public var items: [StoreRuleDataSchema]?
+
+ public var page: Page?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case items = "items"
+
+ case page = "page"
+
+ }
+
+ public init(items: [StoreRuleDataSchema]? = nil, page: Page? = nil) {
+
+ 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([StoreRuleDataSchema].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)
+
+ } 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResultServiceabilityPlatformModel.swift
deleted file mode 100644
index d2d4fe9938..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetStoreRulesApiResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetStoreRulesApiResult
- Used By: Serviceability
- */
-
- class GetStoreRulesApiResult: Codable {
-
-
- public var items: [StoreRuleDataSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [StoreRuleDataSchema]? = nil, page: Page? = nil) {
-
- 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([StoreRuleDataSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetStoreRulesApiResult
- Used By: Serviceability
- */
-
- class GetStoreRulesApiResult: Codable {
-
-
- public var items: [StoreRuleDataSchema]?
-
- public var page: Page?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case items = "items"
-
- case page = "page"
-
- }
-
- public init(items: [StoreRuleDataSchema]? = nil, page: Page? = nil) {
-
- 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([StoreRuleDataSchema].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)
-
- } 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetStoresViewResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetStoresViewResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..64232b38fe
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetStoresViewResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetStoresViewResponse
+ Used By: Serviceability
+ */
+
+ class GetStoresViewResponse: Codable {
+
+
+ public var page: ServiceabilityPageResponse
+
+ public var items: [ItemResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ItemResponse]? = nil, page: ServiceabilityPageResponse) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode(ServiceabilityPageResponse.self, forKey: .page)
+
+
+
+
+ do {
+ items = try container.decode([ItemResponse].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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetStoresViewResponse
+ Used By: Serviceability
+ */
+
+ class GetStoresViewResponse: Codable {
+
+
+ public var page: ServiceabilityPageResponse
+
+ public var items: [ItemResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ItemResponse]? = nil, page: ServiceabilityPageResponse) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode(ServiceabilityPageResponse.self, forKey: .page)
+
+
+
+
+ do {
+ items = try container.decode([ItemResponse].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(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetStoresViewResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetStoresViewResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 6c1144b33a..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetStoresViewResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetStoresViewResult
- Used By: Serviceability
- */
-
- class GetStoresViewResult: Codable {
-
-
- public var page: ServiceabilityPageResult
-
- public var items: [ItemResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ItemResult]? = nil, page: ServiceabilityPageResult) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode(ServiceabilityPageResult.self, forKey: .page)
-
-
-
-
- do {
- items = try container.decode([ItemResult].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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetStoresViewResult
- Used By: Serviceability
- */
-
- class GetStoresViewResult: Codable {
-
-
- public var page: ServiceabilityPageResult
-
- public var items: [ItemResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ItemResult]? = nil, page: ServiceabilityPageResult) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode(ServiceabilityPageResult.self, forKey: .page)
-
-
-
-
- do {
- items = try container.decode([ItemResult].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(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneByIdSchemaServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneByIdSchemaServiceabilityPlatformModel.swift
index bb8773d7b0..f274f458e4 100644
--- a/Sources/code/platform/Models/Serviceability/GetZoneByIdSchemaServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/GetZoneByIdSchemaServiceabilityPlatformModel.swift
@@ -32,8 +32,6 @@ public extension PlatformClient.Serviceability {
public var mapping: [ZoneMappingDetailType]
- public var storesCount: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -57,11 +55,9 @@ public extension PlatformClient.Serviceability {
case mapping = "mapping"
- case storesCount = "stores_count"
-
}
- public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingDetailType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storesCount: Int? = nil, storeIds: [Int], zoneId: String) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingDetailType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storeIds: [Int], zoneId: String) {
self.zoneId = zoneId
@@ -83,8 +79,6 @@ public extension PlatformClient.Serviceability {
self.mapping = mapping
- self.storesCount = storesCount
-
}
required public init(from decoder: Decoder) throws {
@@ -147,18 +141,6 @@ public extension PlatformClient.Serviceability {
-
- do {
- storesCount = try container.decode(Int.self, forKey: .storesCount)
-
- } 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 {
@@ -214,11 +196,6 @@ public extension PlatformClient.Serviceability {
try? container.encodeIfPresent(mapping, forKey: .mapping)
-
-
- try? container.encodeIfPresent(storesCount, forKey: .storesCount)
-
-
}
}
@@ -255,8 +232,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var mapping: [ZoneMappingDetailType]
- public var storesCount: Int?
-
public enum CodingKeys: String, CodingKey {
@@ -280,11 +255,9 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case mapping = "mapping"
- case storesCount = "stores_count"
-
}
- public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingDetailType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storesCount: Int? = nil, storeIds: [Int], zoneId: String) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingDetailType], name: String, product: ZoneProductTypes, regionType: String, slug: String, storeIds: [Int], zoneId: String) {
self.zoneId = zoneId
@@ -306,8 +279,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.mapping = mapping
- self.storesCount = storesCount
-
}
required public init(from decoder: Decoder) throws {
@@ -370,18 +341,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
-
- do {
- storesCount = try container.decode(Int.self, forKey: .storesCount)
-
- } 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 {
@@ -437,11 +396,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
try? container.encodeIfPresent(mapping, forKey: .mapping)
-
-
- try? container.encodeIfPresent(storesCount, forKey: .storesCount)
-
-
}
}
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneDataViewItemsServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneDataViewItemsServiceabilityPlatformModel.swift
index da59ed7da2..226bb8cbf6 100644
--- a/Sources/code/platform/Models/Serviceability/GetZoneDataViewItemsServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/GetZoneDataViewItemsServiceabilityPlatformModel.swift
@@ -32,8 +32,6 @@ public extension PlatformClient.Serviceability {
public var mapping: [ZoneMappingType]
- public var assignmentPreference: String?
-
public var storesCount: Int
@@ -59,13 +57,11 @@ public extension PlatformClient.Serviceability {
case mapping = "mapping"
- case assignmentPreference = "assignment_preference"
-
case storesCount = "stores_count"
}
- public init(assignmentPreference: String? = nil, channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String? = nil, slug: String, storesCount: Int, storeIds: [Int], zoneId: String) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String? = nil, slug: String, storesCount: Int, storeIds: [Int], zoneId: String) {
self.zoneId = zoneId
@@ -87,8 +83,6 @@ public extension PlatformClient.Serviceability {
self.mapping = mapping
- self.assignmentPreference = assignmentPreference
-
self.storesCount = storesCount
}
@@ -161,18 +155,6 @@ public extension PlatformClient.Serviceability {
- do {
- assignmentPreference = try container.decode(String.self, forKey: .assignmentPreference)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
storesCount = try container.decode(Int.self, forKey: .storesCount)
@@ -234,11 +216,6 @@ public extension PlatformClient.Serviceability {
- try? container.encodeIfPresent(assignmentPreference, forKey: .assignmentPreference)
-
-
-
-
try? container.encodeIfPresent(storesCount, forKey: .storesCount)
@@ -278,8 +255,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var mapping: [ZoneMappingType]
- public var assignmentPreference: String?
-
public var storesCount: Int
@@ -305,13 +280,11 @@ public extension PlatformClient.ApplicationClient.Serviceability {
case mapping = "mapping"
- case assignmentPreference = "assignment_preference"
-
case storesCount = "stores_count"
}
- public init(assignmentPreference: String? = nil, channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String? = nil, slug: String, storesCount: Int, storeIds: [Int], zoneId: String) {
+ public init(channels: [GetZoneDataViewChannels], companyId: Int? = nil, isActive: Bool, mapping: [ZoneMappingType], name: String, product: ZoneProductTypes, regionType: String? = nil, slug: String, storesCount: Int, storeIds: [Int], zoneId: String) {
self.zoneId = zoneId
@@ -333,8 +306,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
self.mapping = mapping
- self.assignmentPreference = assignmentPreference
-
self.storesCount = storesCount
}
@@ -407,18 +378,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- do {
- assignmentPreference = try container.decode(String.self, forKey: .assignmentPreference)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
storesCount = try container.decode(Int.self, forKey: .storesCount)
@@ -480,11 +439,6 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- try? container.encodeIfPresent(assignmentPreference, forKey: .assignmentPreference)
-
-
-
-
try? container.encodeIfPresent(storesCount, forKey: .storesCount)
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..3838a251de
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetZoneFromApplicationIdViewResponse
+ Used By: Serviceability
+ */
+
+ class GetZoneFromApplicationIdViewResponse: Codable {
+
+
+ public var page: [ZoneDataItem]
+
+ public var items: [ListViewItems]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ListViewItems], page: [ZoneDataItem]) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode([ZoneDataItem].self, forKey: .page)
+
+
+
+
+ items = try container.decode([ListViewItems].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetZoneFromApplicationIdViewResponse
+ Used By: Serviceability
+ */
+
+ class GetZoneFromApplicationIdViewResponse: Codable {
+
+
+ public var page: [ZoneDataItem]
+
+ public var items: [ListViewItems]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ListViewItems], page: [ZoneDataItem]) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode([ZoneDataItem].self, forKey: .page)
+
+
+
+
+ items = try container.decode([ListViewItems].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 5c92221fc4..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetZoneFromApplicationIdViewResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetZoneFromApplicationIdViewResult
- Used By: Serviceability
- */
-
- class GetZoneFromApplicationIdViewResult: Codable {
-
-
- public var page: [ZoneDataItem]
-
- public var items: [ListViewItems]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ListViewItems], page: [ZoneDataItem]) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode([ZoneDataItem].self, forKey: .page)
-
-
-
-
- items = try container.decode([ListViewItems].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetZoneFromApplicationIdViewResult
- Used By: Serviceability
- */
-
- class GetZoneFromApplicationIdViewResult: Codable {
-
-
- public var page: [ZoneDataItem]
-
- public var items: [ListViewItems]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ListViewItems], page: [ZoneDataItem]) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode([ZoneDataItem].self, forKey: .page)
-
-
-
-
- items = try container.decode([ListViewItems].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewDetailsServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewDetailsServiceabilityPlatformModel.swift
deleted file mode 100644
index 07bcf9042e..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewDetailsServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetZoneFromPincodeViewDetails
- Used By: Serviceability
- */
-
- class GetZoneFromPincodeViewDetails: Codable {
-
-
- public var country: String
-
- public var pincode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case country = "country"
-
- case pincode = "pincode"
-
- }
-
- public init(country: String, pincode: String) {
-
- self.country = country
-
- self.pincode = pincode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- pincode = try container.decode(String.self, forKey: .pincode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetZoneFromPincodeViewDetails
- Used By: Serviceability
- */
-
- class GetZoneFromPincodeViewDetails: Codable {
-
-
- public var country: String
-
- public var pincode: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case country = "country"
-
- case pincode = "pincode"
-
- }
-
- public init(country: String, pincode: String) {
-
- self.country = country
-
- self.pincode = pincode
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- country = try container.decode(String.self, forKey: .country)
-
-
-
-
- pincode = try container.decode(String.self, forKey: .pincode)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(country, forKey: .country)
-
-
-
-
- try? container.encodeIfPresent(pincode, forKey: .pincode)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewRequestServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewRequestServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..87aad24cd2
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewRequestServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetZoneFromPincodeViewRequest
+ Used By: Serviceability
+ */
+
+ class GetZoneFromPincodeViewRequest: Codable {
+
+
+ public var country: String
+
+ public var pincode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case country = "country"
+
+ case pincode = "pincode"
+
+ }
+
+ public init(country: String, pincode: String) {
+
+ self.country = country
+
+ self.pincode = pincode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetZoneFromPincodeViewRequest
+ Used By: Serviceability
+ */
+
+ class GetZoneFromPincodeViewRequest: Codable {
+
+
+ public var country: String
+
+ public var pincode: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case country = "country"
+
+ case pincode = "pincode"
+
+ }
+
+ public init(country: String, pincode: String) {
+
+ self.country = country
+
+ self.pincode = pincode
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ country = try container.decode(String.self, forKey: .country)
+
+
+
+
+ pincode = try container.decode(String.self, forKey: .pincode)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(country, forKey: .country)
+
+
+
+
+ try? container.encodeIfPresent(pincode, forKey: .pincode)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..f587bb4740
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GetZoneFromPincodeViewResponse
+ Used By: Serviceability
+ */
+
+ class GetZoneFromPincodeViewResponse: Codable {
+
+
+ public var serviceabilityType: String
+
+ public var zones: [Zone]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case serviceabilityType = "serviceability_type"
+
+ case zones = "zones"
+
+ }
+
+ public init(serviceabilityType: String, zones: [Zone]) {
+
+ self.serviceabilityType = serviceabilityType
+
+ self.zones = zones
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
+
+
+
+
+ zones = try container.decode([Zone].self, forKey: .zones)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
+
+
+
+
+ try? container.encodeIfPresent(zones, forKey: .zones)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GetZoneFromPincodeViewResponse
+ Used By: Serviceability
+ */
+
+ class GetZoneFromPincodeViewResponse: Codable {
+
+
+ public var serviceabilityType: String
+
+ public var zones: [Zone]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case serviceabilityType = "serviceability_type"
+
+ case zones = "zones"
+
+ }
+
+ public init(serviceabilityType: String, zones: [Zone]) {
+
+ self.serviceabilityType = serviceabilityType
+
+ self.zones = zones
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
+
+
+
+
+ zones = try container.decode([Zone].self, forKey: .zones)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
+
+
+
+
+ try? container.encodeIfPresent(zones, forKey: .zones)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResultServiceabilityPlatformModel.swift
deleted file mode 100644
index c8de8887b7..0000000000
--- a/Sources/code/platform/Models/Serviceability/GetZoneFromPincodeViewResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GetZoneFromPincodeViewResult
- Used By: Serviceability
- */
-
- class GetZoneFromPincodeViewResult: Codable {
-
-
- public var serviceabilityType: String
-
- public var zones: [Zone]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case serviceabilityType = "serviceability_type"
-
- case zones = "zones"
-
- }
-
- public init(serviceabilityType: String, zones: [Zone]) {
-
- self.serviceabilityType = serviceabilityType
-
- self.zones = zones
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
-
-
-
-
- zones = try container.decode([Zone].self, forKey: .zones)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
-
-
-
-
- try? container.encodeIfPresent(zones, forKey: .zones)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GetZoneFromPincodeViewResult
- Used By: Serviceability
- */
-
- class GetZoneFromPincodeViewResult: Codable {
-
-
- public var serviceabilityType: String
-
- public var zones: [Zone]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case serviceabilityType = "serviceability_type"
-
- case zones = "zones"
-
- }
-
- public init(serviceabilityType: String, zones: [Zone]) {
-
- self.serviceabilityType = serviceabilityType
-
- self.zones = zones
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- serviceabilityType = try container.decode(String.self, forKey: .serviceabilityType)
-
-
-
-
- zones = try container.decode([Zone].self, forKey: .zones)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(serviceabilityType, forKey: .serviceabilityType)
-
-
-
-
- try? container.encodeIfPresent(zones, forKey: .zones)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/GstCredentialsResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GstCredentialsResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..0b2058adb4
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/GstCredentialsResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: GstCredentialsResponse
+ Used By: Serviceability
+ */
+
+ class GstCredentialsResponse: Codable {
+
+
+ public var eWaybill: EwayBillResponse?
+
+ public var eInvoice: EinvoiceResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case eWaybill = "e_waybill"
+
+ case eInvoice = "e_invoice"
+
+ }
+
+ public init(eInvoice: EinvoiceResponse? = nil, eWaybill: EwayBillResponse? = nil) {
+
+ self.eWaybill = eWaybill
+
+ self.eInvoice = eInvoice
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ eWaybill = try container.decode(EwayBillResponse.self, forKey: .eWaybill)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ eInvoice = try container.decode(EinvoiceResponse.self, forKey: .eInvoice)
+
+ } 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(eWaybill, forKey: .eWaybill)
+
+
+
+
+ try? container.encodeIfPresent(eInvoice, forKey: .eInvoice)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: GstCredentialsResponse
+ Used By: Serviceability
+ */
+
+ class GstCredentialsResponse: Codable {
+
+
+ public var eWaybill: EwayBillResponse?
+
+ public var eInvoice: EinvoiceResponse?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case eWaybill = "e_waybill"
+
+ case eInvoice = "e_invoice"
+
+ }
+
+ public init(eInvoice: EinvoiceResponse? = nil, eWaybill: EwayBillResponse? = nil) {
+
+ self.eWaybill = eWaybill
+
+ self.eInvoice = eInvoice
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ eWaybill = try container.decode(EwayBillResponse.self, forKey: .eWaybill)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ eInvoice = try container.decode(EinvoiceResponse.self, forKey: .eInvoice)
+
+ } 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(eWaybill, forKey: .eWaybill)
+
+
+
+
+ try? container.encodeIfPresent(eInvoice, forKey: .eInvoice)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/GstCredentialsResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/GstCredentialsResultServiceabilityPlatformModel.swift
deleted file mode 100644
index c18568e5e9..0000000000
--- a/Sources/code/platform/Models/Serviceability/GstCredentialsResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: GstCredentialsResult
- Used By: Serviceability
- */
-
- class GstCredentialsResult: Codable {
-
-
- public var eWaybill: EwayBillResult?
-
- public var eInvoice: EinvoiceResult?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eWaybill = "e_waybill"
-
- case eInvoice = "e_invoice"
-
- }
-
- public init(eInvoice: EinvoiceResult? = nil, eWaybill: EwayBillResult? = nil) {
-
- self.eWaybill = eWaybill
-
- self.eInvoice = eInvoice
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eWaybill = try container.decode(EwayBillResult.self, forKey: .eWaybill)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eInvoice = try container.decode(EinvoiceResult.self, forKey: .eInvoice)
-
- } 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(eWaybill, forKey: .eWaybill)
-
-
-
-
- try? container.encodeIfPresent(eInvoice, forKey: .eInvoice)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: GstCredentialsResult
- Used By: Serviceability
- */
-
- class GstCredentialsResult: Codable {
-
-
- public var eWaybill: EwayBillResult?
-
- public var eInvoice: EinvoiceResult?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case eWaybill = "e_waybill"
-
- case eInvoice = "e_invoice"
-
- }
-
- public init(eInvoice: EinvoiceResult? = nil, eWaybill: EwayBillResult? = nil) {
-
- self.eWaybill = eWaybill
-
- self.eInvoice = eInvoice
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- eWaybill = try container.decode(EwayBillResult.self, forKey: .eWaybill)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- eInvoice = try container.decode(EinvoiceResult.self, forKey: .eInvoice)
-
- } 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(eWaybill, forKey: .eWaybill)
-
-
-
-
- try? container.encodeIfPresent(eInvoice, forKey: .eInvoice)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/IntegrationTypeResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/IntegrationTypeResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..5c77a64566
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/IntegrationTypeResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: IntegrationTypeResponse
+ Used By: Serviceability
+ */
+
+ class IntegrationTypeResponse: Codable {
+
+
+ public var inventory: String?
+
+ public var order: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case inventory = "inventory"
+
+ case order = "order"
+
+ }
+
+ public init(inventory: String? = nil, order: String? = nil) {
+
+ 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 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 extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: IntegrationTypeResponse
+ Used By: Serviceability
+ */
+
+ class IntegrationTypeResponse: Codable {
+
+
+ public var inventory: String?
+
+ public var order: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case inventory = "inventory"
+
+ case order = "order"
+
+ }
+
+ public init(inventory: String? = nil, order: String? = nil) {
+
+ 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 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)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/IntegrationTypeResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/IntegrationTypeResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 216b3e6b7a..0000000000
--- a/Sources/code/platform/Models/Serviceability/IntegrationTypeResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: IntegrationTypeResult
- Used By: Serviceability
- */
-
- class IntegrationTypeResult: Codable {
-
-
- public var inventory: String?
-
- public var order: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case inventory = "inventory"
-
- case order = "order"
-
- }
-
- public init(inventory: String? = nil, order: String? = nil) {
-
- 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 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 extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: IntegrationTypeResult
- Used By: Serviceability
- */
-
- class IntegrationTypeResult: Codable {
-
-
- public var inventory: String?
-
- public var order: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case inventory = "inventory"
-
- case order = "order"
-
- }
-
- public init(inventory: String? = nil, order: String? = nil) {
-
- 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 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)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ItemResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ItemResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..b165d403ff
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ItemResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,1358 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ItemResponse
+ Used By: Serviceability
+ */
+
+ class ItemResponse: Codable {
+
+
+ public var createdOn: String?
+
+ public var manager: ManagerResponse?
+
+ public var modifiedBy: ModifiedByResponse?
+
+ public var integrationType: IntegrationTypeResponse?
+
+ public var verifiedOn: String?
+
+ public var productReturnConfig: ProductReturnConfigResponse?
+
+ public var contactNumbers: [ContactNumberResponse]?
+
+ public var verifiedBy: ModifiedByResponse?
+
+ public var stage: String?
+
+ public var address: AddressResponse?
+
+ public var modifiedOn: String?
+
+ public var createdBy: CreatedByResponse?
+
+ public var gstCredentials: GstCredentialsResponse?
+
+ public var displayName: String?
+
+ public var companyId: Int?
+
+ public var uid: Int?
+
+ public var customJson: [String: Any]?
+
+ public var code: String?
+
+ public var warnings: WarningsResponse?
+
+ public var name: String?
+
+ public var timing: [TimmingResponse]?
+
+ public var documents: [DocumentsResponse]?
+
+ public var storeType: String?
+
+ public var subType: String?
+
+ public var company: Int?
+
+ public var cls: String?
+
+ public var logistics: LogisticsResponse?
+
+ public var notificationEmails: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdOn = "created_on"
+
+ case manager = "manager"
+
+ case modifiedBy = "modified_by"
+
+ case integrationType = "integration_type"
+
+ case verifiedOn = "verified_on"
+
+ case productReturnConfig = "product_return_config"
+
+ case contactNumbers = "contact_numbers"
+
+ case verifiedBy = "verified_by"
+
+ case stage = "stage"
+
+ case address = "address"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ case gstCredentials = "gst_credentials"
+
+ case displayName = "display_name"
+
+ case companyId = "company_id"
+
+ case uid = "uid"
+
+ case customJson = "_custom_json"
+
+ case code = "code"
+
+ case warnings = "warnings"
+
+ case name = "name"
+
+ case timing = "timing"
+
+ case documents = "documents"
+
+ case storeType = "store_type"
+
+ case subType = "sub_type"
+
+ case company = "company"
+
+ case cls = "_cls"
+
+ case logistics = "logistics"
+
+ case notificationEmails = "notification_emails"
+
+ }
+
+ public init(address: AddressResponse? = nil, code: String? = nil, company: Int? = nil, companyId: Int? = nil, contactNumbers: [ContactNumberResponse]? = nil, createdBy: CreatedByResponse? = nil, createdOn: String? = nil, displayName: String? = nil, documents: [DocumentsResponse]? = nil, gstCredentials: GstCredentialsResponse? = nil, integrationType: IntegrationTypeResponse? = nil, logistics: LogisticsResponse? = nil, manager: ManagerResponse? = nil, modifiedBy: ModifiedByResponse? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, productReturnConfig: ProductReturnConfigResponse? = nil, stage: String? = nil, storeType: String? = nil, subType: String? = nil, timing: [TimmingResponse]? = nil, uid: Int? = nil, verifiedBy: ModifiedByResponse? = nil, verifiedOn: String? = nil, warnings: WarningsResponse? = nil, cls: String? = nil, customJson: [String: Any]? = nil) {
+
+ self.createdOn = createdOn
+
+ self.manager = manager
+
+ self.modifiedBy = modifiedBy
+
+ self.integrationType = integrationType
+
+ self.verifiedOn = verifiedOn
+
+ self.productReturnConfig = productReturnConfig
+
+ self.contactNumbers = contactNumbers
+
+ self.verifiedBy = verifiedBy
+
+ self.stage = stage
+
+ self.address = address
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ self.gstCredentials = gstCredentials
+
+ self.displayName = displayName
+
+ self.companyId = companyId
+
+ self.uid = uid
+
+ self.customJson = customJson
+
+ self.code = code
+
+ self.warnings = warnings
+
+ self.name = name
+
+ self.timing = timing
+
+ self.documents = documents
+
+ self.storeType = storeType
+
+ self.subType = subType
+
+ self.company = company
+
+ self.cls = cls
+
+ self.logistics = logistics
+
+ self.notificationEmails = notificationEmails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ manager = try container.decode(ManagerResponse.self, forKey: .manager)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(ModifiedByResponse.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ integrationType = try container.decode(IntegrationTypeResponse.self, forKey: .integrationType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ productReturnConfig = try container.decode(ProductReturnConfigResponse.self, forKey: .productReturnConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ contactNumbers = try container.decode([ContactNumberResponse].self, forKey: .contactNumbers)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ verifiedBy = try container.decode(ModifiedByResponse.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ address = try container.decode(AddressResponse.self, forKey: .address)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ createdBy = try container.decode(CreatedByResponse.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstCredentials = try container.decode(GstCredentialsResponse.self, forKey: .gstCredentials)
+
+ } 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ warnings = try container.decode(WarningsResponse.self, forKey: .warnings)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ timing = try container.decode([TimmingResponse].self, forKey: .timing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ documents = try container.decode([DocumentsResponse].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 {
+
+ }
+
+
+
+ do {
+ subType = try container.decode(String.self, forKey: .subType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ company = try container.decode(Int.self, forKey: .company)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cls = try container.decode(String.self, forKey: .cls)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ logistics = try container.decode(LogisticsResponse.self, forKey: .logistics)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(subType, forKey: .subType)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(cls, forKey: .cls)
+
+
+
+
+ try? container.encodeIfPresent(logistics, forKey: .logistics)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ItemResponse
+ Used By: Serviceability
+ */
+
+ class ItemResponse: Codable {
+
+
+ public var createdOn: String?
+
+ public var manager: ManagerResponse?
+
+ public var modifiedBy: ModifiedByResponse?
+
+ public var integrationType: IntegrationTypeResponse?
+
+ public var verifiedOn: String?
+
+ public var productReturnConfig: ProductReturnConfigResponse?
+
+ public var contactNumbers: [ContactNumberResponse]?
+
+ public var verifiedBy: ModifiedByResponse?
+
+ public var stage: String?
+
+ public var address: AddressResponse?
+
+ public var modifiedOn: String?
+
+ public var createdBy: CreatedByResponse?
+
+ public var gstCredentials: GstCredentialsResponse?
+
+ public var displayName: String?
+
+ public var companyId: Int?
+
+ public var uid: Int?
+
+ public var customJson: [String: Any]?
+
+ public var code: String?
+
+ public var warnings: WarningsResponse?
+
+ public var name: String?
+
+ public var timing: [TimmingResponse]?
+
+ public var documents: [DocumentsResponse]?
+
+ public var storeType: String?
+
+ public var subType: String?
+
+ public var company: Int?
+
+ public var cls: String?
+
+ public var logistics: LogisticsResponse?
+
+ public var notificationEmails: [String]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case createdOn = "created_on"
+
+ case manager = "manager"
+
+ case modifiedBy = "modified_by"
+
+ case integrationType = "integration_type"
+
+ case verifiedOn = "verified_on"
+
+ case productReturnConfig = "product_return_config"
+
+ case contactNumbers = "contact_numbers"
+
+ case verifiedBy = "verified_by"
+
+ case stage = "stage"
+
+ case address = "address"
+
+ case modifiedOn = "modified_on"
+
+ case createdBy = "created_by"
+
+ case gstCredentials = "gst_credentials"
+
+ case displayName = "display_name"
+
+ case companyId = "company_id"
+
+ case uid = "uid"
+
+ case customJson = "_custom_json"
+
+ case code = "code"
+
+ case warnings = "warnings"
+
+ case name = "name"
+
+ case timing = "timing"
+
+ case documents = "documents"
+
+ case storeType = "store_type"
+
+ case subType = "sub_type"
+
+ case company = "company"
+
+ case cls = "_cls"
+
+ case logistics = "logistics"
+
+ case notificationEmails = "notification_emails"
+
+ }
+
+ public init(address: AddressResponse? = nil, code: String? = nil, company: Int? = nil, companyId: Int? = nil, contactNumbers: [ContactNumberResponse]? = nil, createdBy: CreatedByResponse? = nil, createdOn: String? = nil, displayName: String? = nil, documents: [DocumentsResponse]? = nil, gstCredentials: GstCredentialsResponse? = nil, integrationType: IntegrationTypeResponse? = nil, logistics: LogisticsResponse? = nil, manager: ManagerResponse? = nil, modifiedBy: ModifiedByResponse? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, productReturnConfig: ProductReturnConfigResponse? = nil, stage: String? = nil, storeType: String? = nil, subType: String? = nil, timing: [TimmingResponse]? = nil, uid: Int? = nil, verifiedBy: ModifiedByResponse? = nil, verifiedOn: String? = nil, warnings: WarningsResponse? = nil, cls: String? = nil, customJson: [String: Any]? = nil) {
+
+ self.createdOn = createdOn
+
+ self.manager = manager
+
+ self.modifiedBy = modifiedBy
+
+ self.integrationType = integrationType
+
+ self.verifiedOn = verifiedOn
+
+ self.productReturnConfig = productReturnConfig
+
+ self.contactNumbers = contactNumbers
+
+ self.verifiedBy = verifiedBy
+
+ self.stage = stage
+
+ self.address = address
+
+ self.modifiedOn = modifiedOn
+
+ self.createdBy = createdBy
+
+ self.gstCredentials = gstCredentials
+
+ self.displayName = displayName
+
+ self.companyId = companyId
+
+ self.uid = uid
+
+ self.customJson = customJson
+
+ self.code = code
+
+ self.warnings = warnings
+
+ self.name = name
+
+ self.timing = timing
+
+ self.documents = documents
+
+ self.storeType = storeType
+
+ self.subType = subType
+
+ self.company = company
+
+ self.cls = cls
+
+ self.logistics = logistics
+
+ self.notificationEmails = notificationEmails
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+ manager = try container.decode(ManagerResponse.self, forKey: .manager)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ modifiedBy = try container.decode(ModifiedByResponse.self, forKey: .modifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ integrationType = try container.decode(IntegrationTypeResponse.self, forKey: .integrationType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ productReturnConfig = try container.decode(ProductReturnConfigResponse.self, forKey: .productReturnConfig)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ contactNumbers = try container.decode([ContactNumberResponse].self, forKey: .contactNumbers)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ verifiedBy = try container.decode(ModifiedByResponse.self, forKey: .verifiedBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ address = try container.decode(AddressResponse.self, forKey: .address)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ 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 {
+ createdBy = try container.decode(CreatedByResponse.self, forKey: .createdBy)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ gstCredentials = try container.decode(GstCredentialsResponse.self, forKey: .gstCredentials)
+
+ } 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 {
+ 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 {
+ 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 {
+ 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 {
+ 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)
+ } catch {
+
+ }
+
+
+
+ do {
+ warnings = try container.decode(WarningsResponse.self, forKey: .warnings)
+
+ } 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 {
+
+ }
+
+
+
+ do {
+ timing = try container.decode([TimmingResponse].self, forKey: .timing)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ documents = try container.decode([DocumentsResponse].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 {
+
+ }
+
+
+
+ do {
+ subType = try container.decode(String.self, forKey: .subType)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ company = try container.decode(Int.self, forKey: .company)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ cls = try container.decode(String.self, forKey: .cls)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ logistics = try container.decode(LogisticsResponse.self, forKey: .logistics)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(createdOn, forKey: .createdOn)
+
+
+
+
+ try? container.encodeIfPresent(manager, forKey: .manager)
+
+
+
+
+ try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(integrationType, forKey: .integrationType)
+
+
+
+
+ try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
+
+
+
+
+ try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
+
+
+
+
+ try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
+
+
+
+
+ try? container.encodeIfPresent(stage, forKey: .stage)
+
+
+
+
+ try? container.encodeIfPresent(address, forKey: .address)
+
+
+
+
+ try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
+
+
+
+
+ try? container.encodeIfPresent(createdBy, forKey: .createdBy)
+
+
+
+
+ try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
+
+
+
+
+ try? container.encodeIfPresent(displayName, forKey: .displayName)
+
+
+
+
+ try? container.encodeIfPresent(companyId, forKey: .companyId)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+
+
+ try? container.encodeIfPresent(customJson, forKey: .customJson)
+
+
+
+
+ try? container.encodeIfPresent(code, forKey: .code)
+
+
+
+
+ try? container.encodeIfPresent(warnings, forKey: .warnings)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(timing, forKey: .timing)
+
+
+
+
+ try? container.encodeIfPresent(documents, forKey: .documents)
+
+
+
+
+ try? container.encodeIfPresent(storeType, forKey: .storeType)
+
+
+
+
+ try? container.encodeIfPresent(subType, forKey: .subType)
+
+
+
+
+ try? container.encodeIfPresent(company, forKey: .company)
+
+
+
+
+ try? container.encodeIfPresent(cls, forKey: .cls)
+
+
+
+
+ try? container.encodeIfPresent(logistics, forKey: .logistics)
+
+
+
+
+ try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ItemResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ItemResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 16105c3de7..0000000000
--- a/Sources/code/platform/Models/Serviceability/ItemResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,1358 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ItemResult
- Used By: Serviceability
- */
-
- class ItemResult: Codable {
-
-
- public var createdOn: String?
-
- public var manager: ManagerResult?
-
- public var modifiedBy: ModifiedByResult?
-
- public var integrationType: IntegrationTypeResult?
-
- public var verifiedOn: String?
-
- public var productReturnConfig: ProductReturnConfigResult?
-
- public var contactNumbers: [ContactNumberResult]?
-
- public var verifiedBy: ModifiedByResult?
-
- public var stage: String?
-
- public var address: AddressResult?
-
- public var modifiedOn: String?
-
- public var createdBy: CreatedByResult?
-
- public var gstCredentials: GstCredentialsResult?
-
- public var displayName: String?
-
- public var companyId: Int?
-
- public var uid: Int?
-
- public var customJson: [String: Any]?
-
- public var code: String?
-
- public var warnings: WarningsResult?
-
- public var name: String?
-
- public var timing: [TimmingResult]?
-
- public var documents: [DocumentsResult]?
-
- public var storeType: String?
-
- public var subType: String?
-
- public var company: Int?
-
- public var cls: String?
-
- public var logistics: LogisticsResult?
-
- public var notificationEmails: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdOn = "created_on"
-
- case manager = "manager"
-
- case modifiedBy = "modified_by"
-
- case integrationType = "integration_type"
-
- case verifiedOn = "verified_on"
-
- case productReturnConfig = "product_return_config"
-
- case contactNumbers = "contact_numbers"
-
- case verifiedBy = "verified_by"
-
- case stage = "stage"
-
- case address = "address"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- case gstCredentials = "gst_credentials"
-
- case displayName = "display_name"
-
- case companyId = "company_id"
-
- case uid = "uid"
-
- case customJson = "_custom_json"
-
- case code = "code"
-
- case warnings = "warnings"
-
- case name = "name"
-
- case timing = "timing"
-
- case documents = "documents"
-
- case storeType = "store_type"
-
- case subType = "sub_type"
-
- case company = "company"
-
- case cls = "_cls"
-
- case logistics = "logistics"
-
- case notificationEmails = "notification_emails"
-
- }
-
- public init(address: AddressResult? = nil, code: String? = nil, company: Int? = nil, companyId: Int? = nil, contactNumbers: [ContactNumberResult]? = nil, createdBy: CreatedByResult? = nil, createdOn: String? = nil, displayName: String? = nil, documents: [DocumentsResult]? = nil, gstCredentials: GstCredentialsResult? = nil, integrationType: IntegrationTypeResult? = nil, logistics: LogisticsResult? = nil, manager: ManagerResult? = nil, modifiedBy: ModifiedByResult? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, productReturnConfig: ProductReturnConfigResult? = nil, stage: String? = nil, storeType: String? = nil, subType: String? = nil, timing: [TimmingResult]? = nil, uid: Int? = nil, verifiedBy: ModifiedByResult? = nil, verifiedOn: String? = nil, warnings: WarningsResult? = nil, cls: String? = nil, customJson: [String: Any]? = nil) {
-
- self.createdOn = createdOn
-
- self.manager = manager
-
- self.modifiedBy = modifiedBy
-
- self.integrationType = integrationType
-
- self.verifiedOn = verifiedOn
-
- self.productReturnConfig = productReturnConfig
-
- self.contactNumbers = contactNumbers
-
- self.verifiedBy = verifiedBy
-
- self.stage = stage
-
- self.address = address
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- self.gstCredentials = gstCredentials
-
- self.displayName = displayName
-
- self.companyId = companyId
-
- self.uid = uid
-
- self.customJson = customJson
-
- self.code = code
-
- self.warnings = warnings
-
- self.name = name
-
- self.timing = timing
-
- self.documents = documents
-
- self.storeType = storeType
-
- self.subType = subType
-
- self.company = company
-
- self.cls = cls
-
- self.logistics = logistics
-
- self.notificationEmails = notificationEmails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- manager = try container.decode(ManagerResult.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedByResult.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- integrationType = try container.decode(IntegrationTypeResult.self, forKey: .integrationType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigResult.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- contactNumbers = try container.decode([ContactNumberResult].self, forKey: .contactNumbers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(ModifiedByResult.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(AddressResult.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedByResult.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(GstCredentialsResult.self, forKey: .gstCredentials)
-
- } 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 {
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- warnings = try container.decode(WarningsResult.self, forKey: .warnings)
-
- } 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 {
-
- }
-
-
-
- do {
- timing = try container.decode([TimmingResult].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- documents = try container.decode([DocumentsResult].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 {
-
- }
-
-
-
- do {
- subType = try container.decode(String.self, forKey: .subType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- company = try container.decode(Int.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cls = try container.decode(String.self, forKey: .cls)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logistics = try container.decode(LogisticsResult.self, forKey: .logistics)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(subType, forKey: .subType)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(cls, forKey: .cls)
-
-
-
-
- try? container.encodeIfPresent(logistics, forKey: .logistics)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ItemResult
- Used By: Serviceability
- */
-
- class ItemResult: Codable {
-
-
- public var createdOn: String?
-
- public var manager: ManagerResult?
-
- public var modifiedBy: ModifiedByResult?
-
- public var integrationType: IntegrationTypeResult?
-
- public var verifiedOn: String?
-
- public var productReturnConfig: ProductReturnConfigResult?
-
- public var contactNumbers: [ContactNumberResult]?
-
- public var verifiedBy: ModifiedByResult?
-
- public var stage: String?
-
- public var address: AddressResult?
-
- public var modifiedOn: String?
-
- public var createdBy: CreatedByResult?
-
- public var gstCredentials: GstCredentialsResult?
-
- public var displayName: String?
-
- public var companyId: Int?
-
- public var uid: Int?
-
- public var customJson: [String: Any]?
-
- public var code: String?
-
- public var warnings: WarningsResult?
-
- public var name: String?
-
- public var timing: [TimmingResult]?
-
- public var documents: [DocumentsResult]?
-
- public var storeType: String?
-
- public var subType: String?
-
- public var company: Int?
-
- public var cls: String?
-
- public var logistics: LogisticsResult?
-
- public var notificationEmails: [String]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case createdOn = "created_on"
-
- case manager = "manager"
-
- case modifiedBy = "modified_by"
-
- case integrationType = "integration_type"
-
- case verifiedOn = "verified_on"
-
- case productReturnConfig = "product_return_config"
-
- case contactNumbers = "contact_numbers"
-
- case verifiedBy = "verified_by"
-
- case stage = "stage"
-
- case address = "address"
-
- case modifiedOn = "modified_on"
-
- case createdBy = "created_by"
-
- case gstCredentials = "gst_credentials"
-
- case displayName = "display_name"
-
- case companyId = "company_id"
-
- case uid = "uid"
-
- case customJson = "_custom_json"
-
- case code = "code"
-
- case warnings = "warnings"
-
- case name = "name"
-
- case timing = "timing"
-
- case documents = "documents"
-
- case storeType = "store_type"
-
- case subType = "sub_type"
-
- case company = "company"
-
- case cls = "_cls"
-
- case logistics = "logistics"
-
- case notificationEmails = "notification_emails"
-
- }
-
- public init(address: AddressResult? = nil, code: String? = nil, company: Int? = nil, companyId: Int? = nil, contactNumbers: [ContactNumberResult]? = nil, createdBy: CreatedByResult? = nil, createdOn: String? = nil, displayName: String? = nil, documents: [DocumentsResult]? = nil, gstCredentials: GstCredentialsResult? = nil, integrationType: IntegrationTypeResult? = nil, logistics: LogisticsResult? = nil, manager: ManagerResult? = nil, modifiedBy: ModifiedByResult? = nil, modifiedOn: String? = nil, name: String? = nil, notificationEmails: [String]? = nil, productReturnConfig: ProductReturnConfigResult? = nil, stage: String? = nil, storeType: String? = nil, subType: String? = nil, timing: [TimmingResult]? = nil, uid: Int? = nil, verifiedBy: ModifiedByResult? = nil, verifiedOn: String? = nil, warnings: WarningsResult? = nil, cls: String? = nil, customJson: [String: Any]? = nil) {
-
- self.createdOn = createdOn
-
- self.manager = manager
-
- self.modifiedBy = modifiedBy
-
- self.integrationType = integrationType
-
- self.verifiedOn = verifiedOn
-
- self.productReturnConfig = productReturnConfig
-
- self.contactNumbers = contactNumbers
-
- self.verifiedBy = verifiedBy
-
- self.stage = stage
-
- self.address = address
-
- self.modifiedOn = modifiedOn
-
- self.createdBy = createdBy
-
- self.gstCredentials = gstCredentials
-
- self.displayName = displayName
-
- self.companyId = companyId
-
- self.uid = uid
-
- self.customJson = customJson
-
- self.code = code
-
- self.warnings = warnings
-
- self.name = name
-
- self.timing = timing
-
- self.documents = documents
-
- self.storeType = storeType
-
- self.subType = subType
-
- self.company = company
-
- self.cls = cls
-
- self.logistics = logistics
-
- self.notificationEmails = notificationEmails
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
- manager = try container.decode(ManagerResult.self, forKey: .manager)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- modifiedBy = try container.decode(ModifiedByResult.self, forKey: .modifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- integrationType = try container.decode(IntegrationTypeResult.self, forKey: .integrationType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
-
- }
-
-
-
- do {
- productReturnConfig = try container.decode(ProductReturnConfigResult.self, forKey: .productReturnConfig)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- contactNumbers = try container.decode([ContactNumberResult].self, forKey: .contactNumbers)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- verifiedBy = try container.decode(ModifiedByResult.self, forKey: .verifiedBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- do {
- address = try container.decode(AddressResult.self, forKey: .address)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- 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 {
- createdBy = try container.decode(CreatedByResult.self, forKey: .createdBy)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- gstCredentials = try container.decode(GstCredentialsResult.self, forKey: .gstCredentials)
-
- } 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 {
- 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 {
- 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 {
- 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 {
- 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)
- } catch {
-
- }
-
-
-
- do {
- warnings = try container.decode(WarningsResult.self, forKey: .warnings)
-
- } 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 {
-
- }
-
-
-
- do {
- timing = try container.decode([TimmingResult].self, forKey: .timing)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- documents = try container.decode([DocumentsResult].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 {
-
- }
-
-
-
- do {
- subType = try container.decode(String.self, forKey: .subType)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- company = try container.decode(Int.self, forKey: .company)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- cls = try container.decode(String.self, forKey: .cls)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- logistics = try container.decode(LogisticsResult.self, forKey: .logistics)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(createdOn, forKey: .createdOn)
-
-
-
-
- try? container.encodeIfPresent(manager, forKey: .manager)
-
-
-
-
- try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy)
-
-
-
-
- try? container.encodeIfPresent(integrationType, forKey: .integrationType)
-
-
-
-
- try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn)
-
-
-
-
- try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig)
-
-
-
-
- try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers)
-
-
-
-
- try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy)
-
-
-
-
- try? container.encodeIfPresent(stage, forKey: .stage)
-
-
-
-
- try? container.encodeIfPresent(address, forKey: .address)
-
-
-
-
- try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn)
-
-
-
-
- try? container.encodeIfPresent(createdBy, forKey: .createdBy)
-
-
-
-
- try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials)
-
-
-
-
- try? container.encodeIfPresent(displayName, forKey: .displayName)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
-
-
- try? container.encodeIfPresent(customJson, forKey: .customJson)
-
-
-
-
- try? container.encodeIfPresent(code, forKey: .code)
-
-
-
-
- try? container.encodeIfPresent(warnings, forKey: .warnings)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(timing, forKey: .timing)
-
-
-
-
- try? container.encodeIfPresent(documents, forKey: .documents)
-
-
-
-
- try? container.encodeIfPresent(storeType, forKey: .storeType)
-
-
-
-
- try? container.encodeIfPresent(subType, forKey: .subType)
-
-
-
-
- try? container.encodeIfPresent(company, forKey: .company)
-
-
-
-
- try? container.encodeIfPresent(cls, forKey: .cls)
-
-
-
-
- try? container.encodeIfPresent(logistics, forKey: .logistics)
-
-
-
-
- try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ListViewResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ListViewResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..8347ef3437
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ListViewResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ListViewResponse
+ Used By: Serviceability
+ */
+
+ class ListViewResponse: Codable {
+
+
+ public var page: ZoneDataItem
+
+ public var items: [ListViewItems]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ListViewItems], page: ZoneDataItem) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode(ZoneDataItem.self, forKey: .page)
+
+
+
+
+ items = try container.decode([ListViewItems].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ListViewResponse
+ Used By: Serviceability
+ */
+
+ class ListViewResponse: Codable {
+
+
+ public var page: ZoneDataItem
+
+ public var items: [ListViewItems]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case page = "page"
+
+ case items = "items"
+
+ }
+
+ public init(items: [ListViewItems], page: ZoneDataItem) {
+
+ self.page = page
+
+ self.items = items
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ page = try container.decode(ZoneDataItem.self, forKey: .page)
+
+
+
+
+ items = try container.decode([ListViewItems].self, forKey: .items)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(page, forKey: .page)
+
+
+
+
+ try? container.encodeIfPresent(items, forKey: .items)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ListViewResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ListViewResultServiceabilityPlatformModel.swift
deleted file mode 100644
index a93b0409fe..0000000000
--- a/Sources/code/platform/Models/Serviceability/ListViewResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ListViewResult
- Used By: Serviceability
- */
-
- class ListViewResult: Codable {
-
-
- public var page: ZoneDataItem
-
- public var items: [ListViewItems]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ListViewItems], page: ZoneDataItem) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode(ZoneDataItem.self, forKey: .page)
-
-
-
-
- items = try container.decode([ListViewItems].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ListViewResult
- Used By: Serviceability
- */
-
- class ListViewResult: Codable {
-
-
- public var page: ZoneDataItem
-
- public var items: [ListViewItems]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case page = "page"
-
- case items = "items"
-
- }
-
- public init(items: [ListViewItems], page: ZoneDataItem) {
-
- self.page = page
-
- self.items = items
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- page = try container.decode(ZoneDataItem.self, forKey: .page)
-
-
-
-
- items = try container.decode([ListViewItems].self, forKey: .items)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(page, forKey: .page)
-
-
-
-
- try? container.encodeIfPresent(items, forKey: .items)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/LocationRuleValuesServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/LocationRuleValuesServiceabilityPlatformModel.swift
index feabcaf6d6..065b0e793e 100644
--- a/Sources/code/platform/Models/Serviceability/LocationRuleValuesServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/LocationRuleValuesServiceabilityPlatformModel.swift
@@ -20,7 +20,7 @@ public extension PlatformClient.Serviceability {
public var displayName: String?
- public var parentId: [String]?
+ public var parentId: String?
public var parentIds: [String]?
@@ -41,7 +41,7 @@ public extension PlatformClient.Serviceability {
}
- public init(displayName: String? = nil, id: String, name: String? = nil, parentId: [String]? = nil, parentIds: [String]? = nil, subType: String? = nil) {
+ public init(displayName: String? = nil, id: String, name: String? = nil, parentId: String? = nil, parentIds: [String]? = nil, subType: String? = nil) {
self.id = id
@@ -103,7 +103,7 @@ public extension PlatformClient.Serviceability {
do {
- parentId = try container.decode([String].self, forKey: .parentId)
+ parentId = try container.decode(String.self, forKey: .parentId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -184,7 +184,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var displayName: String?
- public var parentId: [String]?
+ public var parentId: String?
public var parentIds: [String]?
@@ -205,7 +205,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(displayName: String? = nil, id: String, name: String? = nil, parentId: [String]? = nil, parentIds: [String]? = nil, subType: String? = nil) {
+ public init(displayName: String? = nil, id: String, name: String? = nil, parentId: String? = nil, parentIds: [String]? = nil, subType: String? = nil) {
self.id = id
@@ -267,7 +267,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
do {
- parentId = try container.decode([String].self, forKey: .parentId)
+ parentId = try container.decode(String.self, forKey: .parentId)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Serviceability/LogisticsResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/LogisticsResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..56ce65d134
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/LogisticsResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: LogisticsResponse
+ Used By: Serviceability
+ */
+
+ class LogisticsResponse: Codable {
+
+
+ public var override: Bool?
+
+ public var dp: Dp?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case override = "override"
+
+ case dp = "dp"
+
+ }
+
+ public init(dp: Dp? = nil, override: Bool? = nil) {
+
+ self.override = override
+
+ self.dp = dp
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ override = try container.decode(Bool.self, forKey: .override)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dp = try container.decode(Dp.self, forKey: .dp)
+
+ } 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(override, forKey: .override)
+
+
+
+
+ try? container.encodeIfPresent(dp, forKey: .dp)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: LogisticsResponse
+ Used By: Serviceability
+ */
+
+ class LogisticsResponse: Codable {
+
+
+ public var override: Bool?
+
+ public var dp: Dp?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case override = "override"
+
+ case dp = "dp"
+
+ }
+
+ public init(dp: Dp? = nil, override: Bool? = nil) {
+
+ self.override = override
+
+ self.dp = dp
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ do {
+ override = try container.decode(Bool.self, forKey: .override)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ dp = try container.decode(Dp.self, forKey: .dp)
+
+ } 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(override, forKey: .override)
+
+
+
+
+ try? container.encodeIfPresent(dp, forKey: .dp)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/LogisticsResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/LogisticsResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 6455cd1520..0000000000
--- a/Sources/code/platform/Models/Serviceability/LogisticsResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: LogisticsResult
- Used By: Serviceability
- */
-
- class LogisticsResult: Codable {
-
-
- public var override: Bool?
-
- public var dp: Dp?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case override = "override"
-
- case dp = "dp"
-
- }
-
- public init(dp: Dp? = nil, override: Bool? = nil) {
-
- self.override = override
-
- self.dp = dp
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- override = try container.decode(Bool.self, forKey: .override)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dp = try container.decode(Dp.self, forKey: .dp)
-
- } 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(override, forKey: .override)
-
-
-
-
- try? container.encodeIfPresent(dp, forKey: .dp)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: LogisticsResult
- Used By: Serviceability
- */
-
- class LogisticsResult: Codable {
-
-
- public var override: Bool?
-
- public var dp: Dp?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case override = "override"
-
- case dp = "dp"
-
- }
-
- public init(dp: Dp? = nil, override: Bool? = nil) {
-
- self.override = override
-
- self.dp = dp
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- do {
- override = try container.decode(Bool.self, forKey: .override)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- dp = try container.decode(Dp.self, forKey: .dp)
-
- } 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(override, forKey: .override)
-
-
-
-
- try? container.encodeIfPresent(dp, forKey: .dp)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ManagerResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ManagerResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..0636792b05
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ManagerResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,208 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ManagerResponse
+ Used By: Serviceability
+ */
+
+ class ManagerResponse: Codable {
+
+
+ public var email: String?
+
+ public var mobileNo: MobileNo?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ case name = "name"
+
+ }
+
+ public init(email: String? = nil, mobileNo: MobileNo? = nil, name: String? = nil) {
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ mobileNo = try container.decode(MobileNo.self, forKey: .mobileNo)
+
+ } 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ManagerResponse
+ Used By: Serviceability
+ */
+
+ class ManagerResponse: Codable {
+
+
+ public var email: String?
+
+ public var mobileNo: MobileNo?
+
+ public var name: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case email = "email"
+
+ case mobileNo = "mobile_no"
+
+ case name = "name"
+
+ }
+
+ public init(email: String? = nil, mobileNo: MobileNo? = nil, name: String? = nil) {
+
+ self.email = email
+
+ self.mobileNo = mobileNo
+
+ self.name = name
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ mobileNo = try container.decode(MobileNo.self, forKey: .mobileNo)
+
+ } 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 func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(email, forKey: .email)
+
+
+
+
+ try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
+
+
+
+
+ try? container.encodeIfPresent(name, forKey: .name)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ManagerResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ManagerResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 61bdfd76db..0000000000
--- a/Sources/code/platform/Models/Serviceability/ManagerResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ManagerResult
- Used By: Serviceability
- */
-
- class ManagerResult: Codable {
-
-
- public var email: String?
-
- public var mobileNo: MobileNo?
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- case name = "name"
-
- }
-
- public init(email: String? = nil, mobileNo: MobileNo? = nil, name: String? = nil) {
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- mobileNo = try container.decode(MobileNo.self, forKey: .mobileNo)
-
- } 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ManagerResult
- Used By: Serviceability
- */
-
- class ManagerResult: Codable {
-
-
- public var email: String?
-
- public var mobileNo: MobileNo?
-
- public var name: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case email = "email"
-
- case mobileNo = "mobile_no"
-
- case name = "name"
-
- }
-
- public init(email: String? = nil, mobileNo: MobileNo? = nil, name: String? = nil) {
-
- self.email = email
-
- self.mobileNo = mobileNo
-
- self.name = name
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- do {
- mobileNo = try container.decode(MobileNo.self, forKey: .mobileNo)
-
- } 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 func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(email, forKey: .email)
-
-
-
-
- try? container.encodeIfPresent(mobileNo, forKey: .mobileNo)
-
-
-
-
- try? container.encodeIfPresent(name, forKey: .name)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/ModifiedByResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ModifiedByResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..82f9ba1649
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/ModifiedByResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,162 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: ModifiedByResponse
+ Used By: Serviceability
+ */
+
+ class ModifiedByResponse: Codable {
+
+
+ public var username: String?
+
+ public var userId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case username = "username"
+
+ case userId = "user_id"
+
+ }
+
+ public init(username: String? = nil, userId: String? = nil) {
+
+ self.username = username
+
+ self.userId = userId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(username, forKey: .username)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: ModifiedByResponse
+ Used By: Serviceability
+ */
+
+ class ModifiedByResponse: Codable {
+
+
+ public var username: String?
+
+ public var userId: String?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case username = "username"
+
+ case userId = "user_id"
+
+ }
+
+ public init(username: String? = nil, userId: String? = nil) {
+
+ self.username = username
+
+ self.userId = userId
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ 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 {
+
+ }
+
+
+
+ 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(username, forKey: .username)
+
+
+
+
+ try? container.encodeIfPresent(userId, forKey: .userId)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/ModifiedByResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/ModifiedByResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 688cb3cd25..0000000000
--- a/Sources/code/platform/Models/Serviceability/ModifiedByResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: ModifiedByResult
- Used By: Serviceability
- */
-
- class ModifiedByResult: Codable {
-
-
- public var username: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case username = "username"
-
- case userId = "user_id"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.username = username
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(username, forKey: .username)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: ModifiedByResult
- Used By: Serviceability
- */
-
- class ModifiedByResult: Codable {
-
-
- public var username: String?
-
- public var userId: String?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case username = "username"
-
- case userId = "user_id"
-
- }
-
- public init(username: String? = nil, userId: String? = nil) {
-
- self.username = username
-
- self.userId = userId
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- 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 {
-
- }
-
-
-
- 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(username, forKey: .username)
-
-
-
-
- try? container.encodeIfPresent(userId, forKey: .userId)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..00bef7f7b1
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,574 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: OptimalLocationArticlesResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationArticlesResponse: Codable {
+
+
+ public var itemId: Int
+
+ public var size: String
+
+ public var quantity: Int
+
+ public var groupId: String?
+
+ public var isPrimaryItem: Bool?
+
+ public var meta: [String: Any]?
+
+ public var articleAssignment: ArticleAssignment
+
+ public var sellerId: Int?
+
+ public var ignoreLocations: [Int]
+
+ public var assignLocations: [Int]
+
+ public var priceEffective: Double
+
+ public var mtoQuantity: Int
+
+ public var id: String
+
+ public var uid: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case itemId = "item_id"
+
+ case size = "size"
+
+ case quantity = "quantity"
+
+ case groupId = "group_id"
+
+ case isPrimaryItem = "is_primary_item"
+
+ case meta = "meta"
+
+ case articleAssignment = "article_assignment"
+
+ case sellerId = "seller_id"
+
+ case ignoreLocations = "ignore_locations"
+
+ case assignLocations = "assign_locations"
+
+ case priceEffective = "price_effective"
+
+ case mtoQuantity = "mto_quantity"
+
+ case id = "_id"
+
+ case uid = "uid"
+
+ }
+
+ public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, mtoQuantity: Int, priceEffective: Double, quantity: Int, sellerId: Int? = nil, size: String, uid: String, id: String) {
+
+ self.itemId = itemId
+
+ self.size = size
+
+ self.quantity = quantity
+
+ self.groupId = groupId
+
+ self.isPrimaryItem = isPrimaryItem
+
+ self.meta = meta
+
+ self.articleAssignment = articleAssignment
+
+ self.sellerId = sellerId
+
+ self.ignoreLocations = ignoreLocations
+
+ self.assignLocations = assignLocations
+
+ self.priceEffective = priceEffective
+
+ self.mtoQuantity = mtoQuantity
+
+ self.id = id
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ quantity = try container.decode(Int.self, forKey: .quantity)
+
+
+
+
+ do {
+ groupId = try container.decode(String.self, forKey: .groupId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isPrimaryItem = try container.decode(Bool.self, forKey: .isPrimaryItem)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ articleAssignment = try container.decode(ArticleAssignment.self, forKey: .articleAssignment)
+
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ ignoreLocations = try container.decode([Int].self, forKey: .ignoreLocations)
+
+
+
+
+ assignLocations = try container.decode([Int].self, forKey: .assignLocations)
+
+
+
+
+ priceEffective = try container.decode(Double.self, forKey: .priceEffective)
+
+
+
+
+ mtoQuantity = try container.decode(Int.self, forKey: .mtoQuantity)
+
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ uid = try container.decode(String.self, forKey: .uid)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(groupId, forKey: .groupId)
+
+
+
+
+ try? container.encodeIfPresent(isPrimaryItem, forKey: .isPrimaryItem)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(ignoreLocations, forKey: .ignoreLocations)
+
+
+
+
+ try? container.encodeIfPresent(assignLocations, forKey: .assignLocations)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(mtoQuantity, forKey: .mtoQuantity)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: OptimalLocationArticlesResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationArticlesResponse: Codable {
+
+
+ public var itemId: Int
+
+ public var size: String
+
+ public var quantity: Int
+
+ public var groupId: String?
+
+ public var isPrimaryItem: Bool?
+
+ public var meta: [String: Any]?
+
+ public var articleAssignment: ArticleAssignment
+
+ public var sellerId: Int?
+
+ public var ignoreLocations: [Int]
+
+ public var assignLocations: [Int]
+
+ public var priceEffective: Double
+
+ public var mtoQuantity: Int
+
+ public var id: String
+
+ public var uid: String
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case itemId = "item_id"
+
+ case size = "size"
+
+ case quantity = "quantity"
+
+ case groupId = "group_id"
+
+ case isPrimaryItem = "is_primary_item"
+
+ case meta = "meta"
+
+ case articleAssignment = "article_assignment"
+
+ case sellerId = "seller_id"
+
+ case ignoreLocations = "ignore_locations"
+
+ case assignLocations = "assign_locations"
+
+ case priceEffective = "price_effective"
+
+ case mtoQuantity = "mto_quantity"
+
+ case id = "_id"
+
+ case uid = "uid"
+
+ }
+
+ public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, mtoQuantity: Int, priceEffective: Double, quantity: Int, sellerId: Int? = nil, size: String, uid: String, id: String) {
+
+ self.itemId = itemId
+
+ self.size = size
+
+ self.quantity = quantity
+
+ self.groupId = groupId
+
+ self.isPrimaryItem = isPrimaryItem
+
+ self.meta = meta
+
+ self.articleAssignment = articleAssignment
+
+ self.sellerId = sellerId
+
+ self.ignoreLocations = ignoreLocations
+
+ self.assignLocations = assignLocations
+
+ self.priceEffective = priceEffective
+
+ self.mtoQuantity = mtoQuantity
+
+ self.id = id
+
+ self.uid = uid
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ quantity = try container.decode(Int.self, forKey: .quantity)
+
+
+
+
+ do {
+ groupId = try container.decode(String.self, forKey: .groupId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ isPrimaryItem = try container.decode(Bool.self, forKey: .isPrimaryItem)
+
+ } 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)
+ } catch {
+
+ }
+
+
+
+ articleAssignment = try container.decode(ArticleAssignment.self, forKey: .articleAssignment)
+
+
+
+
+ do {
+ sellerId = try container.decode(Int.self, forKey: .sellerId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ ignoreLocations = try container.decode([Int].self, forKey: .ignoreLocations)
+
+
+
+
+ assignLocations = try container.decode([Int].self, forKey: .assignLocations)
+
+
+
+
+ priceEffective = try container.decode(Double.self, forKey: .priceEffective)
+
+
+
+
+ mtoQuantity = try container.decode(Int.self, forKey: .mtoQuantity)
+
+
+
+
+ id = try container.decode(String.self, forKey: .id)
+
+
+
+
+ uid = try container.decode(String.self, forKey: .uid)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(quantity, forKey: .quantity)
+
+
+
+
+ try? container.encodeIfPresent(groupId, forKey: .groupId)
+
+
+
+
+ try? container.encodeIfPresent(isPrimaryItem, forKey: .isPrimaryItem)
+
+
+
+
+ try? container.encodeIfPresent(meta, forKey: .meta)
+
+
+
+
+ try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
+
+
+
+
+ try? container.encodeIfPresent(sellerId, forKey: .sellerId)
+
+
+
+
+ try? container.encodeIfPresent(ignoreLocations, forKey: .ignoreLocations)
+
+
+
+
+ try? container.encodeIfPresent(assignLocations, forKey: .assignLocations)
+
+
+
+
+ try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
+
+
+
+
+ try? container.encodeIfPresent(mtoQuantity, forKey: .mtoQuantity)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(uid, forKey: .uid)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 3b5879ea75..0000000000
--- a/Sources/code/platform/Models/Serviceability/OptimalLocationArticlesResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,574 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: OptimalLocationArticlesResult
- Used By: Serviceability
- */
-
- class OptimalLocationArticlesResult: Codable {
-
-
- public var itemId: Int
-
- public var size: String
-
- public var quantity: Int
-
- public var groupId: String?
-
- public var isPrimaryItem: Bool?
-
- public var meta: [String: Any]?
-
- public var articleAssignment: ArticleAssignment
-
- public var sellerId: Int?
-
- public var ignoreLocations: [Int]
-
- public var assignLocations: [Int]
-
- public var priceEffective: Double
-
- public var mtoQuantity: Int
-
- public var id: String
-
- public var uid: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemId = "item_id"
-
- case size = "size"
-
- case quantity = "quantity"
-
- case groupId = "group_id"
-
- case isPrimaryItem = "is_primary_item"
-
- case meta = "meta"
-
- case articleAssignment = "article_assignment"
-
- case sellerId = "seller_id"
-
- case ignoreLocations = "ignore_locations"
-
- case assignLocations = "assign_locations"
-
- case priceEffective = "price_effective"
-
- case mtoQuantity = "mto_quantity"
-
- case id = "_id"
-
- case uid = "uid"
-
- }
-
- public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, mtoQuantity: Int, priceEffective: Double, quantity: Int, sellerId: Int? = nil, size: String, uid: String, id: String) {
-
- self.itemId = itemId
-
- self.size = size
-
- self.quantity = quantity
-
- self.groupId = groupId
-
- self.isPrimaryItem = isPrimaryItem
-
- self.meta = meta
-
- self.articleAssignment = articleAssignment
-
- self.sellerId = sellerId
-
- self.ignoreLocations = ignoreLocations
-
- self.assignLocations = assignLocations
-
- self.priceEffective = priceEffective
-
- self.mtoQuantity = mtoQuantity
-
- self.id = id
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- do {
- groupId = try container.decode(String.self, forKey: .groupId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isPrimaryItem = try container.decode(Bool.self, forKey: .isPrimaryItem)
-
- } 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)
- } catch {
-
- }
-
-
-
- articleAssignment = try container.decode(ArticleAssignment.self, forKey: .articleAssignment)
-
-
-
-
- do {
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- ignoreLocations = try container.decode([Int].self, forKey: .ignoreLocations)
-
-
-
-
- assignLocations = try container.decode([Int].self, forKey: .assignLocations)
-
-
-
-
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
-
-
-
- mtoQuantity = try container.decode(Int.self, forKey: .mtoQuantity)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(groupId, forKey: .groupId)
-
-
-
-
- try? container.encodeIfPresent(isPrimaryItem, forKey: .isPrimaryItem)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(ignoreLocations, forKey: .ignoreLocations)
-
-
-
-
- try? container.encodeIfPresent(assignLocations, forKey: .assignLocations)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(mtoQuantity, forKey: .mtoQuantity)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: OptimalLocationArticlesResult
- Used By: Serviceability
- */
-
- class OptimalLocationArticlesResult: Codable {
-
-
- public var itemId: Int
-
- public var size: String
-
- public var quantity: Int
-
- public var groupId: String?
-
- public var isPrimaryItem: Bool?
-
- public var meta: [String: Any]?
-
- public var articleAssignment: ArticleAssignment
-
- public var sellerId: Int?
-
- public var ignoreLocations: [Int]
-
- public var assignLocations: [Int]
-
- public var priceEffective: Double
-
- public var mtoQuantity: Int
-
- public var id: String
-
- public var uid: String
-
-
- public enum CodingKeys: String, CodingKey {
-
- case itemId = "item_id"
-
- case size = "size"
-
- case quantity = "quantity"
-
- case groupId = "group_id"
-
- case isPrimaryItem = "is_primary_item"
-
- case meta = "meta"
-
- case articleAssignment = "article_assignment"
-
- case sellerId = "seller_id"
-
- case ignoreLocations = "ignore_locations"
-
- case assignLocations = "assign_locations"
-
- case priceEffective = "price_effective"
-
- case mtoQuantity = "mto_quantity"
-
- case id = "_id"
-
- case uid = "uid"
-
- }
-
- public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, mtoQuantity: Int, priceEffective: Double, quantity: Int, sellerId: Int? = nil, size: String, uid: String, id: String) {
-
- self.itemId = itemId
-
- self.size = size
-
- self.quantity = quantity
-
- self.groupId = groupId
-
- self.isPrimaryItem = isPrimaryItem
-
- self.meta = meta
-
- self.articleAssignment = articleAssignment
-
- self.sellerId = sellerId
-
- self.ignoreLocations = ignoreLocations
-
- self.assignLocations = assignLocations
-
- self.priceEffective = priceEffective
-
- self.mtoQuantity = mtoQuantity
-
- self.id = id
-
- self.uid = uid
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- itemId = try container.decode(Int.self, forKey: .itemId)
-
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- quantity = try container.decode(Int.self, forKey: .quantity)
-
-
-
-
- do {
- groupId = try container.decode(String.self, forKey: .groupId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- isPrimaryItem = try container.decode(Bool.self, forKey: .isPrimaryItem)
-
- } 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)
- } catch {
-
- }
-
-
-
- articleAssignment = try container.decode(ArticleAssignment.self, forKey: .articleAssignment)
-
-
-
-
- do {
- sellerId = try container.decode(Int.self, forKey: .sellerId)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- ignoreLocations = try container.decode([Int].self, forKey: .ignoreLocations)
-
-
-
-
- assignLocations = try container.decode([Int].self, forKey: .assignLocations)
-
-
-
-
- priceEffective = try container.decode(Double.self, forKey: .priceEffective)
-
-
-
-
- mtoQuantity = try container.decode(Int.self, forKey: .mtoQuantity)
-
-
-
-
- id = try container.decode(String.self, forKey: .id)
-
-
-
-
- uid = try container.decode(String.self, forKey: .uid)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(quantity, forKey: .quantity)
-
-
-
-
- try? container.encodeIfPresent(groupId, forKey: .groupId)
-
-
-
-
- try? container.encodeIfPresent(isPrimaryItem, forKey: .isPrimaryItem)
-
-
-
-
- try? container.encodeIfPresent(meta, forKey: .meta)
-
-
-
-
- try? container.encodeIfPresent(articleAssignment, forKey: .articleAssignment)
-
-
-
-
- try? container.encodeIfPresent(sellerId, forKey: .sellerId)
-
-
-
-
- try? container.encodeIfPresent(ignoreLocations, forKey: .ignoreLocations)
-
-
-
-
- try? container.encodeIfPresent(assignLocations, forKey: .assignLocations)
-
-
-
-
- try? container.encodeIfPresent(priceEffective, forKey: .priceEffective)
-
-
-
-
- try? container.encodeIfPresent(mtoQuantity, forKey: .mtoQuantity)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(uid, forKey: .uid)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..8a576d8b0c
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,134 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: OptimalLocationAssignedStoresResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationAssignedStoresResponse: Codable {
+
+
+ public var storeId: Int
+
+ public var articles: [OptimalLocationArticlesResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeId = "store_id"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [OptimalLocationArticlesResponse], storeId: Int) {
+
+ self.storeId = storeId
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+
+
+
+ articles = try container.decode([OptimalLocationArticlesResponse].self, forKey: .articles)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: OptimalLocationAssignedStoresResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationAssignedStoresResponse: Codable {
+
+
+ public var storeId: Int
+
+ public var articles: [OptimalLocationArticlesResponse]
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case storeId = "store_id"
+
+ case articles = "articles"
+
+ }
+
+ public init(articles: [OptimalLocationArticlesResponse], storeId: Int) {
+
+ self.storeId = storeId
+
+ self.articles = articles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ storeId = try container.decode(Int.self, forKey: .storeId)
+
+
+
+
+ articles = try container.decode([OptimalLocationArticlesResponse].self, forKey: .articles)
+
+
+
+ }
+
+ public func encode(to encoder: Encoder) throws {
+ var container = encoder.container(keyedBy: CodingKeys.self)
+
+
+
+ try? container.encodeIfPresent(storeId, forKey: .storeId)
+
+
+
+
+ try? container.encodeIfPresent(articles, forKey: .articles)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 48cb4f6586..0000000000
--- a/Sources/code/platform/Models/Serviceability/OptimalLocationAssignedStoresResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: OptimalLocationAssignedStoresResult
- Used By: Serviceability
- */
-
- class OptimalLocationAssignedStoresResult: Codable {
-
-
- public var storeId: Int
-
- public var articles: [OptimalLocationArticlesResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeId = "store_id"
-
- case articles = "articles"
-
- }
-
- public init(articles: [OptimalLocationArticlesResult], storeId: Int) {
-
- self.storeId = storeId
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- articles = try container.decode([OptimalLocationArticlesResult].self, forKey: .articles)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: OptimalLocationAssignedStoresResult
- Used By: Serviceability
- */
-
- class OptimalLocationAssignedStoresResult: Codable {
-
-
- public var storeId: Int
-
- public var articles: [OptimalLocationArticlesResult]
-
-
- public enum CodingKeys: String, CodingKey {
-
- case storeId = "store_id"
-
- case articles = "articles"
-
- }
-
- public init(articles: [OptimalLocationArticlesResult], storeId: Int) {
-
- self.storeId = storeId
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- storeId = try container.decode(Int.self, forKey: .storeId)
-
-
-
-
- articles = try container.decode([OptimalLocationArticlesResult].self, forKey: .articles)
-
-
-
- }
-
- public func encode(to encoder: Encoder) throws {
- var container = encoder.container(keyedBy: CodingKeys.self)
-
-
-
- try? container.encodeIfPresent(storeId, forKey: .storeId)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationsArticlesServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationsArticlesServiceabilityPlatformModel.swift
index 1fbe749e9c..d8764b80a0 100644
--- a/Sources/code/platform/Models/Serviceability/OptimalLocationsArticlesServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/OptimalLocationsArticlesServiceabilityPlatformModel.swift
@@ -16,7 +16,7 @@ public extension PlatformClient.Serviceability {
public var size: String
- public var quantity: Int
+ public var quantity: String
public var groupId: String?
@@ -57,7 +57,7 @@ public extension PlatformClient.Serviceability {
}
- public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, quantity: Int, sellerId: Int? = nil, size: String) {
+ public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, quantity: String, sellerId: Int? = nil, size: String) {
self.itemId = itemId
@@ -95,7 +95,7 @@ public extension PlatformClient.Serviceability {
- quantity = try container.decode(Int.self, forKey: .quantity)
+ quantity = try container.decode(String.self, forKey: .quantity)
@@ -237,7 +237,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
public var size: String
- public var quantity: Int
+ public var quantity: String
public var groupId: String?
@@ -278,7 +278,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, quantity: Int, sellerId: Int? = nil, size: String) {
+ public init(articleAssignment: ArticleAssignment, assignLocations: [Int], groupId: String? = nil, ignoreLocations: [Int], isPrimaryItem: Bool? = nil, itemId: Int, meta: [String: Any]? = nil, quantity: String, sellerId: Int? = nil, size: String) {
self.itemId = itemId
@@ -316,7 +316,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
- quantity = try container.decode(Int.self, forKey: .quantity)
+ quantity = try container.decode(String.self, forKey: .quantity)
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationsResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationsResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..86ecc44d7c
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/OptimalLocationsResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,148 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: OptimalLocationsResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationsResponse: Codable {
+
+
+ public var assignedStores: [OptimalLocationAssignedStoresResponse]
+
+ public var faultyArticles: [ErrorResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case assignedStores = "assigned_stores"
+
+ case faultyArticles = "faulty_articles"
+
+ }
+
+ public init(assignedStores: [OptimalLocationAssignedStoresResponse], faultyArticles: [ErrorResponse]? = nil) {
+
+ self.assignedStores = assignedStores
+
+ self.faultyArticles = faultyArticles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ assignedStores = try container.decode([OptimalLocationAssignedStoresResponse].self, forKey: .assignedStores)
+
+
+
+
+ do {
+ faultyArticles = try container.decode([ErrorResponse].self, forKey: .faultyArticles)
+
+ } 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(assignedStores, forKey: .assignedStores)
+
+
+
+
+ try? container.encodeIfPresent(faultyArticles, forKey: .faultyArticles)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: OptimalLocationsResponse
+ Used By: Serviceability
+ */
+
+ class OptimalLocationsResponse: Codable {
+
+
+ public var assignedStores: [OptimalLocationAssignedStoresResponse]
+
+ public var faultyArticles: [ErrorResponse]?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case assignedStores = "assigned_stores"
+
+ case faultyArticles = "faulty_articles"
+
+ }
+
+ public init(assignedStores: [OptimalLocationAssignedStoresResponse], faultyArticles: [ErrorResponse]? = nil) {
+
+ self.assignedStores = assignedStores
+
+ self.faultyArticles = faultyArticles
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ assignedStores = try container.decode([OptimalLocationAssignedStoresResponse].self, forKey: .assignedStores)
+
+
+
+
+ do {
+ faultyArticles = try container.decode([ErrorResponse].self, forKey: .faultyArticles)
+
+ } 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(assignedStores, forKey: .assignedStores)
+
+
+
+
+ try? container.encodeIfPresent(faultyArticles, forKey: .faultyArticles)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/OptimalLocationsResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimalLocationsResultServiceabilityPlatformModel.swift
deleted file mode 100644
index c123ee3d00..0000000000
--- a/Sources/code/platform/Models/Serviceability/OptimalLocationsResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: OptimalLocationsResult
- Used By: Serviceability
- */
-
- class OptimalLocationsResult: Codable {
-
-
- public var assignedStores: [OptimalLocationAssignedStoresResult]
-
- public var faultyArticles: [ErrorResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case assignedStores = "assigned_stores"
-
- case faultyArticles = "faulty_articles"
-
- }
-
- public init(assignedStores: [OptimalLocationAssignedStoresResult], faultyArticles: [ErrorResult]? = nil) {
-
- self.assignedStores = assignedStores
-
- self.faultyArticles = faultyArticles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- assignedStores = try container.decode([OptimalLocationAssignedStoresResult].self, forKey: .assignedStores)
-
-
-
-
- do {
- faultyArticles = try container.decode([ErrorResult].self, forKey: .faultyArticles)
-
- } 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(assignedStores, forKey: .assignedStores)
-
-
-
-
- try? container.encodeIfPresent(faultyArticles, forKey: .faultyArticles)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: OptimalLocationsResult
- Used By: Serviceability
- */
-
- class OptimalLocationsResult: Codable {
-
-
- public var assignedStores: [OptimalLocationAssignedStoresResult]
-
- public var faultyArticles: [ErrorResult]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case assignedStores = "assigned_stores"
-
- case faultyArticles = "faulty_articles"
-
- }
-
- public init(assignedStores: [OptimalLocationAssignedStoresResult], faultyArticles: [ErrorResult]? = nil) {
-
- self.assignedStores = assignedStores
-
- self.faultyArticles = faultyArticles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- assignedStores = try container.decode([OptimalLocationAssignedStoresResult].self, forKey: .assignedStores)
-
-
-
-
- do {
- faultyArticles = try container.decode([ErrorResult].self, forKey: .faultyArticles)
-
- } 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(assignedStores, forKey: .assignedStores)
-
-
-
-
- try? container.encodeIfPresent(faultyArticles, forKey: .faultyArticles)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/OptimlLocationsDetailsSchemaServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimlLocationsDetailsSchemaServiceabilityPlatformModel.swift
deleted file mode 100644
index 316bf77227..0000000000
--- a/Sources/code/platform/Models/Serviceability/OptimlLocationsDetailsSchemaServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: OptimlLocationsDetailsSchema
- Used By: Serviceability
- */
-
- class OptimlLocationsDetailsSchema: Codable {
-
-
- public var channelId: String
-
- public var channelType: String
-
- public var channelIdentifier: String?
-
- public var toServiceability: LocationDetailsServiceability
-
- public var articles: [OptimalLocationsArticles]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case channelId = "channel_id"
-
- case channelType = "channel_type"
-
- case channelIdentifier = "channel_identifier"
-
- case toServiceability = "to_serviceability"
-
- case articles = "articles"
-
- }
-
- public init(articles: [OptimalLocationsArticles]? = nil, channelId: String, channelIdentifier: String? = nil, channelType: String, toServiceability: LocationDetailsServiceability) {
-
- self.channelId = channelId
-
- self.channelType = channelType
-
- self.channelIdentifier = channelIdentifier
-
- self.toServiceability = toServiceability
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- channelId = try container.decode(String.self, forKey: .channelId)
-
-
-
-
- channelType = try container.decode(String.self, forKey: .channelType)
-
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- toServiceability = try container.decode(LocationDetailsServiceability.self, forKey: .toServiceability)
-
-
-
-
- do {
- articles = try container.decode([OptimalLocationsArticles].self, forKey: .articles)
-
- } 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(channelId, forKey: .channelId)
-
-
-
-
- try? container.encodeIfPresent(channelType, forKey: .channelType)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(toServiceability, forKey: .toServiceability)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: OptimlLocationsDetailsSchema
- Used By: Serviceability
- */
-
- class OptimlLocationsDetailsSchema: Codable {
-
-
- public var channelId: String
-
- public var channelType: String
-
- public var channelIdentifier: String?
-
- public var toServiceability: LocationDetailsServiceability
-
- public var articles: [OptimalLocationsArticles]?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case channelId = "channel_id"
-
- case channelType = "channel_type"
-
- case channelIdentifier = "channel_identifier"
-
- case toServiceability = "to_serviceability"
-
- case articles = "articles"
-
- }
-
- public init(articles: [OptimalLocationsArticles]? = nil, channelId: String, channelIdentifier: String? = nil, channelType: String, toServiceability: LocationDetailsServiceability) {
-
- self.channelId = channelId
-
- self.channelType = channelType
-
- self.channelIdentifier = channelIdentifier
-
- self.toServiceability = toServiceability
-
- self.articles = articles
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- channelId = try container.decode(String.self, forKey: .channelId)
-
-
-
-
- channelType = try container.decode(String.self, forKey: .channelType)
-
-
-
-
- do {
- channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- toServiceability = try container.decode(LocationDetailsServiceability.self, forKey: .toServiceability)
-
-
-
-
- do {
- articles = try container.decode([OptimalLocationsArticles].self, forKey: .articles)
-
- } 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(channelId, forKey: .channelId)
-
-
-
-
- try? container.encodeIfPresent(channelType, forKey: .channelType)
-
-
-
-
- try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
-
-
-
-
- try? container.encodeIfPresent(toServiceability, forKey: .toServiceability)
-
-
-
-
- try? container.encodeIfPresent(articles, forKey: .articles)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/OptimlLocationsRequestSchemaServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/OptimlLocationsRequestSchemaServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..7f6fe26e42
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/OptimlLocationsRequestSchemaServiceabilityPlatformModel.swift
@@ -0,0 +1,258 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: OptimlLocationsRequestSchema
+ Used By: Serviceability
+ */
+
+ class OptimlLocationsRequestSchema: Codable {
+
+
+ public var channelId: String
+
+ public var channelType: String
+
+ public var channelIdentifier: String?
+
+ public var toServiceability: LocationDetailsServiceability
+
+ public var article: OptimalLocationsArticles?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case channelId = "channel_id"
+
+ case channelType = "channel_type"
+
+ case channelIdentifier = "channel_identifier"
+
+ case toServiceability = "to_serviceability"
+
+ case article = "article"
+
+ }
+
+ public init(article: OptimalLocationsArticles? = nil, channelId: String, channelIdentifier: String? = nil, channelType: String, toServiceability: LocationDetailsServiceability) {
+
+ self.channelId = channelId
+
+ self.channelType = channelType
+
+ self.channelIdentifier = channelIdentifier
+
+ self.toServiceability = toServiceability
+
+ self.article = article
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ channelId = try container.decode(String.self, forKey: .channelId)
+
+
+
+
+ channelType = try container.decode(String.self, forKey: .channelType)
+
+
+
+
+ do {
+ channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ toServiceability = try container.decode(LocationDetailsServiceability.self, forKey: .toServiceability)
+
+
+
+
+ do {
+ article = try container.decode(OptimalLocationsArticles.self, forKey: .article)
+
+ } 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(channelId, forKey: .channelId)
+
+
+
+
+ try? container.encodeIfPresent(channelType, forKey: .channelType)
+
+
+
+
+ try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(toServiceability, forKey: .toServiceability)
+
+
+
+
+ try? container.encodeIfPresent(article, forKey: .article)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: OptimlLocationsRequestSchema
+ Used By: Serviceability
+ */
+
+ class OptimlLocationsRequestSchema: Codable {
+
+
+ public var channelId: String
+
+ public var channelType: String
+
+ public var channelIdentifier: String?
+
+ public var toServiceability: LocationDetailsServiceability
+
+ public var article: OptimalLocationsArticles?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case channelId = "channel_id"
+
+ case channelType = "channel_type"
+
+ case channelIdentifier = "channel_identifier"
+
+ case toServiceability = "to_serviceability"
+
+ case article = "article"
+
+ }
+
+ public init(article: OptimalLocationsArticles? = nil, channelId: String, channelIdentifier: String? = nil, channelType: String, toServiceability: LocationDetailsServiceability) {
+
+ self.channelId = channelId
+
+ self.channelType = channelType
+
+ self.channelIdentifier = channelIdentifier
+
+ self.toServiceability = toServiceability
+
+ self.article = article
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ channelId = try container.decode(String.self, forKey: .channelId)
+
+
+
+
+ channelType = try container.decode(String.self, forKey: .channelType)
+
+
+
+
+ do {
+ channelIdentifier = try container.decode(String.self, forKey: .channelIdentifier)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ toServiceability = try container.decode(LocationDetailsServiceability.self, forKey: .toServiceability)
+
+
+
+
+ do {
+ article = try container.decode(OptimalLocationsArticles.self, forKey: .article)
+
+ } 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(channelId, forKey: .channelId)
+
+
+
+
+ try? container.encodeIfPresent(channelType, forKey: .channelType)
+
+
+
+
+ try? container.encodeIfPresent(channelIdentifier, forKey: .channelIdentifier)
+
+
+
+
+ try? container.encodeIfPresent(toServiceability, forKey: .toServiceability)
+
+
+
+
+ try? container.encodeIfPresent(article, forKey: .article)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/PackageMaterialListServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/PackageMaterialListServiceabilityPlatformModel.swift
index f993b5c462..b1e5843784 100644
--- a/Sources/code/platform/Models/Serviceability/PackageMaterialListServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/PackageMaterialListServiceabilityPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Serviceability {
class PackageMaterialList: Codable {
- public var items: PackageMaterialResult?
+ public var items: PackageMaterialResponse?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Serviceability {
}
- public init(items: PackageMaterialResult? = nil, page: Page? = nil) {
+ public init(items: PackageMaterialResponse? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Serviceability {
do {
- items = try container.decode(PackageMaterialResult.self, forKey: .items)
+ items = try container.decode(PackageMaterialResponse.self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
class PackageMaterialList: Codable {
- public var items: PackageMaterialResult?
+ public var items: PackageMaterialResponse?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(items: PackageMaterialResult? = nil, page: Page? = nil) {
+ public init(items: PackageMaterialResponse? = nil, page: Page? = nil) {
self.items = items
@@ -117,7 +117,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
do {
- items = try container.decode(PackageMaterialResult.self, forKey: .items)
+ items = try container.decode(PackageMaterialResponse.self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
diff --git a/Sources/code/platform/Models/Serviceability/PackageMaterialResponseServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/PackageMaterialResponseServiceabilityPlatformModel.swift
new file mode 100644
index 0000000000..846ee69717
--- /dev/null
+++ b/Sources/code/platform/Models/Serviceability/PackageMaterialResponseServiceabilityPlatformModel.swift
@@ -0,0 +1,790 @@
+
+
+import Foundation
+
+
+public extension PlatformClient.Serviceability {
+ /*
+ Model: PackageMaterialResponse
+ Used By: Serviceability
+ */
+
+ class PackageMaterialResponse: Codable {
+
+
+ public var name: String
+
+ public var id: String?
+
+ public var itemId: Int?
+
+ public var width: Double
+
+ public var height: Double
+
+ public var length: Double
+
+ public var rules: [PackageMaterialRule]?
+
+ public var storeIds: [Int]
+
+ public var weight: Double
+
+ public var errorRate: Double
+
+ public var packageType: String
+
+ public var size: String
+
+ public var media: [String]?
+
+ public var channels: [Channel]
+
+ public var trackInventory: Bool?
+
+ public var status: String
+
+ public var maxWeight: Double?
+
+ public var packageVolWeight: Double?
+
+ public var autoCalculate: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case id = "id"
+
+ case itemId = "item_id"
+
+ case width = "width"
+
+ case height = "height"
+
+ case length = "length"
+
+ case rules = "rules"
+
+ case storeIds = "store_ids"
+
+ case weight = "weight"
+
+ case errorRate = "error_rate"
+
+ case packageType = "package_type"
+
+ case size = "size"
+
+ case media = "media"
+
+ case channels = "channels"
+
+ case trackInventory = "track_inventory"
+
+ case status = "status"
+
+ case maxWeight = "max_weight"
+
+ case packageVolWeight = "package_vol_weight"
+
+ case autoCalculate = "auto_calculate"
+
+ }
+
+ public init(autoCalculate: Bool? = nil, channels: [Channel], errorRate: Double, height: Double, id: String? = nil, itemId: Int? = nil, length: Double, maxWeight: Double? = nil, media: [String]? = nil, name: String, packageType: String, packageVolWeight: Double? = nil, rules: [PackageMaterialRule]? = nil, size: String, status: String, storeIds: [Int], trackInventory: Bool? = nil, weight: Double, width: Double) {
+
+ self.name = name
+
+ self.id = id
+
+ self.itemId = itemId
+
+ self.width = width
+
+ self.height = height
+
+ self.length = length
+
+ self.rules = rules
+
+ self.storeIds = storeIds
+
+ self.weight = weight
+
+ self.errorRate = errorRate
+
+ self.packageType = packageType
+
+ self.size = size
+
+ self.media = media
+
+ self.channels = channels
+
+ self.trackInventory = trackInventory
+
+ self.status = status
+
+ self.maxWeight = maxWeight
+
+ self.packageVolWeight = packageVolWeight
+
+ self.autoCalculate = autoCalculate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ width = try container.decode(Double.self, forKey: .width)
+
+
+
+
+ height = try container.decode(Double.self, forKey: .height)
+
+
+
+
+ length = try container.decode(Double.self, forKey: .length)
+
+
+
+
+ do {
+ rules = try container.decode([PackageMaterialRule].self, forKey: .rules)
+
+ } 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)
+
+
+
+
+ weight = try container.decode(Double.self, forKey: .weight)
+
+
+
+
+ errorRate = try container.decode(Double.self, forKey: .errorRate)
+
+
+
+
+ packageType = try container.decode(String.self, forKey: .packageType)
+
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ channels = try container.decode([Channel].self, forKey: .channels)
+
+
+
+
+ do {
+ trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ maxWeight = try container.decode(Double.self, forKey: .maxWeight)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ packageVolWeight = try container.decode(Double.self, forKey: .packageVolWeight)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoCalculate = try container.decode(Bool.self, forKey: .autoCalculate)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+
+
+ try? container.encodeIfPresent(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(rules, forKey: .rules)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(weight, forKey: .weight)
+
+
+
+
+ try? container.encodeIfPresent(errorRate, forKey: .errorRate)
+
+
+
+
+ try? container.encodeIfPresent(packageType, forKey: .packageType)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(media, forKey: .media)
+
+
+
+
+ try? container.encodeIfPresent(channels, forKey: .channels)
+
+
+
+
+ try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(maxWeight, forKey: .maxWeight)
+
+
+
+
+ try? container.encodeIfPresent(packageVolWeight, forKey: .packageVolWeight)
+
+
+
+
+ try? container.encodeIfPresent(autoCalculate, forKey: .autoCalculate)
+
+
+ }
+
+ }
+}
+
+
+
+public extension PlatformClient.ApplicationClient.Serviceability {
+ /*
+ Model: PackageMaterialResponse
+ Used By: Serviceability
+ */
+
+ class PackageMaterialResponse: Codable {
+
+
+ public var name: String
+
+ public var id: String?
+
+ public var itemId: Int?
+
+ public var width: Double
+
+ public var height: Double
+
+ public var length: Double
+
+ public var rules: [PackageMaterialRule]?
+
+ public var storeIds: [Int]
+
+ public var weight: Double
+
+ public var errorRate: Double
+
+ public var packageType: String
+
+ public var size: String
+
+ public var media: [String]?
+
+ public var channels: [Channel]
+
+ public var trackInventory: Bool?
+
+ public var status: String
+
+ public var maxWeight: Double?
+
+ public var packageVolWeight: Double?
+
+ public var autoCalculate: Bool?
+
+
+ public enum CodingKeys: String, CodingKey {
+
+ case name = "name"
+
+ case id = "id"
+
+ case itemId = "item_id"
+
+ case width = "width"
+
+ case height = "height"
+
+ case length = "length"
+
+ case rules = "rules"
+
+ case storeIds = "store_ids"
+
+ case weight = "weight"
+
+ case errorRate = "error_rate"
+
+ case packageType = "package_type"
+
+ case size = "size"
+
+ case media = "media"
+
+ case channels = "channels"
+
+ case trackInventory = "track_inventory"
+
+ case status = "status"
+
+ case maxWeight = "max_weight"
+
+ case packageVolWeight = "package_vol_weight"
+
+ case autoCalculate = "auto_calculate"
+
+ }
+
+ public init(autoCalculate: Bool? = nil, channels: [Channel], errorRate: Double, height: Double, id: String? = nil, itemId: Int? = nil, length: Double, maxWeight: Double? = nil, media: [String]? = nil, name: String, packageType: String, packageVolWeight: Double? = nil, rules: [PackageMaterialRule]? = nil, size: String, status: String, storeIds: [Int], trackInventory: Bool? = nil, weight: Double, width: Double) {
+
+ self.name = name
+
+ self.id = id
+
+ self.itemId = itemId
+
+ self.width = width
+
+ self.height = height
+
+ self.length = length
+
+ self.rules = rules
+
+ self.storeIds = storeIds
+
+ self.weight = weight
+
+ self.errorRate = errorRate
+
+ self.packageType = packageType
+
+ self.size = size
+
+ self.media = media
+
+ self.channels = channels
+
+ self.trackInventory = trackInventory
+
+ self.status = status
+
+ self.maxWeight = maxWeight
+
+ self.packageVolWeight = packageVolWeight
+
+ self.autoCalculate = autoCalculate
+
+ }
+
+ required public init(from decoder: Decoder) throws {
+ let container = try decoder.container(keyedBy: CodingKeys.self)
+
+
+ name = try container.decode(String.self, forKey: .name)
+
+
+
+
+ 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 {
+
+ }
+
+
+
+ do {
+ itemId = try container.decode(Int.self, forKey: .itemId)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ width = try container.decode(Double.self, forKey: .width)
+
+
+
+
+ height = try container.decode(Double.self, forKey: .height)
+
+
+
+
+ length = try container.decode(Double.self, forKey: .length)
+
+
+
+
+ do {
+ rules = try container.decode([PackageMaterialRule].self, forKey: .rules)
+
+ } 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)
+
+
+
+
+ weight = try container.decode(Double.self, forKey: .weight)
+
+
+
+
+ errorRate = try container.decode(Double.self, forKey: .errorRate)
+
+
+
+
+ packageType = try container.decode(String.self, forKey: .packageType)
+
+
+
+
+ size = try container.decode(String.self, forKey: .size)
+
+
+
+
+ do {
+ 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)
+ } catch {
+
+ }
+
+
+
+ channels = try container.decode([Channel].self, forKey: .channels)
+
+
+
+
+ do {
+ trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ status = try container.decode(String.self, forKey: .status)
+
+
+
+
+ do {
+ maxWeight = try container.decode(Double.self, forKey: .maxWeight)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ packageVolWeight = try container.decode(Double.self, forKey: .packageVolWeight)
+
+ } catch DecodingError.typeMismatch(let type, let context) {
+ print("Type '\(type)' mismatch:", context.debugDescription)
+ print("codingPath:", context.codingPath)
+ } catch {
+
+ }
+
+
+
+ do {
+ autoCalculate = try container.decode(Bool.self, forKey: .autoCalculate)
+
+ } 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(name, forKey: .name)
+
+
+
+
+ try? container.encodeIfPresent(id, forKey: .id)
+
+
+
+
+ try? container.encodeIfPresent(itemId, forKey: .itemId)
+
+
+
+
+ try? container.encodeIfPresent(width, forKey: .width)
+
+
+
+
+ try? container.encodeIfPresent(height, forKey: .height)
+
+
+
+
+ try? container.encodeIfPresent(length, forKey: .length)
+
+
+
+
+ try? container.encodeIfPresent(rules, forKey: .rules)
+
+
+
+
+ try? container.encodeIfPresent(storeIds, forKey: .storeIds)
+
+
+
+
+ try? container.encodeIfPresent(weight, forKey: .weight)
+
+
+
+
+ try? container.encodeIfPresent(errorRate, forKey: .errorRate)
+
+
+
+
+ try? container.encodeIfPresent(packageType, forKey: .packageType)
+
+
+
+
+ try? container.encodeIfPresent(size, forKey: .size)
+
+
+
+
+ try? container.encodeIfPresent(media, forKey: .media)
+
+
+
+
+ try? container.encodeIfPresent(channels, forKey: .channels)
+
+
+
+
+ try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
+
+
+
+
+ try? container.encodeIfPresent(status, forKey: .status)
+
+
+
+
+ try? container.encodeIfPresent(maxWeight, forKey: .maxWeight)
+
+
+
+
+ try? container.encodeIfPresent(packageVolWeight, forKey: .packageVolWeight)
+
+
+
+
+ try? container.encodeIfPresent(autoCalculate, forKey: .autoCalculate)
+
+
+ }
+
+ }
+}
+
+
diff --git a/Sources/code/platform/Models/Serviceability/PackageMaterialResultServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/PackageMaterialResultServiceabilityPlatformModel.swift
deleted file mode 100644
index 3c3ff51159..0000000000
--- a/Sources/code/platform/Models/Serviceability/PackageMaterialResultServiceabilityPlatformModel.swift
+++ /dev/null
@@ -1,836 +0,0 @@
-
-
-import Foundation
-
-
-public extension PlatformClient.Serviceability {
- /*
- Model: PackageMaterialResult
- Used By: Serviceability
- */
-
- class PackageMaterialResult: Codable {
-
-
- public var name: String
-
- public var id: String?
-
- public var itemId: Int?
-
- public var companyId: Int?
-
- public var width: Double
-
- public var height: Double
-
- public var length: Double
-
- public var rules: [PackageMaterialRule]?
-
- public var storeIds: [Int]
-
- public var weight: Double
-
- public var errorRate: Double
-
- public var packageType: String
-
- public var size: String
-
- public var media: [String]?
-
- public var channels: [Channel]
-
- public var trackInventory: Bool?
-
- public var status: String
-
- public var maxWeight: Double?
-
- public var packageVolWeight: Double?
-
- public var autoCalculate: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case id = "id"
-
- case itemId = "item_id"
-
- case companyId = "company_id"
-
- case width = "width"
-
- case height = "height"
-
- case length = "length"
-
- case rules = "rules"
-
- case storeIds = "store_ids"
-
- case weight = "weight"
-
- case errorRate = "error_rate"
-
- case packageType = "package_type"
-
- case size = "size"
-
- case media = "media"
-
- case channels = "channels"
-
- case trackInventory = "track_inventory"
-
- case status = "status"
-
- case maxWeight = "max_weight"
-
- case packageVolWeight = "package_vol_weight"
-
- case autoCalculate = "auto_calculate"
-
- }
-
- public init(autoCalculate: Bool? = nil, channels: [Channel], companyId: Int? = nil, errorRate: Double, height: Double, id: String? = nil, itemId: Int? = nil, length: Double, maxWeight: Double? = nil, media: [String]? = nil, name: String, packageType: String, packageVolWeight: Double? = nil, rules: [PackageMaterialRule]? = nil, size: String, status: String, storeIds: [Int], trackInventory: Bool? = nil, weight: Double, width: Double) {
-
- self.name = name
-
- self.id = id
-
- self.itemId = itemId
-
- self.companyId = companyId
-
- self.width = width
-
- self.height = height
-
- self.length = length
-
- self.rules = rules
-
- self.storeIds = storeIds
-
- self.weight = weight
-
- self.errorRate = errorRate
-
- self.packageType = packageType
-
- self.size = size
-
- self.media = media
-
- self.channels = channels
-
- self.trackInventory = trackInventory
-
- self.status = status
-
- self.maxWeight = maxWeight
-
- self.packageVolWeight = packageVolWeight
-
- self.autoCalculate = autoCalculate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- width = try container.decode(Double.self, forKey: .width)
-
-
-
-
- height = try container.decode(Double.self, forKey: .height)
-
-
-
-
- length = try container.decode(Double.self, forKey: .length)
-
-
-
-
- do {
- rules = try container.decode([PackageMaterialRule].self, forKey: .rules)
-
- } 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)
-
-
-
-
- weight = try container.decode(Double.self, forKey: .weight)
-
-
-
-
- errorRate = try container.decode(Double.self, forKey: .errorRate)
-
-
-
-
- packageType = try container.decode(String.self, forKey: .packageType)
-
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- channels = try container.decode([Channel].self, forKey: .channels)
-
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- maxWeight = try container.decode(Double.self, forKey: .maxWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- packageVolWeight = try container.decode(Double.self, forKey: .packageVolWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoCalculate = try container.decode(Bool.self, forKey: .autoCalculate)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
-
-
- try? container.encodeIfPresent(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(rules, forKey: .rules)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(errorRate, forKey: .errorRate)
-
-
-
-
- try? container.encodeIfPresent(packageType, forKey: .packageType)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(media, forKey: .media)
-
-
-
-
- try? container.encodeIfPresent(channels, forKey: .channels)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(maxWeight, forKey: .maxWeight)
-
-
-
-
- try? container.encodeIfPresent(packageVolWeight, forKey: .packageVolWeight)
-
-
-
-
- try? container.encodeIfPresent(autoCalculate, forKey: .autoCalculate)
-
-
- }
-
- }
-}
-
-
-
-public extension PlatformClient.ApplicationClient.Serviceability {
- /*
- Model: PackageMaterialResult
- Used By: Serviceability
- */
-
- class PackageMaterialResult: Codable {
-
-
- public var name: String
-
- public var id: String?
-
- public var itemId: Int?
-
- public var companyId: Int?
-
- public var width: Double
-
- public var height: Double
-
- public var length: Double
-
- public var rules: [PackageMaterialRule]?
-
- public var storeIds: [Int]
-
- public var weight: Double
-
- public var errorRate: Double
-
- public var packageType: String
-
- public var size: String
-
- public var media: [String]?
-
- public var channels: [Channel]
-
- public var trackInventory: Bool?
-
- public var status: String
-
- public var maxWeight: Double?
-
- public var packageVolWeight: Double?
-
- public var autoCalculate: Bool?
-
-
- public enum CodingKeys: String, CodingKey {
-
- case name = "name"
-
- case id = "id"
-
- case itemId = "item_id"
-
- case companyId = "company_id"
-
- case width = "width"
-
- case height = "height"
-
- case length = "length"
-
- case rules = "rules"
-
- case storeIds = "store_ids"
-
- case weight = "weight"
-
- case errorRate = "error_rate"
-
- case packageType = "package_type"
-
- case size = "size"
-
- case media = "media"
-
- case channels = "channels"
-
- case trackInventory = "track_inventory"
-
- case status = "status"
-
- case maxWeight = "max_weight"
-
- case packageVolWeight = "package_vol_weight"
-
- case autoCalculate = "auto_calculate"
-
- }
-
- public init(autoCalculate: Bool? = nil, channels: [Channel], companyId: Int? = nil, errorRate: Double, height: Double, id: String? = nil, itemId: Int? = nil, length: Double, maxWeight: Double? = nil, media: [String]? = nil, name: String, packageType: String, packageVolWeight: Double? = nil, rules: [PackageMaterialRule]? = nil, size: String, status: String, storeIds: [Int], trackInventory: Bool? = nil, weight: Double, width: Double) {
-
- self.name = name
-
- self.id = id
-
- self.itemId = itemId
-
- self.companyId = companyId
-
- self.width = width
-
- self.height = height
-
- self.length = length
-
- self.rules = rules
-
- self.storeIds = storeIds
-
- self.weight = weight
-
- self.errorRate = errorRate
-
- self.packageType = packageType
-
- self.size = size
-
- self.media = media
-
- self.channels = channels
-
- self.trackInventory = trackInventory
-
- self.status = status
-
- self.maxWeight = maxWeight
-
- self.packageVolWeight = packageVolWeight
-
- self.autoCalculate = autoCalculate
-
- }
-
- required public init(from decoder: Decoder) throws {
- let container = try decoder.container(keyedBy: CodingKeys.self)
-
-
- name = try container.decode(String.self, forKey: .name)
-
-
-
-
- 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 {
-
- }
-
-
-
- do {
- itemId = try container.decode(Int.self, forKey: .itemId)
-
- } 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)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- width = try container.decode(Double.self, forKey: .width)
-
-
-
-
- height = try container.decode(Double.self, forKey: .height)
-
-
-
-
- length = try container.decode(Double.self, forKey: .length)
-
-
-
-
- do {
- rules = try container.decode([PackageMaterialRule].self, forKey: .rules)
-
- } 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)
-
-
-
-
- weight = try container.decode(Double.self, forKey: .weight)
-
-
-
-
- errorRate = try container.decode(Double.self, forKey: .errorRate)
-
-
-
-
- packageType = try container.decode(String.self, forKey: .packageType)
-
-
-
-
- size = try container.decode(String.self, forKey: .size)
-
-
-
-
- do {
- 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)
- } catch {
-
- }
-
-
-
- channels = try container.decode([Channel].self, forKey: .channels)
-
-
-
-
- do {
- trackInventory = try container.decode(Bool.self, forKey: .trackInventory)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- status = try container.decode(String.self, forKey: .status)
-
-
-
-
- do {
- maxWeight = try container.decode(Double.self, forKey: .maxWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- packageVolWeight = try container.decode(Double.self, forKey: .packageVolWeight)
-
- } catch DecodingError.typeMismatch(let type, let context) {
- print("Type '\(type)' mismatch:", context.debugDescription)
- print("codingPath:", context.codingPath)
- } catch {
-
- }
-
-
-
- do {
- autoCalculate = try container.decode(Bool.self, forKey: .autoCalculate)
-
- } 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(name, forKey: .name)
-
-
-
-
- try? container.encodeIfPresent(id, forKey: .id)
-
-
-
-
- try? container.encodeIfPresent(itemId, forKey: .itemId)
-
-
-
-
- try? container.encodeIfPresent(companyId, forKey: .companyId)
-
-
-
-
- try? container.encodeIfPresent(width, forKey: .width)
-
-
-
-
- try? container.encodeIfPresent(height, forKey: .height)
-
-
-
-
- try? container.encodeIfPresent(length, forKey: .length)
-
-
-
-
- try? container.encodeIfPresent(rules, forKey: .rules)
-
-
-
-
- try? container.encodeIfPresent(storeIds, forKey: .storeIds)
-
-
-
-
- try? container.encodeIfPresent(weight, forKey: .weight)
-
-
-
-
- try? container.encodeIfPresent(errorRate, forKey: .errorRate)
-
-
-
-
- try? container.encodeIfPresent(packageType, forKey: .packageType)
-
-
-
-
- try? container.encodeIfPresent(size, forKey: .size)
-
-
-
-
- try? container.encodeIfPresent(media, forKey: .media)
-
-
-
-
- try? container.encodeIfPresent(channels, forKey: .channels)
-
-
-
-
- try? container.encodeIfPresent(trackInventory, forKey: .trackInventory)
-
-
-
-
- try? container.encodeIfPresent(status, forKey: .status)
-
-
-
-
- try? container.encodeIfPresent(maxWeight, forKey: .maxWeight)
-
-
-
-
- try? container.encodeIfPresent(packageVolWeight, forKey: .packageVolWeight)
-
-
-
-
- try? container.encodeIfPresent(autoCalculate, forKey: .autoCalculate)
-
-
- }
-
- }
-}
-
-
diff --git a/Sources/code/platform/Models/Serviceability/PackageMaterialRuleListServiceabilityPlatformModel.swift b/Sources/code/platform/Models/Serviceability/PackageMaterialRuleListServiceabilityPlatformModel.swift
index 6c5c29bba3..36e4db6f61 100644
--- a/Sources/code/platform/Models/Serviceability/PackageMaterialRuleListServiceabilityPlatformModel.swift
+++ b/Sources/code/platform/Models/Serviceability/PackageMaterialRuleListServiceabilityPlatformModel.swift
@@ -12,7 +12,7 @@ public extension PlatformClient.Serviceability {
class PackageMaterialRuleList: Codable {
- public var items: PackageRuleResult?
+ public var items: PackageRuleResponse?
public var page: Page?
@@ -25,7 +25,7 @@ public extension PlatformClient.Serviceability {
}
- public init(items: PackageRuleResult? = nil, page: Page? = nil) {
+ public init(items: PackageRuleResponse? = nil, page: Page? = nil) {
self.items = items
@@ -38,7 +38,7 @@ public extension PlatformClient.Serviceability {
do {
- items = try container.decode(PackageRuleResult.self, forKey: .items)
+ items = try container.decode(PackageRuleResponse.self, forKey: .items)
} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
@@ -91,7 +91,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
class PackageMaterialRuleList: Codable {
- public var items: PackageRuleResult?
+ public var items: PackageRuleResponse?
public var page: Page?
@@ -104,7 +104,7 @@ public extension PlatformClient.ApplicationClient.Serviceability {
}
- public init(items: PackageRuleResult? = nil, page: Page? = nil) {
+ public init(items: PackageRuleResponse? = nil, page: Page? = nil) {
self.items = item