Skip to content

Commit

Permalink
[Auto Generated] 1.3.5-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 23, 2023
1 parent cd6d153 commit 398e0d2
Show file tree
Hide file tree
Showing 40 changed files with 3,343 additions and 913 deletions.
186 changes: 185 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,104 @@
# CHANGE LOG (1.3.5-beta.3) - v1.8.4-prerelease-v3
# CHANGE LOG (1.3.5-beta.4) - v1.8.4-prerelease-v4

## Application Client



### Cart



#### checkoutCart

- ##### What's Deprecated
- [Deleted] Possible nullable value from `true` from property `id` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `customerDetails` of schema `CartCheckoutDetailRequest` in request body
- [Breaking] [Deleted] Default value from property `callbackUrl` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `callbackUrl` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `orderingStore` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `paymentIdentifier` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `paymentParams` of schema `CartCheckoutDetailRequest` in request body


### Order



#### getOrders

- ##### What's New
- [Added] property `items[].shipments[].bags[].item.attributes` of schema `Item` in response with status code 200


#### getOrderById

- ##### What's New
- [Added] property `order.shipments[].bags[].item.attributes` of schema `Item` in response with status code 200


#### getPosOrderById

- ##### What's New
- [Added] property `order.shipments[].bags[].item.attributes` of schema `Item` in response with status code 200


#### getShipmentById

- ##### What's New
- [Added] property `shipment.bags[].item.attributes` of schema `Item` in response with status code 200


## Platform Client



### Cart



#### getStoreAddressByUid

- ##### What's New
- [Added] property `items[].storeManagerName` of schema `PickupStoreDetail` in response with status code 200


### Catalog



#### createCollection

- ##### What's New
- [Added] property `seo.sitemap` of schema `SeoDetail` in request body
- [Added] property `seo.breadcrumbs` of schema `SeoDetail` in request body
- [Added] property `seo.metaTags` of schema `SeoDetail` in request body


#### updateCollection

- ##### What's New
- [Added] property `seo.sitemap` of schema `SeoDetail` in request body
- [Added] property `seo.breadcrumbs` of schema `SeoDetail` in request body
- [Added] property `seo.metaTags` of schema `SeoDetail` in request body
- [Added] property `seo.sitemap` of schema `SeoDetail` in response with status code 200
- [Added] property `seo.breadcrumbs` of schema `SeoDetail` in response with status code 200
- [Added] property `seo.metaTags` of schema `SeoDetail` in response with status code 200


#### getAppProduct

- ##### What's New
- [Added] Default value to property `seo` of schema `OwnerAppItemResponse` in response with status code 200
- [Added] Default value `` to property `seo` of schema `OwnerAppItemResponse` in response with status code 200
- [Added] Default value `` to property `seo` of schema `OwnerAppItemResponse` in response with status code 200


#### updateAppProduct

- ##### What's New
- [Added] property `sizePromotionThreshold` of schema `ApplicationItemMeta` in request body


#### getProductBulkUploadHistory

- ##### What's New
Expand All @@ -20,6 +111,99 @@
- [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `ProductBulkRequest` in response with status code 200


### Discount



#### validateDiscountFile

- ##### What's New
- [Added] property `filePath` of schema `FileJobResponse` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Possible values from `validation` to `validate` of property `type` of schema `FileJobResponse` in response with status code 200


#### downloadDiscountFile

- ##### What's New
- [Added] property `filePath` of schema `FileJobResponse` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Possible values from `validation` to `validate` of property `type` of schema `FileJobResponse` in response with status code 200


#### getValidationJob

- ##### What's New
- [Added] property `filePath` of schema `FileJobResponse` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Possible values from `validation` to `validate` of property `type` of schema `FileJobResponse` in response with status code 200


#### getDownloadJob

- ##### What's New
- [Added] property `filePath` of schema `FileJobResponse` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Possible values from `validation` to `validate` of property `type` of schema `FileJobResponse` in response with status code 200


### Order



#### createOrder

- ##### What's New
- [Added] property `shipments[].orderType` of schema `Shipment` in request body
- [Added] property `userInfo` of schema `CreateOrderAPI` in request body
- [Breaking] [Added] Required status to property `user_info` in request body


#### getShipmentById

- ##### What's New
- [Added] property `shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200


#### getOrderById

- ##### What's New
- [Added] `query` parameter `myOrders` (type: `boolean`)

- [Added] property `shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200


#### getOrders

- ##### What's New
- [Added] property `items[].shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200


### Payment



#### updatePaymentSession

- ##### What's New
- [Added] property `meta` of schema `PaymentSessionRequestSerializer` in request body

- ##### What's Deprecated
- [Deleted] Possible values from `test,live` from property `paymentDetails[].mode` of schema `PaymentSessionDetail` in request body
- [Deleted] Required status from property `paymentDetails[].billing_address` in request body
- [Deleted] Required status from property `paymentDetails[].shipping_address` in request body


#### updateRefundSession

- ##### What's New
- [Added] property `meta` of schema `RefundSessionRequestSerializer` in request body


### User


Expand Down
2 changes: 1 addition & 1 deletion FDKClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |s|
s.name = 'FDKClient'
s.version = '1.3.5-beta.3'
s.version = '1.3.5-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.'
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/application/ApplicationAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ApplicationAPIClient {
var headers = [
(key: "Authorization", value: "Bearer " + "\(config.applicationId):\(config.applicationToken)".asBase64)
]
headers.append((key: "x-fp-sdk-version", value: "1.3.5-beta.3"))
headers.append((key: "x-fp-sdk-version", value: "1.3.5-beta.4"))
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public extension ApplicationClient.Cart {



try? container.encode(customerDetails, forKey: .customerDetails)
try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)



Expand All @@ -395,7 +395,7 @@ public extension ApplicationClient.Cart {



try? container.encode(id, forKey: .id)
try? container.encodeIfPresent(id, forKey: .id)



Expand All @@ -420,7 +420,7 @@ public extension ApplicationClient.Cart {



try? container.encode(callbackUrl, forKey: .callbackUrl)
try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)



Expand All @@ -440,7 +440,7 @@ public extension ApplicationClient.Cart {



try? container.encode(orderingStore, forKey: .orderingStore)
try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)



Expand All @@ -450,7 +450,7 @@ public extension ApplicationClient.Cart {



try? container.encode(paymentIdentifier, forKey: .paymentIdentifier)
try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)



Expand All @@ -460,7 +460,7 @@ public extension ApplicationClient.Cart {



try? container.encode(paymentParams, forKey: .paymentParams)
try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public extension ApplicationClient.Cart {



try? container.encode(email, forKey: .email)
try? container.encodeIfPresent(email, forKey: .email)



Expand Down
25 changes: 24 additions & 1 deletion Sources/code/application/Models/Order/ItemOrderAppModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public extension ApplicationClient.Order {

public var size: String?

public var attributes: [String: Any]?


public enum CodingKeys: String, CodingKey {

Expand All @@ -55,9 +57,11 @@ public extension ApplicationClient.Order {

case size = "size"

case attributes = "attributes"

}

public init(brand: ItemBrand? = nil, code: String? = nil, id: Double? = nil, image: [String]? = nil, l1Categories: [String]? = nil, l2Categories: [String]? = nil, l3CategoryName: String? = nil, name: String? = nil, sellerIdentifier: String? = nil, size: String? = nil, slugKey: String? = nil) {
public init(attributes: [String: Any]? = nil, brand: ItemBrand? = nil, code: String? = nil, id: Double? = nil, image: [String]? = nil, l1Categories: [String]? = nil, l2Categories: [String]? = nil, l3CategoryName: String? = nil, name: String? = nil, sellerIdentifier: String? = nil, size: String? = nil, slugKey: String? = nil) {

self.image = image

Expand All @@ -81,6 +85,8 @@ public extension ApplicationClient.Order {

self.size = size

self.attributes = attributes

}

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



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 {
Expand Down Expand Up @@ -278,6 +296,11 @@ public extension ApplicationClient.Order {
try? container.encodeIfPresent(size, forKey: .size)




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


}

}
Expand Down
8 changes: 8 additions & 0 deletions Sources/code/platform/Client/OrderPlatformClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,7 @@ if let value = shipmentId {
**/
public func getOrderById(
orderId: String,
myOrders: Bool?,

onResponse: @escaping (_ response: OrderDetailsResponse?, _ error: FDKError?) -> Void
) {
Expand All @@ -2310,6 +2311,13 @@ var xQuery: [String: Any] = [:]



if let value = myOrders {

xQuery["my_orders"] = value

}





Expand Down
Loading

0 comments on commit 398e0d2

Please sign in to comment.